<%@ Page language="c#" Inherits="Discuz.ForumPage.Admin.addbbcode" Codebehind="forum_addbbcode.aspx.cs" %>
<%@ Register TagPrefix="uc1" TagName="TextareaResize" Src="../UserControls/TextareaResize.ascx" %>
<%@ Register TagPrefix="cc1" Namespace="Discuz.Control" Assembly="Discuz.Control" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>Discuz!NT代码添加</title>	
	    <script language="javascript" src="../js/common.js"></script>
	    <link href="../styles/dntmanager.css" type="text/css" rel="stylesheet">        
        <link href="../styles/modelpopup.css" type="text/css" rel="stylesheet">
        <script type="text/javascript" src="../js/modalpopup.js"></script>
</head>

	<body>
		<form id="Form1" method="post" runat="server">
		<div class="ManagerForm">
        <fieldset>
		<legend style="background:url(../images/icons/icon47.jpg) no-repeat 6px 50%;">添加Discuz!NT代码</legend>
			<table width="100%" align="center" class="table1" cellspacing="0" cellPadding="4" >				
				<tr>
					<td class="td1" width="20%">是否生效:</td>
					<td class="td1" width="30%"><cc1:radiobuttonlist id="available" runat="server">
							<asp:ListItem Value="1">生效</asp:ListItem>
							<asp:ListItem Value="0" Selected="True">不生效</asp:ListItem>
						</cc1:radiobuttonlist></td>
					<td class="td1" width="20%">图标:</td>
					<td class="td1" width="30%">
							<cc1:UpFile id="icon" runat="server" UpFilePath="../../editor/images/" FileType=".jpg|.gif|.png" IsShowTextArea="false" Width="60px"></cc1:UpFile></td>
				</tr>
				<tr>
					<td class="td2">标签:</td>
					<td class="td2" ><cc1:textbox id="tag" runat="server" HintTitle="提示" HintInfo="方括号中的标签代码, 如 [tag] 的标签为 &amp;quot;tag&amp;quot;(不含引号)"  CanBeNull="必填" RequiredFieldType="暂无校验" MaxLength="100" TextMode="MultiLine" Rows="3" Cols="20"></cc1:textbox></td>
					<td class="td2">替换内容:</td>
					<td class="td2">
							<uc1:TextareaResize id="replacement" runat="server" HintTitle="提示" HintInfo="标签替换为的 html 代码内容, 支持至多三个动态参数<br />{1} 代表第一个参数<br />{2} 代表第二个参数<br />{3} 代表第三个参数<br />{RANDOM}代表随机生成的字符串" controlname="replacement" cols="30" is_replace="true"  HintShowType="down" HintHeight="0"></uc1:TextareaResize>
					
					</td>
				</tr>
				<tr>
					<td class="td1">例子:</td>
					<td class="td1">
						<uc1:TextareaResize id="example" runat="server" HintTitle="提示" HintInfo="本代码作用的例子" controlname="example" cols="30" is_replace="true" maxlength="254" ></uc1:TextareaResize>
					</td>
					<td class="td2">解释:</td>
					<td class="td2">
						<uc1:TextareaResize id="explanation" runat="server" HintTitle="提示" HintInfo="本代码功能的解释" controlname="explanation" cols="30" is_replace="true" ></uc1:TextareaResize>
					</td>
				</tr>
				<tr>
					<td class="td1">参数个数:</td>
					<td class="td1">
							<cc1:TextBox id="param" runat="server" HintTitle="提示" HintInfo="本代码中使用到的动态参数个数" CanBeNull="必填" RequiredFieldType="数据校验" Text="0" size="3"></cc1:TextBox></td>
					<td class="td2">嵌套次数:</td>
					<td class="td2"><cc1:textbox id="nest" runat="server" HintTitle="提示" HintInfo="最大解析的代码嵌套次数(深度), 范围从 1～3" Text="0" CanBeNull="必填" RequiredFieldType="数据校验" size="3"></cc1:textbox></td>
				</tr>
				<tr>
					<td class="td1">参数描述:</td>
					<td class="td1">
						<uc1:TextareaResize id="paramsdescript" runat="server" HintTitle="提示" HintInfo="在插入自定义标签时会弹出录入框,此描述为录入框提示信息,对应参数个数.多于一个参数,请用半角逗号(,)分隔." controlname="paramsdescript" cols="30" is_replace="true"></uc1:TextareaResize></td>
					<td class="td2">params<br />默认值:</td>
					<td class="td2">
						<uc1:TextareaResize id="paramsdefvalue" runat="server" HintTitle="提示" HintInfo="在插入自定义标签时会弹出录入框,此默认值为录入框中默认显示的数值,对应参数个数.多于一个参数,请用半角逗号(,)分隔." controlname="paramsdefvalue" cols="30" is_replace="true"></uc1:TextareaResize></td>
				</tr>
			</table>
			</fieldset>
			<cc1:Hint id="Hint1" runat="server" HintImageUrl="../images"></cc1:Hint>
			<div align="center">
			    <cc1:Button id="AddAdInfo" runat="server" Text=" 提 交 "></cc1:Button>
			</div>
			</div>
			</form>
			
			<%=footer%>
	</body>
</HTML>
