<%@ page language="C#" autoeventwireup="true" inherits="ZoomLa.WebSite.Manage.Content.AddEditModel, App_Web_i3fxcuwj" enableviewstatemac="false" enableEventValidation="false" viewStateEncryptionMode="Never" %>
<!DOCTYPE HTML>
<html>
<head >
<title>编辑内容模型</title>
<link href="../../App_Themes/AdminDefaultTheme/Guide.css" type="text/css" rel="stylesheet" />
<link href="../../App_Themes/AdminDefaultTheme/index.css" type="text/css" rel="stylesheet" />
<link href="../../App_Themes/AdminDefaultTheme/main.css" type="text/css" rel="stylesheet" />
<script src="../../JS/chinese.js" type="text/javascript"></script>
<script type="text/JavaScript">
    function Getpy(ontxt, id) {
        if ('<%=Request["ModelID"] %>' == "") {
            var str = document.getElementById(ontxt).value.trim();
            if (str == "") {
                document.getElementById(id).value = "";
                return;
            }
            var arrRslt = makePy(str);
            if (arrRslt.length > 0) {
                document.getElementById(id).value = arrRslt.toString().toLowerCase();
                if (document.getElementById(id).value.indexOf(',') > -1) {//判断栏目名称有多音字后栏目标识名“，”并去掉逗号后面的数据
                    var str = document.getElementById(id).value;
                    document.getElementById(id).value = str.split(',', 1);
                }
            }
        }
    }
