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 <?php
/** /**
* 商品分类管理 * 系统动态
* $Id: product_category_list.php,v 1.1 2015/10/08 11:18:46 wanggb Exp $ * $Id: account_list.php,v 1.1 2015/10/08 11:18:46 wanggb Exp $
* @author wanggb * @author zhanghuichuan
* @package manager.public_html * @package manager.public_html
*/ */
// 底层包含 // 底层包含
...@@ -12,7 +12,7 @@ require_once("manager_include.inc"); ...@@ -12,7 +12,7 @@ require_once("manager_include.inc");
require_once("check_login.inc"); require_once("check_login.inc");
// 权限检查 // 权限检查
if (!checkAuthority("ADMIN")) { if (!checkAuthority("ADMIN,MANAGER,STAFF")) {
// エラー表示 // エラー表示
$layout_pages = array(); $layout_pages = array();
$layout_pages["footer"] = "footer.inc"; $layout_pages["footer"] = "footer.inc";
...@@ -23,24 +23,12 @@ if (!checkAuthority("ADMIN")) { ...@@ -23,24 +23,12 @@ if (!checkAuthority("ADMIN")) {
exit; exit;
} }
$param = array(); //试卷
$param["delete_flg"] = false;
$param["status"] = '5'; // ページ
$user_list = UserMst::getList($param); $layout_pages = array();
foreach($user_list as $user) { $layout_pages["top"] = "menu.inc";
$add_point = 399; $layout_pages["menu_clicked"] = "li_event";
$point_left = 0; $layout_pages["middle"] = "event_list.inc";
//添加积分记录 require_once(MANAGER_TEMPLATE_DIR_PATH . "/layout/topmenutopsub_layout.inc");
//添加一条新的记录 exit;
$user_point_log = new UserPointLog(); \ No newline at end of file
$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
<?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
/* axios v0.19.0 | (c) 2019 by Matt Zabriskie */
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.axios=t():e.axios=t()}(this,function(){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){e.exports=n(1)},function(e,t,n){"use strict";function r(e){var t=new i(e),n=s(i.prototype.request,t);return o.extend(n,i.prototype,t),o.extend(n,t),n}var o=n(2),s=n(3),i=n(5),a=n(22),u=n(11),c=r(u);c.Axios=i,c.create=function(e){return r(a(c.defaults,e))},c.Cancel=n(23),c.CancelToken=n(24),c.isCancel=n(10),c.all=function(e){return Promise.all(e)},c.spread=n(25),e.exports=c,e.exports.default=c},function(e,t,n){"use strict";function r(e){return"[object Array]"===j.call(e)}function o(e){return"[object ArrayBuffer]"===j.call(e)}function s(e){return"undefined"!=typeof FormData&&e instanceof FormData}function i(e){var t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer}function a(e){return"string"==typeof e}function u(e){return"number"==typeof e}function c(e){return"undefined"==typeof e}function f(e){return null!==e&&"object"==typeof e}function p(e){return"[object Date]"===j.call(e)}function d(e){return"[object File]"===j.call(e)}function l(e){return"[object Blob]"===j.call(e)}function h(e){return"[object Function]"===j.call(e)}function m(e){return f(e)&&h(e.pipe)}function y(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams}function g(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")}function x(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)}function v(e,t){if(null!==e&&"undefined"!=typeof e)if("object"!=typeof e&&(e=[e]),r(e))for(var n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.call(null,e[s],s,e)}function w(){function e(e,n){"object"==typeof t[n]&&"object"==typeof e?t[n]=w(t[n],e):t[n]=e}for(var t={},n=0,r=arguments.length;n<r;n++)v(arguments[n],e);return t}function b(){function e(e,n){"object"==typeof t[n]&&"object"==typeof e?t[n]=b(t[n],e):"object"==typeof e?t[n]=b({},e):t[n]=e}for(var t={},n=0,r=arguments.length;n<r;n++)v(arguments[n],e);return t}function E(e,t,n){return v(t,function(t,r){n&&"function"==typeof t?e[r]=S(t,n):e[r]=t}),e}var S=n(3),R=n(4),j=Object.prototype.toString;e.exports={isArray:r,isArrayBuffer:o,isBuffer:R,isFormData:s,isArrayBufferView:i,isString:a,isNumber:u,isObject:f,isUndefined:c,isDate:p,isFile:d,isBlob:l,isFunction:h,isStream:m,isURLSearchParams:y,isStandardBrowserEnv:x,forEach:v,merge:w,deepMerge:b,extend:E,trim:g}},function(e,t){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},function(e,t){/*!
* Determine if an object is a Buffer
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/
e.exports=function(e){return null!=e&&null!=e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}},function(e,t,n){"use strict";function r(e){this.defaults=e,this.interceptors={request:new i,response:new i}}var o=n(2),s=n(6),i=n(7),a=n(8),u=n(22);r.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{},e.url=arguments[0]):e=e||{},e=u(this.defaults,e),e.method=e.method?e.method.toLowerCase():"get";var t=[a,void 0],n=Promise.resolve(e);for(this.interceptors.request.forEach(function(e){t.unshift(e.fulfilled,e.rejected)}),this.interceptors.response.forEach(function(e){t.push(e.fulfilled,e.rejected)});t.length;)n=n.then(t.shift(),t.shift());return n},r.prototype.getUri=function(e){return e=u(this.defaults,e),s(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},o.forEach(["delete","get","head","options"],function(e){r.prototype[e]=function(t,n){return this.request(o.merge(n||{},{method:e,url:t}))}}),o.forEach(["post","put","patch"],function(e){r.prototype[e]=function(t,n,r){return this.request(o.merge(r||{},{method:e,url:t,data:n}))}}),e.exports=r},function(e,t,n){"use strict";function r(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var o=n(2);e.exports=function(e,t,n){if(!t)return e;var s;if(n)s=n(t);else if(o.isURLSearchParams(t))s=t.toString();else{var i=[];o.forEach(t,function(e,t){null!==e&&"undefined"!=typeof e&&(o.isArray(e)?t+="[]":e=[e],o.forEach(e,function(e){o.isDate(e)?e=e.toISOString():o.isObject(e)&&(e=JSON.stringify(e)),i.push(r(t)+"="+r(e))}))}),s=i.join("&")}if(s){var a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}},function(e,t,n){"use strict";function r(){this.handlers=[]}var o=n(2);r.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},r.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},r.prototype.forEach=function(e){o.forEach(this.handlers,function(t){null!==t&&e(t)})},e.exports=r},function(e,t,n){"use strict";function r(e){e.cancelToken&&e.cancelToken.throwIfRequested()}var o=n(2),s=n(9),i=n(10),a=n(11),u=n(20),c=n(21);e.exports=function(e){r(e),e.baseURL&&!u(e.url)&&(e.url=c(e.baseURL,e.url)),e.headers=e.headers||{},e.data=s(e.data,e.headers,e.transformRequest),e.headers=o.merge(e.headers.common||{},e.headers[e.method]||{},e.headers||{}),o.forEach(["delete","get","head","post","put","patch","common"],function(t){delete e.headers[t]});var t=e.adapter||a.adapter;return t(e).then(function(t){return r(e),t.data=s(t.data,t.headers,e.transformResponse),t},function(t){return i(t)||(r(e),t&&t.response&&(t.response.data=s(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)})}},function(e,t,n){"use strict";var r=n(2);e.exports=function(e,t,n){return r.forEach(n,function(n){e=n(e,t)}),e}},function(e,t){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},function(e,t,n){"use strict";function r(e,t){!s.isUndefined(e)&&s.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function o(){var e;return"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process)?e=n(13):"undefined"!=typeof XMLHttpRequest&&(e=n(13)),e}var s=n(2),i=n(12),a={"Content-Type":"application/x-www-form-urlencoded"},u={adapter:o(),transformRequest:[function(e,t){return i(t,"Accept"),i(t,"Content-Type"),s.isFormData(e)||s.isArrayBuffer(e)||s.isBuffer(e)||s.isStream(e)||s.isFile(e)||s.isBlob(e)?e:s.isArrayBufferView(e)?e.buffer:s.isURLSearchParams(e)?(r(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):s.isObject(e)?(r(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(e){return e>=200&&e<300}};u.headers={common:{Accept:"application/json, text/plain, */*"}},s.forEach(["delete","get","head"],function(e){u.headers[e]={}}),s.forEach(["post","put","patch"],function(e){u.headers[e]=s.merge(a)}),e.exports=u},function(e,t,n){"use strict";var r=n(2);e.exports=function(e,t){r.forEach(e,function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])})}},function(e,t,n){"use strict";var r=n(2),o=n(14),s=n(6),i=n(17),a=n(18),u=n(15);e.exports=function(e){return new Promise(function(t,c){var f=e.data,p=e.headers;r.isFormData(f)&&delete p["Content-Type"];var d=new XMLHttpRequest;if(e.auth){var l=e.auth.username||"",h=e.auth.password||"";p.Authorization="Basic "+btoa(l+":"+h)}if(d.open(e.method.toUpperCase(),s(e.url,e.params,e.paramsSerializer),!0),d.timeout=e.timeout,d.onreadystatechange=function(){if(d&&4===d.readyState&&(0!==d.status||d.responseURL&&0===d.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in d?i(d.getAllResponseHeaders()):null,r=e.responseType&&"text"!==e.responseType?d.response:d.responseText,s={data:r,status:d.status,statusText:d.statusText,headers:n,config:e,request:d};o(t,c,s),d=null}},d.onabort=function(){d&&(c(u("Request aborted",e,"ECONNABORTED",d)),d=null)},d.onerror=function(){c(u("Network Error",e,null,d)),d=null},d.ontimeout=function(){c(u("timeout of "+e.timeout+"ms exceeded",e,"ECONNABORTED",d)),d=null},r.isStandardBrowserEnv()){var m=n(19),y=(e.withCredentials||a(e.url))&&e.xsrfCookieName?m.read(e.xsrfCookieName):void 0;y&&(p[e.xsrfHeaderName]=y)}if("setRequestHeader"in d&&r.forEach(p,function(e,t){"undefined"==typeof f&&"content-type"===t.toLowerCase()?delete p[t]:d.setRequestHeader(t,e)}),e.withCredentials&&(d.withCredentials=!0),e.responseType)try{d.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}"function"==typeof e.onDownloadProgress&&d.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&d.upload&&d.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then(function(e){d&&(d.abort(),c(e),d=null)}),void 0===f&&(f=null),d.send(f)})}},function(e,t,n){"use strict";var r=n(15);e.exports=function(e,t,n){var o=n.config.validateStatus;!o||o(n.status)?e(n):t(r("Request failed with status code "+n.status,n.config,null,n.request,n))}},function(e,t,n){"use strict";var r=n(16);e.exports=function(e,t,n,o,s){var i=new Error(e);return r(i,t,n,o,s)}},function(e,t){"use strict";e.exports=function(e,t,n,r,o){return e.config=t,n&&(e.code=n),e.request=r,e.response=o,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},function(e,t,n){"use strict";var r=n(2),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,s,i={};return e?(r.forEach(e.split("\n"),function(e){if(s=e.indexOf(":"),t=r.trim(e.substr(0,s)).toLowerCase(),n=r.trim(e.substr(s+1)),t){if(i[t]&&o.indexOf(t)>=0)return;"set-cookie"===t?i[t]=(i[t]?i[t]:[]).concat([n]):i[t]=i[t]?i[t]+", "+n:n}}),i):i}},function(e,t,n){"use strict";var r=n(2);e.exports=r.isStandardBrowserEnv()?function(){function e(e){var t=e;return n&&(o.setAttribute("href",t),t=o.href),o.setAttribute("href",t),{href:o.href,protocol:o.protocol?o.protocol.replace(/:$/,""):"",host:o.host,search:o.search?o.search.replace(/^\?/,""):"",hash:o.hash?o.hash.replace(/^#/,""):"",hostname:o.hostname,port:o.port,pathname:"/"===o.pathname.charAt(0)?o.pathname:"/"+o.pathname}}var t,n=/(msie|trident)/i.test(navigator.userAgent),o=document.createElement("a");return t=e(window.location.href),function(n){var o=r.isString(n)?e(n):n;return o.protocol===t.protocol&&o.host===t.host}}():function(){return function(){return!0}}()},function(e,t,n){"use strict";var r=n(2);e.exports=r.isStandardBrowserEnv()?function(){return{write:function(e,t,n,o,s,i){var a=[];a.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),r.isString(o)&&a.push("path="+o),r.isString(s)&&a.push("domain="+s),i===!0&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},function(e,t){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},function(e,t){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},function(e,t,n){"use strict";var r=n(2);e.exports=function(e,t){t=t||{};var n={};return r.forEach(["url","method","params","data"],function(e){"undefined"!=typeof t[e]&&(n[e]=t[e])}),r.forEach(["headers","auth","proxy"],function(o){r.isObject(t[o])?n[o]=r.deepMerge(e[o],t[o]):"undefined"!=typeof t[o]?n[o]=t[o]:r.isObject(e[o])?n[o]=r.deepMerge(e[o]):"undefined"!=typeof e[o]&&(n[o]=e[o])}),r.forEach(["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","maxContentLength","validateStatus","maxRedirects","httpAgent","httpsAgent","cancelToken","socketPath"],function(r){"undefined"!=typeof t[r]?n[r]=t[r]:"undefined"!=typeof e[r]&&(n[r]=e[r])}),n}},function(e,t){"use strict";function n(e){this.message=e}n.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},n.prototype.__CANCEL__=!0,e.exports=n},function(e,t,n){"use strict";function r(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise(function(e){t=e});var n=this;e(function(e){n.reason||(n.reason=new o(e),t(n.reason))})}var o=n(23);r.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},r.source=function(){var e,t=new r(function(t){e=t});return{token:t,cancel:e}},e.exports=r},function(e,t){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}}])});
//# sourceMappingURL=axios.min.map
\ No newline at end of file
/* axios v0.19.0 | (c) 2019 by Matt Zabriskie */
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.axios=t():e.axios=t()}(this,function(){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){e.exports=n(1)},function(e,t,n){"use strict";function r(e){var t=new i(e),n=s(i.prototype.request,t);return o.extend(n,i.prototype,t),o.extend(n,t),n}var o=n(2),s=n(3),i=n(5),a=n(22),u=n(11),c=r(u);c.Axios=i,c.create=function(e){return r(a(c.defaults,e))},c.Cancel=n(23),c.CancelToken=n(24),c.isCancel=n(10),c.all=function(e){return Promise.all(e)},c.spread=n(25),e.exports=c,e.exports.default=c},function(e,t,n){"use strict";function r(e){return"[object Array]"===j.call(e)}function o(e){return"[object ArrayBuffer]"===j.call(e)}function s(e){return"undefined"!=typeof FormData&&e instanceof FormData}function i(e){var t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer}function a(e){return"string"==typeof e}function u(e){return"number"==typeof e}function c(e){return"undefined"==typeof e}function f(e){return null!==e&&"object"==typeof e}function p(e){return"[object Date]"===j.call(e)}function d(e){return"[object File]"===j.call(e)}function l(e){return"[object Blob]"===j.call(e)}function h(e){return"[object Function]"===j.call(e)}function m(e){return f(e)&&h(e.pipe)}function y(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams}function g(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")}function x(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)}function v(e,t){if(null!==e&&"undefined"!=typeof e)if("object"!=typeof e&&(e=[e]),r(e))for(var n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.call(null,e[s],s,e)}function w(){function e(e,n){"object"==typeof t[n]&&"object"==typeof e?t[n]=w(t[n],e):t[n]=e}for(var t={},n=0,r=arguments.length;n<r;n++)v(arguments[n],e);return t}function b(){function e(e,n){"object"==typeof t[n]&&"object"==typeof e?t[n]=b(t[n],e):"object"==typeof e?t[n]=b({},e):t[n]=e}for(var t={},n=0,r=arguments.length;n<r;n++)v(arguments[n],e);return t}function E(e,t,n){return v(t,function(t,r){n&&"function"==typeof t?e[r]=S(t,n):e[r]=t}),e}var S=n(3),R=n(4),j=Object.prototype.toString;e.exports={isArray:r,isArrayBuffer:o,isBuffer:R,isFormData:s,isArrayBufferView:i,isString:a,isNumber:u,isObject:f,isUndefined:c,isDate:p,isFile:d,isBlob:l,isFunction:h,isStream:m,isURLSearchParams:y,isStandardBrowserEnv:x,forEach:v,merge:w,deepMerge:b,extend:E,trim:g}},function(e,t){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},function(e,t){/*!
* Determine if an object is a Buffer
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/
e.exports=function(e){return null!=e&&null!=e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}},function(e,t,n){"use strict";function r(e){this.defaults=e,this.interceptors={request:new i,response:new i}}var o=n(2),s=n(6),i=n(7),a=n(8),u=n(22);r.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{},e.url=arguments[0]):e=e||{},e=u(this.defaults,e),e.method=e.method?e.method.toLowerCase():"get";var t=[a,void 0],n=Promise.resolve(e);for(this.interceptors.request.forEach(function(e){t.unshift(e.fulfilled,e.rejected)}),this.interceptors.response.forEach(function(e){t.push(e.fulfilled,e.rejected)});t.length;)n=n.then(t.shift(),t.shift());return n},r.prototype.getUri=function(e){return e=u(this.defaults,e),s(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},o.forEach(["delete","get","head","options"],function(e){r.prototype[e]=function(t,n){return this.request(o.merge(n||{},{method:e,url:t}))}}),o.forEach(["post","put","patch"],function(e){r.prototype[e]=function(t,n,r){return this.request(o.merge(r||{},{method:e,url:t,data:n}))}}),e.exports=r},function(e,t,n){"use strict";function r(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var o=n(2);e.exports=function(e,t,n){if(!t)return e;var s;if(n)s=n(t);else if(o.isURLSearchParams(t))s=t.toString();else{var i=[];o.forEach(t,function(e,t){null!==e&&"undefined"!=typeof e&&(o.isArray(e)?t+="[]":e=[e],o.forEach(e,function(e){o.isDate(e)?e=e.toISOString():o.isObject(e)&&(e=JSON.stringify(e)),i.push(r(t)+"="+r(e))}))}),s=i.join("&")}if(s){var a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}},function(e,t,n){"use strict";function r(){this.handlers=[]}var o=n(2);r.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},r.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},r.prototype.forEach=function(e){o.forEach(this.handlers,function(t){null!==t&&e(t)})},e.exports=r},function(e,t,n){"use strict";function r(e){e.cancelToken&&e.cancelToken.throwIfRequested()}var o=n(2),s=n(9),i=n(10),a=n(11),u=n(20),c=n(21);e.exports=function(e){r(e),e.baseURL&&!u(e.url)&&(e.url=c(e.baseURL,e.url)),e.headers=e.headers||{},e.data=s(e.data,e.headers,e.transformRequest),e.headers=o.merge(e.headers.common||{},e.headers[e.method]||{},e.headers||{}),o.forEach(["delete","get","head","post","put","patch","common"],function(t){delete e.headers[t]});var t=e.adapter||a.adapter;return t(e).then(function(t){return r(e),t.data=s(t.data,t.headers,e.transformResponse),t},function(t){return i(t)||(r(e),t&&t.response&&(t.response.data=s(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)})}},function(e,t,n){"use strict";var r=n(2);e.exports=function(e,t,n){return r.forEach(n,function(n){e=n(e,t)}),e}},function(e,t){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},function(e,t,n){"use strict";function r(e,t){!s.isUndefined(e)&&s.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function o(){var e;return"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process)?e=n(13):"undefined"!=typeof XMLHttpRequest&&(e=n(13)),e}var s=n(2),i=n(12),a={"Content-Type":"application/x-www-form-urlencoded"},u={adapter:o(),transformRequest:[function(e,t){return i(t,"Accept"),i(t,"Content-Type"),s.isFormData(e)||s.isArrayBuffer(e)||s.isBuffer(e)||s.isStream(e)||s.isFile(e)||s.isBlob(e)?e:s.isArrayBufferView(e)?e.buffer:s.isURLSearchParams(e)?(r(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):s.isObject(e)?(r(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(e){return e>=200&&e<300}};u.headers={common:{Accept:"application/json, text/plain, */*"}},s.forEach(["delete","get","head"],function(e){u.headers[e]={}}),s.forEach(["post","put","patch"],function(e){u.headers[e]=s.merge(a)}),e.exports=u},function(e,t,n){"use strict";var r=n(2);e.exports=function(e,t){r.forEach(e,function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])})}},function(e,t,n){"use strict";var r=n(2),o=n(14),s=n(6),i=n(17),a=n(18),u=n(15);e.exports=function(e){return new Promise(function(t,c){var f=e.data,p=e.headers;r.isFormData(f)&&delete p["Content-Type"];var d=new XMLHttpRequest;if(e.auth){var l=e.auth.username||"",h=e.auth.password||"";p.Authorization="Basic "+btoa(l+":"+h)}if(d.open(e.method.toUpperCase(),s(e.url,e.params,e.paramsSerializer),!0),d.timeout=e.timeout,d.onreadystatechange=function(){if(d&&4===d.readyState&&(0!==d.status||d.responseURL&&0===d.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in d?i(d.getAllResponseHeaders()):null,r=e.responseType&&"text"!==e.responseType?d.response:d.responseText,s={data:r,status:d.status,statusText:d.statusText,headers:n,config:e,request:d};o(t,c,s),d=null}},d.onabort=function(){d&&(c(u("Request aborted",e,"ECONNABORTED",d)),d=null)},d.onerror=function(){c(u("Network Error",e,null,d)),d=null},d.ontimeout=function(){c(u("timeout of "+e.timeout+"ms exceeded",e,"ECONNABORTED",d)),d=null},r.isStandardBrowserEnv()){var m=n(19),y=(e.withCredentials||a(e.url))&&e.xsrfCookieName?m.read(e.xsrfCookieName):void 0;y&&(p[e.xsrfHeaderName]=y)}if("setRequestHeader"in d&&r.forEach(p,function(e,t){"undefined"==typeof f&&"content-type"===t.toLowerCase()?delete p[t]:d.setRequestHeader(t,e)}),e.withCredentials&&(d.withCredentials=!0),e.responseType)try{d.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}"function"==typeof e.onDownloadProgress&&d.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&d.upload&&d.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then(function(e){d&&(d.abort(),c(e),d=null)}),void 0===f&&(f=null),d.send(f)})}},function(e,t,n){"use strict";var r=n(15);e.exports=function(e,t,n){var o=n.config.validateStatus;!o||o(n.status)?e(n):t(r("Request failed with status code "+n.status,n.config,null,n.request,n))}},function(e,t,n){"use strict";var r=n(16);e.exports=function(e,t,n,o,s){var i=new Error(e);return r(i,t,n,o,s)}},function(e,t){"use strict";e.exports=function(e,t,n,r,o){return e.config=t,n&&(e.code=n),e.request=r,e.response=o,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},function(e,t,n){"use strict";var r=n(2),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,s,i={};return e?(r.forEach(e.split("\n"),function(e){if(s=e.indexOf(":"),t=r.trim(e.substr(0,s)).toLowerCase(),n=r.trim(e.substr(s+1)),t){if(i[t]&&o.indexOf(t)>=0)return;"set-cookie"===t?i[t]=(i[t]?i[t]:[]).concat([n]):i[t]=i[t]?i[t]+", "+n:n}}),i):i}},function(e,t,n){"use strict";var r=n(2);e.exports=r.isStandardBrowserEnv()?function(){function e(e){var t=e;return n&&(o.setAttribute("href",t),t=o.href),o.setAttribute("href",t),{href:o.href,protocol:o.protocol?o.protocol.replace(/:$/,""):"",host:o.host,search:o.search?o.search.replace(/^\?/,""):"",hash:o.hash?o.hash.replace(/^#/,""):"",hostname:o.hostname,port:o.port,pathname:"/"===o.pathname.charAt(0)?o.pathname:"/"+o.pathname}}var t,n=/(msie|trident)/i.test(navigator.userAgent),o=document.createElement("a");return t=e(window.location.href),function(n){var o=r.isString(n)?e(n):n;return o.protocol===t.protocol&&o.host===t.host}}():function(){return function(){return!0}}()},function(e,t,n){"use strict";var r=n(2);e.exports=r.isStandardBrowserEnv()?function(){return{write:function(e,t,n,o,s,i){var a=[];a.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),r.isString(o)&&a.push("path="+o),r.isString(s)&&a.push("domain="+s),i===!0&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},function(e,t){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},function(e,t){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},function(e,t,n){"use strict";var r=n(2);e.exports=function(e,t){t=t||{};var n={};return r.forEach(["url","method","params","data"],function(e){"undefined"!=typeof t[e]&&(n[e]=t[e])}),r.forEach(["headers","auth","proxy"],function(o){r.isObject(t[o])?n[o]=r.deepMerge(e[o],t[o]):"undefined"!=typeof t[o]?n[o]=t[o]:r.isObject(e[o])?n[o]=r.deepMerge(e[o]):"undefined"!=typeof e[o]&&(n[o]=e[o])}),r.forEach(["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","maxContentLength","validateStatus","maxRedirects","httpAgent","httpsAgent","cancelToken","socketPath"],function(r){"undefined"!=typeof t[r]?n[r]=t[r]:"undefined"!=typeof e[r]&&(n[r]=e[r])}),n}},function(e,t){"use strict";function n(e){this.message=e}n.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},n.prototype.__CANCEL__=!0,e.exports=n},function(e,t,n){"use strict";function r(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise(function(e){t=e});var n=this;e(function(e){n.reason||(n.reason=new o(e),t(n.reason))})}var o=n(23);r.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},r.source=function(){var e,t=new r(function(t){e=t});return{token:t,cancel:e}},e.exports=r},function(e,t){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}}])});
//# sourceMappingURL=axios.min.map
\ 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