【php开源代码栏目提醒】:网学会员--在 php开源代码编辑为广大网友搜集整理了:reader_add.php绩等信息,祝愿广大网友取得需要的信息,参考学习。
<?php session_start();?>
<html>
<script language="jscript">
function check(form){
if(form.name.value==""){
alert("请输入读者!");form.name.focus();return false;
}
if(form.barcode.value==""){
alert("请输入条形码!");form.barcode.focus();return false;
}
if(form.paperNO.value==""){
alert("请输入证件号码!");form.paperNO.focus();return false;
}
}
</script>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="CSS/style.css" rel="stylesheet">
</head>
<body>
<table width="776" border="0" align="center" cellpadding="0" cellspacing="0" class="tableBorder">
<tr>
<td>
<?php include("navigation.php");?>
</td>
</tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="top" bgcolor="#FFFFFF"><table width="99%" height="510" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" class="tableBorder_gray">
<tr>
<td height="510" valign="top" style="padding:5px;"><table width="98%" height="487" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="22" valign="top" class="
word_orange">当前位置:读者管理 > 读者档案管理 > 添加读者信息 >>></td>
</tr>
<tr>
<td align="center" valign="top"><table width="100%" height="493" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="center" valign="top">
<form name="form1" method="post" action="reader_ok.php">
<table width="600" height="432" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
<tr>
<td width="173" align="center">:</td>
<td width="427" height="39">
<input name="name" type="text">
* </td>
</tr>
<tr>
<td width="173" align="center">性别:</td>
<td height="35"><input name="sex" type="radio" class="noborder" id="radiobutton" value="男" checked>
<label for="radiobutton">男 </label>
<label>
<input name="sex" type="radio" class="noborder" value="女">
女</label></td>
</tr>
<tr>
<td align="center">条形码:</td>
<td><input name="barcode" type="text" id="barcode">
* </td>
</tr>
<tr>
<td align="center">读者类型:</td>
<td>
<select name="typeid" class="wenbenkuang" id="typeid">
<?php
include("conn/conn.php");
$sql=mysql_query("select * from tb_readertype");
$info=
mysql_fetch_array($
sql);
do{
?>
<option value="<?php echo $info[id];?>"><?php echo $info[name];?></option>
<?php
}while($info=mysql_fetch_array($sql));
?>
</select> </td>
</tr>
<tr>
<td align="center">职业:</td>
<td><input name="vocation" type="text" id="vocation"></td>
</tr>
<tr>
<td align="center">出生日期:</td>
<td><input name="birthday" type="text" id="birthday"></td>
</tr>
<tr>
<td align="center">有效证件:</td>
<td><select name="paperType" class="wenbenkuang" id="paperType">
<option value="身份证" selected>身份证</option>
<option value="学生证">学生证</option>
<option value="军官证">军官证</option>
<option value="工作证">
工作证</option>
</select></td>
</tr>
<tr>
<td align="center">证件号码:</td>
<td><input name="paperNO" type="text" id="paperNO">
* </td>
</tr>
<tr>
<td align="center">电话:</td>
<td><input name="tel" type="text" id="tel"></td>
</tr>
<tr>
<td align="center">E-mail:</td>
<td><input name="email" type="text" id="email" size="50">
<input name="operator" type="hidden" id="operator" value="<?php echo $_SESSION[admin_name];?>"></td>
</tr>
<tr>
<td align="center">备注:</td>
<td><textarea name="remark" cols="50" rows="5" class="wenbenkuang" id="remark"></textarea></td>
</tr>
<tr>
<td align="center"> </td>
<td><input name="Submit" type="submit" class="btn_grey" value="保存" onClick="return check(form1)">
<input name="Submit2" type="button" class="btn_grey" value="返回" onClick="history.back()"></td>
</tr>
</table>
</form>
</td>
</tr>
</table></td>
</tr>
</table>
</td>
</tr>
</table><?php include("copyright.php");?></td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>