Commit c18e19ac by biao

1

parent 41c66337
<?php
/**
* 管理员管理
* $Id: grade_delete_result.php,v 1.1 2015/10/08 11:18:46 wanggb Exp $
* @author wanggb
* @package manager.public_html
*/
// 底层包含
require_once("manager_include.inc");
// 登录检查
require_once("check_login.inc");
// 权限检查
if (!checkAuthority("ADMIN")) {
// エラー表示
$layout_pages = array();
$layout_pages["left"] = "menu.inc";
$layout_pages["right"] = "error.inc";
$message = "权限不足,请联系系统管理员。";
require_once(MANAGER_TEMPLATE_DIR_PATH . "/layout/leftmenu_layout.inc");
exit;
}
// 参数取得
$id = ParamUtil::getRequestString("id");
$class_mst = ClassMst::getById($id);
if ($class_mst == null) {
// エラー表示
$layout_pages = array();
$layout_pages["left"] = "menu.inc";
$layout_pages["right"] = "class_list.inc";
$layout_pages["menu_clicked"] = "menu_grade";
require_once(MANAGER_TEMPLATE_DIR_PATH . "/layout/leftmenu_layout.inc");
exit;
}
// 数据库更新
$class_mst->delete_flg = true;
$class_mst->save();
// 跳到一览页
header("Location:class_list.php");
exit;
<?php
/**
* 班级管理
* $Id: class_edit_input.php,v 1.1 2015/10/08 11:18:46 wanggb Exp $
* @author wanggb
* @package manager.public_html
*/
// 底层包含
require_once("manager_include.inc");
// 登录检查
require_once("check_login.inc");
// 权限检查
if (!checkAuthority("3")) {
// エラー表示
$layout_pages = array();
$layout_pages["left"] = "menu.inc";
$layout_pages["right"] = "error.inc";
$message = "权限不足,请联系系统管理员。";
require_once(MANAGER_TEMPLATE_DIR_PATH . "/layout/leftmenu_layout.inc");
exit;
}
// 参数取得
$id = ParamUtil::getRequestString("id");
$class_mst = ClassMst::getById($id);
$school_title = SchoolMst::getById($class_mst->school_id)->title;
$grade_title = GradeMst::getById($class_mst->grade_id)->title;
// 页面表示
$_SCRIPT_FILE = array("scripts/validators.js", "scripts/class.js");
$layout_pages = array();
$layout_pages["left"] = "menu.inc";
$layout_pages["right"] = "class_edit_input.inc";
$layout_pages["menu_clicked"] = "1-3";
require_once(MANAGER_TEMPLATE_DIR_PATH . "/layout/leftmenu_layout.inc");
exit;
\ No newline at end of file
<?php
/**
* 管理员管理
* $Id: grade_edit_result.php,v 1.1 2015/10/08 11:18:46 wanggb Exp $
* @author wanggb
* @package manager.public_html
*/
// 底层包含
require_once("manager_include.inc");
// 登录检查
require_once("check_login.inc");
// 权限检查
if (!checkAuthority("3")) {
// エラー表示
$layout_pages = array();
$layout_pages["left"] = "menu.inc";
$layout_pages["right"] = "error.inc";
$message = "权限不足,请联系系统管理员。";
require_once(MANAGER_TEMPLATE_DIR_PATH . "/layout/leftmenu_layout.inc");
exit;
}
// 参数取得
$member_count = ParamUtil::getRequestString("member_count");//new edit
$id = ParamUtil::getRequestString("id");
//编辑
$class_mst = ClassMst::getById($id);
if ($class_mst == null) {
// エラー表示
$layout_pages = array();
$layout_pages["left"] = "menu.inc";
$layout_pages["right"] = "error.inc";
$layout_pages["menu_clicked"] = "1-3";
require_once(MANAGER_TEMPLATE_DIR_PATH . "/layout/leftmenu_layout.inc");
exit;
}
// 数据库更新
$class_mst->member_count = $member_count;
$class_mst->save();
$layout_pages = array();
$layout_pages["left"] = "menu.inc";
$layout_pages["right"] = "class_edit_result.inc";
$layout_pages["menu_clicked"] = "1-3";
require_once(MANAGER_TEMPLATE_DIR_PATH . "/layout/leftmenu_layout.inc");
exit;
\ No newline at end of file
<?php
/**
* 班级设定
* $Id: class_list.php,v 1.1 2015/10/08 11:18:46 wanggb Exp $
* @author zhanghuichuan
* @package manager.public_html
*/
// 底层包含
require_once("manager_include.inc");
// 登录检查
require_once("check_login.inc");
// 权限检查
if (!checkAuthority("3")) {
// エラー表示
$layout_pages = array();
$layout_pages["left"] = "menu.inc";
$layout_pages["right"] = "error.inc";
$message = "权限不足,请联系系统管理员。";
require_once(MANAGER_TEMPLATE_DIR_PATH . "/layout/leftmenu_layout.inc");
exit;
}
$school_id = ParamUtil::getRequestString("school_id");
if(!empty($_account->school_id)){
$school_id = $_account->school_id;
$school_mst = SchoolMst::getById($school_id);
}
// 一览取得
$param = array();
if(!empty($school_id)){
$param["school_id"] = $school_id;
}
$class_list = CompassHandler::getClassList($param,"id","asc");
if(empty($school_id)){
$param = array();
$param["delete_flg"] = false;
$school_list = SchoolMst::getList($param);
}
// ページ
$layout_pages = array();
$layout_pages["left"] = "menu.inc";
$layout_pages["right"] = "class_list.inc";
$layout_pages["menu_clicked"] = "1-3";
require_once(MANAGER_TEMPLATE_DIR_PATH . "/layout/leftmenu_layout.inc");
exit;
\ No newline at end of file
<?php
/**
* 视频课程分类表
* $Id: course_category_list.php,v 1.1 2015/10/08 11:18:46 wanggb Exp $
* @author zhanghuichuan
* @package manager.public_html
*/
// 底层包含
require_once("manager_include.inc");
// 登录检查
require_once("check_login.inc");
// 权限检查
if (!checkAuthority("3")) {
// エラー表示
$layout_pages = array();
$layout_pages["left"] = "menu.inc";
$layout_pages["right"] = "error.inc";
$message = "权限不足,请联系系统管理员。";
require_once(MANAGER_TEMPLATE_DIR_PATH . "/layout/leftmenu_layout.inc");
exit;
}
// 一览取得
$param = array();
$param["delete_flg"] = false;
$course_category_list = CourseCategoryDat::getList($param,"id","asc");
// ページ
$layout_pages = array();
$layout_pages["left"] = "menu.inc";
$layout_pages["right"] = "course_category_list.inc";
$layout_pages["menu_clicked"] = "4-5";
require_once(MANAGER_TEMPLATE_DIR_PATH . "/layout/leftmenu_layout.inc");
exit;
\ No newline at end of file
<?php
/**
* 商品分类管理
* $Id: product_category_list.php,v 1.1 2015/10/08 11:18:46 wanggb Exp $
* @author wanggb
* 系统动态
* $Id: account_list.php,v 1.1 2015/10/08 11:18:46 wanggb Exp $
* @author zhanghuichuan
* @package manager.public_html
*/
// 底层包含
......@@ -12,7 +12,7 @@ require_once("manager_include.inc");
require_once("check_login.inc");
// 权限检查
if (!checkAuthority("ADMIN")) {
if (!checkAuthority("ADMIN,MANAGER,STAFF")) {
// エラー表示
$layout_pages = array();
$layout_pages["footer"] = "footer.inc";
......@@ -23,24 +23,12 @@ if (!checkAuthority("ADMIN")) {
exit;
}
$param = array();
$param["delete_flg"] = false;
$param["status"] = '5';
$user_list = UserMst::getList($param);
foreach($user_list as $user) {
$add_point = 399;
$point_left = 0;
//添加积分记录
//添加一条新的记录
$user_point_log = new UserPointLog();
$user_point_log->user_id = $user->id;
$user_point_log->action_type = 4;//购买课程
$user_point_log->point = $add_point;
$user_point_log->point_left = $point_left + $add_point;
$user_point_log->status = "SUCCESS";
$user_point_log->save();
//用户剩余积分
$user->point = $point_left + $add_point;
$user->save();
}
\ No newline at end of file
//试卷
// ページ
$layout_pages = array();
$layout_pages["top"] = "menu.inc";
$layout_pages["menu_clicked"] = "li_event";
$layout_pages["middle"] = "event_list.inc";
require_once(MANAGER_TEMPLATE_DIR_PATH . "/layout/topmenutopsub_layout.inc");
exit;
\ No newline at end of file
<?php
//加载
require_once ("../manager_include.inc");
// 参数取得
$tag = ParamUtil::getRequestString("tag");
$selected_tags = ParamUtil::getRequestString("selected_tags");//##分割的字符串
//查询
$param = array();
$param["tag"] = $tag;
$param["delete_flg"] = false;
$tmp_list = ArticleTagsDat::getList($param);
if(empty($tmp_list)) {
//添加新标签
$tmp = new ArticleTagsDat();
$tmp->tag = $tag;
$tmp->click_count = 0;
$tmp->save();
}
//查询所有标签
$param = array();
$param["delete_flg"] = false;
$tag_list = ArticleTagsDat::getList($param, "id", "asc");
ob_start()
?>
<?
if(!empty($tag_list)) {
foreach($tag_list as $tagObj) {
$class_name = "tag";
if(!empty($selected_tags) && strpos($selected_tags,"##" . $tagObj->tag) !== false) {
$class_name = "tag_selected";
}
?>
<p class="<?=$class_name?>" onClick="clickTag('<?=$tagObj->tag?>');"><?=$tagObj->tag?></p>
<?
}
}
?>
<?
$html = ob_get_contents();
ob_end_clean();
print json_encode(array("html"=>$html));
<?php
// 发送短信验证码
require_once ("../manager_include.inc");
$user_id = ParamUtil::getRequestNumber("user_id", 0);
$user_mst = UserMst::getById($user_id);
ErrorLogger::doOutput("Koala...ajax_get_user_comments.php....user_id=" . $user_id, 0);
//回访记录列表
$param = array();
$param["delete_flg"] = false;
$param["user_id"] = $user_id;
$user_comment_list = UserCommentDat::getList($param, "id", "desc");
$index = 0;
ob_start();
foreach($user_comment_list as $tmp) {
$index++;
$account_mst = AccountMst::getById($tmp->account_id);
?>
<div style="display:flex;">
<div><?=$tmp->registration_date?></div>
<div><?=$account_mst->name ?>?></div>
<div><?=$tmp->comment ?>?></div>
<div><?=UserStatus::getTitleById($tmp->status); ?></div>
</div>
<?
}
?>
<div style="display:flex;">
<div>1</div>
<div>2</div>
<div>3</div>
<div>4</div>
</div>
<?
$html = ob_get_contents();
ob_end_clean();
ErrorLogger::doOutput("Koala...ajax_get_user_comments.php....html=" . $html, 0);
print json_encode(array("html"=>$html));
?>
\ No newline at end of file
<?php
//加载
require_once ("../manager_include.inc");
// 参数取得
$login = ParamUtil::getRequestString("login");
$password = ParamUtil::getRequestString("password");
ErrorLogger::doOutput("Koala...ajax_login.php....Start.", 0);
ErrorLogger::doOutput("Koala...ajax_login.php....login=" . $login, 0);
ErrorLogger::doOutput("Koala...ajax_login.php....password=" . $password, 0);
$login = ParamUtil::getRequestString("login");
$password = ParamUtil::getRequestString("password");
$login_ok = false;
if (!empty($login) && !empty($password)) {
$_account = AccountHandler::getAccountByLoginPassword($login, $password);
if ($_account != null) {
$_SESSION["account"] = $_account;
$login_ok = true;
}
}
ErrorLogger::doOutput("Koala...ajax_login.php....End.", 0);
if ($login_ok) {
responseOK("登陆成功!");
} else {
responseNG("登陆失败!");
}
function responseNG($message) {
$result = array("status"=>"NG", "message"=>$message);
print json_encode($result);
exit;
}
function responseOK($message) {
$result = array("status"=>"OK", "message"=>$message);
print json_encode($result);
exit;
}
?>
<?php
//加载
require_once ("../manager_include.inc");
// 参数取得
$mobile = ParamUtil::getRequestString("mobile");
$sql = "select u.* from user_mst u, user_buy_couse_dat ub where u.delete_flg=false and ub.delete_flg=false and ub.status='FINISH' and u.id=ub.user_id and u.mobile like '%{$mobile}%'";
$db = &KoalaDBManager::getInstance();
$data_list = $db->executeQuery($sql);
ob_start()
?>
<?
if(!empty($data_list)) {
$index = 0;
foreach($data_list as $data) {
$index++;
$user_id = $data["id"];
$nickname = $data["nickname"];
?>
<div class="search_user_item" onClick="addUser('<?=$user_id?>','<?=$nickname?>');"><?=$index?>.<?=$nickname?></div>
<?
}
}
?>
<?
$html = ob_get_contents();
ob_end_clean();
print json_encode(array("html"=>$html));
<?php
/**
* 系统报表
* $Id: report_list.php
* @author zhoz
* @package manager.public_html
*/
// 底层包含
require_once("manager_include.inc");
// 登录检查
require_once("check_login.inc");
// 权限检查
if (!checkAuthority("SYSTEM")) {
// エラー表示
$layout_pages = array();
$layout_pages["footer"] = "footer.inc";
$layout_pages["top"] = "menu.inc";
$layout_pages["middle"] = "error.inc";
$message = "权限不足,请联系系统管理员。";
require_once(MANAGER_TEMPLATE_DIR_PATH . "/layout/topmenutopsub_layout.inc");
exit;
}
// 参数取得
$date_min = ParamUtil::getRequestString("date_min", date("Y-m-01"));
$date_max = ParamUtil::getRequestString("date_max", date("Y-m-d"));
if (!DateUtil::checkValidDate($date_min)) {
$date_min = date("Y-m-01");
}
if (!DateUtil::checkValidDate($date_max)) {
$date_max = date("Y-m-d");
}
$param = array();
$param["date_min"] = $date_min;
$param["date_max"] = $date_max;
// 一览取得:
$data_list = getReportList($param);
/**
* 充值总金额,充值总代币数,消耗总代币数,兑换总代币数,平台剩余代币数
* 充值金额,充值代币数,转盘消耗代币数,兑换代币数,代币数增减(充值-消耗-兑换)
*/
function getReportList($param = array()) {
$diff_date_array = array();
$result_array = array();
$total_array = array(
"pay_count" => 0,
"point_count" => 0,
"cost_point_count" => 0,
"ex_point_count" => 0,
"remain_point" => 0
);
$date_min = $param["date_min"];
$date_max = $param["date_max"];
$d = floor((strtotime($date_max)-strtotime($date_min))/(24*60*60));
for ($i=0; $i<=$d; $i++) {
$diff_date_array[] = date("Y-m-d", strtotime("$date_max-$i day"));
}
$db = &FishowDBManager::getInstance();
// 充值金额,充值代币数user_course_dat
$sql1 = "select date_trunc('day', target_date) as target_date,sum(amount) as price, sum(point) as point from user_course_dat where delete_flg=false and status='SUCCESS'" .
" and date_trunc('day', target_date)>='" . $date_min . "'" .
" and date_trunc('day', target_date)<='" . $date_max . "' group by date_trunc('day', target_date)";
$result1 = $db->executeQuery($sql1);
// 兑换代币数user_order_dat !NEW
$sql2 = "select date_trunc('day', target_date) as target_date,sum(point) as ex_point from user_order_dat where delete_flg=false and status != 'NEW'" .
" and date_trunc('day', target_date)>='" . $date_min . "'" .
" and date_trunc('day', target_date)<='" . $date_max . "' group by date_trunc('day', target_date)";
$result2 = $db->executeQuery($sql2);
// 其它消耗:这里是负数要小心
$sql4 = "select date_trunc('day', target_date) as target_date,sum(point) as cost_point2 from user_point_log_dat where delete_flg=false and point<0" .
" and date_trunc('day', target_date)>='" . $date_min . "'" .
" and date_trunc('day', target_date)<='" . $date_max . "' group by date_trunc('day', target_date)";
$result4 = $db->executeQuery($sql4);
foreach ($diff_date_array as $diff_date) {
$result_array[$diff_date] = array(
"date" => $diff_date,
"price" => 0,
"point" => 0,
"cost_point" => 0,
"ex_point" => 0
);
foreach ($result1 as $tmp) {
if (date("Y-m-d", strtotime($tmp["target_date"])) == $diff_date) {
$result_array[$diff_date]["price"] += $tmp["price"];
$result_array[$diff_date]["point"] += $tmp["point"];
}
}
foreach ($result2 as $tmp) {
if (date("Y-m-d", strtotime($tmp["target_date"])) == $diff_date) {
$result_array[$diff_date]["ex_point"] += $tmp["ex_point"];
}
}
foreach ($result4 as $tmp) {
if (date("Y-m-d", strtotime($tmp["target_date"])) == $diff_date) {
$result_array[$diff_date]["cost_point"] -= $tmp["cost_point2"];
}
}
}
// 充值总金额,充值总代币数,消耗总代币数,兑换总代币数,平台剩余代币数
$sql_total1 = "select sum(amount) as pay_count, sum(point) as point_count from user_course_dat where delete_flg=false and status='SUCCESS'";
$result_total1 = $db->executeQuery($sql_total1);
if (!empty($result_total1[0]["pay_count"])) {
$total_array["pay_count"] = $result_total1[0]["pay_count"];
}
if (!empty($result_total1[0]["point_count"])) {
$total_array["point_count"] = $result_total1[0]["point_count"];
}
// 其它总消耗:这里是负数要小心
$sql_total3 = "select sum(point) as cost_point_count2 from user_point_log_dat where delete_flg=false and point<0";
$result_total3 = $db->executeQuery($sql_total3);
if (!empty($result_total3[0]["cost_point_count2"])) {
$total_array["cost_point_count"] -= $result_total3[0]["cost_point_count2"];
}
// 平台剩余代币数
$sql_total4 = "select sum(point) as remain_point from user_point_dat where delete_flg=false";
$result_total4 = $db->executeQuery($sql_total4);
if (!empty($result_total4[0]["remain_point"])) {
$total_array["remain_point"] = $result_total4[0]["remain_point"];
}
// 兑换代币数user_order_dat !NEW
$sql_total5 = "select sum(point) as ex_point_count from user_order_dat where delete_flg=false and status != 'NEW'";
$result_total5 = $db->executeQuery($sql_total5);
if (!empty($result_total5[0]["ex_point_count"])) {
$total_array["ex_point_count"] = $result_total5[0]["ex_point_count"];
}
$result_array["total_count"] = $total_array;
return $result_array;
}
// ページ
$layout_pages = array();
$layout_pages["top"] = "menu.inc";
$layout_pages["menu_clicked"] = "li_system";
$layout_pages["middle"] = "report_list.inc";
require_once(MANAGER_TEMPLATE_DIR_PATH . "/layout/topmenutopsub_layout.inc");
exit;
\ No newline at end of file
function doCheck() {
var title = document.government_edit.title.value;
if (title == null || title.length < 1) {
alert ("请输入教育管局名称");
return false;
}
document.government_edit.submit();
}
<?php
/**
* 用户搜索结果csv文件下载
* $Id: user_csv_download.php 81403 2015-03-30 10:16:52Z zhouz $
* @author zhouz
* @access public
* @package partner.public_html
*/
// クラス・設定読み込み
require_once("manager_include.inc");
// ログインチェック
require_once("check_login.inc");
//执行日期
$last_registration_date = "2018-12-29 00:00:00";
//接受URL
$api = 'http://data.zz.baidu.com/urls?site=www.beautyplus088.com&token=Fqmo37V2P076dKwX';
$api_mobile = 'http://data.zz.baidu.com/urls?site=mobile.beautyplus088.com&token=Fqmo37V2P076dKwX';
$urls = array();
$urls_mobile = array();
//首页
$urls[] = "http://" . HOST_NAME;
//按分类列表页
$param = array();
$param["delete_flg"] = false;
$param["registration_date_MIN"] = $last_registration_date;
$category_list = ArticleCategoryMst::getList($param, "display_order", "desc");
foreach($category_list as $category) {
$urls[] = "http://" . HOST_NAME . "/index.php/" . $category->category_id . "_1.html";
$urls_mobile[] = "http://" . MOBILE_HOST_NAME . "/index.php/" . $category->category_id . "_1.html";
}
//按标签列表页
$param = array();
$param["delete_flg"] = false;
$param["registration_date_MIN"] = $last_registration_date;
$article_tag_list = ArticleTagsDat::getList($param,"id","desc");
foreach($article_tag_list as $tag) {
$urls[] = "http://" . HOST_NAME . "/tag.php/" . urlencode($tag->tag) . "_1.html";
$urls_mobile[] = "http://" . MOBILE_HOST_NAME . "/tag.php/" . urlencode($tag->tag) . "_1.html";
}
//内容详情页
$param = array();
$param["delete_flg"] = false;
$param["registration_date_MIN"] = $last_registration_date;
$article_dat_list = ArticleDat::getList($param,"id","desc");
foreach($article_dat_list as $article) {
$urls[] = "http://" . HOST_NAME . "/preview.php/" . $article->id . ".html";
$urls_mobile[] = "http://" . MOBILE_HOST_NAME . "/preview.php/" . $article->id . ".html";
}
//批量提交[pc]
$ch = curl_init();
$options = array(
CURLOPT_URL => $api,
CURLOPT_POST => true,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_POSTFIELDS => implode("\n", $urls),
CURLOPT_HTTPHEADER => array('Content-Type: text/plain'),
);
curl_setopt_array($ch, $options);
$result = curl_exec($ch);
echo $result;
//批量提交[mobile]
$ch = curl_init();
$options = array(
CURLOPT_URL => $api_mobile,
CURLOPT_POST => true,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_POSTFIELDS => implode("\n", $urls_mobile),
CURLOPT_HTTPHEADER => array('Content-Type: text/plain'),
);
curl_setopt_array($ch, $options);
$result = curl_exec($ch);
echo $result;
?>
\ No newline at end of file
<?php
/**
* 用户申请证书编辑
* $Id: certificate_apply_edit_input.inc,v 1.1 2015/10/08 11:18:53 wanggb Exp $
* @author lixq
* @access public
* @package manager.templates
**/
?>
<div id="change">
<p class="edit_title">用户证书申请编辑</p>
<form id="certificate_apply_edit" action="certificate_apply_edit_result.php" method="post" enctype="multipart/form-data">
<input type="hidden" name="id" value="<?=$id?>"/>
<input type="hidden" name="status" value="<?=$status?>"/>
<div class="edit_content">
<p>申请人姓名</p>
<p class="begin_blank"><?=htmlspecialchars($user_name) ?></p>
<p>申请证书名称</p>
<p class="begin_blank"><?=htmlspecialchars($certificate_title) ?></p>
<p>收货人姓名</p>
<el-input v-model="name" name="name" class="input_200"></el-input>
<p>收货人号码</p>
<el-input v-model="mobile" type="number" name="mobile" class="input_200"></el-input>
<p>收货地址</p>
<textarea v-model="address" name="address" rows="3"></textarea>
<p>状态</p>
<el-select v-model="status" size="small" style="width:100px;">
<el-option
v-for="item in status_list"
:key="item.id"
:label="item.title"
:value="item.id">
</el-option>
</el-select><br/>
<br/>
<el-button type="danger" @click="edit()" class="edit_btn">编辑</el-button>
<el-button type="danger" @click="back()" class="edit_btn">返回</el-button>
<br/><br/>
</div>
</form>
</div>
<script type="text/javascript">
new Vue({
el:'#change',
data:{
name:'<?=htmlspecialchars($name) ?>',
mobile:'<?=$mobile?>',
status:'<?=$status?>',
address:'<?=$address?>',
status_list:[{"title":"制作中",id:"WAITING"},{"title":"配送中",id:"SENDING"},{"title":"已签收",id:"FINISH"}]
},
methods:{
back:function(){
window.history.go(-1);
},
edit:function(){
if(!this.name){
this.$message({
type: 'error',
message: '请输收货人姓名!'
});
return;
}
if(!this.mobile){
this.$message({
type: 'error',
message: '请输收货人号码!'
});
return;
}
if(!this.address){
this.$message({
type: 'error',
message: '请输收货人地址!'
});
return;
}
$("input[name='status']").val(this.status);
$('#certificate_apply_edit').submit();
}
}
})
</script>
<?php
/**
* 用户申请证书编辑完成
* $Id: certificate_apply_edit_result.inc,v 1.12020/01/03 11:18:46 Exp $
* @author lixq
* @access public
* @package manager.templates
*/
?>
<br />
用户申请证书记录更新完成!
<br />
<br />
<div id="result">
<el-button type="danger" @click="back()" class="edit_btn">返回</el-button>
</div>
<script type="text/javascript">
new Vue({
el:'#result',
methods:{
back:function(){
window.location.href='./certificate_apply_list.php?search_flg=true';
}
}
})
</script>
\ No newline at end of file
<?php
/**
* 用户申请证书管理
* $Id: certificate_apply_list.inc,v 1.1 2015/10/08 11:18:50 wanggb Exp $
* @author netvillage
* @access public
* @package manager.templates
*/
?>
<style type="text/css">
.result_list{
width: 701px;
}
.m-l{margin-left:5px;}
</style>
<div id="classSetting">
<div class="list_title">
用户证书申请管理
</div>
<br/>
<form id="form" action="certificate_apply_list.php" method="post">
<input type="hidden" name="status" value="<?=$status?>"/>
申请人姓名:<input type="text" value="<?=$user_name?>" name="user_name" class="el-input__inner input_100 m-l"/>
申请证书名:<input type="text" value="<?=$certificate_title?>" name="certificate_title" class="el-input__inner input_100 m-l"/><br/>
收货人姓名:<input type="text" value="<?=$name?>" name="name" class="el-input__inner input_100 m-l"/>
状态:<el-select v-model="status" size="small" style="width:100px;margin-left: 53px;">
<el-option
v-for="item in status_list"
:key="item.id"
:label="item.title"
:value="item.id">
</el-option>
</el-select><br/>
<el-button type="primary" @click="search()" class="edit_btn">检索</el-button>
</form>
<br />
<div class="result_list">
<el-table :data="tableData" border style="width: 100%">
<el-table-column
prop="user_name"
label="申请人姓名"
width="150">
</el-table-column>
<el-table-column
prop="certificate_title"
label="申请证书名"
width="200">
</el-table-column>
<el-table-column
prop="name"
label="收货人姓名"
width="150">
</el-table-column>
<el-table-column
prop="status"
label="状态"
width="100">
</el-table-column>
<el-table-column
label="操作"
width="100">
<template slot-scope="scope">
<el-button @click="handleChange(scope.row)" type="text" size="small">编辑</el-button>
<el-button type="text" size="small" @click.native.prevent="deleteRow(scope.row)">删除</el-button>
</template>
</el-table-column>
</el-table>
</div>
</div>
<?
if ($user_certificate_count > 0) {
?>
<!--page begin-->
<?
require_once("page_common.inc");
?>
<!--page end-->
<?
}
?>
<script type="text/javascript">
var list=[];
<?
foreach ($user_certificate_list as $tmp) {
?>
var data={
id:<?=$tmp["id"] ?>,
name:'<?=$tmp["name"]?>',
user_name:'<?=$tmp["user_name"]?>',
certificate_title:'<?=$tmp["certificate_title"]?>',
status:'<?=$tmp["status"]=="WAITING"?"制作中":($tmp["status"]=="SENDING"?"配送中":"已签收")?>'
};
list.push(data);
<?
}
?>
new Vue({
el:'#classSetting',
data:{
tableData: list,
status:'<?=$status?>',
status_list:[{"title":"请选择",id:""},{"title":"制作中",id:"WAITING"},{"title":"配送中",id:"SENDING"},{"title":"已签收",id:"FINISH"}]
},
methods:{
handleChange(row) {
console.log(row);
window.location.href='certificate_apply_edit_input.php?id='+row.id;
},
deleteRow(rows) {
this.$confirm('是否删除?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.$message({
type: 'success',
message: '删除成功!'
});
// rows.splice(index, 1);
window.location.href='certificate_apply_delete_result.php?id='+rows.id;
}).catch(() => {
this.$message({
type: 'info',
message: '已取消删除'
});
});
},
search(){
$("input[name='status']").val(this.status);
$("#form").submit();
}
}
})
</script>
<?php
/**
* 证书管理编辑
* $Id: certificate_edit_input.inc,v 1.1 2015/10/08 11:18:53 wanggb Exp $
* @author lixq
* @access public
* @package manager.templates
**/
?>
<div id="change">
<p class="edit_title">证书管理编辑</p>
<form id="certificate_edit" action="certificate_edit_result.php" method="post" enctype="multipart/form-data">
<input type="hidden" name="id" value="<?=$id?>"/>
<input type="hidden" name="action_type" value="<?=$action_type?>"/>
<div class="edit_content">
<p>证书名称</p>
<el-input v-model="title" name="title" class="input_200"></el-input><br />
<p>显示顺序</p>
<el-input v-model="display_order" name="display_order" type="number" class="input_200"></el-input><br />
<div slot="tip" class="el-upload__tip">越大显示位置越靠前</div>
<p>封面图</p>
<a href='javascript:void(0);' class="el-button el-button--primary blueButton">选择文件</a>
<input id="image_file" class="myFileUpload" name="front_image" type="file" accept="image/*"/>
<div id="img_thumbnail">
<img id="imgshow" height="150px" alt="学校封面图" />
</div>
<br/>
<el-button type="danger" @click="edit()" class="edit_btn">编辑</el-button>
<el-button type="danger" @click="back()" class="edit_btn">返回</el-button>
</div>
</form>
</div>
<script type="text/javascript">
new Vue({
el:'#change',
data:{
title:'<?=htmlspecialchars($title) ?>',
display_order:<?=$display_order?>,
action_type:'<?=$action_type?>'
},
methods:{
back:function(){
window.history.go(-1);
},
edit:function(){
if(!this.title){
this.$message({
type: 'error',
message: '请输入证书名称!'
});
return;
}
if(!$('#image_file').get(0).files[0] && this.action_type == "new"){
this.$message({
type: 'error',
message: '请选择封面图!'
});
return;
}
$('#certificate_edit').submit();
}
}
})
window.onload = function(){
if(<?=$front_image?1:0 ?>){
$('#imgshow').get(0).src = '<?=$front_image?>';
$('#img_thumbnail').css("visibility","visible");
}
$('#image_file').change(function(){
var file = $('#image_file').get(0).files[0];
var reader = new FileReader();
reader.readAsDataURL(file);
reader.onload=function(e){
$('#imgshow').get(0).src = e.target.result;
}
$('#img_thumbnail').css("visibility","visible");
})
}
</script>
<?php
/**
* 证书管理编辑完成
* $Id: certificate_edit_result.inc,v 1.12020/01/03 11:18:46 Exp $
* @author lixq
* @access public
* @package manager.templates
*/
?>
<br />
证书更新完成!
<br />
<br />
<div id="result">
<el-button type="danger" @click="back()" class="edit_btn">返回</el-button>
</div>
<script type="text/javascript">
new Vue({
el:'#result',
methods:{
back:function(){
window.location.href='./certificate_list.php';
}
}
})
</script>
\ No newline at end of file
<?php
/**
* 证书管理
* $Id: certificate_list.inc,v 1.1 2015/10/08 11:18:50 wanggb Exp $
* @author netvillage
* @access public
* @package manager.templates
*/
?>
<style type="text/css">
.result_list{
width: 701px;
}
</style>
<div id="classSetting">
<div class="list_title">
证书管理 <el-button type="primary" style="margin-right: 10px;" @click="addCertificate()">证书添加</el-button>
</div>
<br/>
<div class="result_list">
<el-table :data="tableData" border style="width: 100%">
<el-table-column
prop="title"
label="证书名称"
width="400">
</el-table-column>
<el-table-column prop="front_image" label="封面图" min-width="20%" >
<template slot-scope="scope">
<img :src="scope.row.front_image" height="50px" />
</template>
</el-table-column>
<el-table-column
label="操作"
width="100">
<template slot-scope="scope">
<el-button @click="handleChange(scope.row)" type="text" size="small">编辑</el-button>
<el-button type="text" size="small" @click.native.prevent="deleteRow(scope.row)">删除</el-button>
</template>
</el-table-column>
</el-table>
</div>
</div>
<?
if ($certificate_count > 0) {
?>
<!--page begin-->
<?
require_once("page_common.inc");
?>
<!--page end-->
<?
}
?>
<script type="text/javascript">
var list=[];
<?
foreach ($certificate_list as $tmp) {
?>
var data={
id:<?=$tmp->id ?>,
title:'<?=$tmp->title ?>',
front_image:'<?=$tmp->front_image?>'
};
list.push(data);
<?
}
?>
new Vue({
el:'#classSetting',
data:{
tableData: list,
},
methods:{
handleChange(row) {
console.log(row);
window.location.href='certificate_edit_input.php?action_type=edit&id='+row.id;
},
deleteRow(rows) {
this.$confirm('是否删除?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.$message({
type: 'success',
message: '删除成功!'
});
// rows.splice(index, 1);
window.location.href='certificate_delete_result.php?id='+rows.id;
}).catch(() => {
this.$message({
type: 'info',
message: '已取消删除'
});
});
},
addCertificate(){
window.open('certificate_edit_input.php?action_type=new','_self')
}
}
})
</script>
<?php
/**
* 班级管理
* $Id: class_edit_input.inc,v 1.1 2015/10/08 11:18:53 wanggb Exp $
* @author wanggb
* @access public
* @package manager.templates
**/
?>
<div id="change">
<p class="edit_title">班级编辑</p>
<form id="class_edit_input" action="class_edit_result.php" method="post">
<input type="hidden" name="id" value="<?=$id?>"/>
<div class="edit_content">
<p>学校名称</p>
<p class="begin_blank"><?=htmlspecialchars($school_title) ?></p>
<p>年级名称</p>
<p class="begin_blank"><?=htmlspecialchars($grade_title) ?>&nbsp;</p>
<p>班级名称</p>
<p class="begin_blank"><?=htmlspecialchars($class_mst->title) ?>&nbsp;</p>
<p>班级人数</p>
<el-input v-model="member_count" name="member_count" type='number' class="input_200"></el-input><br />
<el-button type="danger" @click="edit()" class="edit_btn">编辑</el-button>
<el-button type="danger" @click="back()" class="edit_btn">返回</el-button>
</div>
</form>
</div>
<script type="text/javascript">
new Vue({
el:'#change',
data:{
id:<?=$id?$id:0 ?>,
member_count:'<?=htmlspecialchars($class_mst->member_count) ?>'
},
methods:{
edit:function(){
if(!this.member_count){
this.$message({
type: 'error',
message: '请输入教育管局名称!'
});
return;
}
$('#class_edit_input').submit();
},
back:function(){
window.history.go(-1);
}
}
})
</script>
<?php
/**
* 班级管理编辑完成
* $Id: class_edit_result.inc,v 1.12020/01/03 11:18:46 Exp $
* @author lixq
* @access public
* @package manager.templates
*/
?>
<br />
班级管理更新完成!
<br />
<br />
<div id="result">
<el-button type="danger" @click="back()" class="edit_btn">返回</el-button>
</div>
<script type="text/javascript">
new Vue({
el:'#result',
methods:{
back:function(){
window.location.href='./class_list.php';
}
}
})
</script>
\ No newline at end of file
<?php
/**
* 管理员管理
* $Id: account_list.inc,v 1.1 2015/10/08 11:18:50 wanggb Exp $
* @author netvillage
* @access public
* @package manager.templates
*/
?>
<style type="text/css">
.result_list{
width: 701px;
}
</style>
<div id="classSetting">
<div class="list_title">
班级设定<!-- <el-button type="primary" style="margin-right: 10px;" @click="addClass()">年级添加</el-button>-->
</div>
<br/>
学校名称:
<?if(isset($school_mst)){?>
<?=$school_mst->title?>
<?}else{?>
<el-select v-model="school_id" size='medium' >
<div class="el-select-dropdown__item"><input v-model="searchVal" style="border-radius: 4px;background: url(images/search_icon.png) no-repeat 150px;"type="text" autocomplete="off"></div>
<el-option
v-for="item in new_school_list"
:key="item.id"
:label="item.title"
:value="item.id">
</el-option>
</el-select>
<?}?>
<br/>
<div class="result_list">
<el-table :data="tableData" border style="width: 100%">
<el-table-column
prop="grade_title"
label="年级名称"
>
</el-table-column>
<el-table-column
prop="title"
label="班级名称"
>
</el-table-column>
<el-table-column
prop="member_count"
label="班级人数"
>
</el-table-column>
<el-table-column
label="操作"
width="100">
<template slot-scope="scope">
<el-button @click="handleChange(scope.row)" type="text" size="small">编辑</el-button>
</template>
</el-table-column>
</el-table>
</div>
</div>
<script type="text/javascript">
var list=[];
<?
foreach ($class_list as $class_mst) {
$school_id = isset($school_id)?$school_id:$school_list[0]->id;
if($class_mst["school_id"] == $school_id){
?>
var data={
id:<?=$class_mst["id"] ?>,
title:'<?=$class_mst["title"] ?>',
grade_title:'<?=$class_mst["grade_title"] ?>',
member_count:'<?=$class_mst["member_count"]?>'
};
list.push(data);
<?
}
}
?>
new Vue({
el:'#classSetting',
data:{
tableData: list,
school_id:'<?=isset($school_list)?$school_list[0]->id:0?>',
school_list:<?=isset($school_list)?json_encode($school_list):''?>,
class_list:<?=json_encode($class_list)?>,
searchVal:''
},
methods:{
handleChange(row) {
console.log(row);
window.location.href='class_edit_input.php?id='+row.id;
}
},
watch:{
school_id(val,oldval){
var new_list=[];
this.class_list.map(function(item) {
if (item.school_id == val) {
new_list.push(item);
}
});
this.tableData = new_list;
}
},
computed: {
new_school_list() {
var _this = this;
var new_school_list = [];
_this.school_list.map(function(item) {
if (item.title.search(_this.searchVal) != -1) {
new_school_list.push(item);
}
});
if(new_school_list.length == 0){
new_school_list = _this.school_list;
}
return new_school_list;
}
}
})
</script>
<?php
/**
* 视频课程分类一览
* $Id: course_category_list.inc,v 1.1 2015/10/08 11:18:50 wanggb Exp $
* @author lixq
* @access public
* @package manager.templates
*/
?>
<style type="text/css">
.result_list{
width: 701px;
}
</style>
<div id="classSetting">
<div class="list_title">
视频课程分类管理<el-button type="primary" style="margin-right: 10px;" @click="addClass()">课程类添加</el-button>
</div>
<br/>
一级分类名称:
<el-select v-model="parent_id" size='medium' >
<el-option
v-for="item in category_list"
:key="item.id"
:label="item.title"
:value="item.id">
</el-option>
</el-select>
<br/>
<div class="result_list">
<el-table :data="tableData" border style="width: 100%">
<el-table-column
prop="parent_title"
label="一级分类名称"
width="300">
</el-table-column>
<el-table-column
prop="title"
label="分类名称"
width="300">
</el-table-column>
<el-table-column
label="操作"
width="100">
<template slot-scope="scope">
<el-button @click="handleChange(scope.row)" type="text" size="small">编辑</el-button>
<el-button type="text" size="small" @click.native.prevent="deleteRow(scope.row)">删除</el-button>
</template>
</el-table-column>
</el-table>
</div>
</div>
<script type="text/javascript">
var list=[];
<?
foreach ($course_category_list as $tmp) {
?>
var data={
id:<?=$tmp->id ?>,
title:'<?=$tmp->title ?>',
parent_title:'<?=CourseParentCategory::getTitleById($tmp->parent_id)?>'
};
list.push(data);
<?
}
?>
new Vue({
el:'#classSetting',
data:{
tableData: list,
parent_list:<?=json_encode(array_push(CourseParentCategory::getList(), new CourseParentCategory(array("id"=>0, "title"=>"请选择"))))?>,
parent_id:0,
category_list:'<?=json_encode($course_category_list)?>',
searchVal:''
},
methods:{
handleChange(row) {
console.log(row);
window.location.href='course_category_edit_input.php?action_type=edit&id='+row.id;
},
deleteRow(rows) {
this.$confirm('是否删除?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.$message({
type: 'success',
message: '删除成功!'
});
// rows.splice(index, 1);
window.location.href='course_category_delete_result.php?id='+rows.id;
}).catch(() => {
this.$message({
type: 'info',
message: '已取消删除'
});
});
},
addClass(){
window.open('course_category_edit_input.php?action_type=new','_self')
}
},
watch:{
parent_id(val,oldval){
var new_list = [];
this.category_list.map(function(item) {
if (item.id == val) {
new_list.push(item);
}
});
this.tableData = new_list;
}
}
})
</script>
<?php
/**
* 管理员管理
* $Id: account_list.inc,v 1.1 2015/10/08 11:18:50 wanggb Exp $
* @author netvillage
* @access public
* @package manager.templates
*/
global $account_list;
?>
<b>数据刷新</b><br />
<br />
<div id="result_list">
<table>
<tr>
<th class="contents_title">ID</th>
<th class="contents_title">模块名称</th>
<th class="contents_title">操作</th>
<tr>
<td align="center">1</td>
<td>首页-解梦分类导航</td>
<td align="center"><a class="flatbutton" href="data_template_1.php" target="_blank">刷新数据</a></td>
</tr>
<tr>
<td align="center">2</td>
<td>首页-分类解梦关键词列表</td>
<td align="center"><a class="flatbutton" href="data_template_2.php" target="_blank">刷新数据</a></td>
</tr>
<tr>
<td align="center">3</td>
<td>内页-分类解梦关键词列表</td>
<td align="center"><a class="flatbutton" href="data_template_3.php" target="_blank">刷新数据</a></td>
</tr>
<tr>
<td align="center">4</td>
<td>内页-解梦详细内容</td>
<td align="center"><a class="flatbutton" href="data_template_4.php" target="_blank">刷新数据</a></td>
</tr>
<tr>
<td align="center">5</td>
<td>右侧-分类文章推荐</td>
<td align="center"><a class="flatbutton" href="data_template_5.php" target="_blank">刷新数据</a></td>
</tr>
<tr>
<td align="center">6</td>
<td>通用-文章阅读</td>
<td align="center"><a class="flatbutton" href="data_template_6.php" target="_blank">刷新数据</a></td>
</tr>
</table>
</div>
<?php
/**
* 管理员管理
* $Id: account_list.inc,v 1.1 2015/10/08 11:18:50 wanggb Exp $
* @author netvillage
* @access public
* @package manager.templates
*/
?>
<br /><br />
<div id="result_list">
<a href="user_use_coupon_list.php">优惠券兑换</a><br /><br />
<a href="user_buy_course_list.php">学员报名</a><br /><br />
<a href="user_eximation_list.php">学员答卷</a><br /><br />
</div>
<?php
/**
* 管理员管理
* $Id: account_list.inc,v 1.1 2015/10/08 11:18:50 wanggb Exp $
* @author netvillage
* @access public
* @package manager.templates
*/
global $account_list;
?>
<b>huangliangxuexi</b>
<div id="result_list">
<select name="eudcation" style="width:200px;">
<?
foreach ($eudcation_list as $eudcation) {
?>
<option value="<?=$eudcation->id ?>"><?=$eudcation->title ?></option>
<?
}
?>
</select>
=--------=
<br />
<?=$education_obj->title?>|
<?=$education_title?>
<?
foreach($eudcation_list as $eudcation) {
?>
<?=$eudcation->id?>.<?=$eudcation->title?><br />
<?
}
?>
</div>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment