<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Special_Edit.aspx.cs" Inherits="TotCms.Web.Admin.Special_Edit" %>

<%@ Register src="UI/main_top.ascx" tagname="main_top" tagprefix="uc1" %>

<!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">
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  <title>修改专题</title>
  <link href="style/global.css" rel="stylesheet" type="text/css" />
  <script type="text/javascript" src="js/common.js"></script>
  <script type="text/javascript">
  function AutoSavePath(){
    $('SavePath').value='/category/$SpecialId$';
  }
  function resizeup(obj) {
	  var newheight = parseInt($(obj).style.height, 10) + 50;
	  $(obj).style.height = newheight + 'px';
  }
  function resizedown(obj) {
	  var newheight = parseInt($(obj).style.height, 10) - 50;
	  if(newheight > 0) {
		  $(obj).style.height = newheight + 'px';
	  }
  }
  </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
      <uc1:main_top ID="main_top1" runat="server" />
    
    </div>
    <table style="width:100%;" border="0" cellpadding="0" cellspacing="1" 
      class="black_border">
      <tr class="suphead">
        <td colspan="2">
                    修改专题</td>
    </tr>
    <tr>
      <td class="fields_text">
        专题名称：</td>
      <td class="fields_input">
        <asp:TextBox ID="Title" runat="server"></asp:TextBox>
          <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
          ControlToValidate="Title" ErrorMessage="专题名称不能为空"></asp:RequiredFieldValidator>
          </td>
    </tr>
    <tr>
      <td class="fields_text">
        专题模板：</td>
      <td class="fields_input">
        <asp:TextBox ID="Template" runat="server" CssClass="input_middle"></asp:TextBox>
          <input id="Button3" type="button" value="..." onclick="popupWindow('Template_Files.aspx','file_template',400,300,1)" /><asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
          ControlToValidate="Template" ErrorMessage="专题模板不能为空"></asp:RequiredFieldValidator>
          </td>
    </tr>
    <tr>
      <td class="fields_text">
        保存路径：</td>
      <td class="fields_input">
        <asp:TextBox ID="SavePath" runat="server" CssClass="input_middle"></asp:TextBox>
          <input type="button" name="Submit3" value="..." onclick="popupWindow('Template_Savepath.aspx','template_savepath',400,300,1)" />
          <input type="button" name="Submit32" value="Auto" onclick="AutoSavePath()" />
          <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="SavePath" ErrorMessage="专题保存路径不能为空"></asp:RequiredFieldValidator>
          &nbsp;
          </td>
    </tr>
    <tr>
      <td class="fields_text">
        专题描述：</td>
      <td class="fields_input">
        <asp:TextBox ID="Content" runat="server" CssClass="text_normal" 
          TextMode="MultiLine"></asp:TextBox>
          <br />
          <B><A href="javascript:resizeup('Content');">[+]</A> 
          <A href="javascript:resizedown('Content');">[-]</A></B>
          </td>
    </tr>
    <tr>
      <td colspan="2" align="center">
        <asp:Button ID="Button1" runat="server" Text="修改专题" onclick="Button1_Click" />
        <input id="Button2" type="reset" value="取 消" /></td>
    </tr>
  </table>
    </form>
</body>
</html>
