PK

ADDRLIN : /home/anibklip/babekehospital.org/dAdmin/
FLL :
Current File : /home/anibklip/babekehospital.org/dAdmin/appointmentsPrint.php

<?php
	include "include/session.php";  
	include "include/configure.php";
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Print Appointment</title>
<link href="css/style.css" rel="stylesheet" type="text/css" />
</head>
<body onload="window.print()">
	<div class="middlePrintContainer"> 
 		<table class="listTb" border="1" cellpadding="0" cellspacing="0" width="100%">
            <tr class="headingText">
                <td align="left" colspan="6" >
                	 Appointments - <?=$_GET['dt']?> 
                 </td>
            </tr>
            <tr>
            	<th align="left" width="10%">&nbsp; SNo</th>
                <th align="left" width="20%">Name</th>
                <th align="left" width="20%">Mobile</th>
                <th align="left" width="20%">Email</th>
                <th align="left" width="30%">Message</th>
            </tr>
            <?php
			if(!isset($_REQUEST["start"])) {
				$start = 0;
			}
			else
			$start = $_REQUEST["start"];
			
			$eu = ($start - 0); 
			$limit = 20;          
			$this1 = $eu + $limit; 
			$back = $eu - $limit; 
			$next = $eu + $limit; 
			$sql = mysql_query("limit $eu, $limit");
			
			$sqlSeller = "SELECT * FROM appointments where appointment_date = '".$_GET['dt']."' and doctor_id='".$_GET['dID']."' group by doctor_id ORDER BY id DESC limit $eu, $limit";
			$sqltot = "SELECT * FROM appointments where appointment_date = '".$_GET['dt']."' and doctor_id='".$_GET['dID']."' group by doctor_id ORDER BY id DESC ";
			
			$resultSeller= mysql_query($sqlSeller);
			$resulttot=mysql_query($sqltot);
			$nume=mysql_num_rows($resulttot);
			if (@mysql_num_rows($resultSeller)!=0){
				$sno=0;
            	
				while($rows=mysql_fetch_array($resultSeller)){
					$sno++;
					echo '<tr>
						<td>&nbsp; '.$sno.'</td>
						<td>'.$rows['firstName'].' '.$rows['lastName'].'</td>
						<td>'.$rows['phoneNumber'].'</td>
						<td>'.$rows['emailAddress'].'</td>
						<td>'.$rows['message'].'</td>
					</tr>';
				}
			
			 
            }else{
				echo "<tr>
					<td colspan='6' align='center'>No Data Found.</td>
				</tr>";
			} ?>
        </table>
        
    </div>
 </body>
 </html>


PK 99