<?php
require("../../class/connect.php");
include("../../class/config.php");
include("../../class/db_sql.php");
include("../../class/q_functions.php");
include("../../class/user.php");
$link=db_connect();
$empire=new mysqlquery();
$editor=1;
//是否登陆
$user=islogin();
$url="<a href=../../../>首页</a>&nbsp;>&nbsp;<a href=../cp>控制面板</a>&nbsp;>&nbsp;点卡冲值";
@include("../../data/template/cp_1.php");
?>
<script>
function GetFen1()
{
var ok;
ok=confirm("确认要冲值?");
if(ok)
{
document.GetFen.Submit.disabled=true
return true;
}
else
{return false;}
}
</script>
<br>
<table width="60%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder">
  <form name=GetFen method=post action=../../enews/index.php onsubmit="return GetFen1();">
    <input type=hidden name=enews value=CardGetFen>
    <tr class="header"> 
      <td height="25" colspan="2"><div align="center">点卡冲值</div></td>
    </tr>
    <tr bordercolor="#FFFFFF" bgcolor="#FFFFFF"> 
      <td width="34%" height="25"> 
        <div align="right">冲值的用户名：</div></td>
      <td width="66%" height="25"> 
        <input name="username" type="text" id="username" value="<?=$user[username]?>"> 
        *</td>
    </tr>
    <tr bordercolor="#FFFFFF" bgcolor="#FFFFFF"> 
      <td height="25"> 
        <div align="right">重复用户名：</div></td>
      <td height="25"> 
        <input name="reusername" type="text" id="reusername" value="<?=$user[username]?>"> 
        *</td>
    </tr>
    <tr bordercolor="#FFFFFF" bgcolor="#FFFFFF"> 
      <td height="25"> 
        <div align="right">冲值卡号：</div></td>
      <td height="25"> 
        <input name="card_no" type="text" id="card_no">
        *</td>
    </tr>
    <tr bordercolor="#FFFFFF" bgcolor="#FFFFFF"> 
      <td height="25"> 
        <div align="right">冲值卡密码：</div></td>
      <td height="25"> 
        <input name="password" type="password" id="password">
        *</td>
    </tr>
    <tr bordercolor="#FFFFFF" bgcolor="#FFFFFF"> 
      <td height="25" colspan="2"> 
        <div align="center"> 
          <input type="submit" name="Submit" value="开始冲值">
          &nbsp; 
          <input type="reset" name="Submit2" value="重置">
        </div></td>
    </tr>
    <tr bordercolor="#FFFFFF" bgcolor="#FFFFFF"> 
      <td height="25" colspan="2"> 
        <div align="center">说明：带*的为必填项。</div></td>
    </tr>
  </form>
</table>
<br>
<?
db_close();
$empire=null;
@include("../../data/template/cp_2.php");
?>
