<%@ page language="VB" autoeventwireup="false" inherits="parrot_admin_diyjs, App_Web_admin_diyjs.aspx.25f04327" %>
<html>
<head>
<title>自定义页面管理</title>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<link href="css/css.css" rel="stylesheet" type="text/css"/>
<link href="css/text.css" rel="stylesheet" type="text/css"/>
<link href="css/button.css" rel="stylesheet" type="text/css" />
<link href="css/body.css" rel="stylesheet" type="text/css" />
<script src="js/intjs.js" type="text/javascript"></script>


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

    function CheckAll(form) //传一个表单作参数
    {
        for (var i = 0; i < form.elements.length; i++) //对这个表单里的元素进行循环
        {
            var e = form.elements[i]; //一个一个元素判断
            if (e.Name != "checkbox_diyhtml" && e.disabled != true) //如果该元素的name属性为chkAll并且disabled!=true.即:该控件可用时.
                e.checked = form.chkAll.checked; //控元素的checked与当前选中的控件checked保持一致.即:全选/全不选.
        }
    }

    </script>

</head>
<body>
    <form id="form1" runat="server">
 <table width="100%" border="0" cellspacing="3" cellpadding="0">
  <tr>
    <td><table width="100%" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td bgcolor="#E7E7E7"><table width="100%" border="0" cellspacing="5" cellpadding="0">
          <tr>
            <td bgcolor="#CACACA"><table width="100%" border="0" cellpadding="0" cellspacing="1" bordercolor="#D4D0C8">
                <tr>
                  <td bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="5" cellpadding="0">
                      <tr>
                        <td><table width="100%" border="1" cellpadding="0" cellspacing="1" bordercolor="#E7E7E7">
                            <tr>
                              <td width="20%" height="30" align="center" bgcolor="#F6F6F6" class="huise12">脚本名称：</td>
                              <td width="80%"  class="wuse12"><asp:TextBox ID="Js_name" runat="server" CssClass="text_autox22_cccccc" 
                                                      Width="450px" onkeyup="value=value.replace(/[\W]/g,'')" 
                                                MaxLength="30"></asp:TextBox>
                                  <span class="hongse12">* </span></td>
                            </tr>
                            <tr>
                              <td height="30" colspan="2" bgcolor="#F6F6F6" class="huise12" style="word-break: break-all"><asp:TextBox CssClass="text_autox22_cccccc" Height="300px" ID="Js_code" runat="server" Width="100%" style="margin: 5px;" TextMode="MultiLine"></asp:TextBox></td>
                            </tr>
                            <tr>
                              <td height="30" colspan="2" align="center" bgcolor="#DEE1E7" class="huise12"><table width="100%" border="0" cellpadding="0" cellspacing="5">
                                  <tr>
                                    <td width="150" height="30" align="center" class="huise12"><a href="?">新建</a></td>
                                    <td><asp:Button ID="diy_Js_ok" runat="server" 
                                                      CssClass="btn_2k3" Text="创建Js文件" style="height:22px" width="80px"/>        
                                        <asp:Button ID="update_Js_ok" runat="server" 
                                                      CssClass="btn_2k3" Text="保存修改" Visible="False" style="height:22px"/>          
                                        <asp:Label CssClass="hongse12" ID="diy_Js_ts" runat="server">脚本名称和脚本代码都是必填项！</asp:Label></td>
                                    <td width="10"><img src="image/img-41.GIF" width="16" height="22" onClick="document.getElementById('Js_code').style.height=(parseInt 
(document.getElementById('Js_code').style.height)+150).toString()+'px'"  onmouseover= "this.style.cursor= 'hand' "   onmouseout= "this.style.cursor= 'normal'"/> </td>
                                    <td width="10"><img src="image/img-40.GIF" width="16" height="22" onClick="if(parseInt(document.getElementById('Js_code').style.height)>150) 
{document.getElementById('Js_code').style.height=(parseInt(document.getElementById('Js_code').style.height)- 
150).toString()+'px'}"  onmouseover= "this.style.cursor= 'hand' "   onmouseout= "this.style.cursor= 'normal'"/> </td>
                                  </tr>
                              </table></td>
                            </tr>
                        </table></td>
                      </tr>
                  </table></td>
                </tr>
            </table></td>
          </tr>
          <tr>
            <td class="wuse14"><strong>现有自定义页面</strong></td>
          </tr>
          <tr>
            <td bgcolor="#CACACA"><table width="100%" border="0" cellpadding="0" cellspacing="1" bordercolor="#D4D0C8">
                <tr>
                  <td bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="5" cellpadding="0">
                      <tr>
                        <td><table width="100%" border="1" cellpadding="0" cellspacing="1" bordercolor="#E7E7E7">
                            <asp:Repeater ID="diyJs_data" runat="server">
                              <ItemTemplate>
                                <tr>
                                  <td width="5%" height="30" align="center" class="huise12"><input name="checkbox_diyJs" type="checkbox" id="checkbox_diyJs" value="<%#Eval("Jsename")%>" /></td>
                                  <td colspan="3"  class="wuse12">&nbsp;<%# Eval("Jsename")%></td>
                                  <td width="20%" align="center" class="wuse12"><%# Eval("Jstime")%></td>
                                  <td width="20%" align="center" class="wuse12"><a href="?update=True&url=<%#Eval("Jsename")%>">编辑</a></td>
                                </tr>
                              </ItemTemplate>
                            </asp:Repeater>
                        </table></td>
                      </tr>
                      <tr>
                        <td><table border="0" cellspacing="0" cellpadding="0">
                            <tr>
                              <td width="30" align="center"><span class="wuse12">
                                <input name="chkAll" type="checkbox" id="chkAll" onClick="CheckAll(this.form)" value="checkbox" style="border:0" />
                              </span></td>
                              <td width="65"><span class="wuse12">全选/反选</span></td>
                              <td width="80"><span class="wuse12">
                                <asp:Button CssClass="btn1_mouseout" ID="Js_quantity_delete" runat="server" 
                                      Text="批量删除" Width="60px" height="22px"/>        
                              </span></td>
                              <td width="95" align="right" class="wuse12">上传Js文件：</td>
                              <td width="80"><span class="wuse12">
                                <asp:FileUpload ID="FileUpload_url" runat="server" class="text_autox22_cccccc" />
                              </span></td>
                              <td width="96" align="right"><span class="wuse12">
                                <asp:Button CssClass="btn_2k3" ID="fileupload_ok" runat="server" Text="上传Js文件" Width="95px" height="22px"/>                                
                              </span></td>
                            </tr>
                        </table></td>
                      </tr>
                  </table></td>
                </tr>
            </table></td>
          </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
</table>
    </form>
</body>
</html>
