<%@ page language="C#" autoeventwireup="true" inherits="Exam_tbl_test_Card_list, App_Web_wjux_2xt" debug="true" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>生成准考证</title>
    <link href="../css/StyleSheet.css" rel="stylesheet" />
    <link href="../css/main.css" rel="stylesheet" />

    <script src="../LodopFuncs.js" type="text/javascript"></script>

    <object id="LODOP" classid="clsid:2105C259-1E0C-4534-8141-A753534CB4CA" height="0"
        width="0">
        <embed id="LODOP_EM" height="0" type="application/x-print-lodop" width="0"></embed>
    </object>

    <script language="javascript"> 
var LODOP=getLodop(document.getElementById('LODOP'),document.getElementById('LODOP_EM'));

function hide()
{
var tt=document.getElementById ("JoinExamTemp");
tt.style.display="none";
}

    </script>
</head>
<body>
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
    <div class="title">
    生成准考证
    </div>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate >
        
        </ContentTemplate>
        <Triggers >
        <asp:AsyncPostBackTrigger ControlID="Button1" />
        </Triggers>
        </asp:UpdatePanel>
    <div style="padding-bottom:5px " class="panel">
        
        <asp:Button ID="Button1" runat="server" CssClass="button_g_b" Text="打印准考证" OnClick="Button1_Click" />
        <input id="return"  onclick="history.go(-1);" type="button" class="button_b"  value="返回">
    </div>
    <div id="prent1">
    <div id="up1">
    
  
   <asp:DataList ID="DataList1"  runat="server" RepeatColumns="2" RepeatDirection="Horizontal" OnItemDataBound="DataList1_ItemDataBound">
        
        <ItemTemplate>
            <div class="ExamCard">
                <div class="T1">
                   <%#  ViewState["Tst_name"].ToString()  %>
                </div>
                <div class="T2">
                    准考证号：<asp:Label ID="Label1" runat="server" Text=""></asp:Label></div>
                <ul class="L">
                    <li>登录名：<%#Eval("TeaItemNo")%></li>
                    <li>中文名：<%#Eval("TeaName")%></li>
                    <li>部&nbsp;&nbsp;&nbsp;&nbsp;门：<%#Eval("Dep_Name")%>【<%#Eval("Gw_Name")%>】</li>
                    <li>科&nbsp;&nbsp;&nbsp;&nbsp;目：<%# ViewState["kemu"].ToString() %></li>
                </ul>
                <div class="R">
                    <img alt="" src='<%# Eval("TeaSex").ToString()=="男"?"../images/big男.gif":"../images/big女.gif" %>'></div>
                   
                <div class="B1">
                    考试时间：<%#ViewState["Tst_timebegin"].ToString ()%> —— <%#ViewState["Tst_timeend"].ToString()%>
                </div>
            </div>
        
        </ItemTemplate>
        
       
        </asp:DataList>
    </div>
    </div>
        <asp:Panel ID="Panel1" runat="server" Visible="false" Width="100%">
            <div class="paginator">
                <table border="0" cellpadding="0" cellspacing="0">
                    <tr>
                        <td align="left">
                            <webdiyer:aspnetpager id="PagerButtom" runat="server" alwaysshow="True" bordercolor="Aqua"
                                cssclass="paginator" custominfoclass="" custominfohtml="当前第%CurrentPageIndex%/%PageCount%页 共%RecordCount%条记录 每页%PageSize%条 "
                                custominfosectionwidth="" firstpagetext="首页" horizontalalign="Right" lastpagetext="尾页"
                                layouttype="Table" morebuttonsclass="" nextpagetext="下一页" numericbuttoncount="10"
                                onpagechanged="Pager_PageChanged" pageindexboxclass="cpb" pagesize="20" prevpagetext="上一页"
                                showcustominfosection="Right" showpageindexbox="Always">
</webdiyer:aspnetpager>
                        </td>
                    </tr>
                </table>
            </div>
        </asp:Panel>
  
       
  
           
            
    
     
    
    
    </form>

    <asp:Label ID="lb_pageid" runat="server" Text="" Visible="false"></asp:Label>
    <asp:Label ID="recordcount" runat="server" Visible="false"></asp:Label>
    <asp:Label ID="page_indexpage" runat="server" Text="1" Visible="false"></asp:Label>
    <asp:Label ID="page_count" runat="server" Text="0" Visible="false"></asp:Label>

    <script language="javascript" type="text/javascript"> 
	function myPreview1() {	
		CreateOneFormPage1();	
		LODOP.PREVIEW();	
	};
	function myDesign1() {		
		CreateOneFormPage1();
		LODOP.PRINT_DESIGN();	
	};
	function CreateOneFormPage1(){
		//LODOP=getLodop(document.getElementById('LODOP'),document.getElementById('LODOP_EM'));  
	
	var strStyleCSS="<link href='../css/StyleSheet.css' rel='stylesheet' type='text/css' />";
		//strCenterStyle="StyleSheet.css";
		
		LODOP.SET_PRINT_PAGESIZE(1,"297mm","250mm","CreateCustomPage"); 
		LODOP.ADD_PRINT_HTM(50,150,"297mm","250mm",strStyleCSS+document.getElementById("prent1").innerHTML); 
	};		
    </script>
<asp:Label ID="l2" runat="server" ></asp:Label>
</body>
</html>

 
	