<?php
session_start();
include_once 'conn.php';
$ndate =date("Y-m-d");
$addnew=$_POST["addnew"];
if ($addnew=="1" )
{
$yonghuming=$_POST["yonghuming"];
$mima=$_POST["mima"];
$xingming=$_POST["xingming"];
$xingbie=$_POST["xingbie"];
$youxiang=$_POST["youxiang"];
$dianhua=$_POST["dianhua"];
$zhaopian=$_POST["zhaopian"];
ischongfu("select id from yonghuxinxi where yonghuming='$yonghuming'");
$sql="insert into yonghuxinxi(yonghuming,mima,xingming,xingbie,youxiang,dianhua,zhaopian) values('$yonghuming','$mima','$xingming','$xingbie','$youxiang','$dianhua','$zhaopian') ";
mysql_query($sql);
echo "<script>javascript:alert('操作成功!');history.back();</script>";
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>用户信息</title>
<script type="text/javascript" src="js/My97DatePicker/WdatePicker.js" charset="gb2312"></script>
<link rel="stylesheet" href="images/hsgcommon/common.css" type="text/css">
<link rel="stylesheet" href="images/hsgcommon/div.css" type="text/css">
</head>
<script language="javascript">
function OpenScript(url,width,height)
{
var win = window.open(url,"SelectToSort",'width=' + width + ',height=' + height + ',resizable=1,scrollbars=yes,menubar=no,status=yes' );
}
function OpenDialog(sURL, iWidth, iHeight)
{
var oDialog = window.open(sURL, "_EditorDialog", "width=" + iWidth.toString() + ",height=" + iHeight.toString() + ",resizable=no,left=0,top=0,scrollbars=no,status=no,titlebar=no,toolbar=no,menubar=no,location=no");
oDialog.focus();
}
</script>
<body>
<p>添加用户信息: 当前日期: <?php echo $ndate; ?></p>
<script language="javascript">
function check()
{
if(document.form1.yonghuming.value==""){bootbox.alert("请输入用户名");document.form1.yonghuming.focus();return false;}
if(document.form1.mima.value==""){bootbox.alert("请输入密码");document.form1.mima.focus();return false;}
if(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/.test(document.form1.youxiang.value)){}else{bootbox.alert("邮箱必需邮箱格式");document.form1.youxiang.focus();return false;}
if(/^1[3|4|5|6|7|8|9][0-9]\d{8,8}$/.test(document.form1.dianhua.value) || /^(([0\+]\d{2,3}-)?(0\d{2,3})-)?(\d{7,8})(-(\d{3,}))?$/.test(document.form1.dianhua.value)){}else{bootbox.alert("电话必需电话格式");document.form1.dianhua.focus();return false;}
}
function gow()
{
location.href='yonghuxinxi_add.php?jihuabifffanhao='+document.form1.jihuabifffanhao.value+"&id=<?php echo $_GET["id"]?>";
}
function hsgxia2shxurxu(nstr,nwbk)
{
if (eval("form1."+nwbk).value.indexOf(nstr)>=0)
{
eval("form1."+nwbk).value=eval("form1."+nwbk).value.replace(nstr+";", "");
}
else
{
eval("form1."+nwbk).value=eval("form1."+nwbk).value+nstr+";";
}
}
</script>
<form id="form1" name="form1" method="post" action="?id=<?php echo $_GET["id"]?>">
<table width="100%" border="1" align="center" cellpadding="3" cellspacing="1" bordercolor="#CCCCCC" >
<tr><td>用户名:</td><td><input name='yonghuming' type='text' id='yonghuming' value='' class="form-control" /><div style="margin-top:16px;"> *</div></td></tr>
<tr><td>密码:</td><td><input name='mima' type='text' id='mima' value='' class="form-control" /><div style="margin-top:16px;"> *</div></td></tr>
<tr><td>姓名:</td><td><input name='xingming' type='text' id='xingming' value='' class="form-control" /></td></tr>
<tr><td>性别:</td><td><select name='xingbie' id='xingbie' class="form-control"><option value="男">男</option><option value="女">女</option></select></td></tr>
<tr><td>邮箱:</td><td><input name='youxiang' type='text' id='youxiang' value='' class="form-control" /><div style="margin-top:16px;"> 必需邮箱格式</div></td></tr>
<tr><td>电话:</td><td><input name='dianhua' type='text' id='dianhua' value='' class="form-control" /><div style="margin-top:16px;"> 必需电话格式</div></td></tr>
<tr><td>照片:</td><td><input name='zhaopian' type='text' id='zhaopian' value=''class="form-control" /><div style="margin-top:16px;"> <input type='button' name='Submit2' value='上传' onclick="javaScript:OpenScript('upfile.php?Result=zhaopian',460,180)" /></div></td></tr>
<tr>
<td> </td>
<td><input type="hidden" name="addnew" value="1" />
<input type="submit" name="Submit" value="添加" onclick="return check();" class="btn btn-info btn-small" />
<input type="reset" name="Submit2" value="重置" class="btn btn-info btn-small" /></td>
</tr>
</table>
</form>
<p> </p>
<?php
function ischongfu($sql)
{
$query=mysql_query($sql);
$rowscount=mysql_num_rows($query);
if($rowscount>0)
{
echo "<script>javascript:alert('对不起,您输入的用户名已经存在,请重试!');history.back();</script>";
exit;
}
}
?>
</body>
</html>
<script src="images/hsgcommon/jq.js"></script>
<script src="images/hsgcommon/common.js"></script>
<script src="images/hsgcommon/bootbox.js"></script>
没有合适的资源?快使用搜索试试~ 我知道了~
基于PHP MySQL实现邮件管理系统【优质毕业设计、课程设计项目】.zip
共120个文件
jpg:36个
php:33个
png:22个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 193 浏览量
2023-05-31
23:02:19
上传
评论
收藏 1.05MB ZIP 举报
温馨提示
优质毕业设计、课程设计项目,包括:程序源代码、数据库、配置环境说明,可完美运行。
资源推荐
资源详情
资源评论
收起资源包目录
基于PHP MySQL实现邮件管理系统【优质毕业设计、课程设计项目】.zip (120个子文件)
common.css 118KB
style.css 14KB
datepicker.css 4KB
datepicker.css 4KB
div.css 4KB
divqt.css 3KB
css.css 3KB
commonqt.css 2KB
WdatePicker.css 158B
index.css 100B
img.gif 2KB
img.gif 2KB
datePicker.gif 1KB
Upload.gif 111B
login.html 2KB
1608190954o5zr.jpg 90KB
touxiang88.jpg 59KB
touxiang28.jpg 56KB
touxiang85.jpg 45KB
touxiang84.jpg 43KB
nopic3.jpg 32KB
nopic4.jpg 32KB
nopic5.jpg 32KB
nopic2.jpg 32KB
nopic1.jpg 32KB
touxiang10.jpg 30KB
touxiang17.jpg 28KB
touxiang8.jpg 25KB
nopic.jpg 24KB
touxiang6.jpg 16KB
touxiang48.jpg 15KB
yhtx2.jpg 12KB
touxiang38.jpg 11KB
touxiang7.jpg 10KB
yhtx1.jpg 8KB
yhtx4.jpg 8KB
touxiang41.jpg 7KB
touxiang15.jpg 5KB
touxiang63.jpg 5KB
touxiang69.jpg 4KB
touxiang55.jpg 4KB
touxiang39.jpg 4KB
touxiang71.jpg 4KB
touxiang78.jpg 4KB
touxiang68.jpg 4KB
touxiang40.jpg 3KB
yhtx5.jpg 3KB
touxiang76.jpg 3KB
touxiang87.jpg 3KB
yhtx3.jpg 3KB
bg.jpg 307B
echarts.min.js 727KB
jq.js 284KB
jquery.js 82KB
bootbox.js 38KB
common.js 36KB
calendar.js 21KB
WdatePicker.js 9KB
Particleground.js 7KB
verificationNumbers.js 2KB
zh-cn.js 1KB
zh-tw.js 1KB
en.js 644B
MANIFEST.MF 39B
yonghuxinxi_add.php 5KB
yonghuxinxi_list.php 5KB
yhzhgl.php 5KB
tongzhigonggao_list.php 5KB
tongzhigonggao_list2.php 4KB
yonghuxinxi_list_yanben.php 4KB
yonghuxinxi_updt.php 4KB
tongzhigonggao_list1.php 4KB
tongzhigonggao_list_yanben.php 4KB
yonghuxinxi_updt2.php 4KB
tongzhigonggao_add.php 4KB
tongzhigonggao_updt.php 4KB
left_guanliyuan.php 3KB
left_yonghu.php 3KB
mod.php 3KB
sy.php 3KB
conn.php 2KB
yonghuxinxi_detail.php 2KB
upfile.php 2KB
yonghuxinxi_listxls.php 2KB
tongzhigonggao_detail.php 2KB
tongzhigonggao_listxls.php 2KB
shanchushuju.php 1KB
top.php 1KB
databack.php 1KB
login.php 1KB
code.php 1KB
main.php 755B
sh.php 478B
del.php 393B
mygo.php 280B
checkA.php 252B
logout.php 184B
updatefile.php3 489B
home_current.png 2KB
home.png 2KB
共 120 条
- 1
- 2
资源评论
不脱发的程序猿
- 粉丝: 24w+
- 资源: 5763
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功