Skip to content

Commit

Permalink
version2.5
Browse files Browse the repository at this point in the history
管理员审核
  • Loading branch information
Yurisa committed Aug 31, 2017
1 parent d7cee5f commit 7287838
Show file tree
Hide file tree
Showing 932 changed files with 285,735 additions and 39 deletions.
51 changes: 50 additions & 1 deletion Application/Home/Controller/MainController.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,19 @@

class MainController extends CommonController {


/**
*
* 统计数目
*
*/

public function countnum(){
$res['usernum'] = M('user')->count();
$res['nationnum'] = M('nation')->count();
$res['touristareanum'] = M('touristarea')->count();
$res['articlenum'] = M('article')->count();
$this->json(1,'ok',$res);
}

public function getprovince(){
$res['province'] = M('province')->select();
Expand Down Expand Up @@ -768,4 +780,41 @@ public function getallmenujudge(){

}


/*
*
*通过审核
*
*/

public function menupass(){
$mj_id = $_GET['mj_id'];
M('menu_judge')->where('mj_id='.$mj_id)->save(array('mj_ispass'=>'通过'));
$arr = M('menu_judge')->where('mj_id='.$mj_id)->field('mj_type,mj_title,mj_imgurl,mj_content,t_id')->find();
print_r($arr);
$data = array(
'menu_type' => $arr['mj_type'],
'menu_title' => $arr['mj_title'],
'menu_imgurl'=> $arr['mj_imgurl'],
'menu_content' => $arr['mj_content'],
't_id' => $arr['t_id'],
'timestamp' => time(),
);
M('menu')->add($data);
$this->json(1,'ok');
}


/*
*
*审核失败
*
*/

public function menufail(){
$mj_id= $_GET['mj_id'];
M('menu_judge')->where('mj_id='.$mj_id)->delete();
$this->json(1,'ok');
}

}
326 changes: 326 additions & 0 deletions Application/Runtime/Logs/Home/17_08_31.log

Large diffs are not rendered by default.

92 changes: 92 additions & 0 deletions SignIn.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
<!DOCTYPE html>
<!-- -->
<html lang="en">
<head>
<meta charset="UTF-8">
<title>SignIn</title>
<meta name="viewport" content="width = device-width,initial-scale=1"> <!--auto suit screen-->
<link rel="stylesheet" type="text/css" href="../css/public.css">
<link rel="stylesheet" type="text/css" href="../css/signin.css">
</head>
<body>
<div class="box container">

<div class="box registion">
<div class="background">
<div class="Img">
<img class="logo-b" src="../images/logo2.png">
<p style="position: absolute;color: #ffffff;font-family: fantasy;font-size:xx-large;left:51%;top: 10%;"><strong>登陆</strong></p>
<img class="background-png" src="../images/bg4.png">
</div>
</div>

<div class="registeform">
<form>
<input class="form-control inputbox"
data-val="true"
data-val-required="请输入账号"
name="userName"
placeholder="输入用户名"
style="border-radius:6px; background-color:#ffffff; width:220px; height:25px; margin:auto; margin-bottom:30px; margin-top: 30px; font-size:large;">
<input class="form-control inputbox"
data-val="true"
data-val-required="缺少密码"
name="password"
type="password"
placeholder="输入密码"
style="border-radius:6px; background-color:#ffffff; width:220px; height:25px; margin:auto; margin-bottom:10px; font-size:large;">
<a href="" style="color:#160816;margin-left: 220px; margin-bottom: 10px;">
忘记密码
</a>
<div>
<div style="width: 100%; height: 30px;" >
<input type="checkbox" id="check1" name="check1" style="margin-top: 30px;">
<label for="check1">同意会员条款和免责条例</label>
</div>
<input class="signUpButton" style="margin-top: 30px; " type="submit" value="登陆" onclick="checkSignIn()">
<p id="para2">
还没有族迹账号?
<a href="SignIn.html" style="color: #0094ff;">
点击注册
</a>
</p>
</div>
</form>
</div>
</div>

<div class="box footer"> <!-- 底部-->
<div class="bottomLine"></div>
<nav>
<div class="footer-txt footer-title">联系我们</div>
<div class="box footer-icon">
<a href="www.baidu.com">
<div class="icon box icon-weibo">
<img src="../images/weibo.png">
</div>
</a>
<a href="#">
<div class="icon icon-wechat">
<ul>
<li>
<img id="wechat" src="../images/wechat.png">
</li>
<li>
<img id="wechat2" src="images/wechat2.png">
</li>
</ul>
</div>
</a>
</div>
<div class="footer-txt footer-service">
<a href="customerService.html">用户手册</a>
</div>
<div class="footer-txt footer-subscribe">
<a class="login" href="#">注册 / 登陆</a>
</div>
<div class="footer-txt footer-msg">Copyright © 2017 Pinch Design Ltd. All rights reserved. zuji is a registered trademark.</div>
</nav>
</div>
</div>
</body>
</html>
114 changes: 114 additions & 0 deletions SignUp.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
<!DOCTYPE html>
<!-- -->
<html lang="en">
<head>
<meta charset="UTF-8">
<title>SignUp</title>
<meta name="viewport" content="width = device-width,initial-scale=1">
<link rel="stylesheet" type="text/css" href="../css/public.css">
<link rel="stylesheet" type="text/css" href="../css/signin.css">
<script src="../js/MyJs.js" type="text/javascript"></script>
</head>
<body>
<div class="box container">

<div class="box registion">
<div class="background">
<div class="Img">
<img class="logo-b" src="../images/logo2.png">
<p style="position: absolute;color: #ffffff;font-family: fantasy;font-size:xx-large;left:51%;top: 10%;"><strong>注册</strong></p>
<img class="background-png" src="../images/bg4.png">
</div>
</div>
<body>
<div class="registeform">
<form>
<select class="form-control" data-val="true" data-val-required="请选择职位"
id="Section" name="Section"
style="border-radius:6px;-webkit-appearance: none; padding-left:12px; font-size:15px; border-radius:6px; border:0px; color:#000000; background-color:#ffffff; width:55px; height:38px; position:absolute; left:30px; top:20px;">
<option value="">区号</option>
<option value="中国">86</option>
<option value="阿富汗">93</option>
<option value="澳大利亚">61</option>
</select>
<span class="caret" style="border-top: 4px dashed #000000; position:absolute; left:70px; top:35px;"></span>
<input class="form-control"
name="phone"
placeholder="输入用于登录的手机号"
style="border-radius:6px;background-color:#ffffff;width:160px;height:25px;margin-left: 90px;margin-bottom:20px;margin-top: 20px"
type="text" value="">
<input class="form-control"
name="identifyCode"
placeholder="输入验证码"
style="border-radius:6px; background-color:#ffffff; width:140px; height:25px; margin-left: 32px;margin-bottom:20px;">
<input class="form-control"
name="textCode"
placeholder="输入短信验证码"
style="border-radius:6px; background-color:#ffffff; width:140px; height:25px; margin-left: 32px;margin-bottom:20px;float:left;">
<img src="../images/identify.jpg" style="float:left;height:40px;width:70px;margin-top:-60px;margin-left:5px;">
<input class="form-control"
type="button"
value="发送验证码"
style="float:left;width:70px;height:40px;background-color: #1182D4;margin-left:5px;font-size:70%;color:#ffffff;">
<input class="form-control"
name="userName"
placeholder="输入用户名"
style="border-radius:6px; background-color:#ffffff; width:220px; height:25px; margin:auto; margin-bottom:20px;">
<input class="form-control"
name="password"
placeholder="输入8-16位密码"
style="border-radius:6px; background-color:#ffffff; width:220px; height:25px; margin:auto; margin-bottom:20px;"
type="password">
<div>
<div style="width: 100%; height: 30px;" >
<input type="checkbox" id="check1" name="check1">
<label for="check1">同意会员条款和免责条例</label>
</div>
<input class="signUpButton" type="submit" value="注册" onclick="checkSignUp()">
<p id="para2">
已有族迹账号?
<a href="SignIn.html" style="color: #0094ff">
点击登录
</a>
</p>
</div>
</form>
</div>
</body>
</div>

<div class="box footer"> <!-- 底部-->
<div class="bottomLine"></div>
<nav>
<div class="footer-txt footer-title">联系我们</div>
<div class="box footer-icon">
<a href="www.baidu.com">
<div class="icon box icon-weibo">
<img src="../images/weibo.png">
</div>
</a>
<a href="#">
<div class="icon icon-wechat">
<ul>
<li>
<img id="wechat" src="../images/wechat.png">
</li>
<li>
<img id="wechat2" src="images/wechat2.png">
</li>
</ul>
</div>
</a>
</div>
<div class="footer-txt footer-service">
<a href="customerService.html">用户手册</a>
</div>
<div class="footer-txt footer-subscribe">
<a class="login" href="#">注册 / 登陆</a>
</div>
<div class="footer-txt footer-msg">Copyright © 2017 Pinch Design Ltd. All rights reserved. zuji is a registered trademark.</div>
</nav>
</div>
</div>
</body>
</html>
40 changes: 40 additions & 0 deletions ThinkPHP/utf8-php/dialogs/anchor/anchor.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title></title>
<style type="text/css">
*{color: #838383;margin: 0;padding: 0}
html,body {font-size: 12px;overflow: hidden; }
.content{ padding: 15px 0 0 15px;}
input{width:210px;height:28px;line-height:28px;margin-left: 4px;border-radius: 5px;border: 1px solid #ccc;}
</style>
</head>
<body>
<div class="content">
<span><var id="lang_input_anchorName"></var></span><input id="anchorName" value="" />
</div>
<script type="text/javascript" src="../internal.js"></script>
<script type="text/javascript">
var anchorInput = $G('anchorName'),
node = editor.selection.getRange().getClosedNode();
if(node && node.tagName == 'IMG' && (node = node.getAttribute('anchorname'))){
anchorInput.value = node;
}
anchorInput.onkeydown = function(evt){
evt = evt || window.event;
if(evt.keyCode == 13){
editor.execCommand('anchor', anchorInput.value);
dialog.close();
domUtils.preventDefault(evt)
}
};
dialog.onok = function (){
editor.execCommand('anchor', anchorInput.value);
dialog.close();
};
$focus(anchorInput);
</script>
</body>
</html>
Loading

0 comments on commit 7287838

Please sign in to comment.