?> </select> </td> <td width="61"><input name="submit" type="submit" id="submit" style="font-family:'TH SarabunPSK'; font-size:18px;" value="╣║е╖" /></td> </tr> </table> </form> <hr /> <? if($_POST["act"]=="search"){ $year =$_POST["year"]; ?> <p align="center">йХг╧Ю║Г╨Ю╖т╧╪ыИ╩Хгб╧м║: црб╖р╧црбця╨цга╥яИ╖ка╢<br /> црб╖р╧Ю╖т╧црбця╨╪ыИ╩Хгб╧м║ ╩цп╗с╩у <?=$year?><br /> мм║црб╖р╧ Ё гя╧╥уХ <?=displaydate($keydate); ?></p> <table width="100%" border="1" cellpadding="0" cellspacing="0" bordercolor="#000000"> <tr> <td width="88%" align="center"><strong>А╪╧║</strong></td> <? for($i=1;$i<13;$i++){ if($i==1){ $mon="а║цр╓а";}else if($i==2){ $mon="║ьаюр╬я╧╦Л";}else if($i==3){ $mon="ау╧р╓а";}else if($i==4){ $mon="Юаирб╧";}else if($i==5){ $mon="╬диюр╓а";}else if($i==6){ $mon="ат╤ь╧рб╧";}else if($i==7){ $mon="║ц║╝р╓а";}else if($i==8){ $mon="йт╖кр╓а";}else if($i==9){ $mon="║я╧брб╧";}else if($i==10){ $mon="╣ьер╓а";}else if($i==11){ $mon="╬дх╗т║рб╧";}else if($i==12){ $mon="╦я╧гр╓а";} ?> <td width="12%" align="center"><strong>Ю╢вм╧<?=$mon;?> </strong></td> <? } ?> </tr> <tr> <td align="left">1. Ююйя╙║цца</td> <? for($i=1;$i<13;$i++){ $los = strlen($i);
function displaydate($x) { $thai_m=array("Á¡ÃÒ¤Á","¡ØÁÀҾѹ¸ì","ÁÕ¹Ò¤Á","àÁÉÒ¹","¾ÄÉÀÒ¤Á","ÁԶعÒ¹","¡Ã¡¯Ò¤Á","ÊÔ§ËÒ¤Á","¡Ñ¹ÂÒ¹","µØÅÒ¤Á","¾ÄȨԡÒ¹","¸Ñ¹ÇÒ¤Á"); $date_array=explode("-",$x); $y=$date_array[0]; $m=$date_array[1]-1; $d=$date_array[2]; $m=$thai_m[$m]; $y=$y+543; $displaydate="Çѹ·Õè $d à´×͹ $m ¾.È. $y"; return $displaydate; } // end function displaydate $showdate=displaydate(date("Y-m-d")); $showtime=date("H:i:s"); include("connect.inc"); $query = "SELECT * FROM inputm WHERE idname = '$sIdname' and pword='$sPword' and status ='Y' "; $result = mysql_query($query) or die( mysql_error($Conn) ); for ($i = mysql_num_rows($result) - 1; $i >= 0; $i--) { if (!mysql_data_seek($result, $i)) { echo "Cannot seek to row $i\n"; continue; } if(!($row = mysql_fetch_object($result))) continue; }
<td align="center"> <input type="radio" name="wound" id="wound1" value="1" <? if($myfetch['wound']==1){ echo "checked='checked'";} ?>/><br /> <input type="radio" name="episiotomy" id="episiotomy1" value="1" <? if($myfetch['episiotomy']==1){ echo "checked='checked'";} ?>/><br /> <input type="radio" name="smell" id="smell1" value="1"/ <? if($myfetch['smell']==1){ echo "checked='checked'";} ?>></td> <td align="center"> <input type="radio" name="wound" id="wound2" value="2" <? if($myfetch['wound']==2){ echo "checked='checked'";} ?>/><br /> <input type="radio" name="episiotomy" id="episiotomy2" value="2" <? if($myfetch['episiotomy']==2){ echo "checked='checked'";} ?>/><br /> <input type="radio" name="smell" id="smell2" value="2" <? if($myfetch['smell']==2){ echo "checked='checked'";} ?>/></td> <td align="center"><?=displaydate($myfetch['date13']);?><br /><?=displaydate($myfetch['date14']);?><br /><?=displaydate($myfetch['date15']);?></td> </tr> <tr> <td align="center" valign="top">5.</td> <td>���˹ѧ����dz�����ѵ���� ��� ᴧ �ѡ�ʺ ��˹ͧ</td> <td align="center"><input type="radio" name="skin" id="skin1" value="1" <? if($myfetch['skin']==1){ echo "checked='checked'";} ?>/></td> <td align="center"><input type="radio" name="skin" id="skin2" value="2" <? if($myfetch['skin']==2){ echo "checked='checked'";} ?>/></td> <td align="center"><?=displaydate($myfetch['date16']);?></td> </tr> </table> <table width="100%" border="0" align="left" cellpadding="0" cellspacing="0"> <tr class="hfont"> <td><strong>����ԹԨ������ͧ��</strong></td> <td><label> <input type="radio" name="initial_diag" id="initial_diag1" value="1" <? if($myfetch['initial_diag']==1){ echo "checked='checked'";} ?>/> </label> �Ҵ��ҹ�Ҩ��ա�õԴ���ͨҡ�ç��Һ��</td> </tr> <tr class="hfont"> <td> </td> <td><label> <input type="radio" name="initial_diag" id="initial_diag2" value="0" <? if($myfetch['initial_diag']==0){ echo "checked='checked'";} ?>/> </label> ��辺���С�õԴ���ͨҡ��õԴ���������ѧ </td>
<TR align="center"> <TD width="25%">�/�/�</TD> <TD width="25%">�����Ѻ<br>�ѵä��</TD> <td width="25%">���������<br>����</td> <TD width="25%">������</TD> </TR> <?php while($arr2 = Mysql_fetch_assoc($result2)){ $show=""; if($arr2['date']==$remark2){ $show="*"; }else{ $show=""; } echo "<TR> <TD align=\"center\">";echo displaydate($arr2['date']).' '.$show."</TD> <TD> </TD> <TD> </TD> <TD> </TD> </TR>"; } ?> </TABLE> </TD> </TR> </TABLE> </TD> <TD> </TD>
} ?> <div align="center"> <h1 class="fonth1">���§ҹ�˵ء�ó��Ӥѭ / �غѵԡ�ó� / ��������ʹ���ͧ ( Non-Conforming Report)</h1> <h3 class="fonth3">�ٹ��Ѳ�Ҥس�Ҿ �͡��������Ţ FR-QMR-009/1 ,06, 3 �.�.56</h3> </div> <table width="100%" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#000000" class="fonttable" style="border-collapse:collapse;"> <tr> <td width="33%" valign="top">�Ţ��� NCR : <?=$arr_show['ncr']?> <br /> ˹��§ҹ /��� <?=$arr_until['name']?><br /> �ѹ��� : <?=displaydate($arr_show['nonconf_date']);?> ���� <?=$arr_show['nonconf_time']?> </td> <td colspan="2" valign="top"><table border="0"> <tr> <td width="33">�����</td> <td width="105"><input type="checkbox" name="come_from_id" id="come_from_id" <?php if($arr_show["come_from_id"] == "1") echo " Checked ";?> disabled/>ENV ROUND</td> <td width="275"><input type="checkbox" id="checkbox-1-6" <?php if($arr_show["come_from_id"] == "4") echo " Checked ";?> disabled/> 12 �Ԩ�������ǹ</td> </tr> <tr> <td> </td> <td><input type="checkbox" id="checkbox-1-2" <?php if($arr_show["come_from_id"] == "2") echo " Checked ";?> disabled/> IC ROUND</td> <td><input type="checkbox" id="checkbox-1-5" <?php if($arr_show["come_from_id"] == "5") echo " Checked ";?> disabled/> ˹�����§ҹ�ͧ</td> </tr>
include "function.php"; ?> <html> <head><title>My Blog Administration</title></head> <body> <h1>:: My Blog Administration ::</h1> <p> [ <a href="blog_add.php">à¾ÔèÁ Blog ãËÁè</a> ] [ <a href="blog_logout.php">ÍÍ¡¨Ò¡Ãкº</a> ]</p> <table border="1"> <tr bgcolor="#E8E8E8"> <td><div align="center"><strong>Çѹ·Õèà¢Õ¹</strong></div></td> <td><div align="center"><strong>ËÑÇ¢éÍ</strong></div></td> <td><div align="center"><strong>[á¡éä¢]</strong></div></td> <td><div align="center"><strong>[ź]</strong></div></td> </tr> <?php include "connect.php"; $sql = "select * from tb_blog order by id_blog desc"; $result = mysql_db_query($dbname, $sql); while ($r = mysql_fetch_array($result)) { $id_blog = $r[id_blog]; $title_blog = $r[title_blog]; $date_blog = $r[date_blog]; $date_blog = displaydate($date_blog); $time_blog = $r[time_blog]; echo "\n\t\t\t<tr> \n\t\t\t<td>{$date_blog} {$time_blog}</td>\n\t\t\t<td>{$title_blog}</td>\n\t\t\t<td><a href=\"blog_edit.php?id_edit={$id_blog}\">[á¡éä¢]</a></td>\n\t\t\t<td><a href=\"blog_delete.php?id_del={$id_blog}\" onclick=\"return confirm('Â×¹Âѹ¡ÒÃź Blog ËÑÇ¢éÍ {$title_blog} ')\">[ź]</a></td>\n\t\t\t</tr>\n\t\t</tr>"; } mysql_close(); ?> </table> </body> </html>
<HEAD><TITLE> Ãкº¨Ñ´¡ÒâèÒÇÊÒà </TITLE></HEAD> <BODY> <H2>:: Ãкº¨Ñ´¡ÒâèÒÇÊÒà ::</H2> <? include "function.php"; include "connect.php"; for ($i=1;$i<=count($newtype);$i++) { echo "<B>$newtype[$i]</B><BR>"; echo "<UL>"; $sql="select * from tb_new where type_new='$i' "; $result=mysql_db_query($dbname,$sql); $total=mysql_num_rows($result); $sql="select * from tb_new where type_new='$i' order by date_new desc limit 0,5"; $result=mysql_db_query($dbname,$sql); while($r=mysql_fetch_array($result)) { $id_new=$r[id_new]; $title_new=$r[title_new]; $type_new=$r[type_new]; $date_new=displaydate($r[date_new]); echo "<LI>[$date_new] <A HREF='view.php?id_view=$id_new' TARGET='_blank'>$title_new</A></LI>"; } if ($total>=5) { echo "<LI> <A HREF='list.php?id_type=$i'>more...</A> </LI>"; } echo "</UL>"; } ?> </BODY> </HTML>
<td align="center"> <input type="radio" name="wound" id="wound1" value="1" <? if($_POST['wound']==1){ echo "checked='checked'";} ?>/><br /> <input type="radio" name="episiotomy" id="episiotomy1" value="1" <? if($_POST['episiotomy']==1){ echo "checked='checked'";} ?>/><br /> <input type="radio" name="smell" id="smell1" value="1"/ <? if($_POST['smell']==1){ echo "checked='checked'";} ?>></td> <td align="center"> <input type="radio" name="wound" id="wound2" value="2" <? if($_POST['wound']==2){ echo "checked='checked'";} ?>/><br /> <input type="radio" name="episiotomy" id="episiotomy2" value="2" <? if($_POST['episiotomy']==2){ echo "checked='checked'";} ?>/><br /> <input type="radio" name="smell" id="smell2" value="2" <? if($_POST['smell']==2){ echo "checked='checked'";} ?>/></td> <td align="center"><?=displaydate($_POST['date13']);?><br /><?=displaydate($_POST['date14']);?><br /><?=displaydate($_POST['date15']);?></td> </tr> <tr> <td align="center" valign="top">5.</td> <td>���˹ѧ����dz�����ѵ���� ��� ᴧ �ѡ�ʺ ��˹ͧ</td> <td align="center"><input type="radio" name="skin" id="skin1" value="1" <? if($_POST['skin']==1){ echo "checked='checked'";} ?>/></td> <td align="center"><input type="radio" name="skin" id="skin2" value="2" <? if($_POST['skin']==2){ echo "checked='checked'";} ?>/></td> <td align="center"><?=displaydate($_POST['date16']);?></td> </tr> </table> <table width="100%" border="0" align="left" cellpadding="0" cellspacing="0"> <tr class="hfont"> <td><strong>����ԹԨ������ͧ��</strong></td> <td><label> <input type="radio" name="initial_diag" id="initial_diag1" value="1" <? if($_POST['initial_diag']==1){ echo "checked='checked'";} ?>/> </label> �Ҵ��ҹ�Ҩ��ա�õԴ���ͨҡ�ç��Һ��</td> </tr> <tr class="hfont"> <td> </td> <td><label> <input type="radio" name="initial_diag" id="initial_diag2" value="0" <? if($_POST['initial_diag']==0){ echo "checked='checked'";} ?>/> </label> ��辺���С�õԴ���ͨҡ��õԴ���������ѧ </td>
// $yrmonth="$thiyr-$rptmo-$date"; $date1 ="$thiyr-$rptmo-$date"; $date2 ="$date-$rptmo-$thiyr"; $dateshow ="$thiyr-$rptmo-$date"; $sql = "Select a.admit,a.dcdate,a.days ,a.an,a.hn,a.ptname,a.bfy,a.bfn,a.dpy,a.dpn,a.ddl,a.ddy,a.ddn,a.dsy,a.dsn,a.blood,a.lab,a.xray,a.sinv,a.surg,a.ncare,a.denta,a.pt,a.stx,a.mc,b.icd10,b.comorbid,b.icd9cm From ipmonrep as a, ipcard as b where a.hn=b.hn AND a.dcdate like '".$date1."%' AND a.credit ='30ºÒ·' group by a.hn ORDER by a.dcdate"; $result = mysql_query($sql) or die(mysql_error()); //echo $sql; echo "<br><br>"; echo "<font face='TH SarabunPSK' size ='4'><center> <b>Å١˹ÕéËÅÑ¡»ÃСѹÊØ¢ÀÒ¾»ÃШÓÇѹ·Õè ".displaydate($dateshow)."</b> <br>"; echo "<font face='TH SarabunPSK' size ='4'> <b>âç¾ÂÒºÒŤèÒÂÊØÃÈÑ¡´ÔìÁ¹µÃÕ ÅÓ»Ò§</b> </center>"; echo "<table border ='1' bordercolor='#000000' cellspacing='0' cellpadding='2' style='BORDER-COLLAPSE: collapse'>"; echo "<tr> <td align=\"center\" class=\"fonthead\">#</td> <td align=\"center\" class=\"fonthead\">ÇѹÃÑ¡ÉÒ</td> <td align=\"center\" class=\"fonthead\">Çѹ¨Ó˹èÒÂ</td> <td align=\"center\" class=\"fonthead\">Çѹ¹Í¹</td> <td align=\"center\" class=\"fonthead\">hn</td> <td align=\"center\" class=\"fonthead\">AN</td> <td align=\"center\" class=\"fonthead\">ª×èÍ - Ê¡ØÅ</td> <td align=\"center\" class=\"fonthead\">ICD10</td> <td align=\"center\" class=\"fonthead\">ICD10Ãͧ</td> <td align=\"center\" class=\"fonthead\">ICD9</td> <td align=\"center\" class=\"fonthead\">ÂÒ</td> <td align=\"center\" class=\"fonthead\">¤èÒËéͧ</td>
<?php session_start(); if ($_SESSION[sess_userid] != session_id()) { header("Location: admin.php"); exit; } include "function.php"; $date_today = date("Y-m-d"); $date_today = displaydate($date_today); $time_today = date("H:i:s"); ?> <html> <head><title>Ю╬тХа Blog ЦкаХ</title></head> <body> <h1>Ю╬тХа Blog ЦкаХ</h1> <form method="POST" action="blog_add2.php"> <table cellspacing="2"> <tr> <td><b>кяг╒Им : </b></td> <td><input name="title" type="text" SIZE="50"> *</td> </tr> <tr> <td><b>гя╧╥уХ : </b></td> <td><?php echo "{$date_today} {$time_today}"; ?> </td> </tr> <tr> <td VALIGN="top"><b>Ю╧вИмкр :</b></td>
$mmr++; }elseif($name1=="JEV"){ $jev++; }elseif($name1=="TT"){ $tt++; }elseif($name1=="VEROLAB"){ $vero++; } } ?> <tr class="forntsarabun"> <td align="center"><?=$n++; ?></td> <td><?=displaydate($row['date_ser']);?></td> <td align="center"><?=$row['hn'];?></td> <td><?=$row['yot'].$row['name'].' '.$row['surname'];?></td> <td><?=calcage($row['dbirth']);?></td> <td><?=$row['address'].' '.$row['tambol'].' '.$row['ampur'].' '.$row['changwat'];?></td> <td align="center"><?=$name1; ?></td> <td align="center"><?=$row['num'];?></td> <td align="center"><?=$row['lotno'];?></td> <td align="center"><?=$row['date_end'];?></td> <td align="center"><? if ($row['lotno2']=='' and $row['date_end2']==''){ echo ""; }else{ echo $name2;}?></td> <td align="center"><? if ($row['lotno2']=='' and $row['date_end2']==''){ echo ""; }else{ echo $row['num']; }?></td> <td align="center"><? if ($row['lotno2']=='' and $row['date_end2']==''){ echo ""; }else{ echo $row['lotno2']; }?></td> <td align="center"><? if ($row['lotno2']=='' and $row['date_end2']==''){ echo ""; }else{ echo $row['date_end2']; }?></td> <td><?=$row['name_doc'];?></td> </tr> <?
//echo $sql; $query=mysql_query($sql) or die ("Query fail on line 55"); $rows=mysql_fetch_array($query); $yy=date("Y"); $mm=date("m"); $dd=date("d")+1; $time=date('H:i:s'); if($dd <= 9){ $dd="0".$dd; }else{ $dd=$dd; } $showdate="$dd/$mm/$yy"; $newdate="$yy-$mm-$dd"; $newdate=displaydate($newdate); $query1 = "SELECT doctor FROM appoint WHERE hn='".$hn."' AND appdate = '".$newdate."' AND apptime <> '¡��ԡ��ùѴ'"; //echo $query1; $result1 = mysql_query($query1) or die("Query failed"); if(mysql_num_rows($result1) < 1){ echo "<script>alert('������ HN: $hn ��������¡�ü����¹Ѵ');window.close();</script>"; } $rows1=mysql_fetch_array($result1) ?> <table width="100%" border="0" cellpadding="0" cellspacing="0" bordercolor="#000000"> <tr> <td width="6%" height="600" valign="top"> </td> <td width="94%" height="600" valign="top"> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr>
</TR> <TR> <TD><B>Б╥цхя╬╥Л : </B></TD> <TD><INPUT NAME="tel_edit" TYPE="text" VALUE="<?php echo $telephone; ?> " SIZE="26"></TD> </TR> <TR> <TD VALIGN="top"><B>╥уХмбыХ╣т╢╣Хм :</B></TD> <TD><TEXTAREA NAME="address_edit" COLS="35" ROWS="3"><?php echo $address; ?> </TEXTAREA></TD> </TR> <TR> <TD><B>йая╓цЮавХм :</B></TD> <TD><?php echo displaydate($reg_date); ?> </TD> </TR> <TR> <TD> </TD> <TD><INPUT TYPE="Submit" VALUE="Submit"> <INPUT TYPE="Reset" VALUE="Reset"></TD> </TR> </TABLE> </FORM> [ <a href="main.php">║ея╨к╧Иркея║</a> ] </BODY> </HTML>
<td width='15%'> <center><b><font size='2' face='MS Sans Serif'>¼ÙéµÑ駤ӶÒÁ</font></b></center></td> <td width='16%'> <center><b><font size='2' face='MS Sans Serif'>µÑé§àÁ×èÍÇѹ·Õè</font></b></center></td> </tr>"; while($record=mysql_fetch_array($result)) { $id_ques=$record[id_ques]; $title_ques=$record[title_ques]; $detail_ques=$record[detail_ques]; $name_ques=$record[name_ques]; $email_ques=$record[email_ques]; $date_ques=$record[date_ques]; $title_ques=htmlspecialchars($title_ques); $name_ques=htmlspecialchars($name_ques); $detail_ques=nl2br(htmlspecialchars($detail_ques)); $date_ques=displaydate($date_ques); echo " <tr bgcolor='#FFFFFF'> <td width='8%'><center><font size='2' face='MS Sans Serif'>#$id_ques</font></center></td> <td width='61%'> <font size='2' face='MS Sans Serif'><a href='answer_view.php?id_ques=$id_ques'>$title_ques</a></font></td> <td width='15%'> <center><font size='2' face='MS Sans Serif'>$name_ques</font></center></td> <td width='16%'> <center><font size='2' face='MS Sans Serif'>$date_ques</font></center></td> </tr>"; } // end while echo "</table>"; ?>