📄 edit.php
字号:
<?
include "../check.php"
?>
<?
include "../sql.php"
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
<script language="JavaScript">
function x(obj){
var xxx=false;
if(Juge(obj)){
if(numericCheck()){
xxx=true;
}
}
return xxx;
}
function numericCheck(){
var x=true;
var nr1=document.form1.yhlsh.value;
var flg=0;
var str="";
var spc=""
var arw="";
for (var i=0;i<nr1.length;i++){
cmp="0123456789"
tst=nr1.substring(i,i+1)
if (cmp.indexOf(tst)<0){
flg++;
str+=" "+tst;
spc+=tst;
arw+="^";
}
else{arw+="_";}
}
if (flg!=0){
if (spc.indexOf(" ")>-1) {
str+="和空格";
}
alert("请正确填写用户流水号!");
+str;
form1.yhlsh.focus();
x=false;
}
return x;
}
function Juge(theForm)
{
if ((theForm.yhm.value =="") && (theForm.yhlsh.value =="") && (theForm.yhdz.value =="") && (theForm.gldz.value ==""))
{
alert("请至少填写一项内容!");
theForm.yhm.focus();
return false;
}else{
return true;
}
}
</script>
</head>
<body>
<p> </p>
<p align="center">查询要修改的用户</p>
<form name="form1" method="post" action="editb.php" onsubmit="javascript:return x(this);">
<p> </p>
<table border="1" align="center">
<tr>
<td>查询条件</td>
<td>查询内容 (至少填一项)</td>
</tr>
<tr>
<td>用户名</td>
<td>
<input name="yhm" type="text" id="yhm"></td>
</tr>
<tr>
<td>用户流水号</td>
<td><input name="yhlsh" type="text" id="yhlsh"></td>
</tr>
<tr>
<td>用户地址</td>
<td><input name="yhdz" type="text" id="yhdz"></td>
</tr>
<tr>
<td>管理地址</td>
<td><input name="gldz" type="text" id="gldz"></td>
</tr>
<tr>
<td>结果排序方式</td>
<td><select name="select">
<option value="name">姓名</option>
<option value="user_serialno">用户流水号</option>
<option value="startdate">开户日期</option>
</select></td>
</tr>
</table>
<p align="center">
<input type="submit" name="Submit" value="提交">
<input type="reset" name="Submit2" value="重置">
</p>
</form>
<p align="center"> </p>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -