<title> Print Admission Ticket </title>
<body style= "Text-align:left; Font-size:10pt ">
<div style= "Text-align:center; Font-weight:bold; font-size:12pt; Color:blue; " >
Printing instructions
</div>
<div style= "Text-align:left" >
<ol style= "line-height:22px" >
<li> recommended to open with Ie8,9,10,11,firefox,360 compatibility mode.
<BR/>360 Compatibility Mode Open method is as follows: <br/>
</li>
<li> Open the following ticket link, in the pop-up page, select menu: "File Print Preview", pop-up print preview window. </li>
<li> in the Print Preview window, click the Page Setup button (the pinion icon) in the top left corner of the toolbar to pop up the Page Setup dialog box. </li>
<li> Page Setup: (in general, the default page settings for the browser are set as follows)
<table style= "FONT-SIZE:9PT; Border-collapse:collapse "border=" 1px ">
<tr>
<TD style= "WIDTH:65PX; height:21px "align=" Center >
Paper Size </td>
<TD style= "WIDTH:63PX; height:21px "align=" Center >
Headers and footers </td>
<TD style= "WIDTH:79PX; height:21px "align=" Center >
Direction </td>
<TD style= "WIDTH:264PX; height:21px "align=" Center >
Margins </td>
</tr>
<tr>
<TD style= "WIDTH:65PX; height:18px, "align=" center >
<span style= "color: #ff0000" >A4</span></td>
<TD style= "WIDTH:63PX; height:18px, "align=" center >
<span style= "color: #ff0000" > Empty </span></td>
<TD style= "WIDTH:79PX; height:18px, "align=" center >
<span style= "color: #ff0000" > Portrait </span></td>
<TD style= "WIDTH:264PX; height:18px, "align=" center >
<span style= "color: #ff0000" > Up and Down are 19.05 mm (or 0.75 inches) </span></td>
</tr>
</table>
</li>
<li> after setting is set, it can be printed. </li>
</ol>
</div>
<div style= "Text-align:center" >
<a target= ' _blank ' href= ' data\examcards_1.xml ' > Admission ticket _1</a><br/>
</div>
<br/>
<div style= "Margin:20" >
ID Number: <input id= "Txtidnumber" type= "text"/><input id= "btnquery" type= "button" value= "Query"
Onclick= "Btnquery_click ()"/>
</div>
<div style= "Text-align:left; Font-weight:bold; font-size:18pt; Color:green; " >
Miss Zhao reminds you:
<br/>
Please note that the name is not unique, please carefully check if I open it!!
</div>
<br/>
<div style= "MARGIN:20; font-weight:bold;font-size:14pt; color:red; " >
Name: <input id= "TxtIDNumber1" type= "text"/><input id= "btnQuery1" type= "button" value= "Query"
Onclick= "Btnquery1_click ()"/>
</div>
</body>
<script type= "Text/javascript" language= "JavaScript" >
function Btnquery_click ()
{
if (!txtidnumber.value && txtidnumber.value== "")
{
Alert ("Please enter your ID number!") ");
Return
}
var xsldoc = new ActiveXObject (' Microsoft.XMLDOM ');
var xmldoc = new ActiveXObject (' Microsoft.XMLDOM ');
var xmldocsearch = new ActiveXObject (' Microsoft.XMLDOM ');
if (xsldoc && xmldoc && xmldocsearch)
{
Xsldoc.async = false;
Xmldoc.async =false;
Xmldocsearch.async =false;
if (!xsldoc.load ("data/examcards.xsl"))
{
Alert ("Loading parse file Error!") ");
}
var nodesearch= null;
var I=1;
var rootNode = xmldocsearch.createelement ("Unitsexamcards");
while (!nodesearch && xmldoc.load ("Data/examcards_" +i+ ". xml"))
{
var re =/^\s+|\s+$/g;
var certificatecode = TxtIDNumber.value.replace (Re, "");
var nodesearch = Xmldoc.selectsinglenode ("unitsexamcards/examcard[certificatecode= '" +certificatecode+ "']");
if (Nodesearch)
{
var node = NodeSearch.childNodes.item (8);
Node.text = "data/" + node.text;
Rootnode.appendchild (Nodesearch);
Xmldocsearch.appendchild (RootNode);
document.write (Xmldocsearch.transformnode (xsldoc));
Return
}
i++;
}
if (!nodesearch) alert ("No matching candidate's ticket is found!") ");
}
Else
Alert ("Error creating ActiveXObject! ");
}
function Btnquery1_click ()
{
if (!txtidnumber1.value && txtidnumber1.value== "")
{
Alert ("Miss Zhao reminds you: Please enter your name");
Return
}
var xsldoc = new ActiveXObject (' Microsoft.XMLDOM ');
var xmldoc = new ActiveXObject (' Microsoft.XMLDOM ');
var xmldocsearch = new ActiveXObject (' Microsoft.XMLDOM ');
if (xsldoc && xmldoc && xmldocsearch)
{
Xsldoc.async = false;
Xmldoc.async =false;
Xmldocsearch.async =false;
if (!xsldoc.load ("data/examcards.xsl"))
{
Alert ("Loading parse file Error!") ");
}
var nodesearch= null;
var I=1;
var rootNode = xmldocsearch.createelement ("Unitsexamcards");
while (!nodesearch && xmldoc.load ("Data/examcards_" +i+ ". xml"))
{
var re =/^\s+|\s+$/g;
var studentname= txtIDNumber1.value.replace (Re, "");
var nodesearch = Xmldoc.selectsinglenode ("Unitsexamcards/examcard[studentname= '" +studentname+ "']");
if (Nodesearch)
{
var node = NodeSearch.childNodes.item (8);
Node.text = "data/" + node.text;
Rootnode.appendchild (Nodesearch);
Xmldocsearch.appendchild (RootNode);
document.write (Xmldocsearch.transformnode (xsldoc));
Return
}
i++;
}
if (!nodesearch) alert ("Miss Zhao reminds you: did not find a matching candidate name!") ");
}
Else
Alert ("Error creating ActiveXObject! ");
}
</script>
Blg_ Exam, print the ticket page code!