BurningFlipside /
VolunteerSystem
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/viewDept.js'); |
||
| 6 | |||
| 7 | $page->body .= ' |
||
| 8 | <div id="content"> |
||
| 9 | <form id="department"> |
||
| 10 | <fieldset id="deptData"> |
||
| 11 | <legend id="departmentNameRO"></legend> |
||
| 12 | <div class="form-group"> |
||
| 13 | <label class="col-sm-2 control-label">Department Name:</label> |
||
| 14 | <div class="col-sm-10"> |
||
| 15 | <input type="text" class="form-control" name="departmentName" id="departmentName"/> |
||
| 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">Description:</label> |
||
| 21 | <div class="col-sm-10"> |
||
| 22 | <textarea class="form-control" name="description" id="description"></textarea> |
||
| 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">Public Group:</label> |
||
| 28 | <div class="col-sm-10"> |
||
| 29 | <input type="checkbox" class="form-control" name="public" id="public" onchange="publicChanged()"/> |
||
| 30 | </div> |
||
| 31 | </div> |
||
| 32 | <div class="clearfix visible-sm visible-md visible-lg"></div> |
||
| 33 | <fieldset id="privateDept"> |
||
| 34 | <legend>Private Department Info</legend> |
||
| 35 | <div class="form-group"> |
||
| 36 | <label class="col-sm-2 control-label">Department Visible To:</label> |
||
| 37 | <div class="col-sm-10"> |
||
| 38 | <select class="form-control" name="visibleType" id="visibleType" onchange="visibleTypeChanged()"> |
||
| 39 | <option value="UserGroup">Only users in Group...</option> |
||
| 40 | <option value="SpecifiedVolunteers">Only specified volunteers...</option> |
||
| 41 | </select> |
||
| 42 | </div> |
||
| 43 | </div> |
||
| 44 | </fieldset> |
||
| 45 | <div class="clearfix visible-sm visible-md visible-lg"></div> |
||
| 46 | <button type="submit" class="btn btn-primary">Submit Changes</button> |
||
| 47 | <button type="button" class="btn btn-secondary" onclick="viewShifts();">View Associated Shifts <i class="fa fa-chevron-right"></i></button> |
||
| 48 | </fieldset> |
||
| 49 | </form> |
||
| 50 | </div>'; |
||
| 51 | |||
| 52 | $page->print_page(); |
||
| 53 | ?> |
||
|
0 ignored issues
–
show
|
|||
| 54 |
Using a closing tag in PHP files that only contain PHP code is not recommended as you might accidentally add whitespace after the closing tag which would then be output by PHP. This can cause severe problems, for example headers cannot be sent anymore.
A simple precaution is to leave off the closing tag as it is not required, and it also has no negative effects whatsoever.