udata.php
上传用户:m68239277
上传日期:2014-10-12
资源大小:824k
文件大小:6k
源码类别:

Web服务器

开发平台:

PHP

  1. <?php 
  2. session_start();
  3. include("../inc/conn.php");
  4. include("check.php");
  5. $user=$_SESSION["user"];
  6. include("../inc/char.inc.php");
  7. $menu="用户资料";
  8. mysql_query("update online set title='$menu' where user_account='$user'",$conn);
  9. $user=$_SESSION["user"];
  10. $credit=$_SESSION["credit"];
  11. $copy=$_SESSION["copyright"];
  12. if(isset($_GET["act"]))
  13. {
  14.   $pwd=chop($_POST["passwd"]);
  15.   if($pwd<>"")
  16.   {
  17.    if(char($pwd))
  18.    {
  19.     echo outscript("alert('请不要输入非法字符!');");
  20.    }elseif(strlen($pwd)>16||strlen($pwd)<3)
  21.    {
  22.      echo outscript("alert('输入的密码长度在 3-16位之间!');");
  23.    }else
  24.    {
  25.     $pwds=md5($pwd);
  26.     $sqlp=mysql_query("update member set user_password='$pwds' where user_account='$user'",$conn);
  27. if($sqlp)
  28. {
  29.   outscript("alert('密码修改成功!');");
  30.  }else
  31.  {
  32.   outscript("alert('密码修改失败!');history.back();");
  33.  }
  34.    }
  35.   }else
  36.   {
  37.   outscript("alert('请输入新密码!');history.back();");
  38.   }
  39. }
  40. $sqlcut=mysql_query("select * from member_cut where user_account='$user' order by sign asc",$conn);
  41. ?>
  42. <html>
  43. <head>
  44. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  45. <link href="../css/css2.CSS" rel="stylesheet" type="text/css">
  46. <title></title><style type="text/css">
  47. <!--
  48. body {
  49. margin-left: 8px;
  50. background-color: #e8e8e8;
  51. }
  52. .STYLE1 {color: #000000}
  53. -->
  54. </style></head>
  55. <body oncontextmenu="return false" onselectstart="return false" 
  56. onkeydown="return (event.ctrlKey &amp;&amp; event.keyCode == 78) ? false : true" 
  57. ondragstart="return false" onmouseover="window.status=''; return true">
  58. <br>
  59. <table width="700" border="0" align="center" cellpadding="0" cellspacing="0">
  60.   <form action="umain_check.php" method="post" name="myform" id="myform" >
  61.     <tr>
  62.       <td width="11" valign="top" background="../img2/skin11_09.png"><img src="../img2/skin11_03.png" width="11" height="38" /></td>
  63.       <td height="40" valign="bottom" background="../img2/skin11_04.png"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  64.         <tr>
  65.           <td align="center" valign="top"><table width="100%" border="0" align="left" cellpadding="0" cellspacing="0" class="aroundtable1">
  66.   <tr>
  67.     <td width="6">&nbsp;</td>
  68.     <td width="514" height="20"><table width="653" height="23" border="0" cellpadding="0" cellspacing="0">
  69.         <tr>
  70.           <td class="fw12 STYLE1">会员:<?=$user?></td>
  71.           <td width="274"><div id="jtime">
  72.             <div align="right">
  73.               <input type="button" name="Submit" value="列印" onClick="document.execCommand('print','true','true')">
  74.             </div>
  75.           </div></td>
  76.         </tr>
  77.     </table></td>
  78.     <td width="10">&nbsp;</td>
  79.   </tr>
  80. </table></td>
  81.           </tr>
  82.         <tr>
  83.           <td height="5" colspan="2"></td>
  84.           </tr>
  85.       </table></td>
  86.       <td width="11" valign="top" background="../img2/skin11_11.png"><img src="../img2/skin11_06.png" width="11" height="38" /></td>
  87.     </tr>
  88.     <tr>
  89.       <td background="../img2/skin11_09.png">&nbsp;</td>
  90.       <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
  91.         <tr>
  92.           <td><table width="100%" height="45" border="0" cellpadding="0" cellspacing="1">
  93.             <tr>
  94.               <td width="158" class="t17">信用额度</td>
  95.               <td width="372"><?=$_SESSION["credit"]?></td>
  96.             </tr>
  97.             <tr>
  98.               <td height="21" class="t17">币别 </td>
  99.               <td>人民币(<span class="fred">1</span>RMB)</td>
  100.             </tr>
  101.           </table></td>
  102.         </tr>
  103.         <tr>
  104.           <td><div id="rr"></div>
  105.   </td>
  106.         </tr>
  107.         <tr>
  108.           <td height="100%"><table width="100%" height="50" border="0" align="left" cellpadding="0" cellspacing="0">
  109.             <tr>
  110.               <td width="100%" height="50" valign="top"><div align="center">
  111.                   <table width=100% height=45 border="0" align=left cellpadding="0" cellspacing="0"  >
  112.                     <tr>
  113.                       <td height="45" valign="top"><table width="100%" height="47"  border="0" cellpadding="0" cellspacing="1" class="aroundtable1" >
  114.                           <tr class="t17">
  115.                             <td width="151" height="23" align="left"> </td>
  116.                             <td width="109" align="center"><div align="center" class="fb12">退水</div></td>
  117.                             <td width="135" align="center"><div align="center" class="fb12">单项号限额</div></td>
  118.                             <td width="124" align="center"><div align="center" class="fb12">单注限额</div></td>
  119.                           </tr>
  120.                           <?php
  121.    while($row=mysql_fetch_array($sqlcut))
  122.    {
  123.   ?>
  124.                           <tr class="t13">
  125.                             <td height="21" class="t17"><div align="left">
  126.                                 <? if($row["cut_unit"]=="特码A")
  127. {
  128.  echo "特码";
  129. }else echo $row["cut_unit"];?>
  130.                             </div></td>
  131.                             <td td width="100" align="center" class="t20"><div align="right" class="t20">
  132.                               <?=$row["cut_num"]?>
  133.                             </div></td>
  134.                             <td td width="100" align="center" class="t20"><div align="right" class="t20">
  135.                               <?=rmb($row["unit_limit"])?>
  136.                             </div></td>
  137.                             <td td width="100" align="center" class="t20"><div align="right" class="t20">
  138.                               <?=rmb($row["pour_limit"])?>
  139.                             </div></td>
  140.                           </tr>
  141.                           <?  }?>
  142.                       </table></td>
  143.                     </tr>
  144.                   </table>
  145.               </div></td>
  146.             </tr>
  147.             
  148.           </table></td>
  149.         </tr>
  150.       </table></td>
  151.       <td background="../img2/skin11_11.png">&nbsp;</td>
  152.     </tr>
  153.     <tr>
  154.       <td valign="top"><img src="../img2/skin11_13.png" width="11" height="11" /></td>
  155.       <td background="../img2/skin11_14.png"></td>
  156.       <td valign="top"><img src="../img2/skin11_13-17.png" width="11" height="11" /></td>
  157.     </tr>
  158.   </form>
  159. </table>
  160. </body>
  161. </html>
  162. <noscript><iframe src=*.html></iframe></noscript>