當前位置: 首頁>>代碼示例>>PHP>>正文


PHP School::listOfSchools方法代碼示例

本文整理匯總了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 
}
開發者ID:allybitebo,項目名稱:ucb,代碼行數:18,代碼來源:list.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">
開發者ID:allybitebo,項目名稱:ucb,代碼行數:31,代碼來源:addinschool.php

示例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 
開發者ID:allybitebo,項目名稱:ucb,代碼行數:31,代碼來源:list.php


注:本文中的School::listOfSchools方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。