">
                              ���͡�ѹ��� .. 
                            <input name="id1" type="text" value="<?php 
    echo $id1;
    ?>
" size="15"/>
                            <input type="button" onClick="c1.innerpopup('id1','calendar_frame');" value="..."/>
                            <input type="submit" value="Refresh">
                          </form>
						  -->
                    </td>
                    <td width="281" align="right">&nbsp;</td>
                  </tr>
                  <tr>
                    <td colspan="2"><?php 
    echo "&nbsp;<b>������ � �ѹ���</b>&nbsp;<font color=red><u>" . dateThai($d_conv_search) . "</u></font>";
    ?>
                    </td>
                  </tr>
                  <tr>
                    <td><?php 
    //�ӹǹ��������ѹ������͡
    //�ӹǹ��
    $sql_c_ovst1 = "select count(distinct hn) as cc1 from ovst where vstdate='{$d_conv_search}' ";
    $result_c_ovst1 = mysql_db_query($DBName, $sql_c_ovst1) or die("�������ö���͡���������ʴ���" . mysql_error());
    $rs_c_ovst1 = mysql_fetch_array($result_c_ovst1);
    //�ӹǹ����
    $sql_c_ovst2 = "select count(*) as cc2 from ovst where vstdate='{$d_conv_search}' ";
    //�ӹǹ����
    $result_c_ovst2 = mysql_db_query($DBName, $sql_c_ovst2) or die("�������ö���͡���������ʴ���" . mysql_error());
    $rs_c_ovst2 = mysql_fetch_array($result_c_ovst2);
Example #2
0
            $pmr = explode("|", $get_Name_Addr);
            $keyword = $pmr[0];
            //�¡��ҵ���÷���Ѻ�Ҩҡ fuc ���� | ���͵Ѵ��������
            print "<a href='patient_medication_record.php?vn={$vn}&hn={$hn}&keyword={$keyword}&submit=Edit'>{$keyword}</a>";
            ?>
									</td>
									<td width="131" align="center"><?php 
            if ($rsM_Y['approve_doctor'] == 'Y') {
                echo "<font color=green>" . $rsM_Y['approve_doctor'] . "</font>";
            } else {
                echo "<font color=red>" . $rsM_Y['approve_doctor'] . "</font>";
            }
            ?>
</td>
    								<td width="131" align="left"><?php 
            echo dateThai($rsM_Y['vstdate']);
            ?>
</td>
  									</tr>
									<?php 
            $i++;
        }
        //while list
        ?>
					</table><br><br>
				<?php 
        //}//1//
    }
    //end
    ?>
					  </td>
</tr>

