<?php include('accesscheck2.php'); 
require_once('Connections/courier.php');
require_once('functions/functions.php');

mysql_select_db($database_courier, $courier);

$query_rsodest_patient = "SELECT * FROM guest_patients where id='$id'";
$rsodest_patient = mysql_query($query_rsodest_patient, $courier) or die(mysql_error());
$row_rsodest_patient = mysql_fetch_assoc($rsodest_patient); ?>

    <div class="portlet-title">
        <div class="caption caption-md">
            <i class="icon-globe theme-font hide"></i>
            <span class="caption-subject font-blue-madison bold uppercase">PATIENT INFORMATION</span>
        </div>
    </div>
    <div class="portlet-body form">
        <form role="form" action="#" class="form-horizontal">
        <div class="form-body">
            <div class="row">
                <div class="col-lg-12 col-xs-12 col-md-12">
                    <div class="col-md-6">
                        
                        <div class="form-group">
                            <label class="col-md-5 pull-left control-label">Patient ID</label>
                            <label class="col-md-7 control-label bold"><?php echo $row_rsodest_patient['card_number'];?></label>
                        </div>
                        <div class="form-group">
                            <label class="col-md-5 pull-left control-label">Surname</label>
                            <label class="col-md-7 control-label bold"><?php echo $row_rsodest_patient['surname']; ?> </label>
                        </div>
                        <div class="form-group">
                            <label class="col-md-5 pull-left control-label">Date Of Birth</label>
                            <label class="col-md-7 control-label bold"><?php echo date('jS F Y',  strtotime($row_rsodest_patient['dateofbirth']));?> </label>
                        </div>
                        <div class="form-group">
                            <label class="col-md-5 pull-left control-label">Sex</label>
                            <label class="col-md-7 control-label bold"><?php echo $row_rsodest_patient['sex'];?> </label>
                        </div>
                    </div>
                    <div class="col-md-6">
                        <div class="form-group">
                            <label class="col-md-5 pull-left control-label">Other Names</label>
                            <label class="col-md-7 control-label bold"><?php echo $row_rsodest_patient['othernames'];?> </label>
                        </div>
                        <div class="form-group">
                            <label class="col-md-5 pull-left control-label">Marital Status</label>
                            <label class="col-md-7 control-label bold"><?php echo $row_rsodest_patient['marital_status'];?> </label>
                        </div>
                        <div class="form-group">
                            <label class="col-md-5 pull-left control-label">Tel/Mobile</label>
                            <label class="col-md-7 control-label bold"><?php echo $row_rsodest_patient['tel'];?> </label>
                        </div>
                        <div class="form-group">
                            <label class="col-md-5 pull-left control-label">Email</label>
                            <label class="col-md-7 control-label bold"><?php echo $row_rsodest_patient['email'];?> </label>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="form-actions right">
            <a onclick="getProcess('edit_normal_patient_information', '#patient_page_wrapper', '<?php echo $id;?>');" href="javascript:;" class="btn green"> <i class="icon-pencil"></i> Edit </a>
        </div>
    </form>
    </div>


