<%@ Page CodeBehind="admin_style_edit.aspx.cs" Language="c#" AutoEventWireup="True" Inherits="Webdisk.admin_style_edit" %>
<% @ Import Namespace="Webdisk" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<link href="img/main.css" rel="stylesheet" type="text/css">
		<style type="text/css">
		.style2 { COLOR: #ffffff }
		.style4 {COLOR: #ff0000 }
        </style>
		<script>
	function admin_Size(num,objname)
{
	var obj=document.getElementById(objname)
	if (parseInt(obj.rows)+num>=3) {
		obj.rows = parseInt(obj.rows) + num;	
	}
	if (num>0)
	{
		obj.width="90%";
	}
}
		</script>
	</HEAD>
	<body>
		<form id="Form1" method="post" runat="server">
			<div align="center">
				<table border="0" cellspacing="1" cellpadding="3" align="center" width="100%">
                  <tr>
                    <td colSpan="2" class="td_title">编辑样式</td>
                  </tr>
                  <tr class="tableTd">
                    <td><font face="宋体">缩略图：
                        <asp:TextBox ID="pic" runat="server"></asp:TextBox>
                        名称：
                        <asp:TextBox ID="title" runat="server"></asp:TextBox>
                        文件相对路径：
                        <asp:TextBox ID="path" runat="server"></asp:TextBox>
                        <br>
                        <asp:CheckBox ID="show" runat="server" Text="前台可见" Checked="True"></asp:CheckBox>
                        &nbsp;
                        <asp:CheckBox ID="mr" runat="server" Text="设为默认"></asp:CheckBox>
                        &nbsp;
                        <asp:Button ID="Button1" runat="server" Text="保存属性修改" CssClass="formbutton" onclick="Button1_Click"></asp:Button>
                    </font></td>
                  </tr>
                  <tr class="tableTd">
                    <td><textarea name="style" id="style" style="WIDTH:100%" rows="25" runat="server"></textarea>
                    <a href="javascript:admin_Size(-3,'style')"><img src="../pics/minus1.gif" width="20" height="20" border='0' unselectable="on"></a> <a href="javascript:admin_Size(3,'style')"><img src="../pics/plus1.gif" width="20" height="20" border='0' unselectable="on"></a></td>
                  </tr>

                  <tr class="tableTd">
                    <td align="right"><span class="forumrow"><span class="px14">
                      <DIV align="center">
                        <asp:Button id="Button2" runat="server" Width="140px" Text="保存样式内容修改" CssClass="formbutton" onclick="Button2_Click"></asp:Button>
                        &nbsp;&nbsp;&nbsp;&nbsp;
                        <input class="formbutton" type="button" name="Submit" value=" 返 回 " onClick="javascript:window.location='admin_style.aspx'">
</DIV>
                    </span></span> </td>
                  </tr>
                </table>
				</div>
		</form>
	</body>
</HTML>
