示例#1
0
		<div class="well">

			    <form action="controller.php?action=delete" Method="POST">  					
				<table class="table table-hover">
					<caption><h3 align="left">List of Department</h3></caption>
				  <thead>
				  	<tr>
				  		<th> <input type="checkbox" name="chkall" id="chkall" onclick="return checkall('selector[]');"> Department Name</th>
				  		<th>Department Description</th>
				 
				  	</tr>	
				  </thead>
				  <tbody>
				  	<?php 
$dept = new Dept();
$cur = $dept->listOfDept();
foreach ($cur as $Department) {
    echo '<tr>';
    echo '<td><input type="checkbox" name="selector[]" id="selector[]" value="' . $Department->DEPT_ID . '"/>
				  				<a href="index.php?view=edit&id=' . $Department->DEPT_ID . '">' . $Department->DEPARTMENT_NAME . '</a></td>';
    echo '<td colspan="3">' . $Department->DEPARTMENT_DESC . '</td>';
    echo '</tr>';
}
?>
				  </tbody>
				  <tfoot>
				  	<tr><td></td><td></td></tr>
				  </tfoot>	
				</table>
				<?php 
if ($_SESSION['ACCOUNT_TYPE'] == 'Administrator') {