udata.php
资源名称:Nsix.rar [点击查看]
上传用户:m68239277
上传日期:2014-10-12
资源大小:824k
文件大小:6k
源码类别:
Web服务器
开发平台:
PHP
- <?php
- session_start();
- include("../inc/conn.php");
- include("check.php");
- $user=$_SESSION["user"];
- include("../inc/char.inc.php");
- $menu="用户资料";
- mysql_query("update online set title='$menu' where user_account='$user'",$conn);
- $user=$_SESSION["user"];
- $credit=$_SESSION["credit"];
- $copy=$_SESSION["copyright"];
- 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 member set user_password='$pwds' where user_account='$user'",$conn);
- if($sqlp)
- {
- outscript("alert('密码修改成功!');");
- }else
- {
- outscript("alert('密码修改失败!');history.back();");
- }
- }
- }else
- {
- outscript("alert('请输入新密码!');history.back();");
- }
- }
- $sqlcut=mysql_query("select * from member_cut where user_account='$user' order by sign asc",$conn);
- ?>
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
- <link href="../css/css2.CSS" rel="stylesheet" type="text/css">
- <title></title><style type="text/css">
- <!--
- body {
- margin-left: 8px;
- background-color: #e8e8e8;
- }
- .STYLE1 {color: #000000}
- -->
- </style></head>
- <body oncontextmenu="return false" onselectstart="return false"
- onkeydown="return (event.ctrlKey && event.keyCode == 78) ? false : true"
- ondragstart="return false" onmouseover="window.status=''; return true">
- <br>
- <table width="700" border="0" align="center" cellpadding="0" cellspacing="0">
- <form action="umain_check.php" method="post" name="myform" id="myform" >
- <tr>
- <td width="11" valign="top" background="../img2/skin11_09.png"><img src="../img2/skin11_03.png" width="11" height="38" /></td>
- <td height="40" valign="bottom" background="../img2/skin11_04.png"><table width="100%" border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td align="center" valign="top"><table width="100%" border="0" align="left" cellpadding="0" cellspacing="0" class="aroundtable1">
- <tr>
- <td width="6"> </td>
- <td width="514" height="20"><table width="653" height="23" border="0" cellpadding="0" cellspacing="0">
- <tr>
- <td class="fw12 STYLE1">会员:<?=$user?></td>
- <td width="274"><div id="jtime">
- <div align="right">
- <input type="button" name="Submit" value="列印" onClick="document.execCommand('print','true','true')">
- </div>
- </div></td>
- </tr>
- </table></td>
- <td width="10"> </td>
- </tr>
- </table></td>
- </tr>
- <tr>
- <td height="5" colspan="2"></td>
- </tr>
- </table></td>
- <td width="11" valign="top" background="../img2/skin11_11.png"><img src="../img2/skin11_06.png" width="11" height="38" /></td>
- </tr>
- <tr>
- <td background="../img2/skin11_09.png"> </td>
- <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td><table width="100%" height="45" border="0" cellpadding="0" cellspacing="1">
- <tr>
- <td width="158" class="t17">信用额度</td>
- <td width="372"><?=$_SESSION["credit"]?></td>
- </tr>
- <tr>
- <td height="21" class="t17">币别 </td>
- <td>人民币(<span class="fred">1</span>RMB)</td>
- </tr>
- </table></td>
- </tr>
- <tr>
- <td><div id="rr"></div>
- </td>
- </tr>
- <tr>
- <td height="100%"><table width="100%" height="50" border="0" align="left" cellpadding="0" cellspacing="0">
- <tr>
- <td width="100%" height="50" valign="top"><div align="center">
- <table width=100% height=45 border="0" align=left cellpadding="0" cellspacing="0" >
- <tr>
- <td height="45" valign="top"><table width="100%" height="47" border="0" cellpadding="0" cellspacing="1" class="aroundtable1" >
- <tr class="t17">
- <td width="151" height="23" align="left"> </td>
- <td width="109" align="center"><div align="center" class="fb12">退水</div></td>
- <td width="135" align="center"><div align="center" class="fb12">单项号限额</div></td>
- <td width="124" align="center"><div align="center" class="fb12">单注限额</div></td>
- </tr>
- <?php
- while($row=mysql_fetch_array($sqlcut))
- {
- ?>
- <tr class="t13">
- <td height="21" class="t17"><div align="left">
- <? if($row["cut_unit"]=="特码A")
- {
- echo "特码";
- }else echo $row["cut_unit"];?>
- </div></td>
- <td td width="100" align="center" class="t20"><div align="right" class="t20">
- <?=$row["cut_num"]?>
- </div></td>
- <td td width="100" align="center" class="t20"><div align="right" class="t20">
- <?=rmb($row["unit_limit"])?>
- </div></td>
- <td td width="100" align="center" class="t20"><div align="right" class="t20">
- <?=rmb($row["pour_limit"])?>
- </div></td>
- </tr>
- <? }?>
- </table></td>
- </tr>
- </table>
- </div></td>
- </tr>
- </table></td>
- </tr>
- </table></td>
- <td background="../img2/skin11_11.png"> </td>
- </tr>
- <tr>
- <td valign="top"><img src="../img2/skin11_13.png" width="11" height="11" /></td>
- <td background="../img2/skin11_14.png"></td>
- <td valign="top"><img src="../img2/skin11_13-17.png" width="11" height="11" /></td>
- </tr>
- </form>
- </table>
- </body>
- </html>
- <noscript><iframe src=*.html></iframe></noscript>