Page Print Setup Window.print usage __javaweb

Source: Internet
Author: User
<%@ page contenttype= "Text/html;charset=utf-8"%>
<%@ page import= "Org.apache.shiro.web.filter.authc.FormAuthenticationFilter"%>
<%@ include file= "/web-inf/views/include/taglib.jsp"%>
<title> Community Reservation </title>
<object id= "Factory" style= "Display:none" Viewastext "classid=" Codebase= "scriptx.cab#version=5,60,0,360" ></object>
<script type= "Text/javascript" >
function Window.onload () {
Factory.printing.header = ""; Header
Factory.printing.footer = ""; Footer
Factory.printing.portrait = false; True for portrait printing, flase for landscape printing
Factory.printing.leftMargin = 1.0; Left margins
Factory.printing.topMargin = 1.0; Top margin
Factory.printing.rightMargin = 1.0;//Right margin
Factory.printing.bottomMargin = 1.0; Next page margin
}
</script>
<style media=print>
. Noprint{display:none;}
. Pagenext{page-break-after:always;}
</style>
<body>
<div id= "print" style= "width:400px;font-size:18px;margin:0 auto;" >
<p>

<p> respected residents of:</p>
<p style= "Text-indent:2em" > You have an appointment <strong>${order.hospitalname}</strong>&nbsp;&nbsp;< Strong>${order.deptname}</strong>&nbsp;&nbsp;<strong>${order.docname== '? ' Ordinary ': Order.docname}${order.docname== ': ' Doctor '}</strong>&nbsp;&nbsp;<strong>${ Order.orderdate}</strong>&nbsp;${order.ordertime} <strong>${order.ordernumber}</strong> An appointment number, the number password for <strong>${order.takecode}</strong&gt, please carry my ID card, take the number password (SMS hint), the medical record to the hospital for the number of visits, more than the time after the appointment is invalid.
If you need to cancel your appointment, please contact the hospital or call the doctor in advance to cancel the appointment number one day.
Please be sure to keep your mobile phone unblocked, the platform will send SMS prompts booking success, the day before the day SMS reminders and experts stop the diagnosis information. If the failure to contact the information caused by the failure to notify timely, the responsibility is borne by the patient.
</p>
<p style= "Text-align:left;" > Hospital Tel: <br/> Dongyang People's Hospital: 0579-86856999;<br/> Dongyang Hospital: 0579-86623809;<br/> Women's Insurance Hospital: 0579-6622986/ 0579-6645958;<br/> Dongyang Red Cross Hospital: 0579-86659120;<br/> Dongyang Hospital: 0579-86280995. </p>
<p style= "Text-align:center" >${sysuser.org.orgname}</p>
<p style= "Text-align:center" > Doctor's signature </p>
<p style= "Text-align:center" >_____ years ___/__ Days </p>

<p style= "Text-align:center" >------------------doctor stub------------------</p>

<p style= "Text-align:left" >${sysuser.username} Doctor </p>
<p style= "Text-indent:2em" > You have helped residents ${patient.patientname} to make an appointment ${order.hospitalname} hospital ${order.deptname} Department ${ Order.docname} Doctor ${order.orderdate}&nbsp;${order.ordertime}, please remind the residents how to cancel the appointment and how to visit the relevant matters. </p>
<p style= "Text-align:right" >____ year __ Day </p>
</div>
<center class= "Noprint" >
<div>
<input type= "button" style= "WIDTH:96PX; height:35px; line-height:35px; Color: #fff; Background:url (${ctx}/static/images/btnbg1.png) repeat-x; font-size:14px; font-weight:bold;border-radius:3px; Cursor:pointer "value=" print "onclick=" Window.focus () Window.print () ">
<input type= "button" style= "WIDTH:96PX; height:35px; line-height:35px; Color: #fff; Background:url (${ctx}/static/images/btnbg1.png) repeat-x; font-size:14px; font-weight:bold;border-radius:3px; Cursor:pointer "value=" returns to "onclick=" Window.history.go (-1); >
</div>
</center>
</body>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.