📄 mo_templatecontent_add.aspx
字号:
<%@ Page Language="C#" ValidateRequest="false" AutoEventWireup="true" CodeBehind="Mo_TemplateContent_Add.aspx.cs"
Inherits="YXShop.Web.Admin.Templates.Mo_TemplateContent_Add" %>
<!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">
<title>添加模板</title> <link href="../images/StyleAdmin.css" type="text/css" rel="stylesheet" />
<style type="text/css">
.submitMiniGreen
{
border-top-width: 0px;
padding-right: 5px;
padding-left: 5px;
border-left-width: 0px;
font-size: 12px;
background: url(../images/botton01.png) #83bbd9 repeat-x;
border-bottom-width: 0px;
padding-bottom: 0px;
width: 78px;
cursor: pointer;
color: #1e5494;
padding-top: 0px;
height: 26px;
border-right-width: 0px;
}
</style>
<script src="../../js/prototype.js" type="text/javascript"></script>
<script src="ChannelAndType.js" type="text/javascript"></script>
<script type='text/javascript'>
function window.onload()
{channel(0);typeName($F('channel'),0); }
</script>
<script type="text/javascript">
function check()
{
if($F("MO_Name").replace(/\s+/g,"")==0)
{
alert("请输入模板名称!");
$("MO_Name").focus();
return false;
}
if($F("channel").replace(/\s+/g,"")==0)
{
alert("请选择频道!");
$("channel").focus();
return false;
}
if($F("type").replace(/\s+/g,"")==0)
{
alert("请选择类型!");
$("type").focus();
return false;
}
if($F("templateContent").replace(/\s+/g,"")==0)
{
alert("请输入模板内容!");
$("templateContent").focus();
return false;
}
}
</script>
</head>
<body>
<form id="form1" runat="server" onsubmit="return check();">
<div>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="30" bgcolor="#DFEEFD">
<span lang="zh-cn"> <font color="#135294"><b>添加模板</b> </font> [<a href="Mo_Manage.aspx">系统模板方案管理</a>]
</span>
</td>
</tr>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="5" bgcolor="#DFEEFD">
</td>
<td height="100" valign="top">
<table border="0" cellpadding="0" cellspacing="0" width="100%" align="center" style="border: solid 1px #78B9E6">
<tr>
<td colspan="2" align="center">
<asp:Label ID="msg" runat="server" Text=""></asp:Label>
</td>
</tr>
<tr class="Tr" height="25">
<td width="20%">
模板名称:
</td>
<td>
<asp:TextBox ID="MO_Name" runat="server" MaxLength="25"></asp:TextBox>
</td>
</tr>
<tr>
<td height="1" bgcolor="#b3cde3" colspan="2">
</td>
</tr>
<tr class="Tr" height="25">
<td width="20%">
选择方案 :
</td>
<td>
<asp:DropDownList ID="TP_List" runat="server">
</asp:DropDownList>
<asp:Label ID="msgkind" runat="server" Text=""></asp:Label>
</td>
</tr>
<tr>
<td height="1" bgcolor="#b3cde3" colspan="2">
</td>
</tr>
<tr class="Tr" height="25">
<td width="20%">
选择频道 :
</td>
<td>
<select id='channel' name='channel' onchange="typeName($('channel').options[$('channel').selectedIndex].value,0); ">
<option value='0'>请选择</option>
</select>
</td>
</tr>
<tr>
<td height="1" bgcolor="#b3cde3" colspan="2">
</td>
</tr>
<tr class="Tr" height="25">
<td width="20%">
选择类型 :
</td>
<td>
<select name='type' id='type'>
</select>
</td>
</tr>
<tr>
<td height="1" bgcolor="#b3cde3" colspan="2">
</td>
</tr>
<tr>
<td colspan="2" height="25" bgcolor="#f7f7f7">
模板内容↓
</td>
</tr>
<tr>
<td height="1" bgcolor="#b3cde3" colspan="2">
</td>
</tr>
<tr height="25">
<td colspan="2" align="center">
<asp:TextBox ID="templateContent" runat="server" Height="240px" Width="621px"
TextMode="MultiLine"></asp:TextBox>
</td>
</tr>
<tr>
<td height="1" bgcolor="#b3cde3" colspan="2">
</td>
</tr>
<tr class="Tr" height="25">
<td width="20%">
是否默认 :
</td>
<td>
<asp:CheckBox ID="isDefault" runat="server" />是<font color="gray">(设置为该频道的该类型的默认使用模板页)</font>
</td>
</tr>
<tr>
<td height="1" bgcolor="#b3cde3" colspan="2">
</td>
</tr>
<tr>
<td height="15" bgcolor="#ffffff" colspan="2">
</td>
</tr>
<tr>
<td height="1" bgcolor="#b3cde3" colspan="2">
</td>
</tr>
<tr>
<td colspan="2" align="center" height="55">
<asp:Label ID="msgbtn" runat="server" Text=""></asp:Label>
<asp:Button ID="AddBtn" runat="server" Text="确定添加" class="submitMiniGreen" OnClick="AddBtn_Click" /> <asp:Button
ID="viewBtn" runat="server" Text="预览该模板" class="submitMiniGreen"
OnClick="viewBtn_Click" Visible="False" />
</td>
</tr>
</table>
</td>
<td width="5" bgcolor="#DFEEFD">
</td>
</tr>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="8" bgcolor="#DFEEFD">
</td>
</tr>
</table>
</div>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -