-
Notifications
You must be signed in to change notification settings - Fork 85
/
Copy pathsendpwd.php
155 lines (140 loc) · 5.04 KB
/
sendpwd.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
<?php
$theme_path="themes/softed/";
$image_path="include/images/";
$default_language = "zh_cn";
$default_theme = "softed";
$default_user_name = "";
$default_password = "";
$default_company_name = "";
?>
<!DOCTYPE html>
<!-- saved from url=(0050)http://wbpreview.com/previews/WB00U8L84/login.html -->
<html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta charset="utf-8">
<title>Dashboard - Bootstrap Admin</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<!-- CSS -->
<link href="themes/bootcss/css/bootstrap.css" rel="stylesheet">
<link href="themes/bootcss/css/bootstrap-responsive.min.css" rel="stylesheet">
<link href="themes/bootcss/css/style.css" rel="stylesheet">
<link href="themes/bootcss/css/cus-icons.css" rel="stylesheet">
<link href="themes/bootcss/css/Login.css" rel="stylesheet">
</head>
<script language="javascript">
function check() {
if (document.loginform.user_name.value == '') {
alert('Email不能为空');
document.loginform.user_name.focus();
return false;
}
if (loginform.user_name.value != "" && !/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,4})+$/.test(loginform.user_name.value)) {
alert("Email无效");
loginform.user_name.focus();
return ;
} else {
check_duplicate();
}
}
function logining_load(){
document.loginform.user_name.focus();
}
function check_duplicate()
{
var user_name = document.loginform.user_name.value;
new Ajax.Request(
'DoSendPwd.php',
{queue: {position: 'end', scope: 'command'},
method: 'post',
postBody: 'user_name='+user_name,
onComplete: function(response) {
var result = response.responseText;
alert(result);
}
}
);
}
</script>
<body onLoad="logining_load()">
<div class="navbar navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</a>
<a class="" href="http://www.c3crm.com/" target="_blank"><img src="themes/bootcss/img/logonew.png"></a>
<ul class="nav pull-right">
<li class="" style="line-height: 30px;">
<a href="http://www.c3crm.com/" target="_blank">客户关系管理系统</a>
</li>
</ul>
</div> <!-- /container -->
</div> <!-- /navbar-inner -->
</div> <!-- /navbar -->
<div id="login-container">
<div id="login-header">
<h3 style="line-height: 15px;">找回密码</h3>
</div> <!-- /login-header -->
<div id="login-content" class="clearfix">
<form action="DoRegister.php" method="post" name="loginform" id="loginform">
<fieldset>
<div class="control-group">
<label class="control-label" for="user_name">Email</label>
<div class="controls">
<input type="text" class="" id="user_name" name="user_name" value="<?php echo $login_user_name ?>">
</div>
</div>
<input type="hidden" name="login_theme" value="softed">
<input type="hidden" name="login_language" value="zh_cn">
<?php
if( isset($_SESSION['validation'])){
?>
<tr>
<td colspan="2"><font color="Red"> 出错 </font></td>
</tr>
<?php
}
else if(isset($_REQUEST["login_error"]) && $_REQUEST["login_error"] != "")
{
?>
<tr>
<td colspan="2"><b class="small"><font color="Brown">
<?php echo $_REQUEST["login_error"] ?>
</font>
</b>
</td>
</tr>
<?php
}
?>
</fieldset>
<div id="remember-me" class="pull-left"><br><br>
<A href="register.php"> 注册</A> <A href="Login.php">登录 </A>
</div>
<div class="pull-right">
<button type="submit" class="btn btn-warning btn-large" onClick="return check()">
发送
</button>
</div>
</form>
</div> <!-- /login-content -->
<div id="login-extra">
<p>
<a href="training/sales01.html" target="_blank">培训视频</a>
<a href="training/sfa.doc" target="_blank">SFA使用说明</a>
<a href="mobile/index.html" target="_blank">手机登录</a>
<a href="http://vdisk.weibo.com/s/5SBnr/1337924467" target="_blank">手机客户端下载</a>
</p>
<!--
<p>
或使用合作伙伴的账号登录,还在测试中,请不要点击<br>
<a href="<?=$code_url?>"><img src="themes/images/weibo_login.png" title="测试中" alt="测试中" border="0"></a>
</p>
-->
<p>我能用它做什么?让系统自动的帮您跟踪客户,真正的实现销售自动化(SFA),</p>
<p>让您感觉销售是件非常Easy的事情!还不心动吗,赶紧试试吧!</p>
<p>E-mail: <a href="javascript:;">[email protected]</a></p>
</div> <!-- /login-extra -->
</div> <!-- /login-wrapper -->