<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="printhetong.aspx.cs" Inherits="jiaowu.student.printhetong" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <style type="text/css">

 p.MsoNormal
	{margin-bottom:.0001pt;
	text-align:justify;
	text-justify:inter-ideograph;
	font-size:10.5pt;
	font-family:"Calibri","sans-serif";
	        margin-left: 0cm;
            margin-right: 0cm;
            margin-top: 0cm;
        }
    </style>
    <script src="../js/LodopFuncs.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
    <%string stuid = Request.QueryString["id"].ToString();
      string stuxm = "";
      string card = "";
      string tel = "";
      string fenxiao = "";
      string gongsi = "";
      string phone = "";
      string content = "";
      string bianhao = stuid.PadLeft(8, '0');
      System.Data.DataTable tb = SqlHelper.dataTable("select * from student where id="+stuid+"");
      if (tb.Rows.Count > 0)
      {
          stuxm = tb.Rows[0]["stuxm"].ToString();
          card = tb.Rows[0]["card"].ToString();
          tel=tb.Rows[0]["tel"].ToString();
          System.Data.DataTable tbf = SqlHelper.dataTable("select * from fenxiao where id=" + tb.Rows[0]["fenxiaoid"].ToString() + "");
          if (tbf.Rows.Count > 0)
          {
              fenxiao = tbf.Rows[0]["fenxiao"].ToString();
              gongsi = tbf.Rows[0]["gongsi"].ToString();
              phone = tbf.Rows[0]["tel"].ToString();
              content = strClass.StringHelper.DecodeFormHtml(tbf.Rows[0]["content"].ToString());
          }
      }
         %>
    <input id="Button1" type="button" value="打印预览" onclick="javascript:prn1_preview()"/><input id="Button2" type="button"
        value="直接打印" onclick="javascript:prn1_print()"/><input id="Button3" type="button" value="选择打印机" onclick="javascript:prn1_printA()"/>
    <div id="div1">
    
        <p align="center" class="MsoNormal" style="margin-left:25.05pt;text-align:center;
text-indent:-25.05pt;mso-char-indent-count:-1.04">
            <b>
            <span style="font-size:
24.0pt;font-family:宋体;mso-ascii-font-family:Calibri;mso-hansi-font-family:Calibri"><%=fenxiao %></span><span style="font-size:18.0pt;font-family:宋体;mso-ascii-font-family:Calibri;
mso-hansi-font-family:Calibri">驾校驾驶培训服务合同</span><span style="font-size:
12.0pt;font-family:宋体;mso-ascii-font-family:Calibri;mso-hansi-font-family:Calibri">编号：</span><span 
                lang="EN-US" style="font-size:12.0pt"><o:p><%=DateTime.Now.Year %>  <%=bianhao %> </o:p></span></b></p>
        <p class="MsoNormal">
            <span style="font-size:12.0pt;font-family:宋体;mso-ascii-font-family:
Calibri;mso-hansi-font-family:Calibri">甲方：</span><span lang="EN-US" 
                style="font-size:12.0pt"><span style="mso-spacerun:yes">&nbsp;<%=stuxm %>&nbsp;&nbsp;&nbsp;&nbsp; 
            &nbsp;</span></span><span style="font-size:12.0pt;
font-family:宋体;mso-ascii-font-family:Calibri;mso-hansi-font-family:Calibri">身份证号码:</span><span 
                lang="EN-US" style="font-size:12.0pt"><span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;<%=card %>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            </span></span>
            <span style="font-size:12.0pt;font-family:宋体;mso-ascii-font-family:Calibri;
mso-hansi-font-family:Calibri">电话号码：</span><span lang="EN-US" style="font-size:
12.0pt"><o:p><%=tel %></o:p></span></p>
        <p class="MsoNormal" style="margin-right:-25.6pt;mso-para-margin-right:-2.44gd">
            <span lang="EN-US" style="font-size:12.0pt"><o:p>&nbsp;</o:p></span></p>
        <p class="MsoNormal" style="margin-right:-25.6pt;mso-para-margin-right:-2.44gd">
            <span style="font-size:12.0pt;font-family:宋体;mso-ascii-font-family:Calibri;
mso-hansi-font-family:Calibri">乙方：<%=gongsi %></span><span lang="EN-US" 
                style="font-size:12.0pt"><span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
            &nbsp;&nbsp;&nbsp;</span></span><span style="font-size:12.0pt;
font-family:宋体;mso-ascii-font-family:Calibri;mso-hansi-font-family:Calibri">电话号码：</span><span 
                lang="EN-US" style="font-size:12.0pt"><%=phone %><o:p></o:p></span></p>
        <p class="MsoNormal" style="margin-right:-25.6pt;mso-para-margin-right:-2.44gd;
