<%@ page language="VB" masterpagefile="~/blank.master" autoeventwireup="false" inherits="WebExam.Web.secure_editpaper_paperlist, App_Web_4fcdyx4d" title="我的试卷" %>
<%@ MasterType VirtualPath="~/blank.master" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
   <script type="text/javascript" >
       function newPaper() {
           var id = jQuery.url.param("id");
           parent.__modalFrame("/exam/editpaper/creatPaper.aspx?id=" + id, 342,380)
           //parent.location = ;
       
       };
       function creatEx(paperId) {
           var t = window.showModalDialog("../../secure/subjectTree/rootForModal.htm");
           if (t != null) {
               document.getElementById("TB_toSubject").value = t;
               document.getElementById("TB_paperId").value = paperId;
               document.getElementById("<%= Btn_toEx.ClientId %>").click();
           
           }

       };

   </script>
   
    <div style="text-align: center; margin: 10px; margin-bottom:10px; padding-bottom:10px; float:left;">
        <input type="hidden" name="TB_toSubject" id="TB_toSubject" />
        <input type="hidden" name="TB_paperId" id="TB_paperId" />
        <div style="font-size: large; font-weight: bold">
            我的试卷</div>
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" BackColor="White"
            BorderColor="#999999" BorderStyle="None" BorderWidth="1px" CellPadding="3" GridLines="Vertical" DataKeyNames="id">
            <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
            <RowStyle BackColor="#EEEEEE" ForeColor="Black" HorizontalAlign="Left" />
            <Columns>
                
             <asp:BoundField DataField="id"  />
             <asp:BoundField DataField="title" HeaderText="试卷标题" />
               
                <asp:HyperLinkField Text="编辑" Target="_blank" />
                <asp:HyperLinkField Text="安排考试" Target="_parent" />
<asp:HyperLinkField Text="生成练习卷" 
                    DataNavigateUrlFormatString="javascript:creatEx({0})" 
                    DataNavigateUrlFields="id" />
               
                <asp:HyperLinkField Target="_blank" Text="预览" />
                <asp:ButtonField CommandName="word" 
                    Text="Word2007" />
                <asp:CommandField ShowDeleteButton="True" />
                
               
                
            </Columns>
            <EmptyDataTemplate><p style=" width:300px">无数据</p></EmptyDataTemplate>
            <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
            <SelectedRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#000084" Font-Bold="True" ForeColor="White" />
            <AlternatingRowStyle BackColor="#DCDCDC" />
        </asp:GridView>
       
        <div>
            <asp:Button ID="Btn_toEx" runat="server" style="display:none" />
        <a href="javascript:newPaper()">新建试卷</a>
        </div>
    </div>
</asp:Content>
