Пример #1
0
            }
        } else {
            header("location: ".$_SERVER["PHP_SELF"]."?page=HOWTO");
        }
        break;
    default:
        print "<h3>Patient List as of ".date("D, M j, Y")."</h3>";
        $patient->displaylist("APRS",$_SESSION["referrer_id"]);
        print "<h3>ShoutBox</h3>";
        if ($HTTP_POST_VARS["submitmessage"]) {
            $shoutbox->process_shout($HTTP_POST_VARS, $_SESSION["userid"], "ASC");
            header("location: ".$_SERVER["PHP_SELF"]);
        }
        $shoutbox->listmessages();
        if ($_SESSION["validuser"]) {
            $shoutbox->newshout();
        } else {
            $shoutbox->print_error("<span class='error'>You have to login to post messages.</span><br>");
        }
    }
    ?>
    </blockquote>
    <br/>
    </td>
    </tr>
</table>
<br/>
<div align="center">
  <small>
  <b>&copy;2004 UPCM Medical Informatics Unit, Department of Anesthesiology</b>
  </small>