<%@ page language="C#" autoeventwireup="true" inherits="admin_Class_Table_add, App_Web_class_table_add.aspx.fdf7a39c" validaterequest="false" smartnavigation="true" %>

<%@ Register Src="yanz.ascx" TagName="yanz" TagPrefix="uc1" %>
<%@ Register Src="ascx/FreeTextBox.ascx" TagName="FreeTextBox" TagPrefix="uc2" %>

<!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 runat="server">
    <title>栏目管理</title>
    <link href="images/style.css" rel="stylesheet" type="text/css" />
   
<script type="text/javascript"> 
gg_load_err =0;
try
{
  google.load("language", "1");
}
catch(e)
{
  gg_load_err =1;
}
 
function gg_translate(g1,g2)
{
  try
  {
    google.language.translate(document.getElementById(g1).value, "zh", "en", function(result)
    {
      if (!result.error)
      {
        var file_path=document.getElementById(g2).value+"/"+result.translation+"/";
        document.getElementById(g2).value=file_path.replace("//","/");
      }
    });
  }
  catch(e)
  {
    alert("failed to translate");
  }
}
</script>
</head>
<body>
    <form id="form1" runat="server">
    <div id="frame_Toolbar" class="toolbarBg">
    <div style="float:left"> 
        <uc1:yanz ID="Yanz1" runat="server" />
        <a href="javascript:self.history.back();" class="icoBtn_ct"><span class="btnIco btnBack"></span><span class="btnTxt">返回</span></a> <a href="javascript:self.location.reload();" class="icoBtn_ct"><span class="btnIco btnReload"></span><span class="btnTxt">刷新</span></a>&nbsp;
        <span class="split ftSplit" ></span></div>
	<div id="guide" class="light_orange">您现在的位置：<a href="default.aspx">内容管理</a> >> <a href="Class_Table.aspx?Model_id=<%=Request.QueryString["Model_id"].ToString() %>">栏目管理</a><asp:Literal ID="Literal1" runat="server"></asp:Literal></div>
	<div class="pageInfo right light_gray"></div>
    </div>
    <table class="cTable_2 table">
	<tr class="cTitle toolbarBg">
		<td width="25%"><div>添加栏目</div></td>
		<td colspan="2"></td>
	</tr>
	<tr>
		<td class="tRight">上级栏目：</td>
		<td colspan="2">
            <asp:DropDownList ID="DropDownList3" runat="server" AutoPostBack="True" OnSelectedIndexChanged="DropDownList3_SelectedIndexChanged">
            </asp:DropDownList><span id="RequiredFieldValidator1" style="color:Red;">*</span></td>
	</tr>
	<tr>
	  <td class="tRight">列表标题：</td>
	  <td colspan="2"><span style="color:Red;"><asp:TextBox ID="TextBox1" runat="server" MaxLength="100"
              Width="150px"></asp:TextBox>
          <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="TextBox1"
              ErrorMessage="列表名称不可以为空"></asp:RequiredFieldValidator></span></td>
	  </tr>
	<tr>
		<td class="tRight">栏目图标：</td>
		<td colspan="2">
            <asp:TextBox ID="TextBox2" runat="server" MaxLength="100" Width="150px"></asp:TextBox>
             &nbsp;<input id="Button4" class="button" type="button" value="上传图片"  onClick="window.open('shangchuan.aspx?editname=TextBox2','','status=no,scrollbars=no,top=20,left=110,width=435,height=400');"/>
                </td>
    </tr>

	<tr>
		<td valign="top" class="tRight"><span class="cwTDiv">栏目关键字：</span></td>
		<td colspan="2">
          <div>
              <asp:TextBox ID="TextBox3" runat="server" Height="80px" TextMode="MultiLine" Width="400px"></asp:TextBox></div>		</td>
	</tr>
	<tr>
	  <td valign="top" class="tRight">栏目描述：</td>
	  <td colspan="2">
          <asp:TextBox ID="TextBox4" runat="server" Height="80px" TextMode="MultiLine" Width="400px"></asp:TextBox></td>
	  </tr>
	<tr>
	  <td valign="top" class="tRight">列表页模版：</td>
	  <td colspan="2">
          <asp:DropDownList ID="DropDownList1" runat="server">
          </asp:DropDownList></td>
	  </tr>  
	  <tr>
	  <td valign="top" class="tRight">介绍页模板：</td>
	  <td colspan="2">
          <asp:DropDownList ID="DropDownList2" runat="server">
          </asp:DropDownList></td>
	  </tr>  
	  <tr>
	  <td valign="top" class="tRight">栏目路径：</td>
	  <td colspan="2">
          <asp:TextBox ID="TextBox5" runat="server" MaxLength="100" Width="250px"></asp:TextBox>&nbsp;&nbsp;<asp:Button
              ID="Button2" runat="server" CssClass="button" OnClick="Button2_Click1" Text="转换拼音" />&nbsp;<input type="submit" name="Submit" value="转换英语" class="button"  onclick="gg_translate('TextBox1','TextBox5');return false;" style="display:none"></td>
	  </tr>  
	 <tr>
	  <td valign="top" class="tRight">缩略图大小：</td>
	  <td colspan="2">
          <asp:TextBox ID="TextBox6" runat="server" MaxLength="100" Width="250px" Text="120*80"></asp:TextBox>&nbsp;&nbsp;例：120*80</td>
	  </tr> 
	  	<tr>
	  <td valign="top" class="tRight">栏目简介：</td>
	  <td colspan="2">
          <uc2:FreeTextBox ID="FreeTextBox1" runat="server" Height="400" upfile="admin" Width="95%" /></td>
	  </tr>
      <tr>
	  <td valign="top" class="tRight">内容图片大小：</td>
	  <td colspan="2">
          <asp:TextBox ID="TextBox7" runat="server" MaxLength="100" Width="250px" Text="800*0"></asp:TextBox>&nbsp;&nbsp;例：800*0，一般限制宽度</td>
	  </tr> 
      <tr>
	  <td valign="top" class="tRight">排序：</td>
	  <td colspan="2">
          <asp:TextBox ID="TextBox8" runat="server" MaxLength="100" Width="250px" Text="0"></asp:TextBox>&nbsp;&nbsp;例：0</td>
	  </tr> 
      <tr>
	  <td valign="top" class="tRight">类型：</td>
	  <td colspan="2">
          <asp:CheckBox ID="CheckBox1" runat="server"  Text="主栏目"/>
       </td>
	  </tr> 
	      </table>
    <div id="cEndToolbar" class="toolbarBg">
      <div class="caButCase">
          <asp:Button ID="Button1" runat="server" CssClass="button" Text="确认操作" OnClick="Button1_Click1" />
		    
	        <input type="reset" name="Submit2" value="清空重填" class="button" />
      </div>
    </div>

    </form>
    <%--<script type="text/javascript" src="http://www.google.com/jsapi"></script>--%>
</body>
</html>


