Completed
Push — FVSv2 ( 63e0fa...65de7f )
by Patrick
01:31
created

addShift.php (1 issue)

Labels
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);
0 ignored issues
show
The method addJSByURI() does not seem to exist on object<VolunteerPage>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
6
$page->addWellKnownJS(JS_BOOTBOX);
7
$page->addWellKnownJS(JS_JQUERY_UI);
8
9
$page->body .= '
10
<div id="content">
11
          <div class="form-group">
12
            <label class="col-sm-2 control-label">Department Name:</label>
13
            <div class="col-sm-10">
14
               <select class="form-control" name="departmentName" id="departmentName">
15
               </select>
16
            </div>
17
          </div>
18
          <div class="clearfix visible-sm visible-md visible-lg"></div>
19
          <div class="form-group">
20
            <label class="col-sm-2 control-label">Shift Name:</label>
21
            <div class="col-sm-10">
22
               <input type="text" class="form-control" name="shiftName" id="shiftName"/>
23
            </div>
24
          </div>
25
          <div class="clearfix visible-sm visible-md visible-lg"></div>
26
          <div class="form-group">
27
            <label class="col-sm-2 control-label">Shift Start:</label>
28
            <div class="col-sm-10">
29
               <input type="datetime-local" class="form-control" name="shiftStart" id="shiftStart"/>
30
            </div>
31
          </div>
32
          <div class="clearfix visible-sm visible-md visible-lg"></div>
33
          <div class="form-group">
34
            <label class="col-sm-2 control-label">Shift End:</label>
35
            <div class="col-sm-10">
36
               <input type="datetime-local" class="form-control" name="shiftEnd" id="shiftEnd"/>
37
            </div>
38
          </div>
39
          <div class="clearfix visible-sm visible-md visible-lg"></div>
40
          <fieldset>
41
            <legend>Roles</legend>
42
            <div id="roles"></div>
43
            <button class="btn btn-link" title="Add New Role"><i class="fa fa-plus-square-o"></i></button>
44
            <button class="btn btn-link" title="Add Existing Role"><i class="fa fa-plus-square"></i></button>
45
          </fieldset>
46
        </div>
47
      </div>
48
    </div>';
49
$page->printPage();
50