Completed
Branch FVSv2 (bb4b20)
by Patrick
03:23
created

shifts.php (2 issues)

Severity

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

1
<?php
2
require_once('class.VolunteerPage.php');
3
$page = new VolunteerPage('Burning Flipside - Flipside Volunteer System');
4
5
$page->addJSByURI('js/shifts.js', false);
6
$page->addJS(JS_BOOTBOX);
0 ignored issues
show
Deprecated Code introduced by
The method FlipPage::addJS() has been deprecated with message: 2.0.0 Please use addWellKnownJS() instead

This method has been deprecated. The supplier of the class has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the method will be removed from the class and what other method or class to use instead.

Loading history...
7
$page->addJS(JS_JQUERY_UI);
0 ignored issues
show
Deprecated Code introduced by
The method FlipPage::addJS() has been deprecated with message: 2.0.0 Please use addWellKnownJS() instead

This method has been deprecated. The supplier of the class has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the method will be removed from the class and what other method or class to use instead.

Loading history...
8
9
$page->body .= '
10
<div id="content">
11
';
12
if($page->isAdmin() || $page->isLead())
13
{
14
$page->body .= '
15
  <div class="row">
16
    <div class="col-md-4">
17
      <div class="panel panel-default" style="cursor: pointer;" onclick="addNewShift()">
18
        <div class="panel-heading">Add New Shift</div>
19
        <div class="panel-body" style="text-align: center;"><i class="fa fa-plus" style="font-size: 7em;"></i></div>
20
      </div>
21
    </div>
22
  </div>
23
  ';
24
}
25
$page->body .= '
26
</div>';
27
28
$page->print_page();
29
?>
30