You are on page 1of 5

<%@page <%@page <%@page <%@page <%@page <%@page <%@page <%

import="com.liferay.portal.kernel.portlet.LiferayWindowState"%> import="dao.Dichvu_Interface"%> import="model.Nhomdichvu"%> import="java.util.ArrayList"%> import="model.Dichvu"%> import="dao.Nhomdichvu_Interface"%> import="model.ThongtinHienthi"%>

/** * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved. * * This library is free software; you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License as published by th e Free * Software Foundation; either version 2.1 of the License, or (at your o ption) * any later version. * * This library is distributed in the hope that it will be useful, but W ITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License f or more * details. */ %> <%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet"%> <%@taglib uri="/struts-tags" prefix="s"%> <%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%> <%@page import="control.ViewXuly"%> <portlet:defineObjects /> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <script type="text/javascript" src="/MHKHAMBENH-portlet/resources/js/mootools.js"></script> <script type="text/javascript" src="/MHKHAMBENH-portlet/resources/js/mootoolsmore.js"></script> <script type="text/javascript" src="/MHKHAMBENH-portlet/resources/js/bumpbox.js"></script> <script type="text/javascript" src="/MHKHAMBENH-portlet/ckeditor/ckeditor.js"></script> <link type="text/css" rel="stylesheet" href="/MHKHAMBENH-portlet/resources/css/dhtmlgoodies_calendar.css?random =20051112" media="screen"></LINK> <SCRIPT type="text/javascript" src="/MHKHAMBENH-portlet/resources/js/dhtmlgoodies_calendar.js?random=20 060118"></script> </head> <body> <div id="<portlet:namespace/>_main"><script type="text/javascript"> /* Load Dojo library, if it hasn't already */

if (typeof dojo == "undefined") { /* build script tag */ var script = document.createElement("script"); script.src = "<%=renderResponse.encodeURL(renderRequest.getContextPath() + "/resources/js/dojo.js")%>"; script.type= "text/javascript"; /* insert at top of portlet main */ var <portlet:namespace/>_main = document.getElementById("<portlet:namespace/ >_main"); <portlet:namespace/>_main.insertBefore(script, <portlet:namespace/>_main.fir stChild); } </script> <script type="text/javascript"> /* Use Dojo.io.bind to asynchronously get invoice content */ function <portlet:namespace/>_loadInvoice(invoice) { /* If an invoice was selected */ if (invoice != null && invoice != "null") { /* Put selectd invoice value on query string */ var querystring = new Array(); querystring['invoice'] = invoice; /* Set up bind arguments: */ /* url: url for request */ /* method: http method */ /* content: key/value mapping of parameters sent with reques t */ /* handle: function to run when there is a response */ /* mimetype:mimetype of response */ var bindArgs = { url: "<%=renderResponse.encodeURL(renderRequest.getConte xtPath() + "/ViewXuly")%>", method: "POST", content: querystring, handle: function(type, data, evt) { if (type == "error") { /* Swap returned error message */ data = "<p style='color:red'>" + data.me ssage + "</p>"; } /* Swap returned data into div tag */ var div = document.getElementById("<portlet:name space/>_content"); div.innerHTML = ""; div.innerHTML = data; }, mimetype: "text/html" }; dojo.io.bind(bindArgs); } }; function <portlet:namespace/>_loadInvoice1(invoice) { /* If an invoice was selected */ if (invoice != null && invoice != "null") { /* Put selectd invoice value on query string */ var querystring = new Array(); querystring['invoice1'] = invoice; /* Set up bind arguments: */ /* url: url for request */ /* method: http method */ /* content: key/value mapping of parameters sent with reques

t */ /* handle: function to run when there is a response */ /* mimetype:mimetype of response */ var bindArgs = { url: "<%=renderResponse.encodeURL(renderRequest.getConte xtPath() + "/ViewDichvu")%>", method: "POST", content: querystring, handle: function(type, data, evt) { if (type == "error") { /* Swap returned error message */ data = "<p style='color:red'>" + data.me ssage + "</p>"; } /* Swap returned data into div tag */ var div = document.getElementById("<portlet:name space/>_content1"); div.innerHTML = ""; div.innerHTML = data; }, mimetype: "text/html" }; dojo.io.bind(bindArgs); } }; </script> <% ThongtinHienthi thongtinHienthi = (ThongtinHienthi) request .getAttribute("hienthi"); if (thongtinHienthi != null) { System.out.println(thongtinHienthi.toString()); } %> <div id="phieukhambenh"> <h1 class="title">Phi?u kham b?nh</h1> <s:form action="Loadbenhnhan"> <ul> <li class="mabenhnhan">Ma? be?nh nhan: <span><input type="text" name="mabenhnhan" size="10"></span> <input type="submit" value="Enter"></li> </ul> </s:form> <s:form action="Taobenhan" method="POST"> <ul> <li style="background-color: #A8D4FF; font-size: 16px; textalign: left; color: #225486; font-style: italic; font-weight: bold; border-top-l eft-radius: 5px; border-top-right-radius: 5px;">&nbsp;&nbsp;&nbsp;Thong Tin B?nh Nhan</li> <li>&nbsp;</li> <li><span class="label">Ngay kham b?nh:</span> <div class="conte nt"><input type="text" size="10" readonly name="ngaykham1" id="ngaykham"><a onclick="displayCalendar(document.getElementById('ngaykh am'),'dd/mm/yyyy',this)"><img src="/MHKHAMBENH-portlet/calendar.gif"></a></div></li> <li><span class="label">Ma phi?u:</span><div class="content"><input

