/** * 批量操作 * * @return array */ public function one() { if ($this->m->operating($this->get())) { echo '<script type="text/javascript">alert("操作成功!");</script>'; echo '<meta http-equiv="refresh" content="0;url=' . app_url('/Dbmanage/dbbackup') . '">'; } else { echo '<script type="text/javascript">alert("操作失败!");window.history.back()</script>'; } }
public function delete() { if ($this->get(['id'])) { if ($this->m->orderDel($this->get('id'))) { $order = $this->m->getOne($_GET['id']); $this->r_log('删除订单' . $order['order_sn']); $this->message(NULL, app_url('/order/execution/re/1/message/' . self::DELETE_SUCCESS_MESSAGE)); } else { $this->message(NULL, app_url('/order/execution/re/1/message/' . self::DELETE_FAILURE_MESSAGE)); } } else { $this->message(NULL, app_url('/order/execution/re/1/message/' . self::DELETE_FAILURE_MESSAGE)); } }
public function delete() { if ($this->get(['id'])) { $data = $this->m->getOne($this->get('id')); $this->r_log('编辑权限' . $data['name']); if ($this->m->delete($this->get('id'))) { $this->message(NULL, app_url('/power/execution/re/1/message/' . self::DELETE_SUCCESS_MESSAGE)); } else { $this->message(NULL, app_url('/power/execution/re/1/message/' . self::DELETE_FAILURE_MESSAGE)); } } else { $this->message(NULL, app_url('/power/execution/re/1/message/' . self::DELETE_FAILURE_MESSAGE)); } }
public function delete() { if ($this->get(['id'])) { if ($this->m->delete($this->get('id'))) { $columns = $this->m->getOne($_GET['id']); $this->r_log('删除栏目' . $columns['name']); $this->message(NULL, app_url('/columns/execution/re/1/message/' . self::DELETE_SUCCESS_MESSAGE)); } else { $this->message(NULL, app_url('/columns/execution/re/1/message/' . self::DELETE_FAILURE_MESSAGE)); } } else { $this->message(NULL, app_url('/columns/execution/re/1/message/' . self::DELETE_FAILURE_MESSAGE)); } }
public function delete() { if ($this->get(['id'])) { if ($this->m->linkDel($this->get('id'))) { $link = $this->m->getOne($_GET['id']); $this->r_log('删除友情链接' . $link['name']); $this->message(NULL, app_url('/link/execution/re/1/message/' . self::DELETE_SUCCESS_MESSAGE)); } else { $this->message(NULL, app_url('/link/execution/re/1/message/' . self::DELETE_FAILURE_MESSAGE)); } } else { $this->message(NULL, app_url('/link/execution/re/1/message/' . self::DELETE_FAILURE_MESSAGE)); } }
public function delete() { if ($this->get(['id'])) { $link = $this->m->getOne($_GET['id']); if ($this->m->linkDel($this->get('id'))) { $start_title = <<<str <a href="{$link['link']}" target=_blank>{$link['name']}</a> str; $this->m_article->repContent('content', $start_title, $link['name']); $this->r_log('删除关键词链接' . $link['name']); $this->message(NULL, app_url('/link/execution/re/1/message/' . self::DELETE_SUCCESS_MESSAGE)); } else { $this->message(NULL, app_url('/link/execution/re/1/message/' . self::DELETE_FAILURE_MESSAGE)); } } else { $this->message(NULL, app_url('/link/execution/re/1/message/' . self::DELETE_FAILURE_MESSAGE)); } }
/** * 登录验证 * @access public * @return json */ public function index() { session_start(); if ($_SESSION['manage']) { $this->message('', app_url('/home/index')); exit; } if ($this->post()) { if ($_POST['admincode'] == C('ADMIN_CODE')) { $model = lib::getinstance()->A('Admin\\Model', Null, 'Model'); $user = $this->post('user'); $password = md5($this->post('password')); $datetime = date('Y-m-d H:i:s', time()); $sql = "select * from @_manage where admin=:user and password=:password and status=1"; $re = $model->prepare($sql); $re->user = $user; $re->password = $password; $result = $re->execute()->fetch(); $manage_id = $result['id']; if ($result) { $_SESSION['manage'] = $_POST['user']; $_SESSION['power_id'] = $result['power_id']; $base_arr = lib::getinstance()->A('Admin\\Model\\base', Null, 'Model')->getOne(); $power_arr = Lib::getinstance()->A('Admin\\Model\\power', Null, 'Model')->getOne($_SESSION['power_id']); $_SESSION['power_name'] = $power_arr['name']; $_SESSION['base_name'] = $base_arr['name']; $sql = "update @_manage set datetime='{$datetime}' where id='{$manage_id}'"; $model->prepare($sql)->execute(); echo json_encode(array('status' => 'y')); exit; } else { echo json_encode(array('status' => 'n')); exit; } } else { echo json_encode(array('status' => 'c')); exit; } } $this->display('login.html'); }
<a href="<?php echo app_url('/article/edit/id/' . $v['id']); ?> " class="color00f storng">修改</a> | <a href="<?php echo app_url('/article/delete/id/' . $v['id']); ?> " class="color999" onClick='return confirm("删除是不可恢复的,你确认要删除<?php if ($v['title']) { echo $v['title']; } ?> 吗?");'>删除</a> | <a href="<?php echo app_url('/article/aprrove/id/' . $v['id']); ?> ">审核</a> </td> </tr><?php } } ?> </tbody> </table> </div> <div id="art_sxsz"> <div id="art_xz"><input type="button" value="全选" id="art_xz_qx" onclick="checkAll()"><input type="button" value="反选" id="art_xz_fx" onclick="switchAll()"><input type="button" value="不选" id="art_xz_bx" onclick="uncheckAll()">
} } }); $("#save").click(function(){ data.ajaxPost(); $.Hidemsg(); }); }); </script> </head> <body> <div id="main"> <form method="post" action="<?php echo app_url('/user/save'); ?> " class="form"> <div id="main_top"> <dl id="article_ico"> <dd class="art_ico_8"><a href="javascript:void(0)" id="save">保存信息</a></dd> <dd class="art_ico_9"><a href="javascript:history.go(-1)">取消返回</a></dd> </dl> </div> <div id="art_body"> <table cellspacing="0" class="add_art"> <tr> <th>管理员:</th> <td width="500"><input type="text" name="admin" class="inputxt" datatype="*1-8" nullmsg="名称为能为空!" errormsg="名称为1-8个字符!"></td> <td><span class="article_notes colorf60">※:请输入名称</span></td> </tr>
public function index() { $this->message('', app_url('/login/index')); }
}); $("#save").click(function(){ data.ajaxPost(); $.Hidemsg(); }); }; </script> </head> <body> <div id="main"> <form method="post" action="<?php echo app_url('/power/save'); ?> " class="form"> <div id="main_top"> <dl id="article_ico"> <dd class="art_ico_8"><a href="javascript:void(0)" id="save">保存权限组</a></dd> <dd class="art_ico_9"><a href="javascript:history.go(-1)">取消返回</a></dd> </dl> </div> <div id="art_body"> <table cellspacing="0" class="add_art"> <tr> <th>权限组名称:</th> <td width="520"><input name="name" type="text" id="name" class="inputxt" style="width:300px" datatype="*1-8" nullmsg="栏目名称为能为空!" errormsg="栏目名称为1-8个字符!" value="" /></td> </tr> <tr>
public function move() { if ($this->post(['columnsid', 'data'])) { if ($this->m['article']->move(array_filter(explode(',', $this->post('data'))), $this->post('columnsid'))) { $this->message(NULL, app_url('/article/execution/re/1/message/' . self::ARTICLE_MOVES_MESSAGE)); } else { $this->message(NULL, app_url('/article/execution/re/1/message/' . self::ARTICLE_MOVEC_MESSAGE)); } } else { $this->message(NULL, app_url('/article/execution/re/1/message/' . self::ARTICLE_MOVEC_MESSAGE)); } }
<?php require "help.php"; $array = array(); foreach ($_POST['blname'] as $k => $v) { $array[$v] = $_POST['blvalue'][$k]; } //$array['Time'] = time(); //$array['ReturnType'] = RETURNTYPE; $rerutn['testsign'] = test_sign($array, $_REQUEST['ApiKey']); $array['sign'] = set_sign($array, $_REQUEST['ApiKey']); foreach ($_POST['blname'] as $k => $v) { if (isset($_POST['blfunction'][$k]) && !empty($_POST['blfunction'][$k])) { $array[$v] = $_POST['blfunction'][$k]($array[$v]); } } $res = splice_url($array); $rerutn['url'] = app_url($_REQUEST['ApiAddress'], $_REQUEST['ApiCtl'], $_REQUEST['ApiAc'], $res); echo json_encode($rerutn);
</tr><?php if ($array && is_array($array)) { foreach ($array as $k => $v) { ?> <tr class="bg_fff"> <td style="text-align:left;padding-left: 50px;"><?php if ($v['name']) { echo $v['name']; } ?> </td> <td><a href="<?php echo app_url('/power/edit/id/' . $v['id']); ?> ">编辑</a> | <a href="<?php echo app_url('/power/delete/id/' . $v['id']); ?> " onclick="javascript:return confirm('您确定要删除“<?php if ($v['name']) { echo $v['name']; } ?> ”权限组吗?')">删除</a></td> </tr><?php } } ?> </table> </div> <div id="art_sxsz"></div> </div>
$.validate({ form: '#login-form', validateOnBlur: false, onError: function () { return false; }, onSuccess: function ($form) { var btn = $("#login-btn").button("loading"); $.post('<?php ajax_url("validate/savepassword"); ?> ',$form.serialize() ,function(response){ if(response.status){ window.location = "<?php app_url("login"); ?> "; }else{ $("#status").text(response.errorMessage); } }).always(function(){ $(btn).button("reset"); }); return false; } }); </script> </body> </html>
</a> </td> <td><?php if ($v['link']) { echo $v['link']; } ?> </td> <td> <a href="<?php echo app_url('/tagLink/edit/id/' . $v['id']); ?> ">编辑</a> | <a href="<?php echo app_url('/tagLink/delete/id/' . $v['id']); ?> " onclick="javascript:return confirm('您确定要删除“<?php if ($v['name']) { echo $v['name']; } ?> ”关键词链接吗?')">删除</a> </td> </tr><?php } } ?> </table> </div>
?> 是<?php } else { ?> 否<?php } ?> </td> <td> <a href="<?php echo app_url('/columns/edit/id/' . $v['id'] . '/classid/' . $v['classid']); ?> ">编辑</a> | <a href="<?php echo app_url('/columns/delete/id/' . $v['id']); ?> " onclick="javascript:return confirm('您确定要删除“<?php if ($v['name']) { echo $v['name']; } ?> ”栏目吗?')">删除</a> </td> </tr><?php } } ?> </table> </div>
<tr><th colspan="2"><h3>系统操作提示信息</h3></th></tr> <tr> <td width="240"><img src="<?php echo skin('Image/duihao.png'); ?> " style="display:block; margin:20px auto" /></td> <td><?php if ($_GET['re'] == '1') { ?> <?php echo urldecode($_GET['message']); } else { echo urldecode($_GET['message']); ?> <?php } ?> </td> </tr> <tr> <th colspan="2">【<a href="<?php echo app_url('/power/index'); ?> ">返回列表</a>】</th> </tr> </table> </div> </div> </body> </html>
if (hasAccess("MANAGE_CONTRACTOR")) { ?> <li> <a href="<?php app_url("contractors"); ?> "><i class="fa fa-male fa-fw"></i> Contractors</a> </li> <?php } ?> <?php if (hasAccess("MANAGE_USER")) { ?> <li> <a href="<?php app_url("users"); ?> "><i class="fa fa-users fa-fw"></i> User Management</a> </li> <?php } ?> </ul> </div> <!-- /.sidebar-collapse --> </div> <!-- /.navbar-static-side --> </nav>
public function delete() { if ($this->get(['id'])) { $array = $this->m->getOne($this->get('id')); $this->r_log('删除用户' . $array['admin']); if ($this->m->delete($this->get('id'))) { $this->message(NULL, app_url('/user/execution/re/1/message/' . self::DELETE_SUCCESS_MESSAGE)); } else { $this->message(NULL, app_url('/user/execution/re/1/message/' . self::DELETE_FAILURE_MESSAGE)); } } else { $this->message(NULL, app_url('/user/execution/re/1/message/' . self::DELETE_FAILURE_MESSAGE)); } }
} ?> </td> <td width="100"> <?php if ($v['power_id'] == 0) { ?> 超级管理员不可编辑 <?php } else { ?> <a href="<?php echo app_url('/user/edit/id/' . $v['id']); ?> ">编辑</a> | <a href="<?php echo app_url('/user/delete/id/' . $v['id']); ?> " onclick="javascript:return confirm('您确定要删除“<?php if ($v['admin']) { echo $v['admin']; } ?> ”用户吗?')">删除</a> <?php } ?> </td> </tr><?php } } ?>
} } }); $("#save").click(function(){ data.ajaxPost(); $.Hidemsg(); }); }); </script> </head> <body> <div id="main" style="overflow:hidden;"> <form method="post" action="<?php echo app_url('/base/save'); ?> " class="form"> <div id="main_top"> <dl id="article_ico"> <dd class="art_ico_8"><a href="javascript:void(0)" id="save">保存配置</a></dd> </dl> </div> <div id="art_body"> <table cellspacing="0" class="add_art"> <tr> <th>网站名称:</th> <td width="320"><input name="name" type="text" id="name" class="inputxt" style="width:300px" datatype="*1-255" errormsg="网站名称至少6个字符!" value="<?php if ($array['article']['name']) { echo $array['article']['name']; }
function proxify_url($url, $base_url = '') { $url = htmlspecialchars_decode($url); if ($base_url) { $base_url = add_http($base_url); $url = rel2abs($url, $base_url); } return app_url() . '?q=' . url_encrypt($url); }
<?php defined('TPL_INCLUDE') or exit('Access Denied'); ?> <div id="top"> <div id="logo"><a href="index.php"><img src="/Public/Admin/Image/logo.png" /></a></div> <div class="f-l"> 快速通道:<a href="index.php">后台管理首页</a> <a href="<?php echo app_url(); ?> base/index" target="main">基本信息设置</a> <a href="<?php echo app_url(); ?> control/rdHtml" onclick='return confirm("你确定要删除所有缓存文件吗?");'>清除所有缓存文件</a> </div> <div id="top_link"> [<a href="/" target="_blank" title="点击打开网站前台首页">网站首页</a>] [<a href="<?php echo app_url(); ?> home/quit" title="点击退出网站后台">退出后台</a>] </div> </div>
require 'header.php'; ?> <div id="page-wrapper"> <div class="container-fluid"> <div class="row"> <div class="col-lg-12"> <h3 class="page-header"><i class="fa fa-briefcase fa-fw"></i> <?php echo $pageTitle; ?> - <?php echo $project->getName(); ?> <a class="btn btn-outline btn-primary" style="float:right;" href="<?php app_url("projects"); ?> "> <i class="fa fa fa-share fa-rotate-180"></i> Back </a> </h3> </div> <div class="col-lg-12"> <?php if ($pageTitle == "Work Order" && hasAccess("APPROVE_WORK_ORDER")) { include "workorder.approve.alert.php"; } if ($pageTitle == "Bill" && hasAccess("APPROVE_BILL")) { include "bill.approve.alert.php"; }
function get_faq_list($FaqTypeId = 0, $KeyWord = "", $per_page = 1) { $array['FaqTypeId'] = $FaqTypeId; $array['KeyWord'] = $KeyWord; $array['Start'] = $per_page < 1 ? $per_page * 10 : ($per_page - 1) * 10; $array['Count'] = $per_page == 0 ? 0 : 10; $array['Time'] = time(); $array['ReturnType'] = RETURNTYPE; $array['sign'] = set_sign($array, 'lm'); $array['KeyWord'] = urlencode($array['KeyWord']); $res = splice_url($array); $return = json_decode(file_get_contents(app_url('config/faq', 'get.faq.list', $res)), true); return $return; }
</script> </head> <body> <div id="main"> <form method="post" action="<?php echo app_url('/article/save/id/' . $article['id']); ?> " class="form"> <div id="main_top"> <dl id="article_ico"> <dd class="art_ico_8"><a href="javascript:void(0)" id="save">保存文章</a></dd> <dd class="art_ico_9"><a href="<?php echo app_url('/article/index'); ?> ">取消返回</a></dd></dl> </div> <div id="art_body"> <table cellspacing="0" class="add_art"> <tr> <th>标题:</th> <td width="650"><input id="title" name="title" type="text" class="inputxt" style="width:300px" datatype="*1-255" nullmsg="请填写信息!" errormsg="姓名要1-255个字符!" value="<?php if ($article['title']) { echo $article['title']; } ?> "/></td> <td><span class="article_notes colorf60">※:录入文章标题,不要太长,不利于SEO。</span></td> </tr>