<%@ page language="C#" autoeventwireup="true" inherits="User_Program, App_Web_alwjrles" enableviewstatemac="false" enableEventValidation="false" viewStateEncryptionMode="Never" %>
<!DOCTYPE HTML>
<html>
<head id="Head1" runat="server">
<meta http-equiv="Content-Type" content="text/html" charset="utf-8" />
<title><%Call.Label("{$SiteName/}");%>-组卷系统</title>
<link href="../App_Themes/UserThem/user_user.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table width="90%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC">
            <tr>
                <asp:Repeater ID="Repeater1" runat="server">
                    <ItemTemplate>
                        <td align="center" bgcolor="#FFFFFF" height="26px">
                            <a href="?id=<%#Eval("C_Id")%>">
                                <%#Eval("C_ClassName")%></a>
                        </td>
                    </ItemTemplate>
                </asp:Repeater>
            </tr>
        </table>
    </div>
    <%
        if (Request.QueryString["id"] != null)
        {    
    %>
    <br />
    <table width="90%" height="20px" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC">
        <tr>
            <td align="center" bgcolor="#FFFFFF"  width="20%">
                <%=GetClassName() %>
            </td>
        </tr>
    </table>
    <br />
    <div>
        <table width="90%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC" height="1500px">
            <tr>
                <td width="20%" align="left" valign="top" bgcolor="#FFFFFF">
                    <asp:TreeView ID="tvNav" runat="server" ExpandDepth="0" ShowLines="True" EnableViewState="False"  NodeIndent="10">
                        <NodeStyle BorderStyle="None" ImageUrl="~/Images/TreeLineImages/plus.gif" />
                        <ParentNodeStyle ImageUrl="~/Images/TreeLineImages/plus.gif" />
                        <SelectedNodeStyle ImageUrl="~/Images/TreeLineImages/dashminus.gif" />
                        <RootNodeStyle ImageUrl="~/Images/TreeLineImages/dashminus.gif" />
                    </asp:TreeView>
                </td>
                <td align="center" bgcolor="#FFFFFF" valign="top"  height="100%">
                <iframe name="main" id="main" src="Paper.aspx?cid=<%=Request.QueryString["id"] %>" onload="Javascript:SetCwinHeight()"  width="100%" height="100%"  scrolling="no" ></iframe>   
                </td>
            </tr>
        </table>
    </div>
    <%
        }    
    %>
    </form>
</body>
</html>
<script language="javascript">
function SetCwinHeight() {
	var cwin = document.getElementById("main");
	//        if (document.getElementById) {
	//            if (cwin && !window.opera) {
	//                if (cwin.contentDocument && cwin.contentDocument.body.offsetHeight)
	//                    cwin.height = cwin.contentDocument.body.offsetHeight + 20;
	//                else if (cwin.Document && cwin.Document.body.scrollHeight)
	//                    cwin.height = cwin.Document.body.scrollHeight + 20;
	//            }
	//        }
}
</script>
