function school() { ?> <div> <ul> <?php $school = new School(); $schoolList = $school->listOfSchools(); foreach ($schoolList as $list) { echo '<li>'; echo '<a href = "index.php?view=listProj&bid=null&&sid=' . $list->school_id . '&school_name=' . $list->name . '" class="button green"><strong class="title">' . $list->name . '</a></strong>'; echo '</li>'; } ?> </ul> </div> <?php }
<div class="col-md-8"> <label class="col-md-4 control-label" for="website">Website</label> <div class="col-md-8"> <input class="form-control input-sm" id="website" name="website" placeholder="Website" type="text" value=""> </div> </div> <br /><br /> <div class="col-md-8"> <label class="col-md-4 control-label" for="school">School</label> <div class="col-md-8"> <select class="form-control input-sm" name="school" id="school"> <?php $school = new School(); $cur = $school->listOfSchools(); foreach ($cur as $school) { echo '<option value="' . $school->school_id . '">' . $school->name . '</option>'; } ?> </select> </div> </div> <br /><br /> <div class="col-md-8"> <label class="col-md-4 control-label" for= "idno"></label> <div class="col-md-8">
<form action="controller.php?action=list" Method="POST"> <table id="example" class="table table-striped" cellspacing="0"> <thead> <tr> <th>No.</th> <th width="15%" align="left"><input type="checkbox" name="chkall" id="chkall" onclick="return checkall('selector[]');"> Select All</th> <th>School name</th> <th>Short Name</th> <th>Edit</th> <th>Details</th> </tr> </thead> <tbody> <?php $school = new School(); $schoolList = $school->listOfSchools(); foreach ($schoolList as $list) { echo '<tr>'; echo '<td width="5%" align="center"></td>'; echo '<td width="15%"><input type="checkbox" name="selector[]" id="selector[]" value="' . $list->school_id . '"/>'; echo '<td width="40%" >' . $list->name . '</td>'; echo '<td width="20%" >' . $list->shortname . '</td>'; echo '<td width="10%" ><a href = "index.php?view=edit&id=' . $list->school_id . '" ><span class="glyphicon glyphicon-list-alt"> </span> Edit</a></td>'; echo '<td><a href = "index.php?view=view&schoolId=' . $list->school_id . '" ><span class="glyphicon glyphicon-list-alt"> </span> View</a></td>'; echo '</tr>'; } ?> </tbody> </table> <?php