点击回首页
我的浏览记录 | | 帮助?
当前位置:
首页>> 企业应用>> 新翔网络OA系统V1.0>> 源文件浏览
[商业版 200RMB] WebForm,下载次数:1 次 | 关键字: PHP MYSQL OA 办公 网络办公

源码截图

源码目录树

;
当前路径:index.php
<?php 
header("content-type:text/html;charset=utf-8");
include "db.php";
switch ($_GET['action']) {
case 'login':
$loginname=$_POST['name'];
$pwd=$_POST['pwd'];
$data=compact('loginname','pwd');
$val=$db->get('vmanage',$data,['id','loginname','pwd','jueseid','quanxian','danweiid']);
if($val){
setcookie("id", $val["id"], time()+3600);
setcookie("loginname", $val["loginname"], time()+36000);
setcookie("jueseid", $val["jueseid"], time()+36000);
setcookie("danweiid", $val["danweiid"], time()+36000);
setcookie("quanxian", $val["quanxian"], time()+36000);
$arr=["code"=>200,'msg'=>'登录成功'];
exit(json_encode($arr));
}
else{
$arr=  ["code"=>400,'msg'=>'用户名或密码错误'];
exit(json_encode($arr));
}
break;
	case "getsave":
	$loginname=$_POST['loginname'];
	$pwd=$_POST['pwd'];
	$card=$_POST['card'];
	$data=compact('loginname','card');
     $val=$db->get('manage',$data,['id','loginname','card']);
	if(!$val){
	$arr=["isOk"=>0,'message'=>'密保问题或答案不正确'];
    exit(json_encode($arr));
	}
	$data1=compact('pwd');
	$db->update('manage',$data1,['loginname'=>$loginname]);//更新
	$arr=["isOk"=>1,'message'=>'密码重设成功'];
    exit(json_encode($arr));
break;
}
?>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>新翔OA管理系统-OA管理平台联系电话:13849422648微信同号,QQ958756413</title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta http-equiv="Access-Control-Allow-Origin" content="*">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <link rel="stylesheet" href="static/layui/css/layui.css" media="all">
    <!--[if lt IE 9]>
    <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
    <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
    <style>
        .main-body {top:50%;left:50%;position:absolute;-webkit-transform:translate(-50%,-50%);-moz-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);-o-transform:translate(-50%,-50%);transform:translate(-50%,-50%);overflow:hidden;}
        .login-main .login-bottom .center .item input {display:inline-block;width:227px;height:22px;padding:0;position:absolute;border:0;outline:0;font-size:14px;letter-spacing:0;}
        .login-main .login-bottom .center .item .icon-1 {background:url(static/images/icon-login.png) no-repeat 1px 0;}
        .login-main .login-bottom .center .item .icon-2 {background:url(static/images/icon-login.png) no-repeat -54px 0;}
        .login-main .login-bottom .center .item .icon-3 {background:url(static/images/icon-login.png) no-repeat -106px 0;}
        .login-main .login-bottom .center .item .icon-4 {background:url(static/images/icon-login.png) no-repea...
完整源码文件,请先购买后再查看
关于我们 | 顾问团队 | 发展历程 | 联系我们 | 源码上传
联系电话(Tel):4008-010-151(免长途)
地址:北京市海淀区大恒科技大厦五层 邮编:100080
Floor 5th,Daheng Building,Zhongguancun,Beijing,China,100080
51Aspx.com 版权所有 CopyRight © 2006-2022. 京ICP备09089570号 | 京公网安备11010702000869号