<%@ Page CodeBehind="admin_copyurl_add.aspx.cs" Language="c#" AutoEventWireup="True" Inherits="Typhoto.admin_copyurl_add" %>

<!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">.style4 { COLOR: #ff0000 }
	.style5 { FONT-WEIGHT: bold; COLOR: #ffffff }
		</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" name="Form1" method="post" runat="server">
			<table border="0" cellspacing="1" cellpadding="3"  align="center" width="100%">
				<tr>
					<td colSpan="3" class="td_title">
						<asp:label id="add" runat="server" Font-Bold="True">添加</asp:label>复制
					</td>
				</tr>
				<tr class="tableTd">
					<td align="right" width="21%"><span class="forumrow"><span class="a3-green">显示文字</span></span>：</td>
					<td width="79%"><span class="forumrow"><font color="#000000"><font color="#000000"><span class="a3-green"><font color="#000000"><font color="#000000"><span class="style4"><asp:textbox id="title" runat="server" CssClass="tableTdtext"></asp:textbox><asp:requiredfieldvalidator id="RequiredFieldValidator1" runat="server" ControlToValidate="title" ErrorMessage="请输入文字"></asp:requiredfieldvalidator><FONT face="宋体"></span><BR>
												（将在文件列表区显示的复制提示文字）</font></font></font></span></td>
				</tr>
				<tr class="tableTd">
					<td align="right" width="21%">代码：
					</td>
					<td>
						<asp:textbox id="code" runat="server" CssClass="tableTdtext" Width="400px" TextMode="MultiLine"></asp:textbox>
						<a href="javascript:admin_Size(-3,'code')"><img src="../images/minus1.gif" width="20" height="20" border='0' unselectable="on"></a>
						<a href="javascript:admin_Size(3,'code')"><img src="../images/plus1.gif" width="20" height="20" border='0' unselectable="on"></a>
						<asp:requiredfieldvalidator id="RequiredFieldValidator2" runat="server" ControlToValidate="code" ErrorMessage="请输入代码"></asp:requiredfieldvalidator><BR>
						（输入点击后复制到剪贴板的文件地址，其中文件地址以{fileurl}宏符号代替）</td>
				</tr>
				<tr class="tableTd">
					<td align="right">支持文件类型：</td>
					<td><asp:textbox id="type" runat="server" CssClass="tableTdtext" Width="300px"></asp:textbox><FONT face="宋体">（使用英文,分隔，不输入为所有类型）</FONT></td>
				</tr>
				<tr class="tableTd">
					<td align="right">&nbsp;</td>
					<td><asp:checkbox id="sht" runat="server" Text="使用短地址（此项为添加长地址到数据库以换取短地址，不影响效果）"></asp:checkbox><FONT face="宋体"></FONT></td>
				</tr>
				<tr class="tableTd">
					<td align="right">&nbsp;</td>
					<td><asp:checkbox id="mr" runat="server" Text="设为默认（点复制图标时默认执行此项操作）"></asp:checkbox><FONT face="宋体"></FONT></td>
				</tr>
				<tr class="tableTd">
					<td align="right" colSpan="2">
						<div align="center"><span class="forumrow"><span class="px14"><asp:button class="formbutton" id="Submit1" runat="server" Width="100px" Text="添　加" onclick="Submit1_Click"></asp:button></span></span></div>
					</td>
				</tr>
			</table>
		</form>
	</body>
</HTML>
