<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="onlineregpwdlogmanage.aspx.cs" Inherits="Us.Web.admin.b2other.onlineregpwdlogmanage" %>


<!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 id="Head1" runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>生成报名密码</title>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8,chrome=1" />
<asp:Literal ID="litregscript" runat="server" Text=""></asp:Literal><link href="../style/default/style.css" rel="stylesheet" type="text/css" />
<%=ImportScriptStr %>

 <script  language="javascript" src="/editor/xheditor.js" type="text/javascript"></script>
<script type="text/javascript" src="/editor/xheditor_lang/zh-cn.js"></script>
<style type="text/css">
#chkAll, #chkRoom {
	width:13px;
	height:13px;
	margin:2px;
	padding:2px;
	border: 0px none #009999;
}
</style>

<script type='text/javascript' type="text/javascript">


function setParentState(state,enddate,info,guid)
{
	var txt1 =document.getElementById("txtEndDate");
	txt1.value=enddate;
	txt1 = document.getElementById("oprInfo");
	var sAdd = "<a target=\"_blank\" href=\"onlineregpwdlogexcel.aspx?guid=" + guid + "\">[下载生成结果]</a>";
	info += sAdd;
	if(state=="5")
	{
		
		txt1.innerHTML=info;
	}
	else
	{
	    txt1.innerHTML = "对不起，生成报名密码失败，您可以点击生成自动在重新生成！" + "";
	}
	//txt1 =document.getElementById("btnSubmit");
	//txt1.style.display="";
	//SetButtonState(false);
	//txt1.innerHTML= state+info+guid;
}

function jscheckAll() {
   
    return AutoStart();
}

function AutoStart()
{
	var info;
	info="您确实要开始生成报名密码吗？请注意在生成没有结束的时候，请不要关闭浏览器，否则系统将可能存在问题！";
	var bstate=confirm(info);
	if(bstate)
	{
		var txt1 =document.getElementById("btnSubmit");
		txt1.style.display="none";
		//alert("点击确定，系统开始生成报名密码！");
	}

	return bstate;
}

function SetButtonState(state)
{
    var btn = document.getElementById("btnSubmit"); 
	if(state)
	{
		btn.style.display="none";
	}
	else
	{
		btn.style.display="";
	}
}

</script>

</head>
<body onload="win_onLoadwh(1000,650);">
<%--<body>--%>
<form id="form1" runat="server">
  
     
  <div id="tbMain">
    <div class="divTbg">
      <div class="divTbgL"> </div>
      <div class="divTbgInfo">
        <div class="divTbgTitle"> 生成报名密码</div>
      </div>
    </div>
    <div class="divTbgF"> </div>
    <div class="divTNavBG" id="topURL">
      <ul id="topURLul">
        <li class="divURLed" id="div1">
          <div> <img src="../style/default/images/mini_icons_046.gif" width="10" height="10" /> 
              生成报名密码</div>
        </li>
      </ul>
    </div>
    <div id="mypanel">
      <div class="divInfoContext">
        <div class="divInfo">
          <div class="divInfoblack">
            <div class="divInfoTopList">
              <div class="listLeft">
                <div class="navtitle"> 生成报名密码</div>
              </div>
            </div>
          </div>
        </div>
        <div class="divInfo">
          <table width="100%" border="0" cellpadding="0" cellspacing="1" class="tablist" id="mainlist">
            <tr class="tablisttr">
              <td width="100" class="tablisttitle"> 启动时间</td>
              <td class="tabmanagertr">
                  <asp:TextBox ID="txtStartDate" runat="server"  
                                     Enabled="False" ReadOnly="True"></asp:TextBox></td>
              <td width="100" class="tablisttitle">结束时间</td>
              <td class="tabmanagertr">
                  <asp:TextBox ID="txtEndDate" runat="server"  
                                   Enabled="False" ReadOnly="True"></asp:TextBox></td>
            </tr>
            <tr class="tablisttr">
              <td width="100" class="tablisttitle"> 记录标题</td>
              <td class="tabmanagertr">
                  <asp:TextBox ID="txtORTitle" runat="server" Text="第2次自动生成的报名表" ToolTip="记录标题" CssClass="1"></asp:TextBox>
                </td>
              <td class="tablisttitle">生成记录数</td>
              <td class="tabmanagertr">
                  <asp:TextBox ID="txtORCount" runat="server" Text="10" ToolTip="生成记录数"  CssClass="2"></asp:TextBox>
                </td>
            </tr>
            <tr class="tablisttr">
<td class="tablisttitle">生成速度</td><td class="tabmanagertr">
                <asp:DropDownList ID="drpSkySpeed" runat="server">
                    <asp:ListItem Value="10">高速模式(服务器压力大)</asp:ListItem>
                    <asp:ListItem Selected="True" Value="100">中速模式(服务器压力中)</asp:ListItem>
                    <asp:ListItem  Value="1000">低速模式(服务器压力小)</asp:ListItem>
                </asp:DropDownList>
                </td>
                <td class="tablisttitle">生成次数</td><td class="tabmanagertr"><asp:TextBox ID="txtORTime" runat="server" Text="1" ToolTip="生成次数"  CssClass="2" Enabled="false"></asp:TextBox></td>
                </tr>
            <tr class="tablisttr">
                  <td class="tablisttitle" width="100">
                      备注说明</td>
                  <td class="tabmanagertr" colspan="3">
                      <asp:TextBox ID="txtORInfo" runat="server" Text="" ToolTip="备注说明" Width="100%" TextMode="MultiLine" Height="100px" ></asp:TextBox>
                  </td>
              </tr>
              <tr class="tablisttr">
                  <td class="tablisttitle" width="100">
                      生成说明</td>
                  <td class="tabmanagertr" colspan="3">
                      <div style="line-height:15px">
                          1、设置您需要生成的状态，包括生成要求；<br />
                          2、点击下面的开始生成按钮，进行生成报名密码；<br />
                          3、系统没有运行完毕的时候千万不要关闭，否则系统会出错；<br />
                      </div>
                  </td>
              </tr>
            <tr class="tablisttr">
              <td width="100" class="tablisttitle">生成状态 </td>
              <td colspan="3" class="tabmanagertr"><div id="oprInfo"></div></td>
            </tr>
            <tr class="tablisttr">
              <td width="100" class="tablisttitle">生成日志 </td>
              <td colspan="3" class="tabmanagertr">
              <div style="height:200px; overflow:auto" id="logInfo"><iframe src="onlineregpwdlogserver.aspx" id="OutputFrame" 
              allowtransparency="true" frameborder="0"
                width="100%" height="100%" scrolling="auto" marginheight="0"></iframe></div></td>
            </tr>
              
          </table>
        </div>
      </div>
    </div>
  </div>
  <div class="divSave">
    <asp:Button ID="btnSubmit" runat="server" Text="开始生成(S)" CssClass="SkyButtonFocus"
                        OnClick="btnSubmit_Click" AccessKey="S" CommandName="save"></asp:Button>
  </div>
  </div>
  <asp:Literal ID="litJavaScript" runat="server"></asp:Literal>

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