本文整理汇总了PHP中School::listOfSchools方法的典型用法代码示例。如果您正苦于以下问题:PHP School::listOfSchools方法的具体用法?PHP School::listOfSchools怎么用?PHP School::listOfSchools使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类School
的用法示例。
在下文中一共展示了School::listOfSchools方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: school
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
}
示例2: School
<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">
示例3: checkall
<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