Example #1
0
<?php 
//set theme
print "<link href='css/{$Theme}.css' rel='stylesheet' type='text/css'>";
?>
</head>

<body>
<table width="325" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="14"><?php 
if (!$_SESSION["ip_Log"] and !Check_Online(get_ip())) {
    //check  ->off line
    echo "<META HTTP-EQUIV='REFRESH' CONTENT='0;  URL=index.php'>";
} else {
    //on line
    if ($_SESSION["user_type"] == "online" and !Check_Onlines()) {
        echo "<META HTTP-EQUIV='REFRESH' CONTENT='0;  URL=index.php'>";
    }
    ?>
</td>
    <td width="298">&nbsp;</td>
    <td width="13">&nbsp;</td>
  </tr>
  <tr>
  <?php 
    $sql = "select  n.ptnote as ptnote,n.vstdate as notedate, concat(p.pname,p.fname,'  ',p.lname) as ptname from  patient p left outer join ptnote n on p.hn=n.hn where p.hn='{$hn}' ";
    //check special  clinic
    $result = mysql_db_query($DBName, $sql) or die("äÁèÊÒÁÒöàÅ×Í¡¢éÍÁÙÅÁÒáÊä´é" . mysql_error());
    $rs = mysql_fetch_array($result);
    ?>
    <td>&nbsp;</td>
Example #2
0
        //login come to system user and passweb complete
        $ip_Log = $_SESSION["ip_Log"];
        $sql = "select  * from opduser  where  loginname='{$ip_Log}' ";
        $result = mysql_db_query($DBName, $sql) or die("�������ö���͡���������ʴ���" . mysql_error());
        $rs = mysql_fetch_array($result);
    }
    //online
    ?>
<body>
<table width="800" border="0" cellspacing="0" cellpadding="0" class="table">
  <tr>
    <td height="736" valign="top"><table width="800" cellpadding="0" cellspacing="0">
        <tr valign="top"> 
          <td colspan="2">
<?php 
    if (Check_Onlines() and $Header == "N") {
    } else {
        include "header.inc";
    }
    ?>
		  </td>
        </tr>
        <tr> 
          <td height="24" valign="middle" background="img_mian/bgcolor.gif" class="menu-status">&nbsp;
		  <?php 
    $n_online = num_online();
    echo "User online in HOSxP :&nbsp; <font color=white>" . $n_online . "</font>&nbsp;��";
    echo "&nbsp;ʶҹ�&nbsp;<font color=white>[ ";
    if ($online) {
        echo "ON Line";
    } else {