<%@ Page Language="C#" MasterPageFile="~/v/UsersAddEdit.Master" AutoEventWireup="true" CodeBehind="Website.aspx.cs" Inherits="Stat.web.v.Website1" Title="添加/修改站点" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<script type="text/javascript">
$(document).ready(function(){
 $("input[name$='btnSaveWebsite']").bind('click',CheckFrom); 
  $(".forumRowHighlight").css("background-color","F6FBFF");
  $("input[name='chkall']").bind('click',function CheckPower(){ $("input[name='website_power']").attr("checked",$(this).attr("checked")); }); 
  $("input[value='"+$("#hdfShowStype").val()+"']").attr("checked", true);
});
 function CheckFrom()
 {
     var txtWebname=$("input[name$='txtWebname']").val();  
     var txtWebUrl=$("input[name$='txtWebUrl']").val();  
     if(!CheckLength(txtWebname, 1)){alert("名称不能为空！");$("input[name$='txtWebname']").focus();return false;}  
     if(!IsUrl(txtWebUrl)){alert("URL填写不正确！应以 http 开头。");$("input[name$='txtWebUrl']").focus();return false;}     
     
 }
</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cpMain" runat="server">
        <div class="C_u_ti">

    添加/修改站点</div>
    
    <div class="box"  style="margin-top:10px;">
  <table width="100%" border="0" cellpadding="1" cellspacing="1" bgcolor="#CEDCED">
    <tr>
      <td height="29" bgcolor="#FFFFFF" style="text-align:right; width:10%;" >&nbsp;&nbsp;<strong>网站名称：</strong></td>
      <td bgcolor="#FFFFFF">&nbsp;<asp:TextBox ID="txtWebname" runat="server" Width="250px" MaxLength="20" ></asp:TextBox> &nbsp;</td>
    </tr>
    
    <tr>
      <td height="29" bgcolor="#FFFFFF" style="text-align:right; width:10%;" >&nbsp;&nbsp;<strong>网站首页：</strong></td>
      <td bgcolor="#FFFFFF">&nbsp;&nbsp;<asp:TextBox ID="txtWebUrl" runat="server" 
              Width="250px">http://</asp:TextBox>&nbsp;&nbsp;</td>
    </tr>
    
    <tr>
      <td height="29" bgcolor="#FFFFFF" style="text-align:left; text-indent:10px; " colspan="2"><strong> 
          以下报表是否公开（打钩表示公开，反之不公开）：</strong></td>
    </tr>
    <tr>
      <td height="29" bgcolor="#FFFFFF" style="text-align:center;" colspan="2">
      <br />
      <asp:Literal ID="ltrPowerList" runat="server"></asp:Literal>      
      </td>
    </tr>
    </table>
</div>
   <div class="box" style="text-align:left; margin-top:20px; margin-bottom:10px;">
<br />
       &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input name="chkall" id="chkall" type="checkbox" value="" />公开所有报表&nbsp;&nbsp;&nbsp; 
       <asp:Button runat="server" OnClick="btnSaveWebsite2_Click" Text="保存站点" />
          <asp:HiddenField ID="hdfWebid" runat="server" />
</div> 
</asp:Content>
