Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
drate_link_num.php
Package: Nsix.rar [view]
Upload User: m68239277
Upload Date: 2014-10-12
Package Size: 824k
Code Size: 2k
Category:
Web Server
Development Platform:
PHP
- <?php
- session_start();
- include("checks.php");
- include("../inc/conn.php");
- $_SESSION["menus"]="修改默认赔率";
- $sql=mysql_query("select * from dnum where sign='5' order by id asc",$conn);
- if(isset($_POST["id"]))
- { $id=$_POST["id"];
- $rate=chop($_POST["rate"]);
- if($rate<>"")
- {
- $ok=mysql_query("update dnum set rate='$rate' where ID='$id'",$conn);
- if($ok) echo " <font color='red'><strong>修改成功!</strong></font>";
- echo "<meta http-equiv='refresh' content='3;URL=drate_link_num.php?menu=5'>";
- }else
- {
- echo " <font color='red'><strong>请输入赔率!</strong></font>";
- }
- }
- ?>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
- <link href="../css/css.CSS" rel="stylesheet" type="text/css">
- <title></title>
- <style type="text/css">
- <!--
- body {
- margin-left: 10px;
- }
- -->
- </style></head>
- <body>
- <?php include("drate_menu.inc.php");?>
- <br>
- <br>
- <br>
- <table width="271" height="48" border="0" align="left" cellpadding="0" cellspacing="0" class="tmove">
- <tr>
- <td width="271" height="48" valign="top"><table width="271" height="48" border="0" cellpadding="0" cellspacing="1" class="t12">
- <tr class="t11">
- <td width="72" height="22"><div align="center" class="fw12">类型</div></td>
- <td width="80"><div align="center" class="fw12">当前赔率</div></td>
- <td width="115"><div align="center" class="fw12">修改赔率</div></td>
- </tr>
- <?php
- while($row=mysql_fetch_array($sql))
- {
- ?> <form name="form2" method="post" action="drate_link_num.php?menu=5">
- <tr class="t17">
- <td height="23"><div align="center"><strong><?=$row["tp"]?></strong></div></td>
- <td><div align="center"> <span class="fbred">
- <?=$row["rate"]?>
- </span>
- <input name="id" type="hidden" id="id2" value="<?=$row["ID"]?>">
- </div></td>
- <td><div align="center" class="fbred">
- <input name="rate" type="text" class="input" id="rate_num2" size="5" ONKEYPRESS="event.returnValue=Isnum();">
- <input type="submit" name="Submit" value="修改">
- </div></td>
- </tr></form><? }?>
- </table></td>
- </tr>
- </table>
- </body>
- </html>