<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="AddEditTab.aspx.cs" Inherits="Portal.Admin.AddEditTab" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">


 <div class="result-wrap">

 
 
    
  
  <table class="table">
  
   <tr>
   <th width="150px">
   页面名称
   </th>
   
   <td>
      <asp:TextBox ID="tabname"  CssClass="form-control"  ValidationGroup="Insert"      runat="server"></asp:TextBox> 
   </td>
   
   </tr>
   
   <tr>
   
   <th>页面顺序</th>
   <td>
   <asp:TextBox ID="taborder"   ValidationGroup="Insert"     CssClass="form-control"  Text=0 runat="server"></asp:TextBox>
   </td>
   
   </tr>
  
  
  
  <tr runat="server" id="tr_role">
  <th>初始化查看角色</th>
  <td>
   <asp:CheckBoxList ID="authRoles"  BorderWidth="0px" RepeatColumns="3" RepeatDirection="Horizontal"  runat="server"  >
   </asp:CheckBoxList>
  </td>
  </tr>
  
  
  <tr>
  <th>显示在导航栏</th>
  <td>   <asp:RadioButtonList HintInfo="是否显示在网站顶部的导航栏上" Width="100px" RepeatColumns="2" ID="istop" 
          runat="server" AutoPostBack="True" 
          onselectedindexchanged="istop_SelectedIndexChanged">
                       <asp:ListItem Text="是"   Value="1"></asp:ListItem>
                        <asp:ListItem Text="否" Value="0"></asp:ListItem>
                       </asp:RadioButtonList> </td>
  </tr>
  
  
  
  <tr><th>打开方式</th>
  <td> <asp:DropDownList ID="target"  runat="server">
                    <asp:ListItem Text="" Value=""></asp:ListItem>
                    <asp:ListItem Text="_blank" Value="_blank"></asp:ListItem>
                      <asp:ListItem Text="_self" Value="_self"></asp:ListItem>
                        <asp:ListItem Text="_top" Value="_top"></asp:ListItem>
                          <asp:ListItem Text="_parent" Value="_parent"></asp:ListItem>
                     </asp:DropDownList>
                     </td>
  </tr>
  
  
  <tr><th>站外链接</th>
  <td>    <asp:TextBox  ID="url"  Width="300px" runat="server" ></asp:TextBox> 如填写，则打开站外链接<br />

                   </td>
  </tr>
  



   <tr runat="server" id="tr1">
  
 
  </tr>



  <tr runat="server" id="tr3">
   
   <th>网址重写</th>
  <td>    <asp:TextBox  ID="rewritename"  ClientIDMode="Static"  Width="300px" runat="server" ></asp:TextBox> <br />
 
 
                   </td>
  </tr>
  
 

  
  
   <tr runat="server" id="tr2">
   <th>网址重写后TabID</th>
  <td>    <asp:TextBox  ID="newtabid" ClientIDMode="Static"  Width="300px" runat="server" ></asp:TextBox> 
  （一般无需填写） 
 
                   </td>
  </tr>

  <tr>
  
  <td colspan="2"  align="center">
 
            <div class="btnc">
          <asp:Button ID="insert" runat="server" class="btn btn-primary" Text="添加" 
              onclick="insert_click" />
          <asp:Button ID="cancel" runat="server" class="btn" Text="取消"  CausesValidation="false"
              onclick="cancel_Click" />
  </div>
  </td></tr>
  </table>
              
                 
              
           
                
                   
                     
                  
                   
                 
                
            <script>

                function Init() {
                    if ($("#rewritename").val() == "") {

                        $("#newtabid").attr("disabled", "disabled");
                    }
                    else {
                        $("#newtabid").removeAttr("disabled");
                    }
                }


                $(document).ready(

                function () {


                    Init();

                    $("#rewritename").keyup
                    (
                    function () {

                        if ($("#rewritename").val() == "") {
                            $("#newtabid").attr("disabled", "disabled");
                        }
                        else {
                            $("#newtabid").removeAttr("disabled");
                        }
                    }
                    );

                });

            </script>
                   
               备注：系统内置两个外链，如果是首页， 请输入 /portal； 如果是论坛，请填写forums.aspx      
  
  </div>

</asp:Content>
