<%dbs="../"%>
<!--#include file="../inc/config.asp"-->
<!--#include file="uccook.asp"-->
<!--#include file="uc.asp"-->
<%
'判断 用户是否开通请客功能
if request("act")="add" then
H_card=Replace(Replace(Left(request.Form("H_card"),200),"<","["),">","]")
if H_card="" or IsNumeric(H_card)<>true then
response.Write "<script >alert('提示：\n\n对不起，请填写卡号！...');history.back(-1);</script>"
response.End()
end if
''开始写入数据
set rs=Server.CreateObject("Adodb.Recordset")
	sql="select * from H_card"
	rs.open sql,conn,1,3
	rs.addnew
	rs("H_card")=H_card
	rs("RDate")=now()
	rs("H_key")=0
	rs.update
	rs.close
	set rs=nothing	
	response.Write "<script >alert('提示：\n\n添加成功,立即返回...');location.href='card_master.asp';</script>"
	response.End()
	end if
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<HTML xmlns="http://www.w3.org/1999/xhtml">
<HEAD>
<title><%=W_title%>,会员中心</title>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<LINK href="style.css" type=text/css rel=stylesheet>
<SCRIPT language=javascript src="images/jquery.js" 
type=text/javascript></SCRIPT>

<SCRIPT language=javascript src="images/function.js" 
type=text/javascript></SCRIPT>

<SCRIPT language=javascript type=text/javascript>
<!--


/*
function AddnewType()
*/
-->
</SCRIPT>

<META content="MSHTML 6.00.3790.4426" name=GENERATOR>
</HEAD>
<BODY><!--用户中心头部-->
<!--#include file="top.asp"-->
<table width="960" border="0" cellpadding="0" cellspacing="0">
    <tr>
        <td width="150" valign="top"><!--#include file="left.asp"--></td>
        <td width="810" align="right" valign="top"><table width="800" border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td width="20" align="center"><img src="images/ico_4.gif" width="12" height="12"></td>
                <td height="30" align="left"><a href="index.asp" target="_self">用户中心</a> <span class="uc_huise">&gt; 添加打折卡</span></td>
            </tr>
            <tr>
                <td height="1" colspan="2" bgcolor="#EEEEEE"></td>
          </tr>
        </table>
            <table width="600" height="5" border="0" cellpadding="0" cellspacing="0">
                <tr>
                    <td></td>
                </tr>
            </table>
			<form name="form" action="card_add.asp?act=add" method="post"  target="_self">
            <table width="800" border="0" cellpadding="0" cellspacing="1" bgcolor="#EEEEEE">
    <tr>
        <td height="28" colspan="2" bgcolor="#FFFFFF" class="uc_huise">添加打折卡</td>
        </tr>
    <tr>
        <td height="28" bgcolor="#FFFFFF" class="uc_huise">添加打折卡号：</td>
        <td height="28" bgcolor="#FFFFFF" class="uc_huise"><input name="H_card" type="text" id="H_card" size="60">
          6位数字</td>
    </tr>
    <tr>
        <td height="28" colspan="2" align="center" bgcolor="#FFFFFF"><input name="Submit" type="submit" class="UCform" value="立即添加"></td>
        </tr>
</table>
	        
			</form>
		</td>
    </tr>
</table>
<!--#include file="end.asp"-->

</BODY></HTML>
