67 lines
2.8 KiB
PHP
67 lines
2.8 KiB
PHP
<!-- BEGIN PHP CODE PATIENT STAT PER DAY -->
|
|
<?php
|
|
//require("connect_web.php");
|
|
//require("connect_hosxp.php");
|
|
//require("date_format.php");
|
|
$sql_clear_or = "delete from or_price where user='$account' ";
|
|
mysqli_query($conn2, $sql_clear_or);
|
|
?>
|
|
<div class="headerpanel"> <a href="" class="showmenu"></a>
|
|
<div class="headerright">
|
|
<?php require("right_header.php"); ?>
|
|
</div>
|
|
<!--headerpanel-->
|
|
<div class="breadcrumbwidget">
|
|
<?php require("breadcrumb.php"); ?>
|
|
<div class="row-fluid">
|
|
<div class="span8">
|
|
<!-- Content -->
|
|
<h4 class="widgettitle nomargin shadowed">คำนณค่าใช้จ่ายในการผ่าตัด </h4>
|
|
<div class="widgetcontent bordered shadowed nopadding">
|
|
<form class="stdform stdform2" method="post" action="edit_cost.php" name="cost_form" enctype="multipart/form-data">
|
|
<p>
|
|
<label>เลือกสิทธิ์การรักษา :</label>
|
|
<span class="field"><select name="privilege" id="privilege" class="" style="width:350px;" onchange="window.location = jQuery('#privilege option:selected').val();">
|
|
<option selected="selected">-- สิทธิ์การรักษา --</option>
|
|
<?php
|
|
$sql = mysqli_query($conn2, "select * from patient_privilege");
|
|
while ($row = mysqli_fetch_array($sql)) {
|
|
$id = $row[2];
|
|
$data = $row[1];
|
|
$link = $row[3];
|
|
echo '<option value="or_calculate_detail.php?type=' . $link . '">' . $data . '</option>';
|
|
} ?>
|
|
</select></span>
|
|
</p>
|
|
<script type="text/javascript">
|
|
var urlmenu = document.getElementById('privilege');
|
|
urlmenu.onchange = function() {
|
|
window.open(this.options[this.selectedIndex].value);
|
|
};
|
|
</script>
|
|
</form>
|
|
</div>
|
|
<!--widgetcontent-->
|
|
</div>
|
|
<!--span4-->
|
|
<!--span4-->
|
|
<div class="span4">
|
|
<h4 class="widgettitle nomargin">ข่าวประชาสัมพันธ์</h4>
|
|
<div class="widgetcontent bordered" style="height: 478px">
|
|
<?php while ($row_news1 = mysqli_fetch_array($result_news2)) { ?>
|
|
<p>
|
|
<font size="" color="#0000ff"><?php echo datetime_to_date($row_news1['date_add']); ?></font> : <?php echo $row_news1['title']; ?>
|
|
</p>
|
|
<?php } ?>
|
|
</div>
|
|
<!--widgetcontent-->
|
|
</div>
|
|
<!--span4-->
|
|
|
|
<!--span4-->
|
|
</div>
|
|
<!--row-fluid-->
|
|
</div>
|
|
<!--contentinner-->
|
|
</div>
|
|
<!--maincontent-->
|