type="text" name="maphieu" size="10"></div></li> <li> <span class="label">H? ten:</span> <div class="content" style="font-style: italic; color: blue;">T r?n Van A</div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Tu?i: <span style="font-style: italic; color: blue;">20</span>&nbsp;&n bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gi?i tinh: <span style="font-style: italic; color: blue;">Nam</span>& nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Ngh? nghi?p: <span style="font-style: italic; color: blue;">0123456</ span></li> <li ><span class="label">d?a ch?:</span><div class="content" style="font-style: italic; color: blue;">Di an, binh duo ng</div></li> <li style="background-color: #A8D4FF; font-size: 16px; textalign: left; color: #225486; font-style: italic; font-weight: bold; border-top-l eft-radius: 5px; border-top-right-radius: 5px;">&nbsp;&nbsp;&nbsp;Sinh hi?u</li> <li>&nbsp;</li> <li><span class="label">B?nh s?:</span> <div class="content"><input type="text" name="benhsu"></div></li > <li><span class="label">D? ?ng:</span> <div class="content"><input type="text" name="diung"></div></li> <li><span class="label">Tri?u ch?ng:</span> <div><textarea cols="50" rows="3" name="trieuchung"></textarea></div></ li> <li><span class="label">M?ch:</span> <div class="content" style="color: red; text-decorate: italic; font-size: 13p x;"><input type="text" name="mach" size="1">l?n/p</div> &nbsp;&nbsp ;Huy?t ap: <span style="color: red; text-decorate: italic; font-size: 13px; "><input type="text" name="huyetap" size="1">mmHg</span> &nbsp;&n bsp;Nh?p th?: <span style="color: red; text-decorate: italic; font-size: 13px;"><input type="text" name="nhiptho" size="1">l?n/p</span>&nbsp;&n bsp;Nhi?t d?: <span style="color: red; text-decorate: italic; font-size: 1 3px;"><input type="text" name="nhietdo" size="1">d? C</span> &nbsp;&n bsp;Chi?u cao: <span style="color: red; text-decorate: italic; font-size: 13px;"><input type="text" name="chieucao" size="1">cm</span> &nbsp;&nb sp;Can n?ng: <span style="color: red; text-decorate: italic; font-size: 13px; "><input type="text" name="cannang" size="1">kg</span></li> <li style="background-color: #A8D4FF; font-size: 16px; textalign: left; color: #225486; font-style: italic; font-weight: bold; border-top-l eft-radius: 5px; border-top-right-radius: 5px;">&nbsp;&nbsp;&nbsp;Ch?n doan - x? tri</li>

<li>&nbsp;</li> <li><span class="label">Ch?n doan:</span><div class="content" s tyle="padding-left: 50px;"><input type="text" name="chandoan"></div>&nbsp;&nbsp;<a style="text-decoration: underline;" href="/MHKHAMBENH-portlet/html/portlet/phieuchidinh.jsp" class="bumpbox" rel="1100-600" title="Remote HTML">LCD</ a></li> <li><span class="label">Ch?n doan ph? 1:</span><div class="cont ent"><input type="text" name="chandoanphu1"></div>&nbsp;&nbsp;<a style="text-decoration: underline;" href="/MHKHAMBENH-portlet/html/portlet/phieuchidinh.jsp" class="bumpbox" rel="1100-600" title="Remote HTML"">LCD< /a></li> <li ><span class="label">Ch?n doan ph? 2:</span><div class="cont ent"><input type="text" name="chandoanphu2"></div>&nbsp;&nbsp;<a style="text-decoration: underline;" href="/MHKHAMBENH-portlet/html/portlet/phieuchidinh.jsp" class="bumpbox" rel="1100-600" title="Remote HTML"">LCD< /a></li> <li><span class="label">X? tri: </span><div class="content"> <se lect onChange="<portlet:namespace/>_loadInvoice(this.value);" > <option value="null"></option> <option value="ketoa">Ke toa</option> <option value="chuyenkhoa">Chuy?n khoa</option> <option value="chuyenvien">Chuy?n vi?n</option> <option value="nhapvien">Nh?p vi?n</option> </select> </div></li> <li> <div id="<portlet:namespace/>_content"></div> </li> <li><input type="submit" value="Luu l?i"></li> </ul> </s:form></div> </div> </body> </html>

You might also like