<%@language=vbscript codepage=936 %>

<!--#include file="inc/conn_user.asp"-->

<html>
<head>
<title>模版管理</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" type="text/css" href="Admin_Style.css">

<style type="text/css">
<!--
body {	background-color: #FFFFFF;
	margin-right: 8px;
	margin-bottom: 8px;
	margin-left: 8px;
	margin-top: 0px;
}
-->
</style>


</head>
<body leftmargin="2" topmargin="0" marginwidth="0" marginheight="0">
<SCRIPT language=JavaScript type=text/JavaScript>

function checkform(frm){
		if (frm.bgname.value == ""){
		window.alert("对不起,所有栏目为必填，谢谢！");
		frm.bgname.focus();
		return false;
	}
		if (frm.bgintor.value == ""){
		window.alert("对不起,所有栏目为必填，谢谢");
		frm.bgintor.focus();
		return false;
	}
		if (frm.point.value == ""){
		window.alert("对不起,所有栏目为必填，谢谢");
		frm.point.focus();
		return false;
	}
		}
</SCRIPT>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="1" bgcolor="#D6D5D9"></td>
    <td height="34" align=left bgcolor="#F8F8F9"><table width="100%">
      <tr>
        <td width="80"><strong>&nbsp;&nbsp;管理导航：</strong></td>
        <td><a href="Admin_mobanadd.asp">添加新模版</a> &nbsp;<a href="Admin_moban.asp">所有模版</a></td>
      </tr>
    </table></td>
    <td width="1" bgcolor="#D6D5D9"></td>
  </tr>
  <tr>
    <td width="1" bgcolor="#F8F8F9"></td>
    <td height="1" bgcolor="#D6D5D9" ></td>
    <td width="1" bgcolor="#F8F8F9"></td>
  </tr>
</table>
<table width="100%" height="8" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td>&nbsp;</td>
  </tr>
</table>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="1" bgcolor="#F8F8F9"></td>
    <td height="1" bgcolor="#D6D5D9" ></td>
    <td width="1" bgcolor="#F8F8F9"></td>
  </tr>
  <tr>
    <td width="1" bgcolor="#D6D5D9"></td>
    <td height="25" align=center bgcolor="#F8F8F9"><strong>模版添加</strong></td>
    <td width="1" bgcolor="#D6D5D9"></td>
  </tr>

</table>

<%
set rs=server.createobject("adodb.recordset")
rs.open "select * from bgs order by id desc ",conn_user,1,1
%>
<form name="add" method="post" action="admin_mobanadd1.asp"onsubmit="return checkform(this);" >

<table width="100%" border="0" cellpadding="6" cellspacing="1" bgcolor="#CCCCCC">
 <tr>
    <td width="8%" align="center" bgcolor="#FFFFFF">标题：</td>
    <td bgcolor="#FFFFFF"><input name="bgname" type="text" size="40"></td>
  </tr>
  <tr>
    <td align="center" bgcolor="#FFFFFF">简介：</td>
    <td bgcolor="#FFFFFF"><input name="bgintor" type="text" size="40"></td>
  </tr>
  <tr>
    <td align="center" bgcolor="#FFFFFF">地址：</td>
    <td bgcolor="#FFFFFF"><input name="bgpath" type="text" value="bg\*.gif" size="40">  <font color="#FF0000">*</font>
    将模版用FTP上传至BG下并重命名为 <strong><font color="#FF0000">"*.gif"</font></strong>  缩略图请上传至BG下并重命名为 <strong><font color="#FF0000">"*Ss.gif"</font></strong>  </td>
  </tr>
  <tr>
    <td align="center" bgcolor="#FFFFFF">所需点数：</td>
    <td bgcolor="#FFFFFF"><input name="point" type="text" size="40"></td>
  </tr>
  <tr>
    <td align="center" bgcolor="#FFFFFF">&nbsp;</td>
    <td bgcolor="#FFFFFF"><input type="submit" name="Submit" value="添加"></td>
  </tr>

</table>
</form>
</body>
</html>
