Ejemplo n.º 1
0
 protected function OnInput()
 {
     parent::OnInput();
     $this->title = 'Информация о персонале';
     $this->personal = getPersonalInfoById($_GET['id']);
     $this->schedule = getScheduleOfDoctor($_GET['id']);
     //Getting patients
     $this->patients = getAllPatients();
     //Getting procedute and place
     $this->procedure = getAllProcedures();
     $this->place = getAllPlaces();
 }
<div id="opdHolder">
	<?php 
$per_page = 10;
$no_of_paginations = countAllPt();
$pages = ceil(mysql_result($no_of_paginations, 0) / $per_page);
$page = isset($_GET['page']) ? (int) $_GET['page'] : 1;
if (!empty($pages)) {
    if ($page > $pages) {
        header("Location: pagenotfound.php");
        exit;
    }
}
$start = ($page - 1) * $per_page;
$ptRecords = getAllPatients($start, $per_page);
?>
	<span class="pageTitle">List of all Patients</span>
	<div id="ptViewHolder">
		<table width="100%" class="tblRecord">
			<thead>
				<th width="12%">Patient ID</th>
				<th width="16%">Last Name</th>
				<th width="16%">First Name</th>
				<th width="16%">Middle Name</th>
				<th width="13%">Birthday</th>
				<th width="12%">Civil Status</th>
				<th width="17%">&nbsp;</th>
			</thead>
	<?php 
if (empty($ptRecords)) {
    ?>
			<tr><td colspan="7"><center><i>No records found in the database.</i></center></td></tr>