</script>
</head>
<body>
<form id="form1" runat="server">
<div id="nav_box">
<div class="r_navigation">后台管理 &gt;&gt; 系统设置 &gt;&gt; <a href="ModelManage.aspx?ModelType=<%=Request["ModelType"] %>"><%=bll.GetModelType(Convert.ToInt32(Request["ModelType"])) %></a> &gt;&gt; <asp:Literal ID="LNav" runat="server" ></asp:Literal></div>
</div>
<div class="h_27"></div>
<table class="border" width="100%" cellpadding="2" cellspacing="1">
	<tr>
		<td class="spacingtitle" colspan="2" align="center">
			<asp:Literal ID="LTitle" runat="server" ></asp:Literal>
		</td>
	</tr>
	<tr class="tdbg" onmouseover="this.className='tdbgmouseover'" onmouseout="this.className='tdbg'">
		<td class="tdbgleft" style="width: 200px" >
			<strong><%=bll.GetModelType(Convert.ToInt32(Request["ModelType"])) %>名称：</strong>
		</td>
		<td>
			<asp:TextBox ID="TxtModelName" class="l_input" runat="server" Width="156" MaxLength="200" onkeyup="Getpy('TxtModelName','TxtTableName')" AutoPostBack="True" /><font color="red">*</font>
			<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="RequiredFieldValidator" ControlToValidate="TxtModelName">内容模型名称不能为空</asp:RequiredFieldValidator>
		</td>
	</tr>
	<tr class="tdbg" onmouseover="this.className='tdbgmouseover'" onmouseout="this.className='tdbg'">
		<td class="tdbgleft">
			<strong>创建的数据表名：</strong>
		</td>
		<td>
			<asp:Label ID="LblTablePrefix" runat="server"  />
			<asp:TextBox ID="TxtTableName" class="l_input" runat="server" Width="108" MaxLength="50" AutoPostBack="True" /><font color="red">*</font>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ErrorMessage="RequiredFieldValidator" ControlToValidate="TxtTableName">数据表名不能为空</asp:RequiredFieldValidator>
		</td>
	</tr>
    <tr class="tdbg" id="PubType1" visible="false" runat="server" onmouseover="this.className='tdbgmouseover'" onmouseout="this.className='tdbg'">
            <td class="tdbgleft">
                <strong>互动类型：</strong>
            </td>
            <td>
                <asp:RadioButtonList ID="PubType" runat="server" RepeatDirection="Horizontal">
                    <asp:ListItem Selected="True" Value="0">评论</asp:ListItem>
                    <asp:ListItem Value="1">投票</asp:ListItem>
                    <asp:ListItem Value="2">活动</asp:ListItem>
                    <asp:ListItem Value="3">留言</asp:ListItem>
                    <asp:ListItem Value="4">问券调查</asp:ListItem>
                    <asp:ListItem Value="5">统计</asp:ListItem>
                    <asp:ListItem Value="6">竞标</asp:ListItem>
                </asp:RadioButtonList>
             </td>
        </tr>
	<tr class="tdbg" onmouseover="this.className='tdbgmouseover'" onmouseout="this.className='tdbg'">
		<td class="tdbgleft">
			<strong>项目名称：</strong><br />
			例如：文章、软件、图片、商品
		</td>
		<td>
			<asp:TextBox ID="TxtItemName" runat="server" class="l_input" Width="156" MaxLength="20" /><font color="red">*</font>
			<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="TxtItemName" ErrorMessage="RequiredFieldValidator">项目名称不能为空</asp:RequiredFieldValidator>
		</td>
	</tr>
	<tr class="tdbg" onmouseover="this.className='tdbgmouseover'" onmouseout="this.className='tdbg'">
		<td class="tdbgleft">
			<strong>项目单位：</strong>
			<br />
			例如：篇、个、张、件
		</td>
		<td>
			<asp:TextBox ID="TxtItemUnit" runat="server" class="l_input" Width="156" MaxLength="20" /><font color="red">*</font>
			<asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="TxtItemUnit" ErrorMessage="RequiredFieldValidator">项目单位不能为空</asp:RequiredFieldValidator>
		</td>
	</tr>
   <tr class="tdbg" onmouseover="this.className='tdbgmouseover'" onmouseout="this.className='tdbg'">
		<td class="tdbgleft">
			<strong>是否复制：</strong>
			  <br />
			  确定模型是否可以复制
		</td>
		<td>
			<asp:RadioButtonList ID="rblCopy" runat="server" RepeatDirection="Horizontal">
				<asp:ListItem Value="1" Selected="True" >是</asp:ListItem>
				<asp:ListItem Value="2">否</asp:ListItem>
			</asp:RadioButtonList>
		</td>
	</tr>
    <tr class="tdbg" onmouseover="this.className='tdbgmouseover'" onmouseout="this.className='tdbg'">
		<td class="tdbgleft">
			<strong>是否批量添加：</strong>
			  <br />
			  确定用户中心是否可以批量添加
		</td>
		<td>
			<asp:RadioButtonList ID="rblIslotsize" runat="server" RepeatDirection="Horizontal">
				<asp:ListItem Value="1" >是</asp:ListItem>
				<asp:ListItem Value="2"  Selected="True">否</asp:ListItem>
			</asp:RadioButtonList>
		</td>
	</tr>
    <tr class="tdbg" onmouseover="this.className='tdbgmouseover'" onmouseout="this.className='tdbg'">
		<td class="tdbgleft">
			<strong>是否文件工厂:</strong>
			  <br />
			  文件工厂用于批量生成Word文档
		</td>
		<td>
			<asp:RadioButtonList ID="FileFactory" runat="server" RepeatDirection="Horizontal">
				<asp:ListItem Value="1" >是</asp:ListItem>
				<asp:ListItem Value="2"  Selected="True">否</asp:ListItem>
			</asp:RadioButtonList>
		</td>
	</tr>
	<tr class="tdbg" onmouseover="this.className='tdbgmouseover'" onmouseout="this.className='tdbg'">
		<td class="tdbgleft">
			<strong>项目图标：</strong><br />
			图标存放在~/Images/ModelIcon/目录下
		</td>
		<td>
			<asp:TextBox ID="TxtItemIcon" class="l_input" Text="Default.gif" runat="server" Width="156" MaxLength="20" />
			<asp:Image ID="ImgItemIcon" runat="server" ImageUrl="~/Images/ModelIcon/Default.gif" />
			<=<asp:DropDownList ID="DrpItemIcon" runat="server" />
		</td>
	</tr>
	<tr class="tdbg" onmouseover="this.className='tdbgmouseover'" onmouseout="this.className='tdbg'">
		<td class="tdbgleft">
			<strong>模型描述：</strong>
		</td>
		<td>
			<asp:TextBox ID="TxtDescription" runat="server" class="l_input" TextMode="MultiLine" Width="365px" Height="77px" />
		</td>
	</tr>
    <tr class="tdbg" ID="RBLMultiFlag1" runat="server" visible="false">
      <td class="tdbgleft"><strong>是否多条记录：</strong></td>
      <td>
          <asp:RadioButtonList ID="RBLMultiFlag" runat="server" RepeatDirection="Horizontal" >
              <asp:ListItem Selected="True" Value="0">一个用户只能输入一条此模型信息</asp:ListItem>
              <asp:ListItem Value="1">一个用户可以输入多条此模型信息</asp:ListItem>
          </asp:RadioButtonList>
      </td>
    </tr>
	<tr class="tdbgbottom">
		<td colspan="2">
			<asp:HiddenField ID="HdnModelId" runat="server" />
			<asp:Button ID="EBtnSubmit"  Text="保 存" class="C_input"  OnClick="EBtnSubmit_Click" runat="server" />
			&nbsp;&nbsp;
			<input name="Cancel" type="button"  id="Cancel" class="C_input"  value="取 消" onclick="window.location.href='ModelManage.aspx?ModelType=<%=Request["ModelType"] %>';" />
		</td>
	</tr>
</table>
<script type="text/javascript">
function ChangeImgItemIcon(icon)
{
	document.getElementById("<%= ImgItemIcon.ClientID %>").src = "../../Images/ModelIcon/"+icon;
}
function ChangeTxtItemIcon(icon)
{
	document.getElementById("<%= TxtItemIcon.ClientID %>").value = icon;
}
</script>
</form>
</body>
</html>