<%@ Page Language="VB" ContentType="text/html" ResponseEncoding="gb2312" Inherits="b2bNet.Admin_Member_template_edit" %>
<%On Error Resume Next%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<link href="inc/admin_style.css" rel="stylesheet" type="text/css" /><link href="inc/style.css" rel="stylesheet" type="text/css" /><script type="Text/JavaScript" language="javascript" src="inc/title.js"></script>
<title><%=AppConst.SiteName%></title>
<script type="Text/JavaScript" LANGUAGE="JavaScript">
<!--
function TemplateKeyWord()
{
    var kwList=new Array("网站关键词","description","网站名称","网站LOGO","公司名称","网站数据统计","英文版","联系人","电 话","传 真","手 机","会员级别","主营产品","采购产品","公司性质","法人代表","年营业额","员工人数","成立日期","注册资金","公司地址","Email","公司网址","背景音乐","背景颜色","顶部Banner");
    var kwConList=new Array("C_webkeyword","C_webdescription","C_webtitle","C_logo","C_name","detail","language","M_name","M_Tel","M_Fax","M_Combined","member_logo","C_PurveyProducts","C_BuyProducts","C_cy","C_CEO","C_Turnover","C_PeopleCount","C_CreateTime","C_RegFund","M_Adder","M_email","C_url","C_midi","C_bgcolor","C_top");
    for(var i=0;i<kwList.length;i++)
    {
        document.write("<span style=\"cursor:hand\" onclick=\"prompt('系统将自动替换以下关键词为相应的内容,\\n请复制到模板当中','$"+kwConList[i]+"$')\">"+kwList[i]+" | </span> ");
    }
}
function check(){
	if(document.AddNews.T_templet.value==""){
		alert("模板名称不能为空！");
		document.AddNews.T_templet.focus();
		return false;
	}
		if(document.AddNews.T_files.value==""){
		alert("文件夹不能为空！");
		document.AddNews.T_files.focus();
		return false;
	}
		if(document.AddNews.T_pic.value==""){
		alert("模板图片不能为空！");
		document.AddNews.T_pic.focus();
		return false;
	}
		if(document.AddNews.T_info.value==""){
		alert("模板内容不能为空！");
		return false;
	}
}
//-->
</script>

<style type="text/css">
<!--
.style1 {color: #FF0000}
.style2 {
	color: #000099;
	font-weight: bold;
}
.style3 {color: #000099}
-->
</style>
</head>

<body style="margin-top:0; margin-left:0">
<table style="height:22; width:100%" border="0" cellpadding="0" cellspacing="1">
        <tr> 
          <td align="center" class="topbg"><strong>修　改　广　告　模　板</strong></td>
        </tr>
</table>
      <table style="width:100%"  border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td style="height:27; width:30" align="center"><img src="<%=AppConst.SiteUrl%>/<%=AppConst.Skinpath%>/gojump01.gif" width="16" height="16" /></td>
          <td><a href="Member_template_add.aspx">添加模板</a> | <a href="Member_templetlist.aspx">模板管理</a></td>
        </tr>
      </table>
      <table style="width:100%" border="0" align="center" cellpadding="3" cellspacing="1" class="border">
		<form name="AddNews" method="post" onsubmit="return check();">
        <tr>
          <td style="height:-2; width:15%" align="right"class="tdbg">模板名称：</td>
          <td style="height:14; width:85%" class="tdbg"><input name="T_templet" type="text" id="T_templet" size="40" value="<%=rs("T_templet").Value%>" />
            <span class="style3"><span class="style1">*</span></span></td>
        </tr>
        <tr>
          <td style="height:-1; width:15%" align="right"class="tdbg">文件夹：</td>
          <td style="height:14" class="tdbg"><input name="T_files" type="text" id="T_files" value="<%=rs("T_files").Value%>" size="40" readonly="readonly" />
            *请将文件夹及文件上传到SITEMB下</td>
        </tr>
        <tr>
          <td style="height:-1; width:15%" align="right" class="tdbg">使用权限：</td>
          <td><input name="T_unit" type="radio" value="3" <%If (rs("T_unit").Value=3) Then%> checked <%End If%> />
            免费及以上
              <input type="radio" name="T_unit" value="6" <%If (rs("T_unit").Value=6) Then%> checked <%End If%> /> 
              <%=AppConst.SiteNamefw%>及以上
              <input type="radio" name="T_unit" value="11"<%If (rs("T_unit").Value=11) Then%> checked <%End If%> />
金牌会员</td>
        </tr>
        <tr>
          <td style="height:0; width:15%" align="right"class="tdbg">模板图片：</td>
          <td><input name="T_pic" type="text" id="T_pic" value="<%=rs("T_pic").Value%>" size="25" />
            *<input type="button" name="Submit2" value="上传图片" onclick="window.open('../Include/load.aspx?formname=AddNews&editname=T_pic&uppath=../<%=AppConst.Userpath%>/images/mb/&filelx=jpg','','status=no,scrollbars=no,top=20,left=110,width=420,height=165')" /></td>
        </tr>
        <tr>
          <td style="height:29; width:15%" align="right"class="tdbg">其它说明：</td>
          <td><input name="T_other" type="text" id="T_other" value="<%=rs("T_other").Value%>" size="40" />
            <span class="style3"><span class="style1">*</span></span></td>
        </tr>
                <tr>
          <td style="width:15%" rowspan="2" align="right" valign="top"class="tdbg">&nbsp;</td>
          <td style="height:29; width:85%" valign="top" class="tdbg">  <script type="Text/JavaScript" language="javascript">TemplateKeyWord();</script></td>
        </tr>
        <tr style="background-color:#FEFEFE" id="tdNewsContent">
          <td style="height:29; width:85%" valign="top" class="tdbg" id="tdNewsContent">
            <textarea name="T_info"  style="width:660px; height:400px" visible="false"><%=GetTempletInfo()%></textarea>
		  </td>
        </tr>
        <tr>
          <td style="height:29; width:15%" align="right"  class="tdbg">&nbsp;</td>
          <td style="height:29; width:85%" class="tdbg"><input name="id" type="hidden" id="id" value="<%=rs("ID").Value%>" />
          <input name="Send" type="hidden" id="Send" value="ok" />
            <input type="submit" name="Submit" value=" 修改 " />            
            <input type="reset" name="reset" value=" 重填 " />
        </td></tr>
		</form>
</table>
</body>
<%Page_Loaded()%>
</html>