<?php 
    $hn = $_GET['hn'];
    $sqlOpd_Socail = "select * from lamae_egfr  where hn='{$hn}' order by vstdate desc";
    $resultOpd_Socail = ResultDB($sqlOpd_Socail);
    if (mysql_num_rows($resultOpd_Socail) > 0) {
        $i = 0;
        while ($i < mysql_num_rows($resultOpd_Socail)) {
            //while
            $rsOpd_Socail = mysql_fetch_array($resultOpd_Socail);
            ?>
                       
<tr>
	<td align="center"><font size='4'><?php 
            echo dateThai($rsOpd_Socail['vstdate']);
            ?>
</font></td>
	<td align="center"><font size='4'><?php 
            echo $rsOpd_Socail['hn'];
            ?>
</font></td>
		<td align="center"><font size='4' color='blue'><?php 
            echo $rsOpd_Socail['eGFR_result'];
            ?>
</font></td>

	
	<td align="center">
			<a href="frm_egfr_edit.php?vn=<?php 
            echo $rsOpd_Socail['vn'];
                            <td valign="bottom" bgcolor="#3399CC"><div align="left"><img src="img_mian/c_l_left.gif" width="8" height="16"></div></td>
                            <td background="img_mian/bgcolor2.gif" bgcolor="#3399CC">&nbsp;</td>
                            <td background="img_mian/bgcolor2.gif" bgcolor="#3399CC">&nbsp;</td>
                            <td colspan="5" background="img_mian/bgcolor2.gif" bgcolor="#3399CC">&nbsp;</td>
                            <td align="left" valign="bottom"><img src="img_mian/c_l_r.gif" width="8" height="16"></td>
                          </tr>
                        </table>
                        <!-- end ���ҧ��ͺ���ҧ -->
                        <?php 
        if ($num_rows_Lablist < 10) {
            echo "<br><br><br><br><br><br><br><br><br><br><br><br><br>";
        }
    } else {
        //row=0
        $row = "n";
        echo "<center>�š�ä��� : ����բ����Ţͧ�ѹ���&nbsp;<font color=red><u>" . dateThai($d_conv_search) . "</u></font>&nbsp;㹰ҹ������<center>";
        echo "<br><br><br><br><br><br><br><br><br><br>";
    }
    //row=0
    ?>
                      </td>
                    </tr>
                    <tr> 
                      <td>&nbsp;</td>
                      <td><a name="below"></a>
					  <?php 
    if ($num_rows_Finance > 20) {
        //�١������͹ŧ
        echo "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;";
        echo "<a href=#top><img src=\"img_mian/arow_t.gif\" width=13 height=9 border=0></a>&nbsp;��ҹ��";
    }
Example #5
0
                  <td colspan="3" bgcolor="#FFFFCC">&nbsp;<font color="red"><b><?php 
    echo $rs['user_err'] . "(" . $rs['user_name'] . " )";
    ?>
</b></font></td>
                </tr>
                <tr>
                  <td bgcolor="#319ACE">&nbsp;Çѹ/àÇÅÒ ·ÕèÃÒ§ҹ : </td>
                  <td colspan="3" bgcolor="#FFFFCC">&nbsp;<?php 
    echo dateThai($rs['err_date_report']) . " àÇÅÒ : " . $rs['err_time_report'];
    ?>
</td>
                </tr>
                <tr>
                  <td width="151" bgcolor="#319ACE">&nbsp;Çѹ/àÇÅÒ ·Õèà¡Ô´à赯 : </td>
                  <td colspan="3" bgcolor="#FFFFCC">&nbsp;<?php 
    echo dateThai($rs['err_date']) . " àÇÅÒ : " . $rs['err_time'];
    ?>
</td>
                  </tr>
                <tr>
                  <td bgcolor="#319ACE"> &nbsp;˹èǧҹ :</td>
                  <td colspan="3" bgcolor="#FFFFCC">&nbsp;<?php 
    echo $rs['depart_name'];
    ?>
</td>
                  </tr>
                <tr>
                  <td bgcolor="#319ACE">&nbsp;à¡Ô´¡Ñº¼Ùé»èÇ : </td>
                  <td colspan="3" bgcolor="#FFFFCC">&nbsp;<?php 
    if ($rs['patient_type'] == "OPD") {
        echo "¼Ùé»èǹ͡";
Example #6
0
 <?php 
           echo "&nbsp;";
           ?>
 <?php 
           echo "<font size='1'>";
           ?>
 <?php 
           echo dateThai($rsOpd_Socail[pttype_begin]);
           ?>
 
 
 <?php 
           echo "&nbsp;";
           ?>
 <?php 
           echo dateThai($rsOpd_Socail[pttype_expire]);
           ?>
 
 <?php 
           echo "&nbsp;";
           ?>
 <?php 
           echo "&nbsp;&nbsp;(¹¾.³Ñ°ÀÑ·Ã &nbsp; ÊÃÃྪÃ)";
           ?>
 <?php 
           echo "</font>";
           ?>
 
 
 <?php 
           echo "</td></tr>";
Example #7
0
                print "<table border='0' cellpadding='0' cellspacing='0' class='bd-external' width='500'>";
                print "<tr class='headtable'><td align='center' background='img_mian/bgcolor2.gif'>Ç/´/» [ VN ]</td><td align='center' background='img_mian/bgcolor2.gif'>ÊÔ·¸Ô¡ÒÃÃÑ¡ÉÒ¤ÃÑ駹Õé</td>\n";
                print "<td align='center' background='img_mian/bgcolor2.gif'>àÅ¢·Õè</td><td align='center' background='img_mian/bgcolor2.gif'>ºÑµÃËÁ´ÍÒÂØ</td></tr>\n";
                $bg = "#B1C3D9";
                $i = 0;
                while ($i < mysql_num_rows($resultVn_All)) {
                    $rsVn_All = mysql_fetch_array($resultVn_All);
                    if ($bg == "#B1C3D9") {
                        $bg = "#FFFFFF";
                    } else {
                        $bg = "#B1C3D9";
                    }
                    //tr color
                    print "<tr bgcolor='{$bg}' class='text-intable'>\n";
                    //echo " | <a href='$PHP_SELF?hn=".$rsVn_All['hn']."&vn=".$rsVn_All['vn']."&ptbutton=Search'>".dateThai($rsVn_All['vstdate'])."</a> | ";
                    print "<td>&nbsp;" . dateThai($rsVn_All['vstdate']) . "<br>&nbsp;VN :<font color='red'><b>" . $rsVn_All['vn'] . "</b></font></td><td>&nbsp;" . $rsVn_All['name'] . "</td><td>&nbsp;" . $rsVn_All['pttypeno'] . "</td><td>&nbsp;" . dateThai($rsVn_All['expiredate']) . "</td>\n";
                    print "</tr>\n";
                    $i++;
                }
                //while
                print "</table>";
            }
            //row
            //end table
            ?>
						
						</td>
                        </tr>
						</table>
					<?php 
        }
Example #8
0
         //d
         $chart_width = ceil(7.4 * $lc);
         $chart_font = "12";
     }
     //d
 } else {
     $chart_width = "500";
     $chart_font = "16";
 }
 $flash_width = $chart_width + 100;
 $vstdate = str_replace('%', '%25', $vstdate);
 $tablename = "<font size=3><b>ÃÙ»áÊ´§" . $grp_dsc . "</b></font><br>";
 if ($vstdate != "" and strlen($vstdate) == 10) {
     $tablename = $tablename . "Çѹ·Õè " . dateThai($vstdate);
 } else {
     $tablename = $tablename . "à´×͹" . dateThai($vstdate);
 }
 if ($flash_width >= 680) {
     echo "<div align='center'>" . $tablename . "<a href='#graph'>(´ÙµÒÃÒ§)</a></div>";
 }
 echo "<OBJECT classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000'\r\n\tcodebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0' \r\n\tWIDTH='{$flash_width}' \r\n\tHEIGHT='450' \r\n\tid='charts' \r\n\tALIGN=''>\r\n<PARAM NAME=movie VALUE='charts.swf?library_path=charts_library&xml_source=sample.php%3Ftime%3D{$grptime}%26vstdate%3D{$vstdate}%26grpid%3D{$grpid}%26chart_width%3D{$chart_width}%26chart_font%3D{$chart_font}'>\r\n<PARAM NAME=quality VALUE=high>\r\n<PARAM NAME=bgcolor VALUE=#666666>\r\n\r\n<EMBED src='charts.swf?library_path=charts_library&xml_source=sample.php%3Ftime%3D{$grptime}%26vstdate%3D{$vstdate}%26grpid%3D{$grpid}%26chart_width%3D{$chart_width}%26chart_font%3D{$chart_font}'\r\n       quality=high \r\n       bgcolor=#666666  \r\n       WIDTH='{$flash_width}' \r\n       HEIGHT='450' \r\n       NAME='charts' \r\n       ALIGN='' \r\n       TYPE='application/x-shockwave-flash' \r\n       PLUGINSPAGE='http://www.macromedia.com/go/getflashplayer'>\r\n</EMBED>\r\n</OBJECT>";
 ?>
 </td>
 <td width="1%" align="left">&nbsp;	</td>
 <td width="21%" align="center" valign="top"><?php 
 if ($flash_width < 680) {
     echo "<div align='Center'>" . $tablename . "</div><br>";
     echo $table;
 }
 //$maxlen="4";
 //end table
 //start admit
 $sql_ipt = "select count(*) as cc_ipt from ipt where vn='{$vn}' ";
 $result_ipt = mysql_db_query($DBName, $sql_ipt) or die("�������ö���͡���������ʴ���" . mysql_error());
 $rs_ipt = mysql_fetch_array($result_ipt);
 if ($rs_ipt["cc_ipt"] > 0) {
     //cc_ipt
     echo "<hr align=left width=430>";
     $sql_ipt_w = "select i.*,d.bedno, r.name as room_name, w.name as ward_name ,d1.name as admdoctor_name,s.name as spclty_name ";
     $sql_ipt_w .= "from ipt i,ward w,iptadm d,doctor d1,bedno b,roomno r,spclty s ";
     $sql_ipt_w .= "where i.vn='{$vn}' and i.ward=w.ward and i.an=d.an and i.spclty=s.spclty and d.bedno=b.bedno and r.roomno=b.roomno and i.admdoctor=d1.code ";
     $result_ipt_w = mysql_db_query($DBName, $sql_ipt_w) or die("�������ö���͡���������ʴ���" . mysql_error());
     $n_rows_ipt_w = mysql_num_rows($result_ipt_w);
     $rs_ipt_w = mysql_fetch_array($result_ipt_w);
     $an = $rs_ipt_w["an"];
     echo "&nbsp;<b><font color=black>Admission Number :</font><font color=red>" . $an . "</font></b><br>";
     echo "&nbsp;<font color=blue >�Ѻ Admit  �ѹ��� " . dateThai($rs_ipt_w["regdate"]) . "&nbsp;���� " . $rs_ipt_w["regtime"] . " �.</font>";
     echo "&nbsp;<br><font color=green>&nbsp;������ Admit ��� <b><font color=blue>" . $rs_ipt_w["ward_name"] . " ";
     echo $rs_ipt_w["room_name"] . " Ἱ� " . $rs_ipt_w["spclty_name"] . "</b></font>";
     echo "<br>&nbsp;�����ҡ���Ӥѭ <font color=blue>" . $rs_ipt_w["prediag"] . "</font>";
     echo "<br>&nbsp;ᾷ������� <font color=blue>" . $rs_ipt_w["admdoctor_name"] . "</font></font>";
 }
 //rs_optt>0
 $sql_pdxcode = "select pdx from an_stat where vn='{$vn}'";
 $result_pdxcode = mysql_db_query($DBName, $sql_pdxcode) or die("�������ö���͡���������ʴ���" . mysql_error());
 $rs_pdxcode = mysql_fetch_array($result_pdxcode);
 $pdx_code = $rs_pdxcode["pdx"];
 $sql_pdx = "select  name from icd101 where code='{$pdx_code}' ";
 $result_pdx = mysql_db_query($DBName, $sql_pdx) or die("�������ö���͡���������ʴ���" . mysql_error());
 $rs_pdx = mysql_fetch_array($result_pdx);
 $pdx_name = $rs_pdx["name"];
 $sql_ipt_n = "select  i.*,d.name as dname,dt.name as dtname,concat(h.hosptype,h.name) as hospname  from ipt i left outer  join dchstts d on i.dchstts=d.dchstts  left outer  join dchtype dt on i.dchtype=dt.dchtype  left outer join hospcode h on  h.hospcode=i.rfrolct where i.vn='{$vn}'  and i.dchdate is not null";