text-indent:24.0pt;mso-char-indent-count:2.0">
            <span lang="EN-US" style="font-size:12.0pt"><span style="mso-spacerun:yes">&nbsp;
            </span><o:p></o:p></span>
        </p>
        <p class="MsoNormal">
            <%=content %><span lang="EN-US" style="font-size:12.0pt"><o:p>&nbsp;</o:p></span></p>
        <p class="MsoNormal">
            <span style="font-size:12.0pt;font-family:宋体;mso-ascii-font-family:
Calibri;mso-hansi-font-family:Calibri">甲方签名：</span><span lang="EN-US" 
                style="font-size:12.0pt"><span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;
            </span></span>
            <span style="font-size:12.0pt;font-family:宋体;mso-ascii-font-family:Calibri;
mso-hansi-font-family:Calibri">乙方经办人签名：</span><span lang="EN-US" style="font-size:12.0pt"><o:p></o:p></span></p>
        <p class="MsoNormal">
            <span lang="EN-US" style="font-size:12.0pt"><span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            </span></span>
            <span style="font-size:12.0pt;font-family:宋体;mso-ascii-font-family:Calibri;
mso-hansi-font-family:Calibri">委托代理人（盖章）：</span><span lang="EN-US" style="font-size:12.0pt"><o:p></o:p></span></p>
        <p class="MsoNormal">
            <span style="font-size:12.0pt;font-family:宋体;mso-ascii-font-family:
Calibri;mso-hansi-font-family:Calibri">日期：</span><span lang="EN-US" 
                style="font-size:12.0pt">20<span style="mso-spacerun:yes">&nbsp;&nbsp;
            </span></span>
            <span style="font-size:12.0pt;font-family:宋体;mso-ascii-font-family:Calibri;
mso-hansi-font-family:Calibri">年</span><span lang="EN-US" style="font-size:12.0pt"><span 
                style="mso-spacerun:yes">&nbsp;&nbsp; </span></span>
            <span style="font-size:12.0pt;
font-family:宋体;mso-ascii-font-family:Calibri;mso-hansi-font-family:Calibri">月</span><span 
                lang="EN-US" style="font-size:12.0pt"><span style="mso-spacerun:yes">&nbsp;&nbsp;
            </span></span>
            <span style="font-size:12.0pt;font-family:宋体;mso-ascii-font-family:Calibri;
mso-hansi-font-family:Calibri">日</span><span lang="EN-US" style="font-size:12.0pt"><span 
                style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            </span></span>
            <span style="font-size:
12.0pt;font-family:宋体;mso-ascii-font-family:Calibri;mso-hansi-font-family:Calibri">日期：</span><span 
                lang="EN-US" style="font-size:12.0pt">20 <span style="mso-spacerun:yes">&nbsp;&nbsp;</span></span><span style="font-size:12.0pt;font-family:宋体;mso-ascii-font-family:Calibri;
mso-hansi-font-family:Calibri">年</span><span lang="EN-US" style="font-size:12.0pt"><span 
                style="mso-spacerun:yes">&nbsp;&nbsp; </span></span>
            <span style="font-size:12.0pt;
font-family:宋体;mso-ascii-font-family:Calibri;mso-hansi-font-family:Calibri">月</span><span 
                lang="EN-US" style="font-size:12.0pt"><span style="mso-spacerun:yes">&nbsp;&nbsp;
            </span></span>
            <span style="font-size:12.0pt;font-family:宋体;mso-ascii-font-family:Calibri;
mso-hansi-font-family:Calibri">日</span><span lang="EN-US" style="font-size:12.0pt"><span 
                style="mso-spacerun:yes">&nbsp; </span></span>
            <span lang="EN-US" style="font-size:
9.0pt"><o:p></o:p></span>
        </p>
        <span lang="EN-US" style="font-size:9.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
mso-fareast-font-family:宋体;mso-bidi-font-family:&quot;Times New Roman&quot;;mso-font-kerning:
1.0pt;mso-ansi-language:EN-US;mso-fareast-language:ZH-CN;mso-bidi-language:
AR-SA"><span style="mso-spacerun:yes">
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></span></div>
        <script language="javascript" type="text/javascript">
            var LODOP; //声明为全局变量 
            function prn1_preview() {
                CreateOneFormPage();
                LODOP.PREVIEW();
            };
            function prn1_print() {
                CreateOneFormPage();
                LODOP.PRINT();
            };
            function prn1_printA() {
                CreateOneFormPage();
                LODOP.PRINTA();
            };
            function CreateOneFormPage() {
                LODOP = getLodop();
                LODOP.PRINT_INIT("打印控件功能演示_Lodop功能_表单一");
                LODOP.SET_PRINT_STYLE("FontSize", 18);
                LODOP.SET_PRINT_STYLE("Bold", 1);
               // LODOP.ADD_PRINT_TEXT(50, 231, 260, 39, "打印页面部分内容");
                LODOP.ADD_PRINT_HTM(10, 10, "100%", "100%", document.getElementById("div1").innerHTML);
            };
</script> 

    </form>
</body>
</html>
