作者 郭鑫

所有功能完善上传

正在显示 39 个修改的文件 包含 274 行增加2201 行删除
... ... @@ -50,6 +50,7 @@ class AdminPicController extends AdminBaseController
$data = $request->post();
$model = new PicModel();
if($data){
$data['type'] = 2;
if($data['id']){
// 修改
$change = $model->isUpdate(true)->save($data);
... ... @@ -64,7 +65,7 @@ class AdminPicController extends AdminBaseController
$where_find['status'] = 1;
$is_isset = $model->where($where_find)->find();
if($is_isset){
$this->error('每种分类下只能上传一张图片');
$this->error('只能上传一张图片');
}
$add = $model->save($data);
if($add){
... ... @@ -124,7 +125,7 @@ class AdminPicController extends AdminBaseController
// 海报图 添加、修改
// 积分 添加、修改
public function scoreAdd(Request $request){
$data = $request->post();
$model = new ScoreModel();
... ... @@ -146,7 +147,7 @@ class AdminPicController extends AdminBaseController
$where_find['status'] = 1;
$is_isset = $model->where($where_find)->find();
if($is_isset){
$this->error('您已设置过分类积分,不可重复设置');
$this->error('您已设置过分类积分,不可重复设置');
}
$add = $model->save($data);
if($add){
... ... @@ -188,4 +189,49 @@ class AdminPicController extends AdminBaseController
}
// 海报文章 添加
public function write(Request $request){
$data = $request->post();
$model = new PicModel();
$where_findScore['type'] = 1;
$where_findScore['status'] = 1;
$id = $model->where($where_findScore)->field('id')->find();
if($data){
if($id){
// 修改
$data['id'] = $id['id'];
$change = $model->isUpdate(true)->save($data);
if($change){
$this->success('修改成功',url('write'));
}else{
$this->error('修改失败');
}
}else{
// 添加
$where_find['type'] = 1;
$where_find['status'] = 1;
$is_isset = $model->where($where_find)->find();
if($is_isset){
$this->error('修改失败');
}
$add = $model->save($data);
if($add){
$this->success('添加成功',url('write'));
}else{
$this->error('添加失败');
}
}
}else{
// $change = array();
$where_change['id'] = $id['id'];
$where_change['status'] = 1;
$change = $model->where($where_change)->find();
$this->assign('change',$change);
return $this->fetch('writeAdd');
}
}
}
... ...
... ... @@ -54,7 +54,7 @@ class IndexController extends CommonController
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "{ \"from\":\"Detrust\", \"to\":\"+86 $tel \", \"text\":\"$rand\" }",
CURLOPT_POSTFIELDS => "{ \"from\":\"Detrust\", \"to\":\"+86 $tel \", \"text\":\"您的验证码是".$rand.",您正在使用您的手机号登录CAL微积分,如果不是您本人操作,请忽略该短信。\" }",
CURLOPT_HTTPHEADER => array(
"accept: application/json",
"authorization: ".$header,
... ... @@ -96,6 +96,7 @@ class IndexController extends CommonController
}
$QRcode->png($url, $filename, $errorCorrectionLevel, $matrixPointSize);
return $flodername . '/' . $png;
}
... ... @@ -103,7 +104,6 @@ class IndexController extends CommonController
// 登录
public function index()
{
$data = $this->request->post();
if($data){
$validate = Loader::validate('User');
... ... @@ -123,15 +123,25 @@ class IndexController extends CommonController
$where_mem['tel'] = $data['tel'];
$member = Db::name("Member")->where($where_mem)->find();
if($member['name']){
session('uid',$member['id']);
$this->apiResponse('1','已注册');
}else{
// 查询父级
$where_find['id'] = $data['pid'];
$find_one = Db::name("Member")->where($where_find)->field('name')->find();
$add['tel'] = $data['tel'];
$add['parent_id'] = $data['pid'];
$add['parent_name'] = $find_one['name'];
$model = new MemberModel();
$save = $model->save($add);
if($member['id']){
$add['id'] = $member['id'];
$save = $model->isUpdate(true)->save($add);
}else{
$save = $model->save($add);
}
if(!$save){
$this->apiResponse('0','注册失败');
}
$id = $model->id;
session('uid',$id);
$this->apiResponse('2','未注册',$id);
... ... @@ -160,20 +170,43 @@ class IndexController extends CommonController
$coreAdd['user_id'] = session('uid');
$coreAdd['score'] = $money['money'];
$coreAdd['title'] = '注册成功';
$scoreModel = new UserScoreModel();
$is_score = $scoreModel->save($coreAdd);
$add_sco['score'] = $money['money'];
$add_sco['id'] = session('uid');
$add_sco['update_time'] = time();
$adSco = $model->isUpdate(true)->save($add_sco);
if($is_score && $adSco){
// 分享送积分
$where_findParent['id'] = session('uid');
$par_id = $model->where($where_findParent)->field('parent_id,name')->find();
if($par_id['parent_id'] != 0){
$where_scocre['type'] = 2;
$where_scocre['status'] = 1;
$get_score = Db::name('Score')->where($where_scocre)->field('money')->find();
$userModel = new UserScoreModel();
$save_user['user_id'] = $par_id['parent_id'];
$save_user['score'] = $get_score['money'];
$save_user['title'] = '邀请'.$par_id['name'].'注册';
$is_saveScore = $userModel->save($save_user);
if(!$is_saveScore){
Db::rollback();
$this->apiResponse('7','注册失败');
}
$where_parent['id'] = $par_id['parent_id'];
$add_score = $model->where($where_parent)->setInc('score',$get_score['money']);
if(!$add_score){
Db::rollback();
$this->apiResponse('6','注册失败');
}
}
Db::commit();
$this->apiResponse('1','注册成功');
}else{
Db::rollback();
$this->apiResponse('5','注册失败');
}
// $this->apiResponse('1','注册成功');
}else{
Db::rollback();
$this->apiResponse('3','注册失败');
... ... @@ -191,7 +224,10 @@ class IndexController extends CommonController
// $pic = Db::name('Pic')->where($where_pic)->find();
// $pic['pic'] = cmf_get_image_url($pic['pic']);
$pica = $this->createQRcode();
$pic['pic'] = cmf_get_image_url($pica);
// $pic['pic'] = $pica;
if($pic){
$this->assign('pic',$pic);
}
... ...
... ... @@ -19,7 +19,8 @@ class UserValidate extends Validate
'tel' => ['require','regex:/^1(3|4|5|7|8)\d{9}$/'],
'name' => ['require','chsAlpha'],
'wx' => ['require','regex:/^[a-zA-Z\d_-]{5,}$/'],
'wallet' => ['require','regex:/(^0x[0-9a-f_]{2}$)/'],
'wallet' => ['require','regex:/^0x[0-9a-f]{40}$/'],
'code' => ['require'],
];
protected $message = [
'tel.require' => '手机号不能为空',
... ... @@ -30,11 +31,12 @@ class UserValidate extends Validate
'wx.regex' => '微信格式不正确',
'wallet.require' => '钱包地址不能为空',
'wallet.regex' => '钱包地址不正确',
'code.require' => '验证码不能为空',
];
protected $scene = [
'cg' => ['name','wx'],
'tel' => ['tel'],
'tel' => ['tel','code'],
'addName' => ['name','wx','wallet'],
];
... ...
... ... @@ -70,6 +70,18 @@ class AdminOauthController extends AdminBaseController
$where_mem['status'] = 1;
$member = Db::name('Member')->where($where_mem)->order('create_time desc')->paginate(10);
foreach ($member as $mek=>$mev){
if($mev['parent_id'] != 0 ){
$where_findParName['id'] = $mev['parent_id'];
$where_findParName['status'] = 1;
$parName = Db::name('Member')->where($where_findParName)->field('name')->find();
$mev['parent_name'] = $parName['name'];
}else{
$mev['parent_name'] = '';
}
$member[$mek] = $mev;
}
// // 获取分页显示
$page = $member->render();
$this->assign('lists', $member);
... ... @@ -148,6 +160,18 @@ class AdminOauthController extends AdminBaseController
if(!$member){
$this->error('暂无下级');
}
foreach ($member as $mek=>$mev){
if($mev['parent_id'] != 0 ){
$where_findParName['id'] = $mev['parent_id'];
$where_findParName['status'] = 1;
$parName = Db::name('Member')->where($where_findParName)->field('name')->find();
$mev['parent_name'] = $parName['name'];
}else{
$mev['parent_name'] = '';
}
$member[$mek] = $mev;
}
// $oauthUserQuery = Db::name('third_party_user');
//
// $lists = $oauthUserQuery->field('a.*,u.user_nickname,u.sex,u.avatar')->alias('a')->join('__USER__ u', 'a.user_id = u.id')->where("status", 1)->order("create_time DESC")->paginate(10);
... ... @@ -217,6 +241,21 @@ class AdminOauthController extends AdminBaseController
$where_mem['status'] = 1;
$member_list = Db::name('Member')->where($where_mem)->order('create_time desc')->select()->toArray();
if($member_list){
foreach ($member_list as $mek=>$mev){
if($mev['parent_id'] != 0 ){
$where_findParName['id'] = $mev['parent_id'];
$where_findParName['status'] = 1;
$parName = Db::name('Member')->where($where_findParName)->field('name')->find();
$mev['parent_name'] = $parName['name'];
}else{
$mev['parent_name'] = '';
}
$mev['create_time'] = date('Y-m-d H:i:s',$mev['create_time']);
$mev['update_time'] = date('Y-m-d H:i:s',$mev['update_time']);
$member_list[$mek] = $mev;
}
}
$this->expList($member_list);
}
... ... @@ -236,8 +275,10 @@ class AdminOauthController extends AdminBaseController
->setCellValue('D1', '微信')
->setCellValue('E1', '钱包地址')
->setCellValue('F1', '积分')
->setCellValue('G1', '创建时间')
->setCellValue('H1', '更新时间');
->setCellValue('G1', '上级id')
->setCellValue('H1', '上级姓名')
->setCellValue('I1', '注册时间')
->setCellValue('J1', '更新时间');
$i = 2;
... ... @@ -246,11 +287,13 @@ class AdminOauthController extends AdminBaseController
->setCellValue('A' . $i, $v['id'])
->setCellValue('B' . $i, $v['name'])
->setCellValueExplicit('C' . $i, $v['tel'],\PHPExcel_Cell_DataType::TYPE_STRING)
->setCellValue('D' . $i, $v['wx'])
->setCellValue('E' . $i, $v['wallet'])
->setCellValueExplicit('D' . $i, $v['wx'],\PHPExcel_Cell_DataType::TYPE_STRING)
->setCellValueExplicit('E' . $i, $v['wallet'],\PHPExcel_Cell_DataType::TYPE_STRING)
->setCellValue('F' . $i, $v['score'])
->setCellValue('G' . $i, $v['create_time'])
->setCellValue('H' . $i, $v['update_time']);
->setCellValue('G' . $i, $v['parent_id'])
->setCellValue('H' . $i, $v['parent_name'])
->setCellValueExplicit('I' . $i, $v['create_time'],\PHPExcel_Cell_DataType::TYPE_STRING)
->setCellValueExplicit('J' . $i, $v['update_time'],\PHPExcel_Cell_DataType::TYPE_STRING);
$i++;
}
... ...
... ... @@ -143,8 +143,9 @@ return array (
'PORTAL_ADMINPAGE_EDIT' => '编辑页面',
'PORTAL_ADMINPAGE_EDITPOST' => '编辑页面提交',
'PORTAL_ADMINPAGE_INDEX' => '页面管理',
'PORTAL_ADMINPIC_POSTER' => '海报图',
'PORTAL_ADMINPIC_POSTER' => '微信分享图',
'PORTAL_ADMINPIC_SCORE' => '赠送积分设置',
'PORTAL_ADMINPIC_WRITE' => '海报文字修改',
'PORTAL_ADMINTAG_ADD' => '添加文章标签',
'PORTAL_ADMINTAG_ADDPOST' => '添加文章标签提交',
'PORTAL_ADMINTAG_DELETE' => '删除文章标签',
... ...
<?php
//000000000000
exit();?>
a:8:{i:0;a:2:{s:4:"name";s:6:"CmfHub";s:9:"is_system";i:1;}i:1;a:2:{s:4:"name";s:16:"MainContributors";s:9:"is_system";i:1;}i:2;a:2:{s:4:"name";s:7:"Custom5";s:9:"is_system";i:1;}i:3;a:2:{s:4:"name";s:7:"Custom1";s:9:"is_system";i:1;}i:4;a:2:{s:4:"name";s:7:"Custom2";s:9:"is_system";i:1;}i:5;a:2:{s:4:"name";s:7:"Custom3";s:9:"is_system";i:1;}i:6;a:2:{s:4:"name";s:7:"Custom4";s:9:"is_system";i:1;}i:7;a:2:{s:4:"name";s:12:"Contributors";s:9:"is_system";i:1;}}
\ No newline at end of file
<?php
//000000000000
exit();?>
a:2:{s:7:"109user";a:7:{s:4:"icon";s:5:"group";s:2:"id";s:7:"109user";s:4:"name";s:12:"用户管理";s:6:"parent";s:0:"";s:3:"url";s:43:"/candy/public/user/admin_index/default.html";s:4:"lang";s:23:"USER_ADMININDEX_DEFAULT";s:5:"items";a:1:{s:7:"152user";a:7:{s:4:"icon";s:0:"";s:2:"id";s:7:"152user";s:4:"name";s:9:"用户组";s:6:"parent";i:109;s:3:"url";s:44:"/candy/public/user/admin_index/default1.html";s:4:"lang";s:24:"USER_ADMININDEX_DEFAULT1";s:5:"items";a:1:{s:7:"156user";a:6:{s:4:"icon";s:0:"";s:2:"id";s:7:"156user";s:4:"name";s:15:"第三方用户";s:6:"parent";i:152;s:3:"url";s:41:"/candy/public/user/admin_oauth/index.html";s:4:"lang";s:21:"USER_ADMINOAUTH_INDEX";}}}}}s:9:"120portal";a:7:{s:4:"icon";s:2:"th";s:2:"id";s:9:"120portal";s:4:"name";s:12:"门户管理";s:6:"parent";s:0:"";s:3:"url";s:45:"/candy/public/portal/admin_index/default.html";s:4:"lang";s:25:"PORTAL_ADMININDEX_DEFAULT";s:5:"items";a:2:{s:9:"162portal";a:6:{s:4:"icon";s:0:"";s:2:"id";s:9:"162portal";s:4:"name";s:9:"海报图";s:6:"parent";i:120;s:3:"url";s:42:"/candy/public/portal/admin_pic/poster.html";s:4:"lang";s:22:"PORTAL_ADMINPIC_POSTER";}s:9:"164portal";a:6:{s:4:"icon";s:0:"";s:2:"id";s:9:"164portal";s:4:"name";s:18:"赠送积分设置";s:6:"parent";i:120;s:3:"url";s:41:"/candy/public/portal/admin_pic/score.html";s:4:"lang";s:21:"PORTAL_ADMINPIC_SCORE";}}}}
\ No newline at end of file
a:2:{s:7:"109user";a:7:{s:4:"icon";s:5:"group";s:2:"id";s:7:"109user";s:4:"name";s:12:"用户管理";s:6:"parent";s:0:"";s:3:"url";s:43:"/candy/public/user/admin_index/default.html";s:4:"lang";s:23:"USER_ADMININDEX_DEFAULT";s:5:"items";a:1:{s:7:"152user";a:7:{s:4:"icon";s:0:"";s:2:"id";s:7:"152user";s:4:"name";s:9:"用户组";s:6:"parent";i:109;s:3:"url";s:44:"/candy/public/user/admin_index/default1.html";s:4:"lang";s:24:"USER_ADMININDEX_DEFAULT1";s:5:"items";a:1:{s:7:"156user";a:6:{s:4:"icon";s:0:"";s:2:"id";s:7:"156user";s:4:"name";s:15:"第三方用户";s:6:"parent";i:152;s:3:"url";s:41:"/candy/public/user/admin_oauth/index.html";s:4:"lang";s:21:"USER_ADMINOAUTH_INDEX";}}}}}s:9:"120portal";a:7:{s:4:"icon";s:2:"th";s:2:"id";s:9:"120portal";s:4:"name";s:12:"门户管理";s:6:"parent";s:0:"";s:3:"url";s:45:"/candy/public/portal/admin_index/default.html";s:4:"lang";s:25:"PORTAL_ADMININDEX_DEFAULT";s:5:"items";a:3:{s:9:"162portal";a:6:{s:4:"icon";s:0:"";s:2:"id";s:9:"162portal";s:4:"name";s:15:"微信分享图";s:6:"parent";i:120;s:3:"url";s:42:"/candy/public/portal/admin_pic/poster.html";s:4:"lang";s:22:"PORTAL_ADMINPIC_POSTER";}s:9:"164portal";a:6:{s:4:"icon";s:0:"";s:2:"id";s:9:"164portal";s:4:"name";s:18:"赠送积分设置";s:6:"parent";i:120;s:3:"url";s:41:"/candy/public/portal/admin_pic/score.html";s:4:"lang";s:21:"PORTAL_ADMINPIC_SCORE";}s:9:"165portal";a:6:{s:4:"icon";s:0:"";s:2:"id";s:9:"165portal";s:4:"name";s:18:"海报文字修改";s:6:"parent";i:120;s:3:"url";s:41:"/candy/public/portal/admin_pic/write.html";s:4:"lang";s:21:"PORTAL_ADMINPIC_WRITE";}}}}
\ No newline at end of file
... ...
此 diff 太大无法显示。
此 diff 太大无法显示。
此 diff 太大无法显示。
<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:52:"themes/admin_simpleboot3/user\admin_asset\index.html";i:1516676889;s:68:"D:\wamp\www\candy\public\themes\admin_simpleboot3\public\header.html";i:1516676889;}*/ ?>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<!-- Set render engine for 360 browser -->
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- HTML5 shim for IE8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<![endif]-->
<link href="/candy/public/themes/admin_simpleboot3/public/assets/themes/<?php echo cmf_get_admin_style(); ?>/bootstrap.min.css" rel="stylesheet">
<link href="/candy/public/themes/admin_simpleboot3/public/assets/simpleboot3/css/simplebootadmin.css" rel="stylesheet">
<link href="/candy/public/static/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
<!--[if lt IE 9]>
<script src="https://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
<style>
form .input-order {
margin-bottom: 0px;
padding: 0 2px;
width: 42px;
font-size: 12px;
}
form .input-order:focus {
outline: none;
}
.table-actions {
margin-top: 5px;
margin-bottom: 5px;
padding: 0px;
}
.table-list {
margin-bottom: 0px;
}
.form-required {
color: red;
}
</style>
<script type="text/javascript">
//全局变量
var GV = {
ROOT: "/candy/public/",
WEB_ROOT: "/candy/public/",
JS_ROOT: "static/js/",
APP: '<?php echo \think\Request::instance()->module(); ?>'/*当前应用名*/
};
</script>
<script src="/candy/public/themes/admin_simpleboot3/public/assets/js/jquery-1.10.2.min.js"></script>
<script src="/candy/public/static/js/wind.js"></script>
<script src="/candy/public/themes/admin_simpleboot3/public/assets/js/bootstrap.min.js"></script>
<script>
Wind.css('artDialog');
Wind.css('layer');
$(function () {
$("[data-toggle='tooltip']").tooltip();
$("li.dropdown").hover(function () {
$(this).addClass("open");
}, function () {
$(this).removeClass("open");
});
});
</script>
<?php if(APP_DEBUG): ?>
<style>
#think_page_trace_open {
z-index: 9999;
}
</style>
<?php endif; ?>
</head>
<body>
<div class="wrap js-check-wrap">
<ul class="nav nav-tabs">
<li class="active"><a href="<?php echo url('AdminAsset/index'); ?>">资源列表</a></li>
</ul>
<?php $status=['不可用', '可用']; ?>
<table class="table table-hover table-bordered margin-top-20">
<thead>
<tr>
<th width="50">ID</th>
<th>用户</th>
<th>文件大小</th>
<th>文件名</th>
<th>图像</th>
<th>文件路径</th>
<th>状态</th>
<th width="160"><?php echo lang('ACTIONS'); ?></th>
</tr>
</thead>
<tbody>
<?php
$asset_img_suffixes=['bmp','jpg','jpeg','png','gif','tiff'];/*TODO ADD MORE*/
if(is_array($assets) || $assets instanceof \think\Collection || $assets instanceof \think\Paginator): if( count($assets)==0 ) : echo "" ;else: foreach($assets as $key=>$vo): ?>
<tr>
<td><?php echo $vo['id']; ?></td>
<td>
用户ID:<?php echo $vo['user_id']; ?> <?php echo $vo['user_login']; ?> <?php echo $vo['user_nickname']; ?>
</td>
<td><?php echo round($vo['file_size']/1024); ?>KB</td>
<td><?php echo $vo['filename']; ?></td>
<td>
<?php if(in_array(strtolower($vo['suffix']),$asset_img_suffixes)): ?>
<a href="javascript:parent.imagePreviewDialog('<?php echo cmf_get_image_preview_url($vo['file_path']); ?>');">
<i class="fa fa-photo fa-fw"></i>
</a>
<?php endif; ?>
</td>
<td>
<?php echo $vo['file_path']; if(!file_exists('upload/'.$vo['file_path'])): ?>
<span style='color:red;'>&nbsp;&nbsp(文件丢失)</span>
<?php endif; ?>
</td>
<td><?php echo $status[$vo['status']]; ?></td>
<td>
<a href="<?php echo url('AdminAsset/delete',array('id'=>$vo['id'])); ?>" class="js-ajax-delete"><?php echo lang('DELETE'); ?></a>
</td>
</tr>
<?php endforeach; endif; else: echo "" ;endif; ?>
</tbody>
</table>
<div class="pagination"><?php echo (isset($page) && ($page !== '')?$page:''); ?></div>
</div>
<script src="/candy/public/static/js/admin.js"></script>
</body>
</html>
<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:53:"themes/admin_simpleboot3/admin\recycle_bin\index.html";i:1516676889;s:68:"D:\wamp\www\candy\public\themes\admin_simpleboot3\public\header.html";i:1516676889;}*/ ?>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<!-- Set render engine for 360 browser -->
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- HTML5 shim for IE8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<![endif]-->
<link href="/candy/public/themes/admin_simpleboot3/public/assets/themes/<?php echo cmf_get_admin_style(); ?>/bootstrap.min.css" rel="stylesheet">
<link href="/candy/public/themes/admin_simpleboot3/public/assets/simpleboot3/css/simplebootadmin.css" rel="stylesheet">
<link href="/candy/public/static/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
<!--[if lt IE 9]>
<script src="https://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
<style>
form .input-order {
margin-bottom: 0px;
padding: 0 2px;
width: 42px;
font-size: 12px;
}
form .input-order:focus {
outline: none;
}
.table-actions {
margin-top: 5px;
margin-bottom: 5px;
padding: 0px;
}
.table-list {
margin-bottom: 0px;
}
.form-required {
color: red;
}
</style>
<script type="text/javascript">
//全局变量
var GV = {
ROOT: "/candy/public/",
WEB_ROOT: "/candy/public/",
JS_ROOT: "static/js/",
APP: '<?php echo \think\Request::instance()->module(); ?>'/*当前应用名*/
};
</script>
<script src="/candy/public/themes/admin_simpleboot3/public/assets/js/jquery-1.10.2.min.js"></script>
<script src="/candy/public/static/js/wind.js"></script>
<script src="/candy/public/themes/admin_simpleboot3/public/assets/js/bootstrap.min.js"></script>
<script>
Wind.css('artDialog');
Wind.css('layer');
$(function () {
$("[data-toggle='tooltip']").tooltip();
$("li.dropdown").hover(function () {
$(this).addClass("open");
}, function () {
$(this).removeClass("open");
});
});
</script>
<?php if(APP_DEBUG): ?>
<style>
#think_page_trace_open {
z-index: 9999;
}
</style>
<?php endif; ?>
</head>
<body>
<div class="wrap js-check-wrap">
<ul class="nav nav-tabs">
<li class="active"><a href="javascript:void(0)">回收站列表</a></li>
</ul>
<table class="table table-hover table-bordered margin-top-20">
<thead>
<tr>
<th width="50">ID</th>
<th>内容名称</th>
<th>内容类型</th>
<th>删除时间</th>
<th>操作人</th>
<th width="130"><?php echo lang('ACTIONS'); ?></th>
</tr>
</thead>
<tbody>
<?php if(is_array($list) || $list instanceof \think\Collection || $list instanceof \think\Paginator): if( count($list)==0 ) : echo "" ;else: foreach($list as $key=>$vo): ?>
<tr>
<td><?php echo $vo['id']; ?></td>
<td><?php echo $vo['name']; ?></td>
<td>
<?php echo lang('TABLE_'.strtoupper($vo['table_name'])); ?>
</td>
<td> <?php echo date('Y-m-d H:i:s',$vo['create_time']); ?></td>
<td> <?php echo $vo['user']['user_login']; ?></td>
<td>
<a href="<?php echo url('RecycleBin/restore',array('id'=>$vo['id'])); ?>" class="js-ajax-dialog-btn" data-msg="确定要还原吗?">还原</a>
<a href="<?php echo url('RecycleBin/delete',array('id'=>$vo['id'])); ?>" class="js-ajax-delete"><?php echo lang('DELETE'); ?></a>
</td>
</tr>
<?php endforeach; endif; else: echo "" ;endif; ?>
</tbody>
</table>
<div class="pagination"><?php echo $page; ?></div>
</div>
<script src="/candy/public/static/js/admin.js"></script>
</body>
</html>
\ No newline at end of file
<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:46:"themes/admin_simpleboot3/admin\main\index.html";i:1516676889;s:68:"D:\wamp\www\candy\public\themes\admin_simpleboot3\public\header.html";i:1516676889;}*/ ?>
<?php function _get_system_widget($name){ switch($name): case "CmfHub": ?>
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">交流方式</h3>
</div>
<div class="panel-body home-info">
<ul class="list-unstyled">
<li>
<em>官网</em> <span><a href="http://www.thinkcmf.com" target="_blank">www.thinkcmf.com</a></span>
</li>
<li><em>QQ 群</em> <span>100828313,316669417</span></li>
<li><em>联系邮箱</em> <span>catman@thinkcmf.com</span></li>
</ul>
</div>
</div>
<?php break; case "MainContributors": ?>
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">主要贡献者</h3>
</div>
<div class="panel-body home-info">
<ul class="list-inline">
<li>老猫</li>
<li>Sam</li>
<li>Tuolaji</li>
<li>睡不醒的猪</li>
<li>小夏</li>
<li>Powerless</li>
<li>WelKinVan</li>
<li>Kane</li>
<li>iYting</li>
<li>pl125</li>
<li>五五</li>
</ul>
</div>
</div>
<?php break; case "Contributors": ?>
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">贡献者</h3>
</div>
<div class="panel-body home-info">
<ul class="list-inline">
<li>Kin Ho</li>
<li><a href="http://wzx.thinkcmf.com" target="_blank">Powerless</a></li>
<li>Jess</li>
<li>木兰情</li>
<li><a href="http://www.91freeweb.com/" target="_blank">Labulaka</a></li>
<li><a href="http://www.syousoft.com/" target="_blank">WelKinVan</a></li>
<li><a href="http://blog.sina.com.cn/u/1918098881" target="_blank">Jeson</a></li>
<li>Yim</li>
<li><a href="http://www.jamlee.cn/" target="_blank">Jamlee</a></li>
<li><a>香香咸蛋黄</a></li>
<li><a href="http://www.xdmeng.cn" target="_blank">小凯</a></li>
<li><a href="https://www.devmsg.com" target="_blank">Co</a></li>
<li>Rainfer</li>
<li><a href="http://www.yaoweixiu.cn/" target="_blank">Kane</a></li>
<li><a href="http://www.wuwenfu.cn/" target="_blank">北岸的云</a></li>
<li>pl125</li>
<li><a href="http://www.wuwuseo.com/" target="_blank">五五</a></li>
</ul>
</div>
</div>
<?php break; endswitch; } ?>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<!-- Set render engine for 360 browser -->
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- HTML5 shim for IE8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<![endif]-->
<link href="/candy/public/themes/admin_simpleboot3/public/assets/themes/<?php echo cmf_get_admin_style(); ?>/bootstrap.min.css" rel="stylesheet">
<link href="/candy/public/themes/admin_simpleboot3/public/assets/simpleboot3/css/simplebootadmin.css" rel="stylesheet">
<link href="/candy/public/static/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
<!--[if lt IE 9]>
<script src="https://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
<style>
form .input-order {
margin-bottom: 0px;
padding: 0 2px;
width: 42px;
font-size: 12px;
}
form .input-order:focus {
outline: none;
}
.table-actions {
margin-top: 5px;
margin-bottom: 5px;
padding: 0px;
}
.table-list {
margin-bottom: 0px;
}
.form-required {
color: red;
}
</style>
<script type="text/javascript">
//全局变量
var GV = {
ROOT: "/candy/public/",
WEB_ROOT: "/candy/public/",
JS_ROOT: "static/js/",
APP: '<?php echo \think\Request::instance()->module(); ?>'/*当前应用名*/
};
</script>
<script src="/candy/public/themes/admin_simpleboot3/public/assets/js/jquery-1.10.2.min.js"></script>
<script src="/candy/public/static/js/wind.js"></script>
<script src="/candy/public/themes/admin_simpleboot3/public/assets/js/bootstrap.min.js"></script>
<script>
Wind.css('artDialog');
Wind.css('layer');
$(function () {
$("[data-toggle='tooltip']").tooltip();
$("li.dropdown").hover(function () {
$(this).addClass("open");
}, function () {
$(this).removeClass("open");
});
});
</script>
<?php if(APP_DEBUG): ?>
<style>
#think_page_trace_open {
z-index: 9999;
}
</style>
<?php endif; ?>
<style>
.home-info li em {
float: left;
width: 120px;
font-style: normal;
font-weight: bold;
}
.home-info ul {
padding: 0;
margin: 0;
}
.panel {
margin-bottom: 0;
}
.grid-sizer {
width: 10%;
}
.grid-item {
margin-bottom: 5px;
padding: 5px;
}
.col-xs-1, .col-sm-1, .col-md-1, .col-lg-1, .col-xs-2, .col-sm-2, .col-md-2, .col-lg-2, .col-xs-3, .col-sm-3, .col-md-3, .col-lg-3, .col-xs-4, .col-sm-4, .col-md-4, .col-lg-4, .col-xs-5, .col-sm-5, .col-md-5, .col-lg-5, .col-xs-6, .col-sm-6, .col-md-6, .col-lg-6, .col-xs-7, .col-sm-7, .col-md-7, .col-lg-7, .col-xs-8, .col-sm-8, .col-md-8, .col-lg-8, .col-xs-9, .col-sm-9, .col-md-9, .col-lg-9, .col-xs-10, .col-sm-10, .col-md-10, .col-lg-10, .col-xs-11, .col-sm-11, .col-md-11, .col-lg-11, .col-xs-12, .col-sm-12, .col-md-12, .col-lg-12 {
padding-left: 5px;
padding-right: 5px;
float: none;
}
</style>
<?php
\think\Hook::listen('admin_before_head_end',$temp5b456fbe48030,null,false);
?>
</head>
<body>
<div class="wrap">
<?php if(empty($has_smtp_setting) || (($has_smtp_setting instanceof \think\Collection || $has_smtp_setting instanceof \think\Paginator ) && $has_smtp_setting->isEmpty())): ?>
<div class="grid-item col-md-12">
<div class="alert alert-danger alert-dismissible fade in" role="alert" style="margin-bottom: 0;">
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
<strong>提示!</strong> 邮箱配置未完成,无法进行邮件发送!
<a href="#" data-dismiss="alert" aria-label="Close"
onclick="parent.openapp('<?php echo url('Mailer/index'); ?>','admin_mailer_index','邮箱配置');">现在设置</a>
</div>
</div>
<?php endif; if(!extension_loaded('fileinfo')): ?>
<div class="grid-item col-md-12">
<div class="alert alert-danger alert-dismissible fade in" role="alert" style="margin-bottom: 0;">
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
<strong>提示!</strong> php_fileinfo扩展没有开启,无法正常上传文件!
</div>
</div>
<?php endif; ?>
<div class="grid-item col-md-12" id="thinkcmf-notices-grid" style="display:none;">
<div class="dashboard-box">
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title"><?php echo lang('SYSTEM_NOTIFICATIONS'); ?></h3>
</div>
<div class="panel-body home-info">
<ul id="thinkcmf-notices" class="list-unstyled">
<li>
<img src="/candy/public/themes/admin_simpleboot3/public/assets/images/loading.gif" style="vertical-align: middle;"/>
<span style="display: inline-block; vertical-align: middle;">加载中...</span>
</li>
</ul>
</div>
</div>
</div>
</div>
<div class="home-grid">
<!-- width of .grid-sizer used for columnWidth -->
<div class="grid-sizer"></div>
<?php if(is_array($dashboard_widgets) || $dashboard_widgets instanceof \think\Collection || $dashboard_widgets instanceof \think\Paginator): if( count($dashboard_widgets)==0 ) : echo "" ;else: foreach($dashboard_widgets as $key=>$vo): if($vo['is_system']): ?>
<div class="grid-item col-md-12" data-system="1" data-widget="<?php echo $vo['name']; ?>">
<div class="dashboard-box"><?php echo _get_system_widget($vo['name']); ?></div>
</div>
<?php else: if(isset($dashboard_widget_plugins[$vo['name']])): ?>
<div class="grid-item col-md-<?php echo $dashboard_widget_plugins[$vo['name']]['width']; ?>" data-system="0"
data-widget="<?php echo $vo['name']; ?>">
<div class="dashboard-box"><?php echo $dashboard_widget_plugins[$vo['name']]['view']; ?></div>
</div>
<?php endif; endif; endforeach; endif; else: echo "" ;endif; ?>
</div>
</div>
<script src="/candy/public/static/js/admin.js"></script>
<?php
$lang_set=defined('LANG_SET')?LANG_SET:'';
$thinkcmf_version=defined('THINKCMF_VERSION')?THINKCMF_VERSION:'';
?>
<script>
Wind.css('dragula');
Wind.use('masonry', 'imagesloaded', 'dragula', function () {
var $homeGrid = $('.home-grid').masonry({
// set itemSelector so .grid-sizer is not used in layout
itemSelector: '.grid-item',
// use element for option
columnWidth: '.grid-sizer',
percentPosition: true,
horizontalOrder: false,
transitionDuration: 0
});
$homeGrid.masonry('on', 'layoutComplete', function (event, laidOutItems) {
});
$homeGrid.masonry();
var containers = [];
$('.home-grid .grid-item').each(function () {
containers.push(this);
});
dragula(containers, {
isContainer: function (el) {
return false; // only elements in drake.containers will be taken into account
},
moves: function (el, source, handle, sibling) {
return true; // elements are always draggable by default
},
accepts: function (el, target, source, sibling) {
return true; // elements can be dropped in any of the `containers` by default
},
invalid: function (el, handle) {
return false; // don't prevent any drags from initiating by default
},
direction: 'vertical', // Y axis is considered when determining where an element would be dropped
copy: false, // elements are moved by default, not copied
copySortSource: false, // elements in copy-source containers can be reordered
revertOnSpill: false, // spilling will put the element back where it was dragged from, if this is true
removeOnSpill: false, // spilling will `.remove` the element, if this is true
mirrorContainer: document.body, // set the element that gets mirror elements appended
ignoreInputTextSelection: true // allows users to select input text, see details below
}).on('drop', function (el, target, source, sibling) {
var $target = $(target);
var targetClasses = $target.attr('class');
var targetDataWidget = $target.data('widget');
var targetDataSystem = $target.data('system');
var $source = $(source);
var sourceClasses = $source.attr('class');
var sourceDataWidget = $source.data('widget');
var sourceDataSystem = $source.data('system');
$(source).append($(target).find('.dashboard-box').not('.gu-transit'));
$(target).append(el);
$target.attr('class', sourceClasses);
$target.data('widget', sourceDataWidget);
$target.data('system', sourceDataSystem);
$source.attr('class', targetClasses);
$source.data('widget', targetDataWidget);
$source.data('system', targetDataSystem);
$homeGrid.masonry();
_widgetSort();
}).on('shadow', function (el, container, source) {
$homeGrid.masonry();
});
});
function _widgetSort() {
var widgets = [];
$('.home-grid .grid-item').each(function () {
var $this = $(this);
widgets.push({
name: $this.data('widget'),
is_system: $this.data('system')
});
});
$.ajax({
url: "<?php echo url('main/dashboardWidget'); ?>",
type: 'post',
dataType: 'json',
data: {widgets: widgets},
success: function (data) {
},
error: function () {
},
complete: function () {
}
});
}
//获取官方通知
$.getJSON("//www.thinkcmf.com/service/sms_jsonp.php?lang=<?php echo $lang_set; ?>&v=<?php echo $thinkcmf_version; ?>&callback=?",
function (data) {
var tpl = '<li><em class="title"></em><span class="content"></span></li>';
var $notices = $("#thinkcmf-notices");
$notices.empty();
if (data.length > 0) {
$('#thinkcmf-notices-grid').show();
$.each(data, function (i, n) {
var $tpl = $(tpl);
$(".title", $tpl).html(n.title);
$(".content", $tpl).html(n.content);
$notices.append($tpl);
});
} else {
$notices.append("<li>^_^,<?php echo lang('NO_NOTICE'); ?>~~</li>");
}
});
</script>
<?php
\think\Hook::listen('admin_before_body_end',$temp5b456fbe48030,null,false);
?>
</body>
</html>
\ No newline at end of file
<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:52:"themes/admin_simpleboot3/user\admin_oauth\index.html";i:1531186770;s:68:"D:\wamp\www\candy\public\themes\admin_simpleboot3\public\header.html";i:1516676889;}*/ ?>
<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:52:"themes/admin_simpleboot3/user\admin_oauth\index.html";i:1531376309;s:68:"D:\wamp\www\candy\public\themes\admin_simpleboot3\public\header.html";i:1516676889;}*/ ?>
<!doctype html>
<html>
<head>
... ... @@ -112,11 +112,12 @@
<th>电话</th>
<th>微信</th>
<th>钱包地址</th>
<th>上级id</th>
<th>上级姓名</th>
<th style=" width:7%;" align="center">上级id</th>
<th >上级姓名</th>
<th>积分</th>
<th>注册时间</th>
<th align="center" style="width: 15%;">会员信息</th>
<th align="center" style="width: 11%;">查看下线</th>
<th align="center" style="width: 9%;">查看下线</th>
</tr>
</thead>
<tbody>
... ... @@ -124,11 +125,12 @@
<td><?php echo $vo['id']; ?></td>
<td><?php echo $vo['name']; ?></td>
<td><?php echo $vo['tel']; ?></td>
<td><?php echo $vo['wx']; ?></td>
<td><?php echo $vo['wallet']; ?></td>
<td><?php echo $vo['parent_id']; ?></td>
<td><?php echo $vo['parent_name']; ?></td>
<td style="word-break:break-all; width:150px;" ><?php echo $vo['wx']; ?></td>
<td style="word-break:break-all; width:200px;"><?php echo $vo['wallet']; ?></td>
<td align="center"><?php echo $vo['parent_id']; ?></td>
<td align="center"><?php echo $vo['parent_name']; ?></td>
<td><?php echo $vo['score']; ?></td>
<td><?php echo date('Y-m-d H:i:s',$vo['create_time']); ?></td>
<td style="text-align: center;">
<a href="<?php echo url('adminOauth/edit',array('id'=>$vo['id'])); ?>">修改</a>&nbsp;&nbsp;
... ...
<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:40:"themes/simpleboot3/portal\\register.html";i:1530942036;}*/ ?>
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="//at.alicdn.com/t/font_724267_hizrwxnkr3j.css">
<link rel="stylesheet" href="/candy/public/themes/simpleboot3/public/assets/css/style.css">
<script type="text/javascript" src="/candy/public/themes/simpleboot3/public/assets/js/fontsize.js"></script>
<title>注册</title>
</head>
<body>
<div class="re_item">
<div class="item">
<div class="item_name">姓名</div>
<div class="item_input"><input type="text" placeholder="请填写姓名" class="name"></div>
<div class="item_must">必填</div>
</div>
<div class="item">
<div class="item_name">微信</div>
<div class="item_input"><input type="text" placeholder="请输入您的微信号" class="wx"></div>
<div class="item_must">必填</div>
</div>
<div class="item">
<div class="item_name">钱包地址</div>
<div class="item_input"><input type="text" placeholder="请输入您的钱包地址" class="play"></div>
<div class="item_must">必填</div>
</div>
</div>
<div class="re_txt"><span class="iconfont icon-tishi"></span>注意:手机号和钱包地址一旦填写不能修改,钱包地址
涉及到转账使用,最好填写完整。</div>
<div class="re_btn">注册</div>
<div id="toast" style="display: none;">
<div class="weui-mask_transparent"></div>
<div class="weui-toast">
<i class="weui-icon-success-no-circle weui-icon_toast"></i>
<p class="weui-toast__content">已完成</p>
</div>
</div>
</body>
<script src="/candy/public/themes/simpleboot3/public/assets/js/jquery-2.1.0.js" type="text/javascript" charset="utf-8"></script>
<script src="/candy/public/themes/simpleboot3/public/assets/js/common.js" type="text/javascript" charset="utf-8"></script>
<script>
var AuglyTest_phone=/^1(3|4|5|7|8)\d{9}$/;
$('.re_btn').click(function () {
var name = $(".name").val();
var wx = $(".wx").val();
var wallet = $(".play").val();
var uid = "<?php echo \think\Request::instance()->param('uid'); ?>";
$.ajax({
type:"POST",
url:"<?php echo url('portal/Index/register'); ?>",
data:{
"name":name,
"wx":wx,
"wallet":wallet,
"id":uid,
},
success:function (data) {
if(data.code == 1){
alert(data.msg);
window.location.href = "<?php echo url('portal/Index/poster'); ?>";
}
else {
alert(data.msg);
}
},
error:function () {
alert("网络错误");
}
})
})
$(".name").focus(function(){
$(this).parents(".item").find(".item_must").css("color","#fff");
});
$(".wx").focus(function(){
$(this).parents(".item").find(".item_must").css("color","#fff");
});
$(".play").focus(function(){
$(this).parents(".item").find(".item_must").css("color","#fff");
});
/***禁止滑动***/
function stop() {
document.body.style.overflow = 'hidden';
// document.addEventListener("touchmove", mo, false); //禁止页面滑动
$("body").on("touchmove",function(event){
event.preventDefault();
}, false)
}
/***取消滑动限制***/
function move() {
document.body.style.overflow = ''; //出现滚动条
// document.removeEventListener("touchmove", mo, false);
$("body").off("touchmove");
}
function toast(that) {
var $toast = $('#toast');
stop()
$toast.find(".weui-toast__content").html(that)
if ($toast.css('display') != 'none') return;
$toast.fadeIn(100);
setTimeout(function () {
$toast.fadeOut(100);
move()
}, 2000);
}
</script>
</html>
\ No newline at end of file
<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:42:"themes/admin_simpleboot3/admin\\login.html";i:1516676889;}*/ ?>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8"/>
<title>ThinkCMF <?php echo lang('ADMIN_CENTER'); ?></title>
<meta http-equiv="X-UA-Compatible" content="chrome=1,IE=edge"/>
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta name="robots" content="noindex,nofollow">
<!-- HTML5 shim for IE8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<![endif]-->
<link href="/candy/public/themes/admin_simpleboot3/public/assets/themes/<?php echo cmf_get_admin_style(); ?>/bootstrap.min.css" rel="stylesheet">
<link href="/candy/public/static/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
<link href="/candy/public/themes/admin_simpleboot3/public/assets/themes/<?php echo cmf_get_admin_style(); ?>/login.css" rel="stylesheet">
<!--[if lt IE 9]>
<script src="https://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
<script>
if (window.parent !== window.self) {
document.write = '';
window.parent.location.href = window.self.location.href;
setTimeout(function () {
document.body.innerHTML = '';
}, 0);
}
</script>
</head>
<body>
<div class="wrap">
<div class="container">
<div class="row">
<div class="col-md-4 col-md-offset-4">
<h1 class="text-center">ThinkCMF</h1>
<form class="js-ajax-form" action="<?php echo url('public/doLogin'); ?>" method="post">
<div class="form-group">
<input type="text" id="input_username" class="form-control" name="username"
placeholder="<?php echo lang('USERNAME_OR_EMAIL'); ?>" title="<?php echo lang('USERNAME_OR_EMAIL'); ?>"
value="<?php echo cookie('admin_username'); ?>" data-rule-required="true" data-msg-required="">
</div>
<div class="form-group">
<input type="password" id="input_password" class="form-control" name="password"
placeholder="<?php echo lang('PASSWORD'); ?>" title="<?php echo lang('PASSWORD'); ?>" data-rule-required="true"
data-msg-required="">
</div>
<div class="form-group">
<div style="position: relative;">
<input type="text" name="captcha" placeholder="验证码" class="form-control captcha">
<?php $__CAPTCHA_SRC=url('/captcha/new').'?height=32&width=150&font_size=18'; ?>
<img src="<?php echo $__CAPTCHA_SRC; ?>" onclick="this.src='<?php echo $__CAPTCHA_SRC; ?>&time='+Math.random();" title="换一张" class="captcha captcha-img verify_img" style="cursor: pointer;position:absolute;right:1px;top:1px;"/>
<input type="hidden" name="_captcha_id" value="">
</div>
</div>
<div class="form-group">
<input type="hidden" name="redirect" value="">
<button class="btn btn-primary btn-block js-ajax-submit" type="submit" style="margin-left: 0px"
data-loadingmsg="<?php echo lang('LOADING'); ?>">
<?php echo lang('LOGIN'); ?>
</button>
</div>
</form>
</div>
</div>
</div>
</div>
<script type="text/javascript">
//全局变量
var GV = {
ROOT: "/candy/public/",
WEB_ROOT: "/candy/public/",
JS_ROOT: "static/js/",
APP: ''/*当前应用名*/
};
</script>
<script src="/candy/public/themes/admin_simpleboot3/public/assets/js/jquery-1.10.2.min.js"></script>
<script src="/candy/public/static/js/wind.js"></script>
<script src="/candy/public/static/js/admin.js"></script>
<script>
(function () {
document.getElementById('input_username').focus();
})();
</script>
</body>
</html>
<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:38:"themes/simpleboot3/portal\\myinfo.html";i:1530944237;}*/ ?>
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="//at.alicdn.com/t/font_724267_hizrwxnkr3j.css">
<link rel="stylesheet" href="/candy/public/themes/simpleboot3/public/assets/css/style.css">
<script type="text/javascript" src="/candy/public/themes/simpleboot3/public/assets/js/fontsize.js"></script>
<title>个人中心</title>
</head>
<body>
<div class="re_item myinfo">
<div class="item myinfo_item">
<div class="item_name">姓名</div>
<div class="item_input"><input type="text" readonly="readonly" value="<?php echo $list['name']; ?>" style="color: #B2B2B2;"></div>
</div>
<div class="item myinfo_item">
<div class="item_name">手机号</div>
<div class="item_input"><input type="text" readonly="readonly" value="<?php echo $list['tel']; ?>" style="color: #B2B2B2;"></div>
</div>
<div class="item myinfo_item">
<div class="item_name">微信</div>
<div class="item_input"><input type="text" readonly="readonly" value="<?php echo $list['wx']; ?>" style="color: #B2B2B2;"></div>
</div>
<div class="item myinfo_item">
<div class="item_name">钱包地址</div>
<div class="item_input"><input type="text" readonly="readonly" value="<?php echo $list['wallet']; ?>" style="color: #B2B2B2;"></div>
</div>
</div>
<a class="re_btn myinfo_btn" href="<?php echo url('Index/changeUser'); ?>">修改</a>
<div class="nav_bottom">
<a class="bottom_item " href="<?php echo url('Index/poster'); ?>">
<div class="bottom_icon"><span class="iconfont icon-haibao"></span></div>
<div>海报</div>
</a>
<a class="bottom_item" href="<?php echo url('Index/wxPic'); ?>">
<div class="bottom_icon"><span class="iconfont icon-saomiaoerweima"></span></div>
<div>群二维码</div>
</a>
<a class="bottom_item" href="<?php echo url('Index/score'); ?>">
<div class="bottom_icon"><span class="iconfont icon-jifen"></span></div>
<div>积分明细</div>
</a>
<a class="bottom_item po_activity" href="<?php echo url('Index/user'); ?>">
<div class="bottom_icon"><span class="iconfont icon-wode-"></span></div>
<div>个人中心</div>
</a>
</div>
</body>
<script src="/candy/public/themes/simpleboot3/public/assets/js/jquery-2.1.0.js" type="text/javascript" charset="utf-8"></script>
<script src="/candy/public/themes/simpleboot3/public/assets/js/common.js" type="text/javascript" charset="utf-8"></script>
</html>
\ No newline at end of file
<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:37:"themes/simpleboot3/portal\\login.html";i:1531292843;}*/ ?>
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="//at.alicdn.com/t/font_724267_hizrwxnkr3j.css">
<link rel="stylesheet" href="/candy/public/themes/simpleboot3/public/assets/css/style.css">
<script type="text/javascript" src="/candy/public/themes/simpleboot3/public/assets/js/fontsize.js"></script>
<title>登陆</title>
</head>
<body style="background-color: #fff">
<div class="login_top">
<div class="top_img">
<img src="/candy/public/themes/simpleboot3/public/assets/images/logo@2x.png" alt="">
</div>
</div>
<div class="login_item">
<div class="lo_item">
<div class="lo_item_name">手机号</div>
<div class="lo_item_input"><input type="text" placeholder="请填写手机号码" class="tel"></div>
</div>
<div class="lo_item">
<div class="lo_item_name">验证码</div>
<div class="lo_item_input border_r"><input type="text" class="code" placeholder="请输入"></div>
<div class="lo_code" ><input type="button" id="btn" value="获取验证码" onclick="settime(this)" class="lo_code" /></div>
</div>
</div>
<div class="re_btn">登录</div>
<div id="toast" style="display: none;">
<div class="weui-mask_transparent"></div>
<div class="weui-toast">
<i class="weui-icon-success-no-circle weui-icon_toast"></i>
<p class="weui-toast__content">已完成</p>
</div>
</div>
</body>
<script src="/candy/public/themes/simpleboot3/public/assets/js/jquery-2.1.0.js" type="text/javascript" charset="utf-8"></script>
<script src="/candy/public/themes/simpleboot3/public/assets/js/common.js" type="text/javascript" charset="utf-8"></script>
<script>
/***禁止滑动***/
function stop() {
document.body.style.overflow = 'hidden';
// document.addEventListener("touchmove", mo, false); //禁止页面滑动
$("body").on("touchmove",function(event){
event.preventDefault();
}, false)
}
/***取消滑动限制***/
function move() {
document.body.style.overflow = ''; //出现滚动条
// document.removeEventListener("touchmove", mo, false);
$("body").off("touchmove");
}
function toast(that) {
var $toast = $('#toast');
stop()
$toast.find(".weui-toast__content").html(that)
if ($toast.css('display') != 'none') return;
$toast.fadeIn(100);
setTimeout(function () {
$toast.fadeOut(100);
move()
}, 2000);
}
$('#btn').click(function () {
$(".tel").blur(function(){
if( !AuglyTest_phone.test($('.tel').val()) ){
toast("请输入正确的电话号码!")
}
});
var tel = $('.tel').val();
console.log(tel)
$.ajax({
type : 'POST',
url : "<?php echo url('portal/Index/sendSms'); ?>",
data : {
'tel':tel,
},
success:function (data) {
console.log(data)
},
error:function () {
alert('网络错误');
}
})
})
var countdown=60;
function settime(val) {
if (countdown == 0) {
val.removeAttribute("disabled");
val.value="获取验证码";
countdown = 60;
} else {
var AuglyTest_phone=/^1(3|4|5|7|8)\d{9}$/;
val.setAttribute("disabled", true);
val.value= countdown +"s";
countdown--;
setTimeout(function() {
settime(val)
},1000)
}
}
// $('.re_btn').click(function () {
// window.location.href="poster.html";
// })
// 提交表单
$('.re_btn').click(function () {
var tel = $('.tel').val();
var pid = "<?php echo \think\Request::instance()->param('pid'); ?>";
var code = $('.code').val();
console.log(code)
$.ajax({
type:"POST",
url: "<?php echo url('portal/Index/index'); ?>",
data:{
"tel":tel,
"pid":pid,
"code":code,
},
success:function (data) {
if(data.code == 1){
var url = "<?php echo url('portal/Index/poster',array('is_login'=>1)); ?>";
window.location.href = url;
alert(data.msg);
}
else if(data.code == 2) {
// var uid = data.data;
// var url1 = "<?php echo url('portal/Index/poster'); ?>";
// var url2 = url1.split(".",5)
// var url3 = "/is_login/2/uid/"+uid+'.html';
// var url = url2[0]+url3;
var url = "<?php echo url('portal/Index/poster',array('is_login'=>2)); ?>";
// console.log(url)
window.location.href = url;
alert(data.msg);
}else{
alert(data.msg);
}
},
error:function () {
alert("网络错误");
}
})
})
</script>
</html>
\ No newline at end of file
<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:49:"themes/admin_simpleboot3/admin\user\userinfo.html";i:1516676889;s:68:"D:\wamp\www\candy\public\themes\admin_simpleboot3\public\header.html";i:1516676889;}*/ ?>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<!-- Set render engine for 360 browser -->
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- HTML5 shim for IE8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<![endif]-->
<link href="/candy/public/themes/admin_simpleboot3/public/assets/themes/<?php echo cmf_get_admin_style(); ?>/bootstrap.min.css" rel="stylesheet">
<link href="/candy/public/themes/admin_simpleboot3/public/assets/simpleboot3/css/simplebootadmin.css" rel="stylesheet">
<link href="/candy/public/static/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
<!--[if lt IE 9]>
<script src="https://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
<style>
form .input-order {
margin-bottom: 0px;
padding: 0 2px;
width: 42px;
font-size: 12px;
}
form .input-order:focus {
outline: none;
}
.table-actions {
margin-top: 5px;
margin-bottom: 5px;
padding: 0px;
}
.table-list {
margin-bottom: 0px;
}
.form-required {
color: red;
}
</style>
<script type="text/javascript">
//全局变量
var GV = {
ROOT: "/candy/public/",
WEB_ROOT: "/candy/public/",
JS_ROOT: "static/js/",
APP: '<?php echo \think\Request::instance()->module(); ?>'/*当前应用名*/
};
</script>
<script src="/candy/public/themes/admin_simpleboot3/public/assets/js/jquery-1.10.2.min.js"></script>
<script src="/candy/public/static/js/wind.js"></script>
<script src="/candy/public/themes/admin_simpleboot3/public/assets/js/bootstrap.min.js"></script>
<script>
Wind.css('artDialog');
Wind.css('layer');
$(function () {
$("[data-toggle='tooltip']").tooltip();
$("li.dropdown").hover(function () {
$(this).addClass("open");
}, function () {
$(this).removeClass("open");
});
});
</script>
<?php if(APP_DEBUG): ?>
<style>
#think_page_trace_open {
z-index: 9999;
}
</style>
<?php endif; ?>
</head>
<body>
<div class="wrap">
<ul class="nav nav-tabs">
<li class="active"><a href="<?php echo url('user/userInfo'); ?>"><?php echo lang('ADMIN_USER_USERINFO'); ?></a></li>
<li><a href="<?php echo url('setting/password'); ?>"><?php echo lang('ADMIN_SETTING_PASSWORD'); ?></a></li>
</ul>
<form class="form-horizontal js-ajax-form margin-top-20" role="form" method="post" action="<?php echo url('User/userinfoPost'); ?>">
<div class="form-group">
<label for="input-user-nickname" class="col-sm-2 control-label"><?php echo lang('NICKNAME'); ?></label>
<div class="col-md-6 col-sm-10">
<input type="text" class="form-control" id="input-user-nickname" name="user_nickname" value="<?php echo $user_nickname; ?>">
</div>
</div>
<div class="form-group">
<label for="input-gender" class="col-sm-2 control-label"><?php echo lang('GENDER'); ?></label>
<div class="col-md-6 col-sm-10">
<select class="form-control" name="sex" id="input-gender">
<?php $sexs=array("0"=>lang('GENDER_SECRECY'),"1"=>lang('MALE'),"2"=>lang('FEMALE')); if(is_array($sexs) || $sexs instanceof \think\Collection || $sexs instanceof \think\Paginator): if( count($sexs)==0 ) : echo "" ;else: foreach($sexs as $key=>$vo): $sexselected=$key==$sex?"selected":""; ?>
<option value="<?php echo $key; ?>" <?php echo $sexselected; ?>><?php echo $vo; ?></option>
<?php endforeach; endif; else: echo "" ;endif; ?>
</select>
</div>
</div>
<div class="form-group">
<label for="input-birthday" class="col-sm-2 control-label"><?php echo lang('BIRTHDAY'); ?></label>
<div class="col-md-6 col-sm-10">
<input type="text" class="form-control js-bootstrap-date" id="input-birthday" name="birthday" value="<?php echo date('Y-m-d',$birthday); ?>" placeholder="2013-01-04">
</div>
</div>
<div class="form-group">
<label for="input-user_url" class="col-sm-2 control-label"><?php echo lang('WEBSITE'); ?></label>
<div class="col-md-6 col-sm-10">
<input type="text" class="form-control" id="input-user_url" name="user_url" value="<?php echo $user_url; ?>" placeholder="http://thinkcmf.com">
</div>
</div>
<div class="form-group">
<label for="input-signature" class="col-sm-2 control-label"><?php echo lang('SIGNATURE'); ?></label>
<div class="col-md-6 col-sm-10">
<textarea class="form-control" id="input-signature" name="signature" placeholder="<?php echo lang('SIGNATURE'); ?>"><?php echo $signature; ?></textarea>
</div>
</div>
<div class="form-group">
<div class="col-sm-offset-2 col-sm-10">
<button type="submit" class="btn btn-primary js-ajax-submit"><?php echo lang('SAVE'); ?></button>
</div>
</div>
</form>
</div>
<script src="/candy/public/static/js/admin.js"></script>
</body>
</html>
\ No newline at end of file
<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:47:"themes/admin_simpleboot3/admin\index\index.html";i:1531287598;}*/ ?>
<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:47:"themes/admin_simpleboot3/admin\index\index.html";i:1531377884;}*/ ?>
<!DOCTYPE html>
<html lang="zh_CN" style="overflow: hidden;">
<head>
... ... @@ -268,14 +268,14 @@
<!--</a>-->
<!--<?php endif; ?>-->
<!--<?php if(APP_DEBUG): ?>-->
<!--<a class="btn btn-sm btn-default"-->
<!--href="javascript:openapp('<?php echo url('admin/Menu/index'); ?>','index_menu','<?php echo lang('ADMIN_MENU_INDEX'); ?>',true);"-->
<!--title="<?php echo lang('ADMIN_MENU_INDEX'); ?>"-->
<!--data-toggle="tooltip">-->
<!--<i class="fa fa-list"></i>-->
<!--</a>-->
<!--<?php endif; ?>-->
<?php if(APP_DEBUG): ?>
<a class="btn btn-sm btn-default"
href="javascript:openapp('<?php echo url('admin/Menu/index'); ?>','index_menu','<?php echo lang('ADMIN_MENU_INDEX'); ?>',true);"
title="<?php echo lang('ADMIN_MENU_INDEX'); ?>"
data-toggle="tooltip">
<i class="fa fa-list"></i>
</a>
<?php endif; ?>
</div>
<div id="nav-wrapper">
... ...
<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:48:"themes/admin_simpleboot3/admin\setting\site.html";i:1516676889;s:68:"D:\wamp\www\candy\public\themes\admin_simpleboot3\public\header.html";i:1516676889;}*/ ?>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<!-- Set render engine for 360 browser -->
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- HTML5 shim for IE8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<![endif]-->
<link href="/candy/public/themes/admin_simpleboot3/public/assets/themes/<?php echo cmf_get_admin_style(); ?>/bootstrap.min.css" rel="stylesheet">
<link href="/candy/public/themes/admin_simpleboot3/public/assets/simpleboot3/css/simplebootadmin.css" rel="stylesheet">
<link href="/candy/public/static/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
<!--[if lt IE 9]>
<script src="https://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
<style>
form .input-order {
margin-bottom: 0px;
padding: 0 2px;
width: 42px;
font-size: 12px;
}
form .input-order:focus {
outline: none;
}
.table-actions {
margin-top: 5px;
margin-bottom: 5px;
padding: 0px;
}
.table-list {
margin-bottom: 0px;
}
.form-required {
color: red;
}
</style>
<script type="text/javascript">
//全局变量
var GV = {
ROOT: "/candy/public/",
WEB_ROOT: "/candy/public/",
JS_ROOT: "static/js/",
APP: '<?php echo \think\Request::instance()->module(); ?>'/*当前应用名*/
};
</script>
<script src="/candy/public/themes/admin_simpleboot3/public/assets/js/jquery-1.10.2.min.js"></script>
<script src="/candy/public/static/js/wind.js"></script>
<script src="/candy/public/themes/admin_simpleboot3/public/assets/js/bootstrap.min.js"></script>
<script>
Wind.css('artDialog');
Wind.css('layer');
$(function () {
$("[data-toggle='tooltip']").tooltip();
$("li.dropdown").hover(function () {
$(this).addClass("open");
}, function () {
$(this).removeClass("open");
});
});
</script>
<?php if(APP_DEBUG): ?>
<style>
#think_page_trace_open {
z-index: 9999;
}
</style>
<?php endif; ?>
</head>
<body>
<div class="wrap js-check-wrap">
<ul class="nav nav-tabs">
<li class="active"><a href="#A" data-toggle="tab"><?php echo lang('WEB_SITE_INFOS'); ?></a></li>
<li><a href="#B" data-toggle="tab"><?php echo lang('SEO_SETTING'); ?></a></li>
<!--<li><a href="#C" data-toggle="tab"><?php echo lang('URL_SETTING'); ?></a></li>-->
<!--<li><a href="#E" data-toggle="tab"><?php echo lang('COMMENT_SETTING'); ?></a></li>-->
<li><a href="#F" data-toggle="tab">用户注册设置</a></li>
<li><a href="#G" data-toggle="tab">CDN设置</a></li>
</ul>
<form class="form-horizontal js-ajax-form margin-top-20" role="form" action="<?php echo url('setting/sitePost'); ?>" method="post">
<fieldset>
<div class="tabbable">
<div class="tab-content">
<div class="tab-pane active" id="A">
<div class="form-group">
<label for="input-site-name" class="col-sm-2 control-label"><span class="form-required">*</span><?php echo lang('WEBSITE_NAME'); ?></label>
<div class="col-md-6 col-sm-10">
<input type="text" class="form-control" id="input-site-name" name="options[site_name]" value="<?php echo (isset($site_name) && ($site_name !== '')?$site_name:''); ?>">
</div>
</div>
<div class="form-group">
<label for="input-admin_url_password" class="col-sm-2 control-label">后台加密码</label>
<div class="col-md-6 col-sm-10">
<input type="text" class="form-control" id="input-admin_url_password" name="admin_settings[admin_password]" value="<?php echo (isset($admin_settings['admin_password']) && ($admin_settings['admin_password'] !== '')?$admin_settings['admin_password']:''); ?>" id="js-site-admin-url-password">
<p class="help-block">英文字母数字,不能为纯数字</p>
<?php if(!empty($admin_settings['admin_password'])): ?>
<p class="help-block" style="color: red;">设置加密码后必须通过以下地址访问后台,请劳记此地址,为了安全,您也可以定期更换此加密码!</p>
<?php
$site_admin_url_password =config("SP_SITE_ADMIN_URL_PASSWORD");
$root=cmf_get_root();
$root=empty($root)?'':'/'.$root;
$site_domain = cmf_get_domain().$root;
?>
<p class="help-block">后台登录地址:<span id="js-site-admin-url"><?php echo $site_domain; ?>/<?php echo $admin_settings['admin_password']; ?></span></p>
<?php endif; ?>
</div>
</div>
<!--
<div class="form-group">
<label for="input-mobile_tpl_enabled" class="col-sm-2 control-label"><?php echo lang('ENABLE_MOBILE_THEME'); ?></label>
<div class="col-md-6 col-sm-10">
<?php $mobile_tpl_enabled_checked=empty($mobile_tpl_enabled)?'':'checked'; ?>
<div class="checkbox">
<label><input type="checkbox" name="options[mobile_tpl_enabled]" value="1" id="input-mobile_tpl_enabled" <?php echo $mobile_tpl_enabled_checked; ?>></label>
</div>
</div>
</div>
-->
<div class="form-group">
<label for="input-site_adminstyle" class="col-sm-2 control-label"><?php echo lang('WEBSITE_ADMIN_THEME'); ?></label>
<div class="col-md-6 col-sm-10">
<?php $site_admin_style=empty($admin_settings['admin_style'])?'':$admin_settings['admin_style']; ?>
<select class="form-control" name="admin_settings[admin_style]" id="input-site_adminstyle">
<?php if(is_array($admin_styles) || $admin_styles instanceof \think\Collection || $admin_styles instanceof \think\Paginator): if( count($admin_styles)==0 ) : echo "" ;else: foreach($admin_styles as $key=>$vo): $admin_style_selected = $site_admin_style == $vo ? "selected" : ""; ?>
<option value="<?php echo $vo; ?>" <?php echo $admin_style_selected; ?>><?php echo $vo; ?></option>
<?php endforeach; endif; else: echo "" ;endif; ?>
</select>
</div>
</div>
<!--
<div class="form-group">
<label for="input-html_cache_on" class="col-sm-2 control-label"><?php echo lang('HTML_CACHE'); ?></label>
<div class="col-md-6 col-sm-10">
<?php $html_cache_on_checked=empty($html_cache_on)?'':'checked'; ?>
<div class="checkbox">
<label><input type="checkbox" name="options[mobile_tpl_enabled]" value="1" id="input-html_cache_on" <?php echo $html_cache_on_checked; ?>></label>
</div>
</div>
</div>
-->
<div class="form-group">
<label for="input-site_icp" class="col-sm-2 control-label"><?php echo lang('WEBSITE_ICP'); ?></label>
<div class="col-md-6 col-sm-10">
<input type="text" class="form-control" id="input-site_icp" name="options[site_icp]" value="<?php echo (isset($site_icp) && ($site_icp !== '')?$site_icp:''); ?>">
</div>
</div>
<div class="form-group">
<label for="input-site_admin_email" class="col-sm-2 control-label"><?php echo lang('WEBMASTER_EMAIL'); ?></label>
<div class="col-md-6 col-sm-10">
<input type="text" class="form-control" id="input-site_admin_email" name="options[site_admin_email]" value="<?php echo (isset($site_admin_email) && ($site_admin_email !== '')?$site_admin_email:''); ?>">
</div>
</div>
<div class="form-group">
<label for="input-site_analytics" class="col-sm-2 control-label"><?php echo lang('WEBSITE_STATISTICAL_CODE'); ?></label>
<div class="col-md-6 col-sm-10">
<textarea class="form-control" id="input-site_analytics" name="options[site_analytics]"><?php echo (isset($site_analytics) && ($site_analytics !== '')?$site_analytics:''); ?></textarea>
</div>
</div>
<!--<div class="form-group">-->
<!--<label for="input-site_copyright" class="col-sm-2 control-label"><?php echo lang('WEBSITE_COPYRIGHT_INFOMATION'); ?></label>-->
<!--<div class="col-md-6 col-sm-10">-->
<!--<input type="text" class="form-control" id="input-site_copyright" name="options[site_copyright]" value="<?php echo (isset($site_copyright) && ($site_copyright !== '')?$site_copyright:''); ?>">-->
<!--</div>-->
<!--</div>-->
<div class="form-group">
<div class="col-sm-offset-2 col-sm-10">
<button type="submit" class="btn btn-primary js-ajax-submit" data-refresh="1"><?php echo lang('SAVE'); ?></button>
</div>
</div>
</div>
<div class="tab-pane" id="B">
<div class="form-group">
<label for="input-site_seo_title" class="col-sm-2 control-label"><?php echo lang('WEBSITE_SEO_TITLE'); ?></label>
<div class="col-md-6 col-sm-10">
<input type="text" class="form-control" id="input-site_seo_title" name="options[site_seo_title]" value="<?php echo (isset($site_seo_title) && ($site_seo_title !== '')?$site_seo_title:''); ?>">
</div>
</div>
<div class="form-group">
<label for="input-site_seo_keywords" class="col-sm-2 control-label"><?php echo lang('WEBSITE_SEO_KEYWORDS'); ?></label>
<div class="col-md-6 col-sm-10">
<input type="text" class="form-control" id="input-site_seo_keywords" name="options[site_seo_keywords]" value="<?php echo (isset($site_seo_keywords) && ($site_seo_keywords !== '')?$site_seo_keywords:''); ?>">
</div>
</div>
<div class="form-group">
<label for="input-site_seo_description" class="col-sm-2 control-label"><?php echo lang('WEBSITE_SEO_DESCRIPTION'); ?></label>
<div class="col-md-6 col-sm-10">
<textarea class="form-control" id="input-site_seo_description" name="options[site_seo_description]"><?php echo (isset($site_seo_description) && ($site_seo_description !== '')?$site_seo_description:''); ?></textarea>
</div>
</div>
<div class="form-group">
<div class="col-sm-offset-2 col-sm-10">
<button type="submit" class="btn btn-primary js-ajax-submit" data-refresh="0"><?php echo lang('SAVE'); ?></button>
</div>
</div>
</div>
<div class="tab-pane" id="C">
<div class="form-group">
<label for="input-urlmode" class="col-sm-2 control-label"><?php echo lang('URL_MODE'); ?></label>
<div class="col-md-6 col-sm-10">
<?php $url_modes=array( "1"=>lang('URL_PATHINFO_MODE'), "2"=>lang('URL_REWRITE_MODE')); ?>
<select class="form-control" name="options[urlmode]" id="input-urlmode">
<?php if(is_array($url_modes) || $url_modes instanceof \think\Collection || $url_modes instanceof \think\Paginator): if( count($url_modes)==0 ) : echo "" ;else: foreach($url_modes as $key=>$vo): $url_mode_selected=isset($urlmode)&&$key==$urlmode?"selected":""; ?>
<option value="<?php echo $key; ?>" <?php echo $url_mode_selected; ?>><?php echo $vo; ?></option>
<?php endforeach; endif; else: echo "" ;endif; ?>
</select>
</div>
</div>
<div class="form-group">
<label for="input-html_suffix" class="col-sm-2 control-label"><?php echo lang('URL_REWRITE_SUFFIX'); ?></label>
<div class="col-md-6 col-sm-10">
<input type="text" class="form-control" id="input-html_suffix" name="options[html_suffix]" value="<?php echo (isset($html_suffix) && ($html_suffix !== '')?$html_suffix:''); ?>">
</div>
</div>
<div class="form-group">
<div class="col-sm-offset-2 col-sm-10">
<button type="submit" class="btn btn-primary js-ajax-submit" data-refresh="0"><?php echo lang('SAVE'); ?></button>
</div>
</div>
</div>
<!--
<div class="tab-pane" id="E">
<div class="form-group">
<label class="col-sm-2 control-label"><?php echo lang('COMMENT_CHECK'); ?></label>
<div class="col-md-6 col-sm-10">
<?php $comment_need_checked=empty($comment_need_check)?"":"checked"; ?>
<div class="checkbox">
<label><input type="checkbox" name="options[comment_need_check]" value="1" <?php echo $comment_need_checked; ?>></label>
</div>
</div>
</div>
<div class="form-group">
<label for="input-comment_time_interval" class="col-sm-2 control-label"><?php echo lang('COMMENT_TIME_INTERVAL'); ?></label>
<div class="col-md-6 col-sm-10">
<input type="text" class="form-control" id="input-comment_time_interval" name="options[comment_time_interval]" value="<?php echo (isset($comment_time_interval) && ($comment_time_interval !== '')?$comment_time_interval:60); ?>">
<p class="help-block">单位秒</p>
</div>
</div>
</div>
-->
<div class="tab-pane" id="F">
<div class="form-group">
<label for="input-banned_usernames" class="col-sm-2 control-label">是否开放注册</label>
<div class="col-md-6 col-sm-10">
<select class="form-control" name="cmf_settings[open_registration]">
<option value="0"></option>
<?php $open_registration_selected = empty($cmf_settings['open_registration'])?'':'selected'; ?>
<option value="1" <?php echo $open_registration_selected; ?>></option>
</select>
</div>
</div>
<div class="form-group">
<label for="input-banned_usernames" class="col-sm-2 control-label"><?php echo lang('SPECAIL_USERNAME'); ?></label>
<div class="col-md-6 col-sm-10">
<textarea class="form-control" id="input-banned_usernames" name="cmf_settings[banned_usernames]"><?php echo $cmf_settings['banned_usernames']; ?></textarea>
</div>
</div>
<div class="form-group">
<div class="col-sm-offset-2 col-sm-10">
<button type="submit" class="btn btn-primary js-ajax-submit" data-refresh="0"><?php echo lang('SAVE'); ?></button>
</div>
</div>
</div>
<div class="tab-pane" id="G">
<div class="form-group">
<label for="input-cdn_static_root" class="col-sm-2 control-label">静态资源cdn地址</label>
<div class="col-md-6 col-sm-10">
<input type="text" class="form-control" id="input-cdn_static_root" name="cdn_settings[cdn_static_root]" value="<?php echo (isset($cdn_settings['cdn_static_root']) && ($cdn_settings['cdn_static_root'] !== '')?$cdn_settings['cdn_static_root']:''); ?>">
<p class="help-block">
不能以/结尾;设置这个地址后,请将ThinkCMF下的静态资源文件放在其下面;<br>
ThinkCMF下的静态资源文件大致包含以下(如果你自定义后,请自行增加):<br>
themes/admin_simplebootx/public/assets<br>
static<br>
themes/simplebootx/public/assets<br>
例如未设置cdn前:jquery的访问地址是/static/js/jquery.js, <br>
设置cdn是后它的访问地址就是:静态资源cdn地址/static/js/jquery.js
</p>
</div>
</div>
<div class="form-group">
<div class="col-sm-offset-2 col-sm-10">
<button type="submit" class="btn btn-primary js-ajax-submit" data-refresh="0"><?php echo lang('SAVE'); ?></button>
</div>
</div>
</div>
</div>
</div>
</fieldset>
</form>
</div>
<script type="text/javascript" src="/candy/public/static/js/admin.js"></script>
</body>
</html>
\ No newline at end of file
<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:52:"themes/admin_simpleboot3/admin\setting\password.html";i:1516676889;s:68:"D:\wamp\www\candy\public\themes\admin_simpleboot3\public\header.html";i:1516676889;}*/ ?>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<!-- Set render engine for 360 browser -->
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- HTML5 shim for IE8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<![endif]-->
<link href="/candy/public/themes/admin_simpleboot3/public/assets/themes/<?php echo cmf_get_admin_style(); ?>/bootstrap.min.css" rel="stylesheet">
<link href="/candy/public/themes/admin_simpleboot3/public/assets/simpleboot3/css/simplebootadmin.css" rel="stylesheet">
<link href="/candy/public/static/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
<!--[if lt IE 9]>
<script src="https://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
<style>
form .input-order {
margin-bottom: 0px;
padding: 0 2px;
width: 42px;
font-size: 12px;
}
form .input-order:focus {
outline: none;
}
.table-actions {
margin-top: 5px;
margin-bottom: 5px;
padding: 0px;
}
.table-list {
margin-bottom: 0px;
}
.form-required {
color: red;
}
</style>
<script type="text/javascript">
//全局变量
var GV = {
ROOT: "/candy/public/",
WEB_ROOT: "/candy/public/",
JS_ROOT: "static/js/",
APP: '<?php echo \think\Request::instance()->module(); ?>'/*当前应用名*/
};
</script>
<script src="/candy/public/themes/admin_simpleboot3/public/assets/js/jquery-1.10.2.min.js"></script>
<script src="/candy/public/static/js/wind.js"></script>
<script src="/candy/public/themes/admin_simpleboot3/public/assets/js/bootstrap.min.js"></script>
<script>
Wind.css('artDialog');
Wind.css('layer');
$(function () {
$("[data-toggle='tooltip']").tooltip();
$("li.dropdown").hover(function () {
$(this).addClass("open");
}, function () {
$(this).removeClass("open");
});
});
</script>
<?php if(APP_DEBUG): ?>
<style>
#think_page_trace_open {
z-index: 9999;
}
</style>
<?php endif; ?>
</head>
<body>
<div class="wrap">
<ul class="nav nav-tabs">
<li><a href="<?php echo url('user/userInfo'); ?>"><?php echo lang('ADMIN_USER_USERINFO'); ?></a></li>
<li class="active"><a href="<?php echo url('setting/password'); ?>"><?php echo lang('ADMIN_SETTING_PASSWORD'); ?></a></li>
</ul>
<form class="form-horizontal js-ajax-form margin-top-20" method="post" action="<?php echo url('setting/passwordPost'); ?>">
<div class="form-group">
<label for="input-old-password" class="col-sm-2 control-label"><?php echo lang('OLD_PASSWORD'); ?></label>
<div class="col-md-6 col-sm-10">
<input type="password" class="form-control" id="input-old-password" name="old_password">
</div>
</div>
<div class="form-group">
<label for="input-password" class="col-sm-2 control-label"><?php echo lang('NEW_PASSWORD'); ?></label>
<div class="col-md-6 col-sm-10">
<input type="password" class="form-control" id="input-password" name="password">
</div>
</div>
<div class="form-group">
<label for="input-repassword" class="col-sm-2 control-label"><?php echo lang('CONFIRM_PASSWORD'); ?></label>
<div class="col-md-6 col-sm-10">
<input type="password" class="form-control" id="input-repassword" name="re_password">
</div>
</div>
<div class="form-group">
<div class="col-sm-offset-2 col-sm-10">
<button type="submit" class="btn btn-primary js-ajax-submit"><?php echo lang('SAVE'); ?></button>
</div>
</div>
</form>
</div>
<script src="/candy/public/static/js/admin.js"></script>
</body>
</html>
\ No newline at end of file
<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:38:"themes/simpleboot3/portal\\poster.html";i:1531296648;}*/ ?>
<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:38:"themes/simpleboot3/portal\\poster.html";i:1531357946;}*/ ?>
<!doctype html>
<html lang="en">
<head>
... ...
<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:41:"themes/simpleboot3/portal\\deit_info.html";i:1530944207;}*/ ?>
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="//at.alicdn.com/t/font_724267_hizrwxnkr3j.css">
<link rel="stylesheet" href="/candy/public/themes/simpleboot3/public/assets/css/style.css">
<script type="text/javascript" src="/candy/public/themes/simpleboot3/public/assets/js/fontsize.js"></script>
<title>修改个人资料</title>
</head>
<body>
<div class="deit_top">
修改个人信息
</div>
<div class="re_item deit_infoitem">
<div class="item myinfo_item">
<div class="item_name">姓名</div>
<div class="item_input"><input type="text" value="<?php echo $list['name']; ?>" placeholder="请填写姓名" class="name"></div>
</div>
<div class="item myinfo_item">
<div class="item_name">手机号</div>
<div class="item_input" style="color: #B2B2B2;"><input type="text" value="<?php echo $list['tel']; ?>" class="tel" readonly style="color: #B2B2B2;"></div>
</div>
<div class="item myinfo_item">
<div class="item_name">微信</div>
<div class="item_input"><input type="text" value="<?php echo $list['wx']; ?>" placeholder="请输入您的微信号" class="wx"></div>
</div>
<div class="item myinfo_item">
<div class="item_name">钱包地址</div>
<div class="item_input" ><input type="text" value="<?php echo $list['wallet']; ?>" readonly class="play" style="color: #B2B2B2;"></div>
</div>
</div>
<div class="re_btn myinfo_btn btn_yes">完成</div>
<div class="re_btn myinfo_btn btn_return">返回</div>
<div id="toast" style="display: none;">
<div class="weui-mask_transparent"></div>
<div class="weui-toast">
<i class="weui-icon-success-no-circle weui-icon_toast"></i>
<p class="weui-toast__content">已完成</p>
</div>
</div>
<script src="/candy/public/themes/simpleboot3/public/assets/js/jquery-2.1.0.js" type="text/javascript" charset="utf-8"></script>
<script src="/candy/public/themes/simpleboot3/public/assets/js/common.js" type="text/javascript" charset="utf-8"></script>
</body>
<script>
$('.btn_yes').click(function () {
var name = $(".name").val();
var wx = $(".wx").val();
var user_id = "<?php echo \think\Session::get('user_id'); ?>";
$.ajax({
type: "POST",
url: "<?php echo url('Index/changeUser'); ?>",
data: {
"name": name,
"wx": wx,
"id": user_id,
},
success: function (data) {
console.log(data)
if (data.code == 1) {
alert(data.msg);
location.href = "<?php echo url('Index/user'); ?>";
}
else {
alert(data.msg);
}
},
error: function () {
alert("网络错误");
}
})
})
$('.btn_return').click(function () {
var url ="<?php echo url('Index/user'); ?>";
location.href = url;
})
</script>
</html>
\ No newline at end of file
<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:36:"themes/simpleboot3/portal\\join.html";i:1530784147;}*/ ?>
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="//at.alicdn.com/t/font_724267_hizrwxnkr3j.css">
<link rel="stylesheet" href="/candy/public/themes/simpleboot3/public/assets/css/style.css">
<script type="text/javascript" src="/candy/public/themes/simpleboot3/public/assets/js/fontsize.js"></script>
<title>加入微信群</title>
</head>
<body style="background-color: #fff">
<div class="join_img">
<?php if(empty($pic['pic']) || (($pic['pic'] instanceof \think\Collection || $pic['pic'] instanceof \think\Paginator ) && $pic['pic']->isEmpty())): ?>
<img src="/candy/public/themes/simpleboot3/public/assets/images/bg_y@2x_52.png" alt="">
<?php else: ?>
<img src="<?php echo $pic['pic']; ?>" alt="">
<?php endif; ?>
</div>
<div class="nav_bottom">
<a class="bottom_item " href="<?php echo url('Index/poster'); ?>">
<div class="bottom_icon"><span class="iconfont icon-haibao"></span></div>
<div>海报</div>
</a>
<a class="bottom_item po_activity" href="<?php echo url('Index/wxPic'); ?>">
<div class="bottom_icon"><span class="iconfont icon-saomiaoerweima"></span></div>
<div>群二维码</div>
</a>
<a class="bottom_item" href="<?php echo url('Index/score'); ?>">
<div class="bottom_icon"><span class="iconfont icon-jifen"></span></div>
<div>积分明细</div>
</a>
<a class="bottom_item" href="<?php echo url('Index/user'); ?>">
<div class="bottom_icon"><span class="iconfont icon-wode-"></span></div>
<div>个人中心</div>
</a>
</div>
<script src="/candy/public/themes/simpleboot3/public/assets/js/jquery-2.1.0.js" type="text/javascript" charset="utf-8"></script>
<script src="/candy/public/themes/simpleboot3/public/assets/js/common.js" type="text/javascript" charset="utf-8"></script>
</body>
</html>
\ No newline at end of file
<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:58:"themes/admin_simpleboot3/portal\admin_pic\posterIndex.html";i:1530692697;s:68:"D:\wamp\www\candy\public\themes\admin_simpleboot3\public\header.html";i:1516676889;}*/ ?>
<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:58:"themes/admin_simpleboot3/portal\admin_pic\posterIndex.html";i:1531378828;s:68:"D:\wamp\www\candy\public\themes\admin_simpleboot3\public\header.html";i:1516676889;}*/ ?>
<!doctype html>
<html>
<head>
... ... @@ -105,8 +105,7 @@
</label>
</th>
<th width="100">ID</th>
<th>类型</th>
<th>图片</th>
<th>微信群图</th>
<th>发布时间</th>
<th>更新时间</th>
<th>状态</th>
... ... @@ -120,13 +119,7 @@
value="<?php echo $vo['id']; ?>">
</td>
<td><?php echo $vo['id']; ?></td>
<td>
<?php if($vo['type'] == '1'): ?>
海报图
<?php endif; if($vo['type'] == '2'): ?>
微信群图
<?php endif; ?>
</td>
<td><img src="<?php echo $vo['pic']; ?>" height="100px"/></td>
<td><?php echo date('Y-m-d H:i',$vo['create_time']); ?>
</td>
... ...
<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:51:"themes/admin_simpleboot3/user\admin_oauth\edit.html";i:1530948114;s:68:"D:\wamp\www\candy\public\themes\admin_simpleboot3\public\header.html";i:1516676889;}*/ ?>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<!-- Set render engine for 360 browser -->
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- HTML5 shim for IE8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<![endif]-->
<link href="/candy/public/themes/admin_simpleboot3/public/assets/themes/<?php echo cmf_get_admin_style(); ?>/bootstrap.min.css" rel="stylesheet">
<link href="/candy/public/themes/admin_simpleboot3/public/assets/simpleboot3/css/simplebootadmin.css" rel="stylesheet">
<link href="/candy/public/static/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
<!--[if lt IE 9]>
<script src="https://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
<style>
form .input-order {
margin-bottom: 0px;
padding: 0 2px;
width: 42px;
font-size: 12px;
}
form .input-order:focus {
outline: none;
}
.table-actions {
margin-top: 5px;
margin-bottom: 5px;
padding: 0px;
}
.table-list {
margin-bottom: 0px;
}
.form-required {
color: red;
}
</style>
<script type="text/javascript">
//全局变量
var GV = {
ROOT: "/candy/public/",
WEB_ROOT: "/candy/public/",
JS_ROOT: "static/js/",
APP: '<?php echo \think\Request::instance()->module(); ?>'/*当前应用名*/
};
</script>
<script src="/candy/public/themes/admin_simpleboot3/public/assets/js/jquery-1.10.2.min.js"></script>
<script src="/candy/public/static/js/wind.js"></script>
<script src="/candy/public/themes/admin_simpleboot3/public/assets/js/bootstrap.min.js"></script>
<script>
Wind.css('artDialog');
Wind.css('layer');
$(function () {
$("[data-toggle='tooltip']").tooltip();
$("li.dropdown").hover(function () {
$(this).addClass("open");
}, function () {
$(this).removeClass("open");
});
});
</script>
<?php if(APP_DEBUG): ?>
<style>
#think_page_trace_open {
z-index: 9999;
}
</style>
<?php endif; ?>
</head>
<body>
<div class="wrap js-check-wrap">
<ul class="nav nav-tabs">
<!--<li><a href="<?php echo url('AdminPage/index'); ?>">所有页面</a></li>-->
<!--<li><a href="<?php echo url('AdminPage/add'); ?>">添加页面</a></li>-->
<li class="active"><a href="#">编辑页面</a></li>
</ul>
<form action="<?php echo url('AdminOauth/edit'); ?>" method="post" class="form-horizontal js-ajax-form margin-top-20">
<div class="row">
<div class="col-md-9">
<table class="table table-bordered">
<tr>
<th width="100">姓名<span class="form-required">*</span></th>
<td>
<input type="hidden" name="id" value="<?php echo $post['id']; ?>">
<input class="form-control" type="text" style="width: 400px;" name="name"
required
value="<?php echo $post['name']; ?>" placeholder="请输入姓名"/>
</td>
</tr>
<tr>
<th width="100">电话</th>
<td>
<input class="form-control" type="text" style="width: 400px;" name="tel"
value="<?php echo $post['tel']; ?>" placeholder="请输入电话"/>
</td>
</tr>
<tr>
<th width="100">微信</th>
<td>
<input class="form-control" type="text" style="width: 400px;" name="wx"
value="<?php echo $post['wx']; ?>" placeholder="请输入微信"/>
</td>
</tr>
<tr>
<th width="100">钱包地址</th>
<td>
<input class="form-control" type="text" style="width: 400px;" name="wallet"
value="<?php echo $post['wallet']; ?>" placeholder="请输入钱包地址"/>
</td>
</tr>
<tr>
<th width="100">上级id</th>
<td>
<input class="form-control" type="text" style="width: 400px;" name="parent_id"
value="<?php echo $post['parent_id']; ?>" placeholder="请输入上级id"/>
</td>
</tr>
<tr>
<th width="100">积分</th>
<td>
<input class="form-control" type="text" style="width: 400px;" name="score"
value="<?php echo $post['score']; ?>" placeholder="请输入积分"/>
</td>
</tr>
</tbody>
</table>
<div class="form-group">
<div class="col-sm-offset-2 col-sm-10">
<button type="submit" class="btn btn-primary js-ajax-submit"><?php echo lang('SAVE'); ?></button>
<a class="btn btn-default" href="<?php echo url('AdminOauth/index'); ?>"><?php echo lang('BACK'); ?></a>
</div>
</div>
</div>
<div class="col-md-3">
</div>
</div>
</form>
</div>
<script type="text/javascript" src="/candy/public/static/js/admin.js"></script>
<script type="text/javascript">
//编辑器路径定义
var editorURL = GV.WEB_ROOT;
</script>
<script type="text/javascript" src="/candy/public/static/js/ueditor/ueditor.config.js"></script>
<script type="text/javascript" src="/candy/public/static/js/ueditor/ueditor.all.min.js"></script>
<script type="text/javascript">
$(function () {
editorcontent = new baidu.editor.ui.Editor();
editorcontent.render('content');
try {
editorcontent.sync();
} catch (err) {
}
$('#more-template-select').val("<?php echo (isset($post['more']['template']) && ($post['more']['template'] !== '')?$post['more']['template']:''); ?>");
});
</script>
</body>
</html>
\ No newline at end of file
<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:52:"themes/admin_simpleboot3/user\admin_oauth\score.html";i:1530955174;s:68:"D:\wamp\www\candy\public\themes\admin_simpleboot3\public\header.html";i:1516676889;}*/ ?>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<!-- Set render engine for 360 browser -->
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- HTML5 shim for IE8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<![endif]-->
<link href="/candy/public/themes/admin_simpleboot3/public/assets/themes/<?php echo cmf_get_admin_style(); ?>/bootstrap.min.css" rel="stylesheet">
<link href="/candy/public/themes/admin_simpleboot3/public/assets/simpleboot3/css/simplebootadmin.css" rel="stylesheet">
<link href="/candy/public/static/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
<!--[if lt IE 9]>
<script src="https://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
<style>
form .input-order {
margin-bottom: 0px;
padding: 0 2px;
width: 42px;
font-size: 12px;
}
form .input-order:focus {
outline: none;
}
.table-actions {
margin-top: 5px;
margin-bottom: 5px;
padding: 0px;
}
.table-list {
margin-bottom: 0px;
}
.form-required {
color: red;
}
</style>
<script type="text/javascript">
//全局变量
var GV = {
ROOT: "/candy/public/",
WEB_ROOT: "/candy/public/",
JS_ROOT: "static/js/",
APP: '<?php echo \think\Request::instance()->module(); ?>'/*当前应用名*/
};
</script>
<script src="/candy/public/themes/admin_simpleboot3/public/assets/js/jquery-1.10.2.min.js"></script>
<script src="/candy/public/static/js/wind.js"></script>
<script src="/candy/public/themes/admin_simpleboot3/public/assets/js/bootstrap.min.js"></script>
<script>
Wind.css('artDialog');
Wind.css('layer');
$(function () {
$("[data-toggle='tooltip']").tooltip();
$("li.dropdown").hover(function () {
$(this).addClass("open");
}, function () {
$(this).removeClass("open");
});
});
</script>
<?php if(APP_DEBUG): ?>
<style>
#think_page_trace_open {
z-index: 9999;
}
</style>
<?php endif; ?>
</head>
<body>
<div class="wrap">
<!--<form class="well form-inline margin-top-20" method="post" action="<?php echo url('AdminGoods/index'); ?>">-->
<!--分类:-->
<!--<select class="form-control" name="cate_id" style="width: 140px;">-->
<!--<option value='0'>全部</option>-->
<!--</select> &nbsp;&nbsp;-->
<!--时间:-->
<!--<input type="text" class="form-control js-bootstrap-datetime" name="start_time"-->
<!--value="<?php echo (isset($start_time) && ($start_time !== '')?$start_time:''); ?>"-->
<!--style="width: 140px;" autocomplete="off">- -->
<!--<input type="text" class="form-control js-bootstrap-datetime" name="end_time"-->
<!--value="<?php echo (isset($end_time) && ($end_time !== '')?$end_time:''); ?>"-->
<!--style="width: 140px;" autocomplete="off"> &nbsp; &nbsp;-->
<!--商品名称:-->
<!--<input type="text" class="form-control" name="keyword" style="width: 200px;"-->
<!--value="<?php echo (isset($keyword) && ($keyword !== '')?$keyword:''); ?>">-->
<!--<input type="submit" class="btn btn-primary" value="搜索"/>-->
<!--<a class="btn btn-danger" href=" 'AdminGoods/index')}">清空</a>-->
<!--</form>-->
<ul class="nav nav-tabs">
<li class="active"><a>积分明细</a></li>
</ul>
<form method="post" class="js-ajax-form margin-top-20">
<div>
<p style="font-size: 30px;">姓名:<span><?php echo $list['name']; ?></span></p>
<p style="font-size: 30px;">总积分:<span><?php echo $list['all_score']; ?></span></p>
</div>
<table class="table table-hover table-bordered">
<thead>
<tr>
<th>ID</th>
<th>积分内容</th>
<th>获得积分</th>
<th align="center" style="width: 15%;">创建时间</th>
<th align="center" style="width: 15%;">更新时间</th>
</tr>
</thead>
<tbody>
<?php if(is_array($list['detail']) || $list['detail'] instanceof \think\Collection || $list['detail'] instanceof \think\Paginator): if( count($list['detail'])==0 ) : echo "" ;else: foreach($list['detail'] as $key=>$vo): ?>
<tr>
<td><?php echo $vo['id']; ?></td>
<td><?php echo $vo['title']; ?></td>
<td><?php echo $vo['score']; ?></td>
<td><?php echo $vo['create_time']; ?></td>
<td><?php echo $vo['update_time']; ?></td>
</tr>
<?php endforeach; endif; else: echo "" ;endif; ?>
</tbody>
</table>
<a class="btn btn-default" href="<?php echo url('AdminOauth/index'); ?>"><?php echo lang('BACK'); ?></a>
</form>
</div>
<script src="/candy/public/static/js/admin.js"></script>
</body>
</html>
\ No newline at end of file
<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:37:"themes/simpleboot3/portal\\point.html";i:1530943798;}*/ ?>
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="//at.alicdn.com/t/font_724267_hizrwxnkr3j.css">
<link rel="stylesheet" href="/candy/public/themes/simpleboot3/public/assets/css/style.css">
<script type="text/javascript" src="/candy/public/themes/simpleboot3/public/assets/js/fontsize.js"></script>
<title>积分明细</title>
</head>
<body>
<div class="po_top">
<div class="po_title">我的积分</div>
<div class="po_num"><?php echo $list['all_score']; ?></div>
</div>
<div class="po_itembox">
<?php if(is_array($list['detail']) || $list['detail'] instanceof \think\Collection || $list['detail'] instanceof \think\Paginator): $i = 0; $__LIST__ = $list['detail'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
<div class="po_item">
<div class="po_left">
<div><?php echo $vo['title']; ?></div>
<div class="po_time"><?php echo date('Y-m-d H:i',$vo['create_time']); ?></div>
</div>
<div class="po_right">
+<?php echo $vo['score']; ?>
</div>
</div>
<?php endforeach; endif; else: echo "" ;endif; ?>
</div>
<div class="nav_bottom">
<a class="bottom_item " href="<?php echo url('Index/poster'); ?>">
<div class="bottom_icon"><span class="iconfont icon-haibao"></span></div>
<div>海报</div>
</a>
<a class="bottom_item" href="<?php echo url('Index/wxPic'); ?>">
<div class="bottom_icon"><span class="iconfont icon-saomiaoerweima"></span></div>
<div>群二维码</div>
</a>
<a class="bottom_item po_activity" href="<?php echo url('Index/score'); ?>">
<div class="bottom_icon"><span class="iconfont icon-jifen"></span></div>
<div>积分明细</div>
</a>
<a class="bottom_item" href="<?php echo url('Index/user'); ?>">
<div class="bottom_icon"><span class="iconfont icon-wode-"></span></div>
<div>个人中心</div>
</a>
</div>
<script src="/candy/public/themes/simpleboot3/public/assets/js/jquery-2.1.0.js" type="text/javascript" charset="utf-8"></script>
<script src="/candy/public/themes/simpleboot3/public/assets/js/common.js" type="text/javascript" charset="utf-8"></script>
</body>
</html>
\ No newline at end of file
... ... @@ -289,14 +289,14 @@
<!--</a>-->
<!--</if>-->
<!--<if condition="APP_DEBUG">-->
<!--<a class="btn btn-sm btn-default"-->
<!--href="javascript:openapp('{:url('admin/Menu/index')}','index_menu','{:lang('ADMIN_MENU_INDEX')}',true);"-->
<!--title="{:lang('ADMIN_MENU_INDEX')}"-->
<!--data-toggle="tooltip">-->
<!--<i class="fa fa-list"></i>-->
<!--</a>-->
<!--</if>-->
<if condition="APP_DEBUG">
<a class="btn btn-sm btn-default"
href="javascript:openapp('{:url('admin/Menu/index')}','index_menu','{:lang('ADMIN_MENU_INDEX')}',true);"
title="{:lang('ADMIN_MENU_INDEX')}"
data-toggle="tooltip">
<i class="fa fa-list"></i>
</a>
</if>
</div>
<div id="nav-wrapper">
... ...
... ... @@ -12,16 +12,7 @@
<table class="table table-bordered">
<input name="id" type="hidden" value="{$change.id}">
<tr>
<th>缩略图</th>
<td>
<select class="form-control" name="type" style="width:30%;">
<option name="type" value="1" <eq name="change.type" value="1">selected</eq>>海报图</option>
<option name="type" value="2" <eq name="change.type" value="2">selected</eq>>微信群图</option>
</select>
</td>
</tr>
<tr>
<th>缩略图</th>
<th>微信群图</th>
<td>
<div style="text-align: center;">
<input type='hidden' name='pic' id='thumbnail' value="{$change.pic}">
... ...
... ... @@ -27,8 +27,7 @@
</label>
</th>
<th width="100">ID</th>
<th>类型</th>
<th>图片</th>
<th>微信群图</th>
<th>发布时间</th>
<th>更新时间</th>
<th>状态</th>
... ... @@ -42,14 +41,7 @@
value="{$vo.id}">
</td>
<td>{$vo.id}</td>
<td>
<eq name="vo.type" value="1">
海报图
</eq>
<eq name="vo.type" value="2">
微信群图
</eq>
</td>
<td><img src="{$vo.pic}" height="100px"/></td>
<td>{:date('Y-m-d H:i',$vo['create_time'])}
</td>
... ...
... ... @@ -12,7 +12,7 @@
<table class="table table-bordered">
<input name="id" type="hidden" value="{$change.id}">
<tr>
<th>缩略图</th>
<th>类型</th>
<td>
<select class="form-control" name="type" style="width:30%;">
<option name="type" value="1" <eq name="change.type" value="1">selected</eq>>注册赠送积分</option>
... ...
<include file="public@header"/>
</head>
<body>
<div class="wrap js-check-wrap">
<ul class="nav nav-tabs">
<!--<li><a href="{:url('AdminPic/score')}">图片列表</a></li>-->
<!--<li class="active"><a href="{:url('AdminPic/scoreAdd')}">添加图片</a></li>-->
</ul>
<form action="{:url('AdminPic/write')}" method="post" class="form-horizontal js-ajax-form margin-top-20">
<div class="row">
<div class="col-md-9">
<table class="table table-bordered">
<input name="id" type="hidden" value="{$change.id}">
<tr>
<th>文字内容</th>
<td>
<input class="form-control" type="text" style="width: 400px;" name="pic"
required
value="{$change.pic}" placeholder="请输入海报图文字内容"/>
</td>
</tr>
</tbody>
</table>
<div class="form-group">
<div class="col-sm-offset-2 col-sm-10">
<button type="submit" class="btn btn-primary js-ajax-submit">{:lang('SAVE')}</button>
<!--<a class="btn btn-default" href="{:url('AdminPic/score')}">{:lang('BACK')}</a>-->
</div>
</div>
</div>
</div>
</form>
</div>
<script type="text/javascript" src="__STATIC__/js/admin.js"></script>
<script type="text/javascript">
//编辑器路径定义
var editorURL = GV.WEB_ROOT;
</script>
<script type="text/javascript" src="__STATIC__/js/ueditor/ueditor.config.js"></script>
<script type="text/javascript" src="__STATIC__/js/ueditor/ueditor.all.min.js"></script>
<script type="text/javascript">
$(function () {
editorcontent = new baidu.editor.ui.Editor();
editorcontent.render('content');
try {
editorcontent.sync();
} catch (err) {
}
$('#more-template-select').val('page');
});
</script>
</body>
</html>
... ...
... ... @@ -34,11 +34,12 @@
<th>电话</th>
<th>微信</th>
<th>钱包地址</th>
<th>上级id</th>
<th>上级姓名</th>
<th style=" width:7%;" align="center">上级id</th>
<th >上级姓名</th>
<th>积分</th>
<th>注册时间</th>
<th align="center" style="width: 15%;">会员信息</th>
<th align="center" style="width: 11%;">查看下线</th>
<th align="center" style="width: 9%;">查看下线</th>
</tr>
</thead>
<tbody>
... ... @@ -46,11 +47,12 @@
<td>{$vo.id}</td>
<td>{$vo.name}</td>
<td>{$vo.tel}</td>
<td>{$vo.wx}</td>
<td>{$vo.wallet}</td>
<td>{$vo.parent_id}</td>
<td>{$vo.parent_name}</td>
<td style="word-break:break-all; width:150px;" >{$vo.wx}</td>
<td style="word-break:break-all; width:200px;">{$vo.wallet}</td>
<td align="center">{$vo.parent_id}</td>
<td align="center">{$vo.parent_name}</td>
<td>{$vo.score}</td>
<td>{$vo.create_time|date='Y-m-d H:i:s',###}</td>
<td style="text-align: center;">
<a href="{:url('adminOauth/edit',array('id'=>$vo['id']))}">修改</a>&nbsp;&nbsp;
... ...
... ... @@ -132,10 +132,10 @@
"code":code,
},
success:function (data) {
// alert(JSON.stringify(data))
if(data.code == 1){
var url = "{:url('portal/Index/poster',array('is_login'=>1))}";
window.location.href = url;
alert(data.msg);
}
else if(data.code == 2) {
// var uid = data.data;
... ... @@ -146,7 +146,7 @@
var url = "{:url('portal/Index/poster',array('is_login'=>2))}";
// console.log(url)
window.location.href = url;
alert(data.msg);
// alert(data.msg);
}else{
alert(data.msg);
}
... ...
... ... @@ -73,15 +73,15 @@
}
})
})
$(".name").focus(function(){
$(this).parents(".item").find(".item_must").css("color","#fff");
});
$(".wx").focus(function(){
$(this).parents(".item").find(".item_must").css("color","#fff");
});
$(".play").focus(function(){
$(this).parents(".item").find(".item_must").css("color","#fff");
});
// $(".name").focus(function(){
// $(this).parents(".item").find(".item_must").css("color","#fff");
// });
// $(".wx").focus(function(){
// $(this).parents(".item").find(".item_must").css("color","#fff");
// });
// $(".play").focus(function(){
// $(this).parents(".item").find(".item_must").css("color","#fff");
// });
/***禁止滑动***/
function stop() {
document.body.style.overflow = 'hidden';
... ...
... ... @@ -125,7 +125,7 @@ input:hover {
}
.lo_item .lo_item_input {
width: 2.7rem;
width: 35%;
color: #B2B2B2;
font-size: 0.34rem;
}
... ... @@ -398,24 +398,24 @@ input:hover {
width:5.6rem;
height:2.9rem;
text-align: center;
border-radius: 0.05rem;
background-color: #fff;
}
.all_title{
margin: 0.3rem 0 0 0;
margin: 0.4rem 0 0 0;
color:#000;
font-size:0.34rem;
font-weight:bold;
}
.all_content{
margin: 0.3rem 0 0 0;
padding: 0 0 0.5rem 0;
padding: 0 0 0.4rem 0;
font-size:0.30rem;
color:#B2B2B2;
border-bottom:1px solid #efeff4;
}
.all_yes{
margin: 0.2rem 0 0 0;
margin: 0.3rem 0 0 0;
color:#00C203;
font-size:0.36rem;
}
\ No newline at end of file
... ...
... ... @@ -85,11 +85,16 @@ class Dir {//类定义开始
$dir[$i]['isReadable'] = is_readable($file);
$dir[$i]['isWritable'] = is_writable($file);
}
$cmp_func = create_function('$a,$b', '
$k = "isDir";
if($a[$k] == $b[$k]) return 0;
return $a[$k]>$b[$k]?-1:1;
');
// $cmp_func = create_function('$a,$b', '
// $k = "isDir";
// if($a[$k] == $b[$k]) return 0;
// return $a[$k]>$b[$k]?-1:1;
// ');
$cmp_func = function ($a,$b){
$k = "isDir";
if($a[$k] == $b[$k]) return 0;
return $a[$k]>$b[$k]?-1:1;
};
// 对结果排序 保证目录在前面
usort($dir, $cmp_func);
$this->_values = $dir;
... ...