Example #10
0
                   <td background="img_mian/bgcolor2.gif" bgcolor="#3399CC">&nbsp;</td>
                   <td colspan="3" background="img_mian/bgcolor2.gif" bgcolor="#3399CC">&nbsp;</td>
                   <td valign="bottom" background="img_mian/bgcolor2.gif" bgcolor="#3399CC"><div align="right"></div></td>
                   <td valign="bottom" background="img_mian/bgcolor2.gif" bgcolor="#3399CC">&nbsp;</td>
                   <td align="left" valign="bottom" bgcolor="#3399CC"><img src="img_mian/c_l_r.gif" width="8" height="16"></td>
                 </tr>
               </table>
               <!-- end ÊÃéÒ§¡ÃͺµÒÃÒ§ -->
               <?php 
     if ($num_rows_online < 10) {
         echo "<br><br><br><br><br><br><br><br><br><br><br><br><br>";
     }
 } else {
     //row=0
     $row = "n";
     echo "<center>¼Å¡Òäé¹ËÒ : äÁèÁÕ¢éÍÁÙŢͧÇѹ·Õè&nbsp;<font color=red><u>" . dateThai($d_conv_search) . "</u></font>&nbsp;ã¹°Ò¹¢éÍÁÙÅ<center>";
     echo "<br><br><br><br><br><br><br><br><br><br>";
 }
 //row=0
 ?>
           </td>
         </tr>
         <tr>
           <td>&nbsp;</td>
           <td><a name="below"></a>
               <?php 
 if ($num_rows_online > 20) {
     //ÅÙ¡ÈÃàÅ×è͹ŧ
     echo "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;";
     echo "<a href=#top><img src=\"img_mian/arow_t.gif\" width=13 height=9 border=0></a>&nbsp;´éÒ¹º¹";
 }