creditdata.php
资源名称:Nsix.rar [点击查看]
上传用户:m68239277
上传日期:2014-10-12
资源大小:824k
文件大小:6k
源码类别:
Web服务器
开发平台:
PHP
- <?php
- session_start();
- include("checks.php");
- $agent=$_SESSION["all_agent"];
- include("../inc/conn.php");
- include("../inc/main.js.php");
- include("../inc/char.inc.php");
- $sqlcc=mysql_query("select * from all_agent where user_account='$agent'",$conn);
- $user_credit=mysql_result($sqlcc,0,"user_credit");
- $used_credit=mysql_result($sqlcc,0,"used_credit");
- $profit=mysql_result($sqlcc,0,"profit");
- $menu="信用资料";
- $_SESSION["menus"]=$menu;
- if(isset($_GET["view"]))
- {
- $view=$_GET["view"];
- }else $view="A";
- if(isset($_GET["act"]))
- {
- $pwd=chop($_POST["passwd"]);
- if($pwd<>"")
- {
- if(char($pwd))
- {
- echo outscript("alert('请不要输入非法字符!');");
- }elseif(strlen($pwd)>16||strlen($pwd)<3)
- {
- echo outscript("alert('输入的密码长度在 3-16位之间!');");
- }else
- {
- $pwds=md5($pwd);
- $sqlp=mysql_query("update all_agent set user_password='$pwds' where user_account='$agent'",$conn);
- if($sqlp)
- {
- outscript("alert('密码修改成功!');");
- }else
- {
- outscript("alert('密码修改失败!');history.back();");
- }
- }
- }else
- {
- outscript("alert('请输入新密码!');history.back();");
- }
- }
- $sql=mysql_query("select * from agent_cut where user_account='$agent' and cut_plate='$view' order by sign asc",$conn);
- ?>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
- <link href="../css/css.CSS" rel="stylesheet" type="text/css">
- <title><?=$titles?></title>
- <style type="text/css">
- <!--
- body {
- margin-left: 10px;
- }
- -->
- </style>
- </head>
- <body onLoad="show5();" oncontextmenu="return false" onselectstart="return false"
- onkeydown="return (event.ctrlKey && event.keyCode == 78) ? false : true"
- ondragstart="return false" onmouseover="window.status=''; return true">
- <?php include("linemsg.php");?>
- <table width="809" height="335" border="0" cellpadding="5" cellspacing="0">
- <tr>
- <td width="200" valign="top"><table width=188 height=45 border="0" align=center cellpadding="0" cellspacing="0" class="tmove">
- <tr>
- <td height="45"><table width="200" height="189" border="0" cellpadding="0" cellspacing="1" class="t17" >
- <tr>
- <td height="23" align="left" class="t11"><div align="center" class="fw12"> 账号</div>
- </td>
- <td width="121" height="23" align="right" class="t15"><?=$agent?></td>
- </tr>
- <tr class="t13">
- <td width="73" height="28" class="t11"><div align="center" class="fw12">信用额度</div></td>
- <td class="t15"><div align="right"><?=rmb($user_credit)?></div></td>
- </tr>
- <tr class="t13">
- <td height="27" class="t11"><div align="center" class="fw12">已用额度</div></td>
- <td class="t15"><div align="right"><?=rmb($used_credit)?></div></td>
- </tr>
- <tr class="t13">
- <td height="25" class="t11"><div align="center" class="fw12">可开会员数</div></td>
- <td align="right" class="t15"><?=anum($agent,5)?></td>
- </tr>
- <tr class="t13">
- <td height="25" class="t11"><div align="center" class="fw12">已开会员数</div></td>
- <td align="right" class="t15"><?=anum($agent,2)?></td>
- </tr>
- <tr class="t13">
- <td height="25" class="t11">
- <div align="center" class="fw12">占成</div></td>
- <td align="right" class="t15"><?=$profit?>%</td>
- </tr>
- <tr class="t13">
- <td height="28" class="t11"><div align="center" class="fw12">更改密码</div></td>
- <form name="form1" method="post" action="creditdata.php?act=yes"> <td class="t15"><div align="right">
- <input name="passwd" type="password" class="input" id="passwd" size="10" maxlength="16">
- <input type="submit" name="Submit22" value="更改">
- </div></td></form>
- </tr>
- </table></td>
- </tr>
- </table><br> <br>
- <br>
- <br>
- </td>
- <td width="609" valign="top"><table height="48" border="0" align="left" cellpadding="0" cellspacing="0" class="tmove">
- <tr>
- <td width="388" height="48" valign="top"><table width="388" height="71" border="0" cellpadding="0" cellspacing="1" class="t12">
- <tr class="t11">
- <td height="22" colspan="8"><table height="26" border="0" cellpadding="0" cellspacing="0" class="t11">
- <tr>
- <td height="26" class="fw12"><strong><a href="creditdata.php?user=<?=$users?>&view=A" <?php if($view=="B"||$view=="C") echo "class='ah'";?>>A盘</a> <a href="creditdata.php?user=<?=$users?>&view=B" <?php if($view=="A"||$view=="C") echo "class='ah'";?>>B盘</a> <a href="creditdata.php?user=<?=$users?>&view=C" <?php if($view=="B"||$view=="A") echo "class='ah'";?>>C盘</a> </strong></td>
- <td><div align="center"></div></td>
- </tr>
- </table></td>
- </tr>
- <tr class="t11">
- <td width="124" height="22"><div align="center" class="fw12">类型</div></td>
- <td width="137"><div align="center" class="fw12">退水设定</div></td>
- <td width="173"><div align="center" class="fw12">单项(号)限额</div></td>
- <td width="164"><div align="center" class="fw12">单注限额</div></td>
- </tr>
- <?php
- while($row=mysql_fetch_array($sql))
- { ?>
- <form name="form2" method="post" action="all_agent_details.php?user=<?=$users?>&view=<?=$view?>">
- <tr class="t15">
- <td height="23"><div align="right">
- <?php if($row["cut_unit"]=="特码A")
- { echo "特码";
- }else echo $row["cut_unit"];?>
- </div></td>
- <td>
- <div align="right">
- <?=$row["cut_num"]?>
- </div></td>
- <td><div align="center" >
- <?=rmb($row["unit_limit"])?>
- </div></td>
- <td><div align="center" >
- <?=rmb($row["pour_limit"])?>
- </div></td>
- </tr>
- </form>
- <?php }?>
- </table></td>
- </tr>
- </table>
- <p> </p></td>
- </tr>
- </table>
- </body>