Commit cae1f3ad by biao

1

parent 26b1bee5
<?php
/**
* 商品分类管理
* $Id: product_category_change_display_order.php,v 1.1 2015/10/08 11:18:46 wanggb Exp $
* @author wulk
* @access public
* @package manager.public_html
*/
// 底层包含
require_once("manager_include.inc");
// 登录检查
require_once("check_login.inc");
// 权限检查
if (!checkAuthority("ADMIN,MANAGER,STAFF")) {
// エラー表示
$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;
}
// 参数取得
$mst_id = ParamUtil::getRequestNumber("mst_id", 0);
$dat_id = ParamUtil::getRequestNumber("dat_id", 0);
$examination_dat = ExaminationDat::getById($dat_id);
if ($examination_dat == null) {
// エラー表示
$layout_pages = array();
$layout_pages["footer"] = "footer.inc";
$layout_pages["top"] = "menu.inc";
$layout_pages["middle"] = "error.inc";
require_once(MANAGER_TEMPLATE_DIR_PATH . "/layout/topmenutopsub_layout.inc");
exit;
}
$type = ParamUtil::getRequestString("type", "up");
// 排序
$param = array();
$param["delete_flg"] = false;
$param["id_NOT"] = $dat_id;
$param["examination_mst_id"] = $examination_dat->examination_mst_id;
if ($type == "up") {
$param["display_order_MAX"] = $examination_dat->display_order;
$tmp_list = ExaminationDat::getList($param, "display_order", "desc", 0, 1);
} else {
$param["display_order_MIN"] = $examination_dat->display_order;
$tmp_list = ExaminationDat::getList($param, "display_order", "asc", 0, 1);
}
if (count($tmp_list) == 1) {
//临时保存
$display_order = $examination_dat->display_order;
$examination_dat->display_order = $tmp_list[0]->display_order;
$examination_dat->save();
$tmp_list[0]->display_order = $display_order;
$tmp_list[0]->save();
}
// 跳到一览页
header("Location:examination_dat_list.php?id=" . $mst_id);
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
* @package manager.public_html
*/
// 底层包含
require_once("manager_include.inc");
// 登录检查
require_once("check_login.inc");
// 权限检查
if (!checkAuthority("ADMIN,MANAGER,STAFF")) {
// エラー表示
$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;
}
$id = ParamUtil::getRequestNumber("id", 0);
$examination_mst = ExaminationMst::getById($id);
$sum_point = ExaminationHandler::getSumExaminationPoint($examination_mst->id);
$examination_count = ExaminationHandler::getExaminationCount($examination_mst->id);
// 一览取得
$subject_category_list = SubjectCategory::getList();
// ページ
$_SCRIPT_FILE = array("scripts/validators.js", "scripts/examination.js", "scripts/subject.js");
$layout_pages = array();
$layout_pages["top"] = "menu.inc";
$layout_pages["menu_clicked"] = "li_data";
$layout_pages["middle"] = "examination_dat_list.inc";
require_once(MANAGER_TEMPLATE_DIR_PATH . "/layout/topmenutopsub_layout.inc");
exit;
\ No newline at end of file
<?php
/**
* 商品分类管理
* $Id: product_category_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("ADMIN,MANAGER,STAFF")) {
// エラー表示
$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;
}
// 参数取得
$mst_id = ParamUtil::getRequestNumber("mst_id", 0);
$dat_id = ParamUtil::getRequestNumber("dat_id", 0);
$subject_id = ParamUtil::getRequestNumber("subject_id", 0);
$action = ParamUtil::getRequestString("action");
//echo "mst_id=" . $mst_id . "<br />";
//echo "dat_id=" . $dat_id . "<br />";
//echo "subject_id=" . $subject_id . "<br />";
//echo "action=" . $action . "<br />";
//添加题目
if($action == "add") {
$display_order = ExaminationHandler::getMaxDisplayorder();
$subject_dat = SubjectDat::getById($subject_id);
$examination_dat = new ExaminationDat();
$examination_dat->examination_mst_id = $mst_id;
$examination_dat->subject_id = $subject_id;
$examination_dat->category_id = $subject_dat->category_id;
$examination_dat->title = $subject_dat->title;
$examination_dat->mp3 = $subject_dat->mp3;
$examination_dat->selection1 = $subject_dat->selection1;
$examination_dat->selection2 = $subject_dat->selection2;
$examination_dat->selection3 = $subject_dat->selection3;
$examination_dat->selection4 = $subject_dat->selection4;
$examination_dat->comment = $subject_dat->comment;
$examination_dat->right_answer = $subject_dat->right_answer;
$examination_dat->point = $subject_dat->point;
$examination_dat->display_order = $display_order + 1;
$examination_dat->save();
}
//删除题目
if($action == "delete") {
$examination_dat = ExaminationDat::getById($dat_id);
$examination_dat->delete_flg = true;
$examination_dat->save();
}
// 跳到一览页
header("Location:examination_dat_list.php?id=" . $mst_id);
exit;
\ No newline at end of file
<?php
/**
* 商品分类管理
* $Id: product_category_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("ADMIN,MANAGER,STAFF")) {
// エラー表示
$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;
}
// 参数取得
$id = ParamUtil::getRequestString("id");
$examination_mst = ExaminationMst::getById($id);
if (empty($examination_mst)) {
$examination_mst = new ExaminationMst();
}
$subject_category_list = SubjectCategory::getList();
// 页面表示
$_SCRIPT_FILE = array("scripts/validators.js", "scripts/examination.js");
$layout_pages = array();
$layout_pages["top"] = "menu.inc";
$layout_pages["menu_clicked"] = "li_data";
$layout_pages["middle"] = "examination_mst_edit.inc";
require_once(MANAGER_TEMPLATE_DIR_PATH . "/layout/topmenutopsub_layout.inc");
exit;
\ No newline at end of file
<?php
/**
* 商品分类管理
* $Id: product_category_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("ADMIN,MANAGER,STAFF")) {
// エラー表示
$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;
}
// 参数取得
$id = ParamUtil::getRequestNumber("id", 0);
$title = ParamUtil::getRequestString("title");
$type = ParamUtil::getRequestString("type");
$max_time = ParamUtil::getRequestNumber("max_time");
$level = ParamUtil::getRequestString("level");
$category_id = ParamUtil::getRequestString("category_id");
$examination_mst = ExaminationMst::getById($id);
if (empty($examination_mst)) {
$examination_mst = new ExaminationMst();
}
// 更新数据库
$examination_mst->title = $title;
$examination_mst->type = $type;
$examination_mst->max_time = $max_time;
$examination_mst->level = $level;
$examination_mst->category_id = $category_id;
$examination_mst->save();
// 跳到一览页
header("Location:examination_mst_list.php");
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
* @package manager.public_html
*/
// 底层包含
require_once("manager_include.inc");
// 登录检查
require_once("check_login.inc");
// 权限检查
if (!checkAuthority("ADMIN,MANAGER,STAFF")) {
// エラー表示
$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;
}
// 一览取得
$param = array();
$param["delete_flg"] = false;
$examination_mst_list = ExaminationMst::getList($param, "id", "asc");
// ページ
$_SCRIPT_FILE = array("scripts/validators.js", "scripts/examination.js");
$layout_pages = array();
$layout_pages["top"] = "menu.inc";
$layout_pages["menu_clicked"] = "li_data";
$layout_pages["middle"] = "examination_mst_list.inc";
require_once(MANAGER_TEMPLATE_DIR_PATH . "/layout/topmenutopsub_layout.inc");
exit;
\ No newline at end of file
<?php
/**
* 商品分类管理
* $Id: product_category_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("ADMIN,MANAGER,STAFF")) {
// エラー表示
$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;
}
// 参数取得
$eid = ParamUtil::getRequestNumber("eid");
//用户学历数据列表
$eudcation_list = UserEducation::getList();
//根据参数显示学历名称
$education_obj = UserEducation::getById($eid);
$education_title = UserEducation::getTitleById($eid);
// 页面表示
$_SCRIPT_FILE = array("scripts/validators.js", "scripts/huangliang.js");
$layout_pages = array();
$layout_pages["top"] = "menu.inc";
$layout_pages["menu_clicked"] = "li_system";
$layout_pages["middle"] = "huangliang.inc";
require_once(MANAGER_TEMPLATE_DIR_PATH . "/layout/topmenutopsub_layout.inc");
exit;
\ No newline at end of file
<?
/**
* 用户管理
* $Id: user_list.php
* @author taocy
* @package manager.public_html
*/
// 底层包含
require_once("manager_include.inc");
// 登录检查
require_once("check_login.inc");
// 不做权限检查
if (!checkAuthority("ADMIN,MANAGER,STAFF")) {
// エラー表示
$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;
}
//取得参数
$search_flg = ParamUtil::getRequestBoolean("search_flg",false);
$page_num = ParamUtil::getRequestNumber("page_num", 1);
$channel_no = ParamUtil::getRequestString("channel_no", "0");//my、ocean
$status = ParamUtil::getRequestString("status", "ALL");
$mobile = ParamUtil::getRequestNumber("mobile");
$nickname = ParamUtil::getRequestString("nickname");
$order_key = ParamUtil::getRequestString("order_key","id");
$direction = ParamUtil::getRequestString("direction","desc");
$session_name = "user_list";
if (!$search_flg) {
if (isset($_SESSION[$session_name])){
// ページ番、ソート順など保存
if (isset($_SESSION[$session_name]["page_num"]) && !isset($_REQUEST["page_num"])) {
$page_num = $_SESSION[$session_name]["page_num"];
}
$_SESSION[$session_name]["page_num"] = $page_num;
$channel_no = $_SESSION[$session_name]["channel_no"];
$status = $_SESSION[$session_name]["status"];
$mobile = $_SESSION[$session_name]["mobile"];
$nickname = $_SESSION[$session_name]["nickname"];
$order_key = $_SESSION[$session_name]["order_key"];
$direction = $_SESSION[$session_name]["direction"];
}
} else {
if (isset($_SESSION[$session_name])){
unset($_SESSION[$session_name]);
}
// 再設定
$_SESSION[$session_name]["channel_no"] = $channel_no;
$_SESSION[$session_name]["status"] = $status;
$_SESSION[$session_name]["mobile"] = $mobile;
$_SESSION[$session_name]["nickname"] = $nickname;
$_SESSION[$session_name]["order_key"] = $order_key;
$_SESSION[$session_name]["direction"] = $direction;
}
//当前页取得
$paging_url_link = "my_user_list.php";
$param = array();
$param["delete_flg"] = false;
$param["account_id"] = $_account->id;
$arrow_url = "my_user_list.php";
if (!empty($channel_no)) {
$param["channel_no"] = $channel_no;
}
$arrow_url += "&channel_no=".$channel_no;
if ($status != "ALL") {
$param["status"] = $status;
}
$arrow_url += "&status=".$status;
if (!empty($mobile)) {
$param["mobile"] = $mobile;
}
$arrow_url += "&mobile=".$mobile;
if (!empty($nickname)) {
$param["nickname"] = $nickname;
}
$arrow_url += "&nickname=".$nickname;
$total_count = 0;
//总页数取得
$total_count = UserHandler::getUserCount($param);
if ($total_count > 0) {
$page_row = MANAGER_DEFAULT_ROW_COUNT;
$offset = ($page_num - 1) * $page_row;
//一览取得
$user_mst_list = UserHandler::getUserList($param, $order_key, $direction, $offset, $page_row);
$page_count = ceil($total_count / $page_row);
$show_page_num = 5;
$page_range = PagingHandler::getPageRange($page_num, $page_count, $show_page_num);
$page_first = $page_range[0];
$page_end = $page_range[1];
}
//渠道列表
$channel_list = ChannelMst::getList(null, "id", "desc");
$channel_map = array();
$channel_map["1000"] = "系统用户";
foreach($channel_list as $channel) {
$channel_map[$channel->channel_no] = $channel->title;
}
//学员状态
$user_status_list = UserStatus::getList(null, "id", "desc");
// 页面
$_SCRIPT_FILE = array("scripts/validators.js", "scripts/user_list.js");
$layout_pages = array();
$layout_pages["top"] = "menu.inc";
$layout_pages["menu_clicked"] = "li_user";
$layout_pages["middle"] = "my_user_list.inc";
require_once(MANAGER_TEMPLATE_DIR_PATH . "/layout/topmenutopsub_layout.inc");
exit;
?>
\ No newline at end of file
<?
/**
* 用户管理
* $Id: user_list.php
* @author taocy
* @package manager.public_html
*/
// 底层包含
require_once("manager_include.inc");
// 登录检查
require_once("check_login.inc");
// 不做权限检查
if (!checkAuthority("ADMIN,MANAGER,STAFF")) {
// エラー表示
$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;
}
//取得参数
$action = ParamUtil::getRequestString("action");
$id = ParamUtil::getRequestNumber("id", 0);
//领取处理
if($action == "get" && $id > 0) {
//当前未处理用户超过5个不允许继续领取
//领取操作
$user = UserMst::getById($id);
if(!empty($user) && $user->account_id==0) {
$user->account_id = $_account->id;
$user->save();
}
}
$search_flg = ParamUtil::getRequestBoolean("search_flg",false);
$page_num = ParamUtil::getRequestNumber("page_num", 1);
$channel_no = ParamUtil::getRequestString("channel_no", "0");//my、ocean
$status = ParamUtil::getRequestString("status", "ALL");
$mobile = ParamUtil::getRequestNumber("mobile");
$nickname = ParamUtil::getRequestString("nickname");
$order_key = ParamUtil::getRequestString("order_key","id");
$direction = ParamUtil::getRequestString("direction","desc");
$session_name = "user_list";
if (!$search_flg) {
if (isset($_SESSION[$session_name])){
// ページ番、ソート順など保存
if (isset($_SESSION[$session_name]["page_num"]) && !isset($_REQUEST["page_num"])) {
$page_num = $_SESSION[$session_name]["page_num"];
}
$_SESSION[$session_name]["page_num"] = $page_num;
$channel_no = $_SESSION[$session_name]["channel_no"];
$status = $_SESSION[$session_name]["status"];
$mobile = $_SESSION[$session_name]["mobile"];
$nickname = $_SESSION[$session_name]["nickname"];
$order_key = $_SESSION[$session_name]["order_key"];
$direction = $_SESSION[$session_name]["direction"];
}
} else {
if (isset($_SESSION[$session_name])){
unset($_SESSION[$session_name]);
}
// 再設定
$_SESSION[$session_name]["channel_no"] = $channel_no;
$_SESSION[$session_name]["status"] = $status;
$_SESSION[$session_name]["mobile"] = $mobile;
$_SESSION[$session_name]["nickname"] = $nickname;
$_SESSION[$session_name]["order_key"] = $order_key;
$_SESSION[$session_name]["direction"] = $direction;
}
//当前页取得
$paging_url_link = "ocean_user_list.php";
$param = array();
$param["delete_flg"] = false;
//管理人员和系统管理员查看全部
if(checkAuthority("STAFF")) {
$param["account_id"] = "0";
}
$arrow_url = "ocean_user_list.php";
if (!empty($channel_no)) {
$param["channel_no"] = $channel_no;
}
$arrow_url += "&channel_no=".$channel_no;
if ($status != "ALL") {
$param["status"] = $status;
}
$arrow_url += "&status=".$status;
if (!empty($mobile)) {
$param["mobile"] = $mobile;
}
$arrow_url += "&mobile=".$mobile;
if (!empty($nickname)) {
$param["nickname"] = $nickname;
}
$arrow_url += "&nickname=".$nickname;
$total_count = 0;
//总页数取得
$total_count = UserHandler::getUserCount($param);
if ($total_count > 0) {
$page_row = MANAGER_DEFAULT_ROW_COUNT;
$offset = ($page_num - 1) * $page_row;
//一览取得
$user_mst_list = UserHandler::getUserList($param, $order_key, $direction, $offset, $page_row);
$page_count = ceil($total_count / $page_row);
$show_page_num = 5;
$page_range = PagingHandler::getPageRange($page_num, $page_count, $show_page_num);
$page_first = $page_range[0];
$page_end = $page_range[1];
}
//渠道列表
$channel_list = ChannelMst::getList(null, "id", "desc");
$channel_map = array();
$channel_map["1000"] = "系统用户";
foreach($channel_list as $channel) {
$channel_map[$channel->channel_no] = $channel->title;
}
//学员状态
$user_status_list = UserStatus::getList(null, "id", "desc");
// 页面
$_SCRIPT_FILE = array("scripts/validators.js", "scripts/user_list.js");
$layout_pages = array();
$layout_pages["top"] = "menu.inc";
$layout_pages["menu_clicked"] = "li_user";
$layout_pages["middle"] = "ocean_user_list.inc";
require_once(MANAGER_TEMPLATE_DIR_PATH . "/layout/topmenutopsub_layout.inc");
exit;
?>
\ No newline at end of file
<?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: product_category_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("ADMIN,MANAGER,STAFF")) {
// エラー表示
$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;
}
// 参数取得
$id = ParamUtil::getRequestString("id");
$word_dat = WordDat::getById($id);
if ($word_dat == null) {
$word_dat = new WordDat();
}
$word = $word_dat->word;
$hira_kana = $word_dat->hira_kana;
$chinese = $word_dat->chinese;
$mp3 = $word_dat->mp3;
$sample = $word_dat->sample;
$comment = $word_dat->comment;
$upload_thumbnail = ParamUtil::getRequestString("upload_thumbnail");
// 页面表示
$_SCRIPT_FILE = array("scripts/validators.js", "scripts/word.js");
$layout_pages = array();
$layout_pages["top"] = "menu.inc";
$layout_pages["menu_clicked"] = "li_data";
$layout_pages["middle"] = "word_data_batch.inc";
require_once(MANAGER_TEMPLATE_DIR_PATH . "/layout/topmenutopsub_layout.inc");
exit;
\ No newline at end of file
<?php
/**
* 单词登陆
* $Id: product_category_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("ADMIN,MANAGER,STAFF")) {
// エラー表示
$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;
}
// 取得CSV文件
$csv_file = FileUploadUtil::getScalarFile($_FILES["csv_file"]);
$dest_file = "";
if($csv_file->size > 0) {
$dest_file =date("YmdHis") . ".csv";
$dest_file = CSV_PATH . "/" . $dest_file;
move_uploaded_file($csv_file->tmp_name, $dest_file);
}
$result_list = array();
//逐行解析数据
$reader = new CsvReader($dest_file, ",");
$reader->parse();
$rows_data = $reader->getResult();
$index = 0;
foreach($rows_data as $row) {
//第一行错过
$index++;
if($index == 1) {
continue;
}
$word = trim($row[0]);
$hira_kana = trim($row[1]);
$chinese = trim($row[2]);
$sample = trim($row[3]);
$comment = trim($row[4]);
$mp3 = trim($row[5]);
//是否存在
$param = array();
$param["word"] = $word;
$param["delete_flg"] = false;
$word_dat_list = WordDat::getList($param, "id", "desc", 0, 1);
$word_dat = new WordDat();
if(!empty($word_dat_list)) {
$word_dat = $word_dat_list[0];
}
// 更新数据库
$word_dat->word = $word;
$word_dat->hira_kana = $hira_kana;
$word_dat->chinese = $chinese;
$word_dat->mp3 = $mp3;
$word_dat->sample = $sample;
$word_dat->comment = $comment;
$word_dat->save();
$result_list[] = $word_dat;
}
// 页面表示
$_SCRIPT_FILE = array("scripts/validators.js", "scripts/word.js");
$layout_pages = array();
$layout_pages["top"] = "menu.inc";
$layout_pages["menu_clicked"] = "li_data";
$layout_pages["middle"] = "word_data_batch_result.inc";
require_once(MANAGER_TEMPLATE_DIR_PATH . "/layout/topmenutopsub_layout.inc");
exit;
\ No newline at end of file
<?php
/**
* 商品分类管理
* $Id: product_category_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("ADMIN,MANAGER,STAFF")) {
// エラー表示
$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;
}
// 参数取得
$id = ParamUtil::getRequestString("id");
$action_type = ParamUtil::getRequestString("action_type", "new");
$subject_dat = SubjectDat::getById($id);
if ($subject_dat == null) {
$subject_dat = new SubjectDat();
}
//项目
$subject_category_list = SubjectCategory::getList();
// 页面表示
$_SCRIPT_FILE = array("scripts/validators.js", "scripts/subject.js");
$layout_pages = array();
$layout_pages["top"] = "menu.inc";
$layout_pages["menu_clicked"] = "li_data";
$layout_pages["middle"] = "subject_data_edit.inc";
require_once(MANAGER_TEMPLATE_DIR_PATH . "/layout/topmenutopsub_layout.inc");
exit;
\ No newline at end of file
<?php
/**
* 单词登陆
* $Id: product_category_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("ADMIN,MANAGER,STAFF")) {
// エラー表示
$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;
}
// 参数取得
$id = ParamUtil::getRequestNumber("id", 0);
$category_id = ParamUtil::getRequestString("category_id");
$title = ParamUtil::getRequestString("title");
$selection1 = ParamUtil::getRequestString("selection1");
$selection2 = ParamUtil::getRequestString("selection2");
$selection3 = ParamUtil::getRequestString("selection3");
$selection4 = ParamUtil::getRequestString("selection4");
$comment = ParamUtil::getRequestString("comment");
$level = ParamUtil::getRequestString("level", "N5");
$point = ParamUtil::getRequestNumber("point", 0);
$right_answer = ParamUtil::getRequestNumber("right_answer", 1);
$upload_mp3_file = FileUploadUtil::getScalarFile($_FILES["upload_mp3_file"]);
$subject_dat = SubjectDat::getById($id);
if (empty($subject_dat)) {
$subject_dat = new SubjectDat();
}
$error_flg = false;
// 图片Check
if ($upload_mp3_file->size > 0) {
if ($upload_mp3_file->type == null || $upload_mp3_file->type != "audio/mpeg") {
$error_flg = true;
$thumbnail_error_msg = "只接受MP3类型。";
} else {
$upload_mp3 = date("YmdHis") . ".mp3";
$dest_file = SUBJECT_DATA_PATH . "/" . $upload_mp3;
move_uploaded_file($upload_mp3_file->tmp_name, $dest_file);
chmod($dest_file, 0777);
//删除老的文件
@unlink(SUBJECT_DATA_PATH . "/" . $subject_dat->mp3);
//更新文件名
if($category_id == "6") {
$subject_dat->mp3 = $upload_mp3;
}
}
}
if($category_id != "6") {
$subject_dat->mp3 = "";
}
// 更新数据库
$subject_dat->category_id = $category_id;
$subject_dat->title = $title;
$subject_dat->selection1 = $selection1;
$subject_dat->selection2 = $selection2;
$subject_dat->selection3 = $selection3;
$subject_dat->selection4 = $selection4;
$subject_dat->right_answer = $right_answer;
$subject_dat->comment = $comment;
$subject_dat->level = $level;
$subject_dat->point = $point;
$subject_dat->save();
// 跳到一览页
header("Location:subject_dat_list.php");
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
* @package manager.public_html
*/
// 底层包含
require_once("manager_include.inc");
// 登录检查
require_once("check_login.inc");
// 权限检查
if (!checkAuthority("ADMIN,MANAGER,STAFF")) {
// エラー表示
$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;
}
$search_flg = ParamUtil::getRequestBoolean("search_flg",false);
$level = ParamUtil::getRequestString("level", "N5");
$category_id = ParamUtil::getRequestString("category_id", "1");
$session_name = "subject_dat_list";
if (!$search_flg) {
if (isset($_SESSION[$session_name])){
// ページ番、ソート順など保存
if (isset($_SESSION[$session_name]["page_num"]) && !isset($_REQUEST["page_num"])) {
$page_num = $_SESSION[$session_name]["page_num"];
}
$_SESSION[$session_name]["page_num"] = $page_num;
$page_num = $_SESSION[$session_name]["page_num"];
$level = $_SESSION[$session_name]["level"];
$category_id = $_SESSION[$session_name]["category_id"];
}
} else {
if (isset($_SESSION[$session_name])){
unset($_SESSION[$session_name]);
}
// 再設定
$_SESSION[$session_name]["page_num"] = $page_num;
$_SESSION[$session_name]["level"] = $level;
$_SESSION[$session_name]["category_id"] = $category_id;
}
// 一览取得
$param = array();
$param["level"] = $level;
$param["category_id"] = $category_id;
$param["delete_flg"] = false;
$subject_dat_list = SubjectDat::getList($param, "id", "desc", 0, 200);
$total_count = SubjectDat::getListCount($param);
$category_list = SubjectCategory::getList();
// ページ
$_SCRIPT_FILE = array("scripts/validators.js", "scripts/subject.js");
$layout_pages = array();
$layout_pages["top"] = "menu.inc";
$layout_pages["menu_clicked"] = "li_data";
$layout_pages["middle"] = "subject_dat_list.inc";
require_once(MANAGER_TEMPLATE_DIR_PATH . "/layout/topmenutopsub_layout.inc");
exit;
\ No newline at end of file
<?php
/**
* $Id: display_image.php
* @author g_wang
* @access public
* @package www
*/
require_once("manager_include.inc");
// パラメータを取得
$file_name = ParamUtil::getRequestString("file_name");
$file_path = SUBJECT_DATA_PATH . "/" . $file_name;
if (file_exists($file_path)) {
header("Cache-Control: no-store, no-cache, must-revalidate"); // HTTP/1.1
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache"); // HTTP/1.0
$handle = fopen($file_path, "rb");
$mp3_data = fread($handle, filesize($file_path));
$size = getimagesize($file_path);
header("Content-type: audio/mpeg");
header("Content-length: " . strlen($mp3_data));
print $mp3_data;
fclose($handle);
exit;
}
exit;
header("HTTP/1.0 404 Not Found");
header("Status: 404 Not Found");
exit;
\ No newline at end of file
<?php
/**
* 单词列表
* $Id: product_category_list.inc,v 1.1 2015/10/08 11:18:53 wanggb Exp $
* @author zhouhj
* @access public
* @package manager.templates
*/
?>
<b>题目设置</b><br />
<br />
试卷 : <?=$examination_mst->title?><br />
题数 : <?=$examination_count?><br />
总分 : <?=$sum_point?>
<br />
<div id="result_list" style="width:40%;">
<?
$x = 0;
foreach($subject_category_list as $subject_category) {
$x++;
//已经登陆的该类型题目
$param = array();
$param["delete_flg"] = false;
$param["category_id"] = $subject_category->id;
$param["examination_mst_id"] = $examination_mst->id;
$examination_dat_list = ExaminationDat::getList($param, "display_order", "asc");
$subject_ids = array();
foreach($examination_dat_list as $examination_dat) {
$subject_ids[] = $examination_dat->subject_id;
}
//该类型所有题目
$param = array();
$param["delete_flg"] = false;
$param["category_id"] = $subject_category->id;
$param["id_NOT"] = $subject_ids;
$subject_dat_list = SubjectDat::getList($param, "id", "desc");
?>
<table widtg="60%">
<tr>
<th class="contents_title" width="70%"><?=$subject_category->title?></th>
<th class="contents_title" width="15%">排序</th>
<th class="contents_title">操作</th>
</tr>
<?
$index = 0;
foreach($examination_dat_list as $examination_dat) {
$index++;
?>
<tr>
<td><?=$index?>. <?=$examination_dat->title?></td>
<td align="center">
<a class="flatbutton" href="examination_dat_change_display_order.php?mst_id=<?=$examination_mst->id ?>&dat_id=<?=$examination_dat->id ?>&type=up"></a>
<a class="flatbutton" href="examination_dat_change_display_order.php?mst_id=<?=$examination_mst->id ?>&dat_id=<?=$examination_dat->id ?>&type=down"></a>
</td>
<td align="center"><a class="flatbutton" href="examination_dat_operate.php?action=delete&mst_id=<?=$examination_mst->id ?>&dat_id=<?=$examination_dat->id ?>&subject_id=<?=$examination_dat->subject_id?>"></a></td>
</tr>
<?
}
?>
<tr>
<td>
<select name="subject_id<?=$x?>" id="subject_id<?=$x?>" style="width:80%;">
<?
foreach ($subject_dat_list as $subject_dat) {
?>
<option value="<?=$subject_dat->id ?>"><?=$subject_dat->title ?>[分值:<?=$subject_dat->point ?>]</option>
<?
}
?>
</select>
</td>
<td></td>
<td align="center"><a class="flatbutton" onclick="addSubject2Mst(<?=$examination_mst->id ?>, <?=$x?>);"></a></td>
</tr>
</table><br/>
<?
}
?>
</div>
\ No newline at end of file
<?php
/**
* 词集编集
* $Id: word_theme_edit.inc,v 1.1 2015/10/08 11:18:53 wanggb Exp $
* @author wanggb
* @access public
* @package manager.templates
**/
global $upload_thumbnail;
global $thumbnail_error_msg;
?>
<b试卷添加/编集</b><br />
<br />
<form name="examination_mst_edit" action="examination_mst_edit_result.php" method="post">
<input type="hidden" name="id" value="<?=$id ?>" />
<table>
<tr>
<td>名称</td>
</tr>
<tr>
<td class="begin_blank">
<input type="text" id="title" name="title" value="<?=htmlspecialchars($examination_mst->title) ?>" size=40/>
</td>
</tr>
<tr>
<td>类型</td>
</tr>
<tr>
<td class="begin_blank">
<select name="type" name="type">
<option value="TEST" <?=$examination_mst->type == "TEST" ? " selected " : "" ?>>考试模式</option>
<option value="EXERCISE" <?=$examination_mst->type == "EXERCISE" ? " selected " : "" ?>>练习模式</option>
</select>
</td>
</tr>
<tr>
<td>答题秒数(考试模式用)</td>
</tr>
<tr>
<td class="begin_blank">
<input type="text" id="max_time" name="max_time" value="<?=htmlspecialchars($examination_mst->max_time) ?>" size=20/>
</td>
</tr>
<tr>
<td>级别(练习模式用)</td>
</tr>
<tr>
<td class="begin_blank">
<select name="level" style="width:150px;">
<?
for($index=5; $index>=1; $index--) {
?>
<option value="N<?=$index ?>" <?=$examination_mst->level == "N" . $index ? " selected " : "" ?>>N<?=$index ?></option>
<?
}
?>
</select>
</td>
</tr>
<tr>
<td>模块类型(练习模式用)</td>
</tr>
<tr>
<td class="begin_blank">
<select name="category_id" style="width:200px;">
<?
foreach ($subject_category_list as $tmp) {
?>
<option value="<?=$tmp->id ?>" <?=$examination_mst->category_id == $tmp->id ? " selected " : "" ?>><?=$tmp->title ?></option>
<?
}
?>
</select>
</td>
</tr>
</table>
<br />
<input type="button" value="编集" class="button_width_normal" onClick="doChecExaminationMst();" />
</form>
<?php
/**
* 单词列表
* $Id: product_category_list.inc,v 1.1 2015/10/08 11:18:53 wanggb Exp $
* @author zhouhj
* @access public
* @package manager.templates
*/
?>
<b>试卷列表</b><br />
<br />
<a class="flatbutton" href="examination_mst_edit.php">添加试卷</a>
<br /><br />
<div id="result_list">
<table>
<tr>
<th class="contents_title" width="15%">试卷名称</th>
<th class="contents_title" width="5%">试卷类型</th>
<th class="contents_title" width="5%">等级</th>
<th class="contents_title" width="5%">模块类型</th>
<th class="contents_title" width="10%">答题时间</th>
<th class="contents_title" width="10%">题目数量</th>
<th class="contents_title" width="25%">链接</th>
<th class="contents_title" width="10%">合计分值</th>
<th class="contents_title">操作</th>
</tr>
<?
if (count($examination_mst_list) > 0) {
foreach ($examination_mst_list as $examination_mst) {
//试卷类型
$type_title = "练习模式";
$category_title = SubjectCategory::getTitleById($examination_mst->category_id);
$max_time = "-";
if($examination_mst->type == "TEST") {
$type_title = "考试模式";
$category_title = "综合";
$max_time = $examination_mst->max_time;
}
$examination_count = ExaminationHandler::getExaminationCount($examination_mst->id);
$url = "http://" . SCHOOL_DOMAIN . "/examination.php?id=" . $examination_mst->id;
$sum_point = ExaminationHandler::getSumExaminationPoint($examination_mst->id);
?>
<tr>
<td align="left"><?=$examination_mst->title ?></td>
<td align="center"><?=$type_title ?></td>
<td align="center"><?=$examination_mst->level ?></td>
<td align="center"><?=$category_title ?></td>
<td align="center"><?=$max_time ?></td>
<td align="center"><?=$examination_count ?></td>
<td align="left"><?=$url?></td>
<td align="center"><?=$sum_point?></td>
<td align="center">
<a class="flatbutton" href="examination_mst_edit.php?id=<?=$examination_mst->id ?>">编集</a>
<a class="flatbutton" href="examination_dat_list.php?id=<?=$examination_mst->id ?>">题目设置</a>
<a class="flatbutton" href="examination_dat_list.php?id=<?=$examination_mst->id ?>">答题人员</a>
</td>
</tr>
<?
}
}
?>
</table>
</div>
\ No newline at end of file
<?
/**
* 我的学员
* $Id: user_search_list.inc,v 1.1
* @author taocy
* @package src.admin.templates
*/
?>
<b>我的学员</b><br /><br />
<form action="my_user_list.php" method="post" name="my_user_list">
<input type="hidden" name="search_flg" value="true" />
<table>
<tr>
<td>渠道</td>
<td class="begin_blank">
<select name="channel_no" style="width:200px;">
<option value="0" <?= "1000"==$channel_no ? " selected " : "" ?>>全部</option>
<option value="1000" <?= "1000"==$channel_no ? " selected " : "" ?>>系统用户</option>
<?
foreach ($channel_list as $channel_dat) {
?>
<option value="<?=$channel_dat->channel_no ?>"<?=$channel_dat->channel_no == $channel_no ? " selected " : "" ?>><?=$channel_dat->title ?></option>
<?
}
?>
</select>
</td>
<td>状态</td>
<td>
<select name="status">
<option value="ALL" <?=$status == "ALL" ? " selected " : "" ?> >全部</option>
<?
echo $status;
foreach ($user_status_list as $user_status_obj) {
?>
<option value="<?=$user_status_obj->id ?>"<?=$user_status_obj->id == $status ? " selected " : "" ?>><?=$user_status_obj->title ?></option>
<?
}
?>
</select>
</td>
<td>手机</td>
<td><input type="text" value="<?=htmlspecialchars($mobile) ?>" name="mobile" /></td>
<td>姓名</td>
<td><input type="text" value="<?=htmlspecialchars($nickname) ?>" name="nickname" /></td>
<td><input type="button" value="搜索" onclick="searchMyUser()" /></td>
</tr>
</table>
</form><br />
<div style="text-align:center;float: right;font-size:18px;"><?=$total_count ?>件记录</div>
<div style="clear:both"></div>
<?
require_once("page_common.inc");
?>
<!--page end-->
<div id="result_list">
<?
if ($total_count > 0) {
$asc_img = "<img src=\"images/arrow_asc.png\" width=\"12\" height=\"12\" border=\"0\" alt=\"asc\" />";
$desc_img = "<img src=\"images/arrow_desc.png\" width=\"12\" height=\"12\" border=\"0\" alt=\"desc\" />";
?>
<table>
<tr>
<th class="contents_title"><a href="<?=$arrow_url ?>&order_key=id&direction=asc"><?=$asc_img ?></a>ID<a href="<?=$arrow_url ?>&order_key=id&direction=desc"><?=$desc_img ?></a></th>
<th class="contents_title">注册时间</th>
<th class="contents_title">姓名</th>
<th class="contents_title">手机号码</th>
<th class="contents_title">积分</th>
<th class="contents_title">性别</th>
<th class="contents_title">微信</th>
<th class="contents_title">QQ</th>
<th class="contents_title">状态</th>
<th class="contents_title">渠道</th>
<th class="contents_title">操作</th>
</tr>
<?
foreach($user_mst_list as $tmp) {
//获取用户渠道名称
$channel_title = $channel_map[$tmp["channel_no"]];
?>
<tr>
<td align="center"><?=$tmp["id"] ?></td>
<td align="center"><?=$tmp["registration_date"] ?></td>
<td align="center"><?=$tmp["nickname"] ?></td>
<td align="center"><?=$tmp["mobile"] ?></td>
<td align="center"><?=$tmp["point"] ?></td>
<td align="center"><?=$tmp["sex"] == "UNKNOW" ? "未知" : "" ?><?=$tmp["sex"] == "FEMALE" ? "女" : "" ?><?=$tmp["sex"] == "MALE" ? "男" : "" ?></td>
<td align="center"><?=htmlspecialchars($tmp["wechat_no"]) ?></td>
<td align="center"><?=htmlspecialchars($tmp["qq_no"]) ?></td>
<td align="center"><?=UserStatus::getTitleById($tmp["status"]); ?></td>
<td align="center"><?=htmlspecialchars($channel_title) ?></td>
<td align="center">
<a class="flatbutton" href="user_edit_input.php?action=edit&id=<?=$tmp["id"] ?>">编辑</a>
<a class="flatbutton" href="user_edit_comment_input.php?id=<?=$tmp["id"] ?>">回访记录</a>
</td>
</tr>
<?
}
?>
</table>
<?
} else {
echo '<div align="center"><font color="red">暂无数据……</font></div>';
}
?>
</div>
\ No newline at end of file
<?
/**
* 我的学员
* $Id: user_search_list.inc,v 1.1
* @author taocy
* @package src.admin.templates
*/
?>
<b>公海学员</b><br /><br />
<form action="ocean_user_list.php" method="post" name="ocean_user_list">
<input type="hidden" name="search_flg" value="true" />
<table>
<tr>
<td>渠道</td>
<td class="begin_blank">
<select name="channel_no" style="width:200px;">
<option value="0" <?= "1000"==$channel_no ? " selected " : "" ?>>全部</option>
<option value="1000" <?= "1000"==$channel_no ? " selected " : "" ?>>系统用户</option>
<?
foreach ($channel_list as $channel_dat) {
?>
<option value="<?=$channel_dat->channel_no ?>"<?=$channel_dat->channel_no == $channel_no ? " selected " : "" ?>><?=$channel_dat->title ?></option>
<?
}
?>
</select>
</td>
<td>状态</td>
<td>
<select name="status">
<option value="ALL" <?=$status == "ALL" ? " selected " : "" ?> >全部</option>
<?
echo $status;
foreach ($user_status_list as $user_status_obj) {
?>
<option value="<?=$user_status_obj->id ?>"<?=$user_status_obj->id == $status ? " selected " : "" ?>><?=$user_status_obj->title ?></option>
<?
}
?>
</select>
</td>
<td>手机</td>
<td><input type="text" value="<?=htmlspecialchars($mobile) ?>" name="mobile" /></td>
<td>姓名</td>
<td><input type="text" value="<?=htmlspecialchars($nickname) ?>" name="nickname" /></td>
<td><input type="button" value="搜索" onclick="searchOceanUser()" /></td>
</tr>
</table>
</form><br />
<div style="text-align:center;float: right;font-size:18px;"><?=$total_count ?>件记录</div>
<div style="clear:both"></div>
<?
require_once("page_common.inc");
?>
<!--page end-->
<div id="result_list">
<?
if ($total_count > 0) {
$asc_img = "<img src=\"images/arrow_asc.png\" width=\"12\" height=\"12\" border=\"0\" alt=\"asc\" />";
$desc_img = "<img src=\"images/arrow_desc.png\" width=\"12\" height=\"12\" border=\"0\" alt=\"desc\" />";
?>
<table>
<tr>
<th class="contents_title">ID</th>
<th class="contents_title">注册时间</th>
<th class="contents_title">姓名</th>
<th class="contents_title">手机号码</th>
<th class="contents_title">积分</th>
<th class="contents_title">性别</th>
<th class="contents_title">微信</th>
<th class="contents_title">QQ</th>
<th class="contents_title">状态</th>
<th class="contents_title">渠道</th>
<th class="contents_title">操作</th>
</tr>
<?
foreach($user_mst_list as $tmp) {
//获取用户渠道名称
$channel_title = $channel_map[$tmp["channel_no"]];
?>
<tr>
<td align="center"><?=$tmp["id"] ?></td>
<td align="center"><?=$tmp["registration_date"] ?></td>
<td align="center"><?=$tmp["nickname"] ?></td>
<td align="center"><?=$tmp["mobile"] ?></td>
<td align="center"><?=$tmp["point"] ?></td>
<td align="center"><?=$tmp["sex"] == "UNKNOW" ? "未知" : "" ?><?=$tmp["sex"] == "FEMALE" ? "女" : "" ?><?=$tmp["sex"] == "MALE" ? "男" : "" ?></td>
<td align="center"><?=htmlspecialchars($tmp["wechat_no"]) ?></td>
<td align="center"><?=htmlspecialchars($tmp["qq_no"]) ?></td>
<td align="center"><?=UserStatus::getTitleById($tmp["status"]); ?></td>
<td align="center"><?=htmlspecialchars($channel_title) ?></td>
<td align="center">
<?
if (checkAuthority("ADMIN,MANAGER")) {
$user_id = $tmp["id"];
?>
<a class="flatbutton" href="user_send_coupon.php?id=<?=$user_id ?>">送券</a>
<a class="flatbutton" href="user_send_point.php?id=<?=$user_id ?>">添加积分</a>
<a class="flatbutton" href="user_edit_comment_input2.php?id=<?=$user_id?> ?>">回访记录</a>
<a class="flatbutton" href="user_edit_input2.php?action=edit&id=<?=$user_id ?>">编辑</a>
<?
}
?>
<a class="flatbutton" href="ocean_user_list.php?action=get&id=<?=$tmp["id"] ?>">领取</a>
</td>
</tr>
<?
}
?>
</table>
<?
} else {
echo '<div align="center"><font color="red">暂无数据……</font></div>';
}
?>
</div>
\ No newline at end of file
<?php
/**
* 单词列表
* $Id: product_category_list.inc,v 1.1 2015/10/08 11:18:53 wanggb Exp $
* @author zhouhj
* @access public
* @package manager.templates
*/
?>
<b>题库列表</b><br />
<form action="subject_dat_list.php" method="post" name="subject_dat_list">
<input type="hidden" name="search_flg" value="true" />
<table>
<tr>
<td>级别</td>
<td class="begin_blank">
<select name="level">
<?
$level_list = array("N5", "N4", "N3", "N2", "N1");
foreach ($level_list as $level_txt) {
?>
<option value="<?=$level_txt ?>"<?=$level == $level_txt ? " selected " : "" ?>><?=$level_txt ?></option>
<?
}
?>
</select>
</td>
<td>类型</td>
<td>
<select name="category_id">
<?
foreach ($category_list as $category_obj) {
?>
<option value="<?=$category_obj->id ?>"<?=$category_obj->id == $category_id ? " selected " : "" ?>><?=$category_obj->title ?></option>
<?
}
?>
</select>
</td>
<td><input type="button" value="搜索" onclick="searchSubject()" /></td>
</tr>
</table>
</form>
<div style="text-align:center;float: right;font-size:18px;"><?=$total_count ?>件记录</div>
<div style="clear:both"></div>
<a class="flatbutton" href="subject_dat_edit.php">逐题添加</a>
<!--<a class="flatbutton" href="subject_dat_batch.php">批量上传</a>-->
<br /><br />
<div id="result_list">
<table>
<tr>
<th class="contents_title" width="4%">项目</th>
<th class="contents_title" width="22%">题目</th>
<th class="contents_title" width="18%">MP3</th>
<th class="contents_title" width="12%">选择项1</th>
<th class="contents_title" width="12%">选择项2</th>
<th class="contents_title" width="12%">选择项3</th>
<th class="contents_title" width="12%">选择项4</th>
<th class="contents_title" width="4%">答案</th>
<th class="contents_title">操作</th>
</tr>
<?
if (count($subject_dat_list) > 0) {
foreach ($subject_dat_list as $subject_dat) {
$category_title = SubjectCategory::getTitleById($subject_dat->category_id);
?>
<tr>
<td align="center"><?=$category_title ?></td>
<td align="left"><?=htmlspecialchars($subject_dat->title) ?></td>
<td align="center">
<?
if(!empty($subject_dat->mp3)) {
?>
<audio controls="controls">
<source src="subject_mp3.php?file_name=<?=urlencode($subject_dat->mp3) ?>" type="audio/mpeg">
您的浏览器不支持该音频格式。
</audio>
<?
}
?>
</td>
<td align="left"><?=htmlspecialchars($subject_dat->selection1) ?></td>
<td align="left"><?=htmlspecialchars($subject_dat->selection2) ?></td>
<td align="left"><?=htmlspecialchars($subject_dat->selection3) ?></td>
<td align="left"><?=htmlspecialchars($subject_dat->selection4) ?></td>
<td align="center"><?=htmlspecialchars($subject_dat->right_answer) ?></td>
<td align="center">
<a class="flatbutton" href="subject_dat_edit.php?id=<?=$subject_dat->id ?>">编集</a>
</td>
</tr>
<?
}
}
?>
</table>
</div>
\ No newline at end of file
<?php
/**
* 解梦内容编辑
* $Id: product_category_new_input.inc,v 1.1 2015/10/08 11:18:53 wanggb Exp $
* @author wanggb
* @access public
* @package manager.templates
**/
?>
<b>单词批量上传</b><br />
<br />
<form name="word_data_batch" action="word_dat_batch_result.php" method="post" enctype="multipart/form-data">
<table width="80%">
<tr>
<td>请指定上传文件</td>
</tr>
<tr>
<td class="begin_blank">
<input type="file" id="csv_file" name="csv_file" accept="text/csv"/>
</td>
</tr>
</table>
<br />
<input type="button" value="提交" class="button_width_normal" onClick="doCheckCsv();"/>
</form>
<?php
/**
* 单词批量上传
* $Id: product_category_list.inc,v 1.1 2015/10/08 11:18:53 wanggb Exp $
* @author zhouhj
* @access public
* @package manager.templates
*/
?>
<b>单词批量上传成功!</b><br /><br />
<a class="flatbutton" href="word_dat_batch.php">返回</a>
<br /><br />
<div id="result_list">
<table>
<tr>
<th class="contents_title" width="10%">单词</th>
<th class="contents_title" width="10%">平假名</th>
<th class="contents_title" width="15%">中文翻译</th>
<th class="contents_title" width="10%">MP3</th>
<th class="contents_title" width="25%">例句</th>
<th class="contents_title" width="25%">用法描述</th>
</tr>
<?
if (count($result_list) > 0) {
foreach ($result_list as $word_dat) {
?>
<tr>
<td align="center"><?=$word_dat->word ?></td>
<td align="center"><?=htmlspecialchars($word_dat->hira_kana) ?></td>
<td align="center"><?=htmlspecialchars($word_dat->chinese) ?></td>
<td align="left">
<?
if(!empty($word_dat->mp3)) {
?>
<?=htmlspecialchars($word_dat->mp3) ?>
<?
}
?>
</td>
<td align="left"><?=htmlspecialchars($word_dat->sample) ?></td>
<td align="left"><?=htmlspecialchars($word_dat->comment) ?></td>
</tr>
<?
}
}
?>
</table>
</div>
<br />
<a class="flatbutton" href="word_dat_batch.php">返回</a>
<br />
\ No newline at end of file
<?php
/**
* 解梦内容编辑
* $Id: product_category_new_input.inc,v 1.1 2015/10/08 11:18:53 wanggb Exp $
* @author wanggb
* @access public
* @package manager.templates
**/
?>
<b>题库添加/编辑</b><br />
<br />
<form name="subject_data_edit" action="subject_dat_edit_result.php" method="post" enctype="multipart/form-data">
<input type="hidden" name="action_type" value="<?=$action_type ?>" />
<input type="hidden" name="id" value="<?=$id ?>" />
<table width="80%">
<tr>
<td>项目</td>
</tr>
<tr>
<td class="begin_blank">
<select name="category_id" style="width:200px;">
<?
foreach ($subject_category_list as $tmp) {
?>
<option value="<?=$tmp->id ?>" <?=$subject_dat->category_id == $tmp->id ? " selected " : "" ?>><?=$tmp->title ?></option>
<?
}
?>
</select>
</td>
</tr>
<tr>
<td>题目</td>
</tr>
<tr>
<td class="begin_blank">
<textarea name="title" id="title" cols=60 rows=3?><?=htmlspecialchars($subject_dat->title) ?></textarea>
</td>
</tr>
<tr>
<td>MP3(听力题目用)</td>
</tr>
<tr>
<td class="begin_blank">
<input type="file" id="upload_mp3_file" name="upload_mp3_file" accept=".mp3"/>
</td>
</tr>
<tr>
<td>选项1</td>
</tr>
<tr>
<td class="begin_blank">
<input type="text" id="selection1" name="selection1" value="<?=$subject_dat->selection1?>" size=40/>
</td>
</tr>
<tr>
<td>选项2</td>
</tr>
<tr>
<td class="begin_blank">
<input type="text" id="selection2" name="selection2" value="<?=$subject_dat->selection2?>" size=40/>
</td> </tr>
<tr>
<td>选项3</td>
</tr>
<tr>
<td class="begin_blank">
<input type="text" id="selection3" name="selection3" value="<?=$subject_dat->selection3?>" size=40/>
</td> </tr>
<tr>
<td>选项4</td>
</tr>
<tr>
<td class="begin_blank">
<input type="text" id="selection4" name="selection4" value="<?=$subject_dat->selection4?>" size=40/>
</td>
</tr>
<tr>
<td>用法描述</td>
</tr>
<tr>
<td class="begin_blank"><textarea name="comment" cols=60 rows=2?><?=htmlspecialchars($subject_dat->comment) ?></textarea></td>
</tr>
<tr>
<td>正确答案</td>
</tr>
<tr>
<td class="begin_blank">
<select name="right_answer" style="width:150px;">
<?
for($index=1; $index<=4; $index++) {
?>
<option value="<?=$index ?>" <?=$subject_dat->right_answer == $index ? " selected " : "" ?>>选择项<?=$index ?></option>
<?
}
?>
</select>
</td>
</tr>
<tr>
<td>难度</td>
</tr>
<tr>
<td class="begin_blank">
<select name="level" style="width:150px;">
<?
for($index=5; $index>=1; $index--) {
?>
<option value="N<?=$index ?>" <?=$subject_dat->level == "N" . $index ? " selected " : "" ?>>N<?=$index ?></option>
<?
}
?>
</select>
</td>
</tr>
<tr>
<td>分值(参考等级考试)</td>
</tr>
<tr>
<td class="begin_blank">
<input type="text" id="point" name="point" value="<?=$subject_dat->point?>" size=20/>
</td>
</tr>
</table>
<br />
<input type="button" value="提交" class="button_width_normal" onClick="doCheck();"/>
</form>
<?
/**
* 代金券使用
* $Id: user_use_coupon_list.inc,v 1.1
* @author taocy
* @package src.admin.templates
*/
?>
<b>支付宝支付列表</b><br /><br />
<div style="text-align:center;float: right;font-size:18px;"><?=$total_count ?>件记录</div>
<div style="clear:both"></div>
<!--page end-->
<div id="result_list">
<?
if ($total_count > 0) {
?>
<table>
<tr>
<th class="contents_title" width="4%">ID</th>
<th class="contents_title" width="10%">支付时间</th>
<th class="contents_title" width="12%">交易编号</th>
<th class="contents_title" width="10%">姓名</th>
<th class="contents_title" width="10%">手机号码</th>
<th class="contents_title" width="20%">课程名称</th>
<th class="contents_title" width="5%">支付方法</th>
<th class="contents_title" width="5%">金额</th>
<th class="contents_title" width="10%">状态</th>
</tr>
<?
foreach($user_buy_course_list as $tmp) {
//用户资料
$user = UserMst::getById($tmp->user_id);
//课程名称
$course_dat = CourseMst::getById($tmp->course_id);
//状态
$status_title = OrderStatus::getTitleByName($tmp->status);
//支付方法
$alipay_trade_no = $tmp->alipay_trade_no;
$pay_type_title = "支付宝";
if($tmp->pay_type=="HBFQ") {
$pay_type_title = "花呗分期";
}
//是否显示确认收款
$show_change_status_button = false;
if(checkAuthority("ADMIN,MANAGER") && $tmp->status == "PAYED") {
$show_change_status_button = true;
}
?>
<tr>
<td align="center"><?=$tmp->id ?></td>
<td align="center"><?=$tmp->registration_date ?></td>
<td align="center"><?=$tmp->alipay_trade_no ?></td>
<td align="center"><?=$user->nickname ?></td>
<td align="center"><?=$user->mobile ?></td>
<td align="left"><?=$course_dat->title ?></td>
<td align="center"><?=$pay_type_title ?></td>
<td align="center"><?=$tmp->price ?></td>
<td align="center">
<?=$status_title ?>
<?
if($show_change_status_button) {
?>
<a class="flatbutton" onClick="confirmPay('<?=$tmp->id ?>');">确认收款</a>
<?
}
?>
</td>
</tr>
<?
}
?>
</table>
<?
} else {
echo '<div align="center"><font color="red">暂无数据……</font></div>';
}
?>
</div>
\ No newline at end of file
<?php
/**
* 词集编集
* $Id: word_theme_edit.inc,v 1.1 2015/10/08 11:18:53 wanggb Exp $
* @author wanggb
* @access public
* @package manager.templates
**/
?>
<style>
#selected_user_list {
overflow-y:scroll;
float:left;
width:200px;
height:360px;
border:1px solid #000;
display:flex;
flex-direction:column;
justify-content:flex-start;
align-items:center;
}
.selected_user_item {
margin-top:2px;
width:180px;
height:20px;
line-height:20px;
background:#EBEBEB;
text-align:left;
border:1px solid #EBEBEB;
}
.selected_user_item:hover {
background:#FFF;
border:1px solid #EBEBEB;
cursor:pointer;
}
#search_user_area {
margin-left:50px;
float:left;
width:200px;
height:360px;
border:1px solid #000;
display:flex;
flex-direction:column;
justify-content:flex-start;
align-items:center;
}
#search_user_list {
overflow-y:scroll;
float:left;
margin-top:10px;
width:100%;
min—height:200px;
display:flex;
flex-direction:column;
justify-content:flex-start;
align-items:center;
}
.search_user_item {
margin-top:2px;
width:180px;
height:22px;
line-height:22px;
text-align:left;
border:1px solid #D4D4D4;
}
.search_user_item:hover {
background:#EBEBEB;
border:1px solid #EBEBEB;
cursor:pointer;
}
.search_row {
margin-top:5px;
}
.input_key {
width:180px;
}
</style>
<b>学员班级设定</b><br />
<br />
<form name="user_class_batch_input" action="user_class_batch_result.php" method="post">
<input type="hidden" id="user_ids" name="user_ids" value="">
<table width="80%">
<tr>
<td>名称</td>
</tr>
<tr>
<td class="begin_blank">
<input type="text" id="title" name="title" value="" style="width:300px;"/>
</td>
</tr>
<tr>
<td>上课地址</td>
</tr>
<tr>
<td class="begin_blank">
<input type="text" id="live_url" name="live_url" value="" style="width:400px;"/>
</td>
</tr>
<tr>
<td>学员选择</td>
</tr>
</table>
<div id="result_list">
<div id="selected_user_list">
<!--
<div class="selected_user_item" onClick="removeUser('1');">1.学员</div>
-->
</div>
<div id="search_user_area">
<div class="search_row">
<input type="text" id="key_word" name="key_word" value="" class="input_key" onchange="searchUser();" placeholder="请输入手机号码">
</div>
<div id="search_user_list">
<?
$index = 0;
foreach($user_buy_course_list as $tmp) {
$index++;
$user = UserMst::getById($tmp->user_id);
?>
<div class="search_user_item" onClick="addUser('<?=$user->id?>','<?=$user->nickname?>');"><?=$index?>.<?=$user->nickname?></div>
<?
}
?>
</div>
</div>
</div>
<br />
<table width="100%">
<tr>
<td>
<input type="button" value="提交" class="button_width_normal" onClick="doCheck();"/>
</td>
</tr>
</table>
</form>
<?
/**
* 我的学员
* $Id: user_search_list.inc,v 1.1
* @author taocy
* @package src.admin.templates
*/
?>
<b>课程安排</b><br /><br />
<form action="user_class_list.php" method="post" name="user_class_list">
<input type="hidden" name="search_flg" value="true" />
<table>
<tr>
<td>手机</td>
<td><input type="text" value="<?=htmlspecialchars($mobile) ?>" name="mobile" /></td>
<td>姓名</td>
<td><input type="text" value="<?=htmlspecialchars($nickname) ?>" name="nickname" /></td>
<td><input type="button" value="搜索" onclick="searchOceanUser()" /></td>
</tr>
</table>
</form><br />
<br />
<a class="flatbutton" href="user_class_batch_input.php">班级设定</a>
<br />
<div style="text-align:center;float: right;font-size:18px;"><?=$total_count ?>件记录</div>
<div style="clear:both"></div>
<?
require_once("page_common.inc");
?>
<!--page end-->
<div id="result_list">
<?
if ($total_count > 0) {
?>
<table>
<tr>
<th class="contents_title" width="15%">班级名称</th>
<th class="contents_title" width="10%">设定时间</th>
<th class="contents_title" width="15%">姓名</th>
<th class="contents_title" width="10%">手机号码</th>
<th class="contents_title" width="35%">授课地址</th>
<th class="contents_title" width="5%">有效</th>
</tr>
<?
foreach($user_class_list as $tmp) {
$user = UserMst::getById($tmp->user_id);
$is_valid_title = "X";
if($tmp->is_valid) {
$is_valid_title = "〇";
}
?>
<tr<?=!$tmp->is_valid ? " class=\"gray_mask\"" : "" ?>>
<td align="center"><?=$tmp->title ?></td>
<td align="center"><?=$tmp->update_date ?></td>
<td align="center"><?=$user->nickname ?></td>
<td align="center"><?=$user->mobile ?></td>
<td align="left"><?=$tmp->live_url ?></td>
<td align="center"><a class="flatbutton" href="user_class_change_valid.php?id=<?=$tmp->id ?>"><?=$is_valid_title ?></a></td>
</tr>
<?
}
?>
</table>
<?
} else {
echo '<div align="center"><font color="red">暂无数据……</font></div>';
}
?>
</div>
\ No newline at end of file
<?
/**
* 用户管理
* $Id: user_search_list.inc,v 1.1
* @author taocy
* @package src.admin.templates
*/
?>
<br /><b>学员信息</b><br />
<table style="border:1px solid #000;">
<tr>
<td>手机号码</td>
<td class="begin_blank"><?=htmlspecialchars($user_mst->mobile) ?></td>
</tr>
<tr>
<td>昵称</td>
<td class="begin_blank"><?=htmlspecialchars($user_mst->nickname) ?></td>
</tr>
<tr>
<td>性别</td>
<td class="begin_blank"><?=$user_mst->sex == "UNKNOW" ? "未知" : "" ?><?=$user_mst->sex == "FEMALE" ? "女" : "" ?><?=$user_mst->sex == "MALE" ? "男" : "" ?></td>
</tr>
<tr>
<td>微信号</td>
<td class="begin_blank"><?=htmlspecialchars($user_mst->wechat_no) ?></td>
</tr>
<tr>
<td>QQ</td>
<td class="begin_blank"><?=htmlspecialchars($user_mst->qq_no) ?></td>
</tr>
<tr>
<td>状态</td>
<td class="begin_blank"><?=UserStatus::getTitleById($user_mst->status); ?></td>
</tr>
</table>
<br /><b>学员回访列表</b><br />
<div id="result_list">
<table>
<tr>
<th class="contents_title" width="10%">时间</th>
<th class="contents_title" width="10%">员工</th>
<th class="contents_title" width="50%">回访记录</th>
<th class="contents_title" width="10%">学员状态</th>
<th class="contents_title">操作</th>
</tr>
<tr>
<form action="user_edit_comment_input.php" method="post" name="user_edit_comment_form">
<input type="hidden" name="id" value="<?=$id ?>" />
<input type="hidden" name="action" value="ADD" />
<td align="center">-</td>
<td align="center"><?=$_account->name?></td>
<td align="left"><input type="text" name="comment" value="" style="width:400px;"></td>
<td>
<select name="status">
<?
foreach ($user_status_list as $user_status_obj) {
?>
<option value="<?=$user_status_obj->id ?>"<?=$user_status_obj->id == $status ? " selected " : "" ?>><?=$user_status_obj->title ?></option>
<?
}
?>
</select>
</td>
<td align="center"><input type="button" value="添加回访记录" onclick="addUserComment()" /></td>
</form>
</tr>
<?
if (!empty($user_comment_list)) {
foreach($user_comment_list as $tmp) {
//获取用户渠道名称
$account_mst = AccountMst::getById($tmp->account_id);
?>
<tr>
<td align="center"><?=$tmp->registration_date ?></td>
<td align="center"><?=$account_mst->name ?></td>
<td align="left"><?=$tmp->comment ?></td>
<td align="left"><?=UserStatus::getTitleById($tmp->status); ?></td>
<td align="center"></td>
</tr>
<?
}
}
?>
</table>
</div>
\ No newline at end of file
<?
/**
* 用户管理
* $Id: user_search_list.inc,v 1.1
* @author taocy
* @package src.admin.templates
*/
?>
<br /><b>学员信息</b><br />
<table style="border:1px solid #000;">
<tr>
<td>手机号码</td>
<td class="begin_blank"><?=htmlspecialchars($user_mst->mobile) ?></td>
</tr>
<tr>
<td>昵称</td>
<td class="begin_blank"><?=htmlspecialchars($user_mst->nickname) ?></td>
</tr>
<tr>
<td>性别</td>
<td class="begin_blank"><?=$user_mst->sex == "UNKNOW" ? "未知" : "" ?><?=$user_mst->sex == "FEMALE" ? "女" : "" ?><?=$user_mst->sex == "MALE" ? "男" : "" ?></td>
</tr>
<tr>
<td>微信号</td>
<td class="begin_blank"><?=htmlspecialchars($user_mst->wechat_no) ?></td>
</tr>
<tr>
<td>QQ</td>
<td class="begin_blank"><?=htmlspecialchars($user_mst->qq_no) ?></td>
</tr>
<tr>
<td>状态</td>
<td class="begin_blank"><?=UserStatus::getTitleById($user_mst->status); ?></td>
</tr>
</table>
<br /><b>学员回访列表</b><br />
<div id="result_list">
<table>
<tr>
<th class="contents_title" width="10%">时间</th>
<th class="contents_title" width="10%">员工</th>
<th class="contents_title" width="50%">回访记录</th>
<th class="contents_title" width="10%">学员状态</th>
<th class="contents_title">操作</th>
</tr>
<tr>
<form action="user_edit_comment_input.php" method="post" name="user_edit_comment_form">
<input type="hidden" name="id" value="<?=$id ?>" />
<input type="hidden" name="action" value="ADD" />
<td align="center">-</td>
<td align="center"><?=$_account->name?></td>
<td align="left"><input type="text" name="comment" value="" style="width:400px;"></td>
<td>
<select name="status">
<?
foreach ($user_status_list as $user_status_obj) {
?>
<option value="<?=$user_status_obj->id ?>"<?=$user_status_obj->id == $status ? " selected " : "" ?>><?=$user_status_obj->title ?></option>
<?
}
?>
</select>
</td>
<td align="center"><input type="button" value="添加回访记录" onclick="addUserComment()" /></td>
</form>
</tr>
<?
if (!empty($user_comment_list)) {
foreach($user_comment_list as $tmp) {
//获取用户渠道名称
$account_mst = AccountMst::getById($tmp->account_id);
?>
<tr>
<td align="center"><?=$tmp->registration_date ?></td>
<td align="center"><?=$account_mst->name ?></td>
<td align="left"><?=$tmp->comment ?></td>
<td align="left"><?=UserStatus::getTitleById($tmp->status); ?></td>
<td align="center"></td>
</tr>
<?
}
}
?>
</table>
</div>
\ No newline at end of file
<?
/**
* 用户管理
* $Id: user_search_list.inc,v 1.1
* @author taocy
* @package src.admin.templates
*/
?>
<b>学员资料编辑</b><br /><br />
<form name="user_edit_input" action="user_edit_result.php" method="post">
<input type="hidden" name="action" value="<?=$action ?>" />
<input type="hidden" name="id" value="<?=$id ?>" />
<table>
<tr>
<td>手机号码</td>
<td class="begin_blank"><input type="text" name="mobile" value="<?=htmlspecialchars($user_mst->mobile) ?>" /></td>
</tr>
<tr>
<td>微信号</td>
<td class="begin_blank"><input type="text" name="wechat_no" value="<?=htmlspecialchars($user_mst->wechat_no) ?>" /></td>
</tr>
<tr>
<td>QQ</td>
<td class="begin_blank"><input type="text" name="qq_no" value="<?=htmlspecialchars($user_mst->qq_no) ?>" /></td>
</tr>
<tr>
<td>昵称</td>
<td class="begin_blank"><input type="text" name="nickname" value="<?=htmlspecialchars($user_mst->nickname) ?>" /></td>
</tr>
<tr>
<td>性别</td>
<td class="begin_blank">
<input name="sex" type="radio" value="MALE" <?=($user_mst->sex=="MALE") ? " checked=\"checked\"" : "" ?>/>&nbsp;
<input name="sex" type="radio" value="FEMALE" <?=($user_mst->sex=="FEMALE") ? " checked=\"checked\"" : "" ?>/>&nbsp;
<input name="sex" type="radio" value="UNKNOW" <?=($user_mst->sex=="UNKNOW") ? " checked=\"checked\"" : "" ?>/>未知
</td>
</tr>
<tr>
<td>状态</td>
<td class="begin_blank">
<?
foreach ($user_status_list as $user_status_obj) {
?>
<input name="status" type="radio" value="<?=$user_status_obj->id ?>" <?=($user_mst->status==$user_status_obj->id ) ? " checked=\"checked\"" : "" ?> /><?=$user_status_obj->title ?>
<?
}
?>
</td>
</tr>
<tr>
<td>渠道</td>
<td class="begin_blank">
<select name="channel_no" size="150" style="width:200px;height:60px;line-height:20px;">
<option value="1000" <?= "1000"==$user_mst->channel_no ? " selected " : "" ?>>系统用户</option>
<?
foreach ($channel_list as $channel_dat) {
?>
<option value="<?=$channel_dat->channel_no ?>"<?=$channel_dat->channel_no == $user_mst->channel_no ? " selected " : "" ?>><?=$channel_dat->title ?></option>
<?
}
?>
</select>
</td>
</tr>
<tr>
<td><input type="button" value="编集" class="button_width_normal" onClick="doCheck();" /></td>
</tr>
</table>
</form>
<?
/**
* 用户管理
* $Id: user_search_list.inc,v 1.1
* @author taocy
* @package src.admin.templates
*/
?>
<b>学员资料编辑</b><br /><br />
<form name="user_edit_input" action="user_edit_result2.php" method="post">
<input type="hidden" name="action" value="<?=$action ?>" />
<input type="hidden" name="id" value="<?=$id ?>" />
<table>
<tr>
<td>手机号码</td>
<td class="begin_blank"><input type="text" name="mobile" value="<?=htmlspecialchars($user_mst->mobile) ?>" /></td>
</tr>
<tr>
<td>微信号</td>
<td class="begin_blank"><input type="text" name="wechat_no" value="<?=htmlspecialchars($user_mst->wechat_no) ?>" /></td>
</tr>
<tr>
<td>QQ</td>
<td class="begin_blank"><input type="text" name="qq_no" value="<?=htmlspecialchars($user_mst->qq_no) ?>" /></td>
</tr>
<tr>
<td>昵称</td>
<td class="begin_blank"><input type="text" name="nickname" value="<?=htmlspecialchars($user_mst->nickname) ?>" /></td>
</tr>
<tr>
<td>性别</td>
<td class="begin_blank">
<input name="sex" type="radio" value="MALE" <?=($user_mst->sex=="MALE") ? " checked=\"checked\"" : "" ?>/>&nbsp;
<input name="sex" type="radio" value="FEMALE" <?=($user_mst->sex=="FEMALE") ? " checked=\"checked\"" : "" ?>/>&nbsp;
<input name="sex" type="radio" value="UNKNOW" <?=($user_mst->sex=="UNKNOW") ? " checked=\"checked\"" : "" ?>/>未知
</td>
</tr>
<tr>
<td>状态</td>
<td class="begin_blank">
<?
foreach ($user_status_list as $user_status_obj) {
?>
<input name="status" type="radio" value="<?=$user_status_obj->id ?>" <?=($user_mst->status==$user_status_obj->id ) ? " checked=\"checked\"" : "" ?> /><?=$user_status_obj->title ?>
<?
}
?>
</td>
</tr>
<tr>
<td>渠道</td>
<td class="begin_blank">
<select name="channel_no" size="150" style="width:200px;height:60px;line-height:20px;">
<option value="1000" <?= "1000"==$user_mst->channel_no ? " selected " : "" ?>>系统用户</option>
<?
foreach ($channel_list as $channel_dat) {
?>
<option value="<?=$channel_dat->channel_no ?>"<?=$channel_dat->channel_no == $user_mst->channel_no ? " selected " : "" ?>><?=$channel_dat->title ?></option>
<?
}
?>
</select>
</td>
</tr>
<tr>
<td>转移</td>
<td class="begin_blank">
<select name="account_id" size="150" style="width:200px;height:60px;line-height:20px;">
<option value="0" <?= "0"==$user_mst->account_id ? " selected " : "" ?>>[不指定]</option>
<?
foreach ($account_list as $account_mst) {
?>
<option value="<?=$account_mst->id ?>"<?=$account_mst->id == $user_mst->account_id ? " selected " : "" ?>><?=$account_mst->name ?></option>
<?
}
?>
</select>
</td>
</tr>
<tr>
<td><input type="button" value="编集" class="button_width_normal" onClick="doCheck();" /></td>
</tr>
</table>
</form>
<?
/**
* 用户管理
* $Id: user_search_list.inc,v 1.1
* @author taocy
* @package src.admin.templates
*/
?>
<b>学员资料编辑完成</b><br /><br />
<form name="user_edit_input" action="user_edit_result.php" method="post">
<input type="hidden" name="action" value="<?=$action ?>" />
<input type="hidden" name="id" value="<?=$id ?>" />
<table>
<tr>
<td>手机号码</td>
<td class="begin_blank"><?=$user_mst->mobile ?></td>
</tr>
<tr>
<td>昵称</td>
<td class="begin_blank"><?=$user_mst->nickname ?></td>
</tr>
<tr>
<td>性别</td>
<td class="begin_blank">
<input name="sex" type="radio" value="FEMALE" <?=($user_mst->sex=="FEMALE") ? " checked=\"checked\"" : "" ?> disabled/>&nbsp;
<input name="sex" type="radio" value="MALE" <?=($user_mst->sex=="MALE") ? " checked=\"checked\"" : "" ?> disabled/>&nbsp;
<input name="sex" type="radio" value="UNKNOW" <?=($user_mst->sex=="UNKNOW") ? " checked=\"checked\"" : "" ?> disabled/>未知
</td>
</tr>
<tr>
<td>微信号</td>
<td class="begin_blank"><?=$user_mst->wechat_no ?></td>
</tr>
<tr>
<td>QQ</td>
<td class="begin_blank"><?=$user_mst->qq_no ?></td>
</tr>
<tr>
<td>状态</td>
<td class="begin_blank"><?=UserStatus::getTitleById($user_mst->status); ?></td>
</tr>
<tr>
<td>渠道</td>
<td class="begin_blank">
<select name="channel_no" size="150" style="width:200px;height:60px;line-height:20px;" disabled>
<option value="1000" <?= "1000"==$user_mst->channel_no ? " selected " : "" ?>>系统用户</option>
<?
foreach ($channel_list as $channel_dat) {
?>
<option value="<?=$channel_dat->channel_no ?>"<?=$channel_dat->channel_no == $user_mst->channel_no ? " selected " : "" ?>><?=$channel_dat->title ?></option>
<?
}
?>
</select>
</td>
</tr>
<?
if($action == "new") {
?>
<tr>
<td><input type="button" value="继续添加" class="button_width_normal" onClick="continueAdd();" /></td>
</tr>
<?
}
?>
</table>
</form>
<?php
/**
* 单词列表
* $Id: product_category_list.inc,v 1.1 2015/10/08 11:18:53 wanggb Exp $
* @author zhouhj
* @access public
* @package manager.templates
*/
?>
<b>用户试卷详细</b><br />
<br /><br />
<div id="result_list">
<table>
<tr>
<th class="contents_title" width="15%">答题时间</th>
<th class="contents_title" width="10%">姓名</th>
<th class="contents_title" width="10%">试卷类型</th>
<th class="contents_title" width="15%">试卷名称</th>
<th class="contents_title" width="10%">回答正确</th>
<th class="contents_title" width="10%">回答错误</th>
<th class="contents_title" width="10%">得分</th>
<th class="contents_title">操作</th>
</tr>
<?
if (count($user_examination_mst_list) > 0) {
foreach ($user_examination_mst_list as $user_examination_mst) {
$user_mst = UserMst::getById($user_examination_mst->user_id);
$examination_mst = ExaminationMst::getById($user_examination_mst->examination_mst_id);
//试卷类型
$type_title = "练习模式";
if($examination_mst->type == "TEST") {
$type_title = "考试模式";
}
?>
<tr>
<td align="center"><?=$user_examination_mst->registration_date ?></td>
<td align="center"><?=$user_mst->nickname ?></td>
<td align="center"><?=$type_title ?></td>
<td align="center"><?=$examination_mst->title ?></td>
<td align="center"><?=$user_examination_mst->right_count ?></td>
<td align="center"><?=$user_examination_mst->wrong_count ?></td>
<td align="center"><?=$user_examination_mst->point ?></td>
<td align="center">
<a class="flatbutton" href="user_examination_detail.php?ueid=<?=$user_examination_mst->id ?>">详细</a>
</td>
</tr>
<?
}
}
?>
</table>
</div>
\ No newline at end of file
<?php
/**
* 单词列表
* $Id: product_category_list.inc,v 1.1 2015/10/08 11:18:53 wanggb Exp $
* @author zhouhj
* @access public
* @package manager.templates
*/
?>
<b>用户试卷列表</b><br />
<br /><br />
<div id="result_list">
<table>
<tr>
<th class="contents_title" width="15%">答题时间</th>
<th class="contents_title" width="10%">姓名</th>
<th class="contents_title" width="10%">试卷类型</th>
<th class="contents_title" width="15%">试卷名称</th>
<th class="contents_title" width="10%">回答正确</th>
<th class="contents_title" width="10%">回答错误</th>
<th class="contents_title" width="10%">得分</th>
<th class="contents_title">操作</th>
</tr>
<?
if (count($user_examination_mst_list) > 0) {
foreach ($user_examination_mst_list as $user_examination_mst) {
$user_mst = UserMst::getById($user_examination_mst->user_id);
$examination_mst = ExaminationMst::getById($user_examination_mst->examination_mst_id);
//试卷类型
$type_title = "练习模式";
if($examination_mst->type == "TEST") {
$type_title = "考试模式";
}
?>
<tr>
<td align="center"><?=$user_examination_mst->registration_date ?></td>
<td align="center"><?=$user_mst->nickname ?></td>
<td align="center"><?=$type_title ?></td>
<td align="center"><?=$examination_mst->title ?></td>
<td align="center"><?=$user_examination_mst->right_count ?></td>
<td align="center"><?=$user_examination_mst->wrong_count ?></td>
<td align="center"><?=$user_examination_mst->point ?></td>
<td align="center">
<a class="flatbutton" href="user_examination_detail.php?ueid=<?=$user_examination_mst->id ?>">详细</a>
</td>
</tr>
<?
}
}
?>
</table>
</div>
\ No newline at end of file
<?
/**
* 赠送代金券
* $Id: user_search_list.inc,v 1.1
* @author taocy
* @package src.admin.templates
*/
?>
<b>赠送代金券</b><br /><br />
<form name="user_send_coupon" action="user_send_coupon_exec.php" method="post">
<input type="hidden" name="id" value="<?=$id ?>" />
<table>
<tr>
<td>手机号码</td>
<td class="begin_blank"><?=htmlspecialchars($user_mst->mobile) ?></td>
</tr>
<tr>
<td>昵称</td>
<td class="begin_blank"><?=htmlspecialchars($user_mst->nickname) ?></td>
</tr>
<tr>
<td>代金券</td>
<td class="begin_blank">
<select name="coupon_id">
<?
foreach ($coupon_list as $coupon_dat) {
?>
<option value="<?=$coupon_dat->id ?>"><?=$coupon_dat->title ?></option>
<?
}
?>
</select>
</td>
</tr>
<tr>
<td><input type="button" value="赠送" class="button_width_normal" onClick="doSendCoupon();" /></td>
</tr>
</table>
</form>
<?
/**
* 我的学员
* $Id: user_search_list.inc,v 1.1
* @author taocy
* @package src.admin.templates
*/
?>
<b>赠送代金券</b><br /><br />
<table>
<tr>
<td>手机号码</td>
<td class="begin_blank"><?=htmlspecialchars($user_mst->mobile) ?></td>
</tr>
<tr>
<td>昵称</td>
<td class="begin_blank"><?=htmlspecialchars($user_mst->nickname) ?></td>
</tr>
</table>
<div style="clear:both"></div>
<div id="result_list" style="width:50%">
<?
if (!empty($user_coupon_list)) {
?>
<table >
<tr>
<th class="contents_title">ID</th>
<th class="contents_title">代金券</th>
<th class="contents_title">数量</th>
<th class="contents_title">有效期</th>
<th class="contents_title">转让次数</th>
</tr>
<?
foreach($user_coupon_list as $user_coupon_dat) {
?>
<tr>
<td align="center"><?=$user_coupon_dat->id ?></td>
<td align="center"><?=Coupon::getTitleById($user_coupon_dat->coupon_id) ?></td>
<td align="center"><?=$user_coupon_dat->coupon_count ?></td>
<td align="center"><?=$user_coupon_dat->dead_time ?></td>
<td align="center"><?=$user_coupon_dat->transfer_count ?></td>
</tr>
<?
}
?>
</table>
<?
}
?>
</div>
<br />
<table>
<tr>
<td><a class="flatbutton" href="ocean_user_list.php">返回</a></td>
</tr>
</table>
\ No newline at end of file
<?
/**
* 赠送积分
* $Id: user_search_list.inc,v 1.1
* @author taocy
* @package src.admin.templates
*/
?>
<b>赠送积分</b><br /><br />
<form name="user_send_point" action="user_send_point_exec.php" method="post">
<input type="hidden" name="id" value="<?=$id ?>" />
<table>
<tr>
<td>手机号码</td>
<td class="begin_blank"><?=htmlspecialchars($user_mst->mobile) ?></td>
</tr>
<tr>
<td>昵称</td>
<td class="begin_blank"><?=htmlspecialchars($user_mst->nickname) ?></td>
</tr>
<tr>
<td>积分</td>
<td class="begin_blank">
<input type="text" name="point" value="" />
</td>
</tr>
<tr>
<td>类型</td>
<td class="begin_blank">
<select name="action_type" name="action_type">
<option value="4"><?=PointActionType::getTitleById("4")?></option>
<option value="7"><?=PointActionType::getTitleById("7")?></option>
</select>
</td>
</tr>
<tr>
<td><input type="button" value="赠送" class="button_width_normal" onClick="doSendPoint();" /></td>
</tr>
</table>
</form>
<?
/**
* 我的学员
* $Id: user_search_list.inc,v 1.1
* @author taocy
* @package src.admin.templates
*/
?>
<b>赠送积分</b><br /><br />
<table>
<tr>
<td>手机号码</td>
<td class="begin_blank"><?=htmlspecialchars($user_mst->mobile) ?></td>
</tr>
<tr>
<td>昵称</td>
<td class="begin_blank"><?=htmlspecialchars($user_mst->nickname) ?></td>
</tr>
</table>
<div style="clear:both"></div>
<div id="result_list" style="width:50%">
<?
if (!empty($user_point_log)) {
?>
<table >
<tr>
<th class="contents_title">ID</th>
<th class="contents_title">日期</th>
<th class="contents_title">名目</th>
<th class="contents_title">积分变动</th>
<th class="contents_title">积分余额</th>
</tr>
<?
foreach($user_point_log as $user_point) {
$plus = "";
if($user_point->point > 0) {
$plus = "+";
}
$action_title = PointActionType::getTitleById($user_point->action_type);
?>
<tr>
<td align="center"><?=$user_point->id ?></td>
<td align="center"><?=substr($user_point->registration_date,0,10)?></td>
<td align="center"><?=$action_title ?></td>
<td align="center"><?=$plus?><?=$user_point->point?></td>
<td align="center"><?=$user_point->point_left ?></td>
</tr>
<?
}
?>
</table>
<?
}
?>
</div>
<br />
<table>
<tr>
<td><a class="flatbutton" href="ocean_user_list.php">返回</a></td>
</tr>
</table>
\ No newline at end of file
<?
/**
* 赠送代金券
* $Id: user_search_list.inc,v 1.1
* @author taocy
* @package src.admin.templates
*/
?>
<b>代金券使用</b><br /><br />
<form name="user_use_coupon" action="user_use_coupon_exec_result.php" method="post">
<input type="hidden" name="id" value="<?=$id ?>" />
<input type="hidden" name="status_from" value="<?=$user_use_coupon_dat->status ?>" />
<table>
<tr>
<td>手机号码</td>
<td class="begin_blank"><?=htmlspecialchars($user_mst->mobile) ?></td>
</tr>
<tr>
<td>昵称</td>
<td class="begin_blank"><?=htmlspecialchars($user_mst->nickname) ?></td>
</tr>
<tr>
<td>代金券</td>
<td class="begin_blank"><?=Coupon::getTitleById($user_use_coupon_dat->coupon_id) ?></td>
</tr>
<tr>
<td>代金券</td>
<td class="begin_blank">
<select name="status_to">
<?
foreach ($coupon_status_list as $coupon_status_obj) {
?>
<option value="<?=$coupon_status_obj->name ?>" <?=$coupon_status_obj->name == $status_to ? " selected " : "" ?>><?=$coupon_status_obj->title ?></option>
<?
}
?>
</select>
</td>
</tr>
<tr>
<td>说明</td>
<td class="begin_blank">
<input type="text" id="comment" name="comment" value="" style="width:300px;"/><br/>
<?=nl2br($user_use_coupon_dat->comment) ?>
<br />
</td>
</tr>
<tr>
<td><input type="button" value="执行操作" class="button_width_normal" onClick="doUseCouponExec();" /></td>
</tr>
</table>
</form>
<?
/**
* 代金券使用
* $Id: user_use_coupon_list.inc,v 1.1
* @author taocy
* @package src.admin.templates
*/
?>
<b>代金券使用</b><br /><br />
<form action="user_use_coupon_list.php" method="post" name="user_use_coupon_list">
<input type="hidden" name="search_flg" value="true" />
<table>
<tr>
<td>代金券状态</td>
<td>
<select name="status">
<?
foreach ($coupon_status_list as $coupon_status_obj) {
?>
<option value="<?=$coupon_status_obj->name ?>"<?=$coupon_status_obj->name == $status ? " selected " : "" ?>><?=$coupon_status_obj->title ?></option>
<?
}
?>
</select>
</td>
<td><input type="button" value="搜索" onclick="searchUserUseCoupon()" /></td>
</tr>
</table>
</form><br />
<div style="text-align:center;float: right;font-size:18px;"><?=$total_count ?>件记录</div>
<div style="clear:both"></div>
<!--page end-->
<div id="result_list">
<?
if ($total_count > 0) {
?>
<table>
<tr>
<th class="contents_title">ID</th>
<th class="contents_title">申请时间</th>
<th class="contents_title">姓名</th>
<th class="contents_title">手机号码</th>
<th class="contents_title">代金券名称</th>
<th class="contents_title">状态</th>
<th class="contents_title">操作</th>
</tr>
<?
foreach($user_use_coupon_list as $tmp) {
//代金券名称
$user = UserMst::getById($tmp->user_id);
?>
<tr>
<td align="center"><?=$tmp->id ?></td>
<td align="center"><?=$tmp->registration_date ?></td>
<td align="center"><?=$user->nickname ?></td>
<td align="center"><?=$user->mobile ?></td>
<td align="center"><?=Coupon::getTitleById($tmp->coupon_id) ?></td>
<td align="center"><?=CouponStatus::getTitleByName($tmp->status) ?></td>
<td align="center">
<?
if (checkAuthority("ADMIN,MANAGER")) {
?>
<?
//新申请的可以进行 【退回代金券】【申请返现】
if($tmp->status=="APPLY") {
?>
<a class="flatbutton" href="user_use_coupon_exec.php?id=<?=$tmp->id ?>&status_to=BACK">退回代金券</a>
<a class="flatbutton" href="user_use_coupon_exec.php?id=<?=$tmp->id?> ?>&status_to=CASHING">申请返现</a>
<?
}
?>
<?
//返现申请的可以进行 【成功使用】
if($tmp->status=="CASHING") {
?>
<a class="flatbutton" href="user_use_coupon_exec.php?id=<?=$tmp->id?> ?>&status_to=SUCCESS">使用完成</a>
<?
}
?>
<?
}
?>
</td>
</tr>
<?
}
?>
</table>
<?
} else {
echo '<div align="center"><font color="red">暂无数据……</font></div>';
}
?>
</div>
\ No newline at end of file
<?php
/**
* 单词列表
* $Id: product_category_list.inc,v 1.1 2015/10/08 11:18:53 wanggb Exp $
* @author zhouhj
* @access public
* @package manager.templates
*/
?>
<b>单词列表</b><br /><br />
<a class="flatbutton" href="word_dat_edit.php">单个单词</a>
<a class="flatbutton" href="word_dat_batch.php">批量上传</a>
<br /><br />
<div id="result_list">
<table>
<tr>
<th class="contents_title" width="10%">单词</th>
<th class="contents_title" width="12%">平假名</th>
<th class="contents_title" width="15%">中文翻译</th>
<th class="contents_title" width="5%">MP3</th>
<th class="contents_title" width="25%">例句</th>
<th class="contents_title" width="25%">用法描述</th>
<th class="contents_title">操作</th>
</tr>
<?
if (count($word_dat_list) > 0) {
foreach ($word_dat_list as $word_dat) {
?>
<tr>
<td align="center"><?=$word_dat->word ?></td>
<td align="center"><?=htmlspecialchars($word_dat->hira_kana) ?></td>
<td align="center"><?=htmlspecialchars($word_dat->chinese) ?></td>
<td align="left">
<?
if(!empty($word_dat->mp3)) {
?>
<audio controls="controls">
<source src="play_mp3.php?file_name=<?=urlencode($word_dat->mp3) ?>" type="audio/mpeg">
您的浏览器不支持该音频格式。
</audio>
<?
}
?>
</td>
<td align="left"><?=htmlspecialchars($word_dat->sample) ?></td>
<td align="left"><?=htmlspecialchars($word_dat->comment) ?></td>
<td align="center">
<a class="flatbutton" href="word_dat_edit.php?id=<?=$word_dat->id ?>">编集</a>
</td>
</tr>
<?
}
}
?>
</table>
</div>
\ No newline at end of file
<?php
/**
* 解梦内容编辑
* $Id: product_category_new_input.inc,v 1.1 2015/10/08 11:18:53 wanggb Exp $
* @author wanggb
* @access public
* @package manager.templates
**/
?>
<b>单词批量上传</b><br />
<br />
<form name="word_data_batch" action="word_dat_batch_result.php" method="post" enctype="multipart/form-data">
<table width="80%">
<tr>
<td>请指定上传文件</td>
</tr>
<tr>
<td class="begin_blank">
<input type="file" id="csv_file" name="csv_file" accept="text/csv"/>
</td>
</tr>
</table>
<br />
<input type="button" value="提交" class="button_width_normal" onClick="doCheckCsv();"/>
</form>
<?php
/**
* 单词批量上传
* $Id: product_category_list.inc,v 1.1 2015/10/08 11:18:53 wanggb Exp $
* @author zhouhj
* @access public
* @package manager.templates
*/
?>
<b>单词批量上传成功!</b><br /><br />
<a class="flatbutton" href="word_dat_batch.php">返回</a>
<br /><br />
<div id="result_list">
<table>
<tr>
<th class="contents_title" width="10%">单词</th>
<th class="contents_title" width="10%">平假名</th>
<th class="contents_title" width="15%">中文翻译</th>
<th class="contents_title" width="10%">MP3</th>
<th class="contents_title" width="25%">例句</th>
<th class="contents_title" width="25%">用法描述</th>
</tr>
<?
if (count($result_list) > 0) {
foreach ($result_list as $word_dat) {
?>
<tr>
<td align="center"><?=$word_dat->word ?></td>
<td align="center"><?=htmlspecialchars($word_dat->hira_kana) ?></td>
<td align="center"><?=htmlspecialchars($word_dat->chinese) ?></td>
<td align="left">
<?
if(!empty($word_dat->mp3)) {
?>
<?=htmlspecialchars($word_dat->mp3) ?>
<?
}
?>
</td>
<td align="left"><?=htmlspecialchars($word_dat->sample) ?></td>
<td align="left"><?=htmlspecialchars($word_dat->comment) ?></td>
</tr>
<?
}
}
?>
</table>
</div>
<br />
<a class="flatbutton" href="word_dat_batch.php">返回</a>
<br />
\ No newline at end of file
<?php
/**
* 解梦内容编辑
* $Id: product_category_new_input.inc,v 1.1 2015/10/08 11:18:53 wanggb Exp $
* @author wanggb
* @access public
* @package manager.templates
**/
?>
<b>单词添加/编辑</b><br />
<br />
<form name="word_data_edit" action="word_dat_edit_result.php" method="post" enctype="multipart/form-data">
<input type="hidden" name="action_type" value="<?=$action_type ?>" />
<input type="hidden" name="id" value="<?=$id ?>" />
<table width="80%">
<tr>
<td>单词</td>
</tr>
<tr>
<td class="begin_blank">
<input type="text" id="word" name="word" value="<?=$word_dat->word?>" size=15/>
</td>
</tr>
<tr>
<td>平假名</td>
</tr>
<tr>
<td class="begin_blank"><input type="text" id="hira_kana" name="hira_kana" value="<?=$word_dat->hira_kana?>" size=15/></td>
</tr>
<tr>
<td>中文翻译</td>
</tr>
<tr>
<td class="begin_blank"><input type="text" id="chinese" name="chinese" value="<?=$word_dat->chinese?>" size=15/></td>
</tr>
<tr>
<td>MP3(指定文件名)</td>
</tr>
<tr>
<td class="begin_blank">
<input type="text" id="mp3" name="mp3" value="<?=$word_dat->mp3?>" size=15/>
</td>
</tr>
<tr>
<td>例句</td>
</tr>
<tr>
<td class="begin_blank"><textarea name="sample" cols=50 rows=3?><?=htmlspecialchars($word_dat->sample) ?></textarea></td>
</tr>
<tr>
<td>用法描述</td>
</tr>
<tr>
<td class="begin_blank"><textarea name="comment" cols=50 rows=3?><?=htmlspecialchars($word_dat->comment) ?></textarea></td>
</tr>
</table>
<br />
<input type="button" value="提交" class="button_width_normal" onClick="doCheck();"/>
</form>
<?php
/**
* 词集编集
* $Id: word_theme_edit.inc,v 1.1 2015/10/08 11:18:53 wanggb Exp $
* @author wanggb
* @access public
* @package manager.templates
**/
global $upload_thumbnail;
global $thumbnail_error_msg;
?>
<style>
#theme_word_list {
overflow-y:scroll;
float:left;
width:200px;
height:420px;
border:1px solid #000;
display:flex;
flex-direction:column;
justify-content:flex-start;
align-items:center;
}
.theme_word_item {
margin-top:2px;
width:180px;
height:20px;
line-height:20px;
background:#EBEBEB;
text-align:left;
border:1px solid #EBEBEB;
}
.theme_word_item:hover {
background:#FFF;
border:1px solid #EBEBEB;
cursor:pointer;
}
#search_word_area {
margin-left:50px;
float:left;
width:200px;
height:420px;
border:1px solid #000;
display:flex;
flex-direction:column;
justify-content:flex-start;
align-items:center;
}
#search_word_list {
overflow-y:scroll;
float:left;
margin-top:10px;
width:100%;
display:flex;
flex-direction:column;
justify-content:flex-start;
align-items:center;
}
.search_word_item {
margin-top:2px;
width:180px;
height:20px;
line-height:20px;
text-align:left;
border:1px solid #D4D4D4;
}
.search_word_item:hover {
background:#EBEBEB;
border:1px solid #EBEBEB;
cursor:pointer;
}
.search_row {
margin-top:5px;
}
.input_key {
width:180px;
}
</style>
<b>词集单词设定</b><br />
<br />
<div id="result_list">
<div id="theme_word_list">
<?
$index = 0;
foreach($theme_word_list as $theme_word) {
$index++;
$word_dat = WordDat::getById($theme_word->word_id);
?>
<div class="theme_word_item" onClick="removeWord('<?=$theme_word->theme_id?>','<?=$theme_word->word_id?>');"><?=$index?>.<?=$word_dat->word?></div>
<?
}
?>
</div>
<div id="search_word_area">
<div class="search_row">
<input type="text" id="key_word" name="key_word" value="" class="input_key" onchange="searchWords('<?=$id?>');">
</div>
<div id="search_word_list">
<?
$index = 0;
foreach($search_word_list as $word_dat) {
$index++;
?>
<div class="theme_word_item" onClick="addWord('<?=$id?>','<?=$word_dat->id?>');"><?=$index?>.<?=$word_dat->word?></div>
<?
}
?>
</div>
<div>
</div>
<br />
\ No newline at end of file
<?php
/**
* 词集编集
* $Id: word_theme_edit.inc,v 1.1 2015/10/08 11:18:53 wanggb Exp $
* @author wanggb
* @access public
* @package manager.templates
**/
global $upload_thumbnail;
global $thumbnail_error_msg;
?>
<b>词集添加/编集</b><br />
<br />
<form name="word_theme_edit" action="word_theme_edit_result.php" method="post" enctype="multipart/form-data">
<input type="hidden" name="id" value="<?=$id ?>" />
<table>
<tr>
<td>类型</td>
</tr>
<tr>
<td class="begin_blank">
<select name="theme_type" id="theme_type" size="150" style="width:200px;height:40px;line-height:20px;">
<?
foreach ($theme_type_list as $theme_type) {
?>
<option value="<?=$theme_type->id ?>"<?=$theme_type->id == $word_theme_mst->theme_type ? " selected " : "" ?>><?=$theme_type->title ?></option>
<?
}
?>
</select>
</td>
</tr>
<tr>
<td>名称</td>
</tr>
<tr>
<td class="begin_blank">
<input type="text" id="title" name="title" value="<?=htmlspecialchars($word_theme_mst->title) ?>" size=20/>
</td>
</tr>
<tr>
<td>封面</td>
</tr>
<tr>
<td class="begin_blank">
<input type="file" id="upload_thumbnail_file" name="upload_thumbnail_file" onChange="checkUploadThemeFront()" />
<?=!empty($thumbnail_error_msg) ? "<font color=\"red\">{$thumbnail_error_msg}</font>" : "" ?>
<br />
<span id="upload_preview">
<?
if (!empty($upload_thumbnail)) {
?><img id="upload_thumbnail_preview" src="<?=KoalaHandler::getImageUrl($upload_thumbnail) ?>" style="width:75px;" /><?
} else if (!empty($word_theme_mst->front)) {
?><img id="upload_thumbnail_preview" src="<?=KoalaHandler::getImageUrl($word_theme_mst->front, "theme", "") ?>" style="width:75px;" /><?
} else {
?><img id="upload_thumbnail_preview" src="" style="width:40px;height:40px;display:none;" /><?
}
?>
</span>
</td>
</tr>
<tr>
<td>备注</td>
</tr>
<tr>
<td class="begin_blank"><textarea name="comment" cols=50 rows=3?><?=htmlspecialchars($word_theme_mst->comment) ?></textarea></td>
</tr>
</table>
<br />
<input type="button" value="编集" class="button_width_normal" onClick="doCheckWordTheme();" />
</form>
<?php
/**
* 单词列表
* $Id: product_category_list.inc,v 1.1 2015/10/08 11:18:53 wanggb Exp $
* @author zhouhj
* @access public
* @package manager.templates
*/
?>
<script type="text/javascript">
function copyToClipBoard(copyCotent) {
document.addEventListener('copy', save); // 监听浏览器copy事件
document.execCommand('copy'); // 执行copy事件,这时监听函数会执行save函数。
document.removeEventListener('copy', save); // 移除copy事件
// 保存方法
function save(e) {
e.clipboardData.setData('text/plain', copyCotent); // 剪贴板内容设置
e.preventDefault();
}
}
</script>
<b>词集列表</b><br />
<br />
<form name="search_input" method="post" action="?">
<table>
<tr>
<td>系列</td>
<td>
<select name="theme_type">
<?
foreach ($theme_type_list as $theme_type_obj) {
?>
<option value="<?=$theme_type_obj->id ?>"<?=$theme_type_obj->id == $theme_type ? " selected " : "" ?>><?=$theme_type_obj->title ?></option>
<?
}
?>
</select>
</td>
<td><input type="button" value="搜索" onclick="searchWordTheme()" /></td>
</tr>
</table>
</form>
<a class="flatbutton" href="word_theme_edit.php">添加词集</a>
<br /><br />
<div id="result_list">
<table>
<tr>
<th class="contents_title" width="12%">类型</th>
<th class="contents_title" width="12%">名称</th>
<th class="contents_title" width="15%">封面</th>
<th class="contents_title" width="10%">排序</th>
<th class="contents_title" width="10%">单词数量</th>
<th class="contents_title" width="25%">备注</th>
<th class="contents_title">操作</th>
</tr>
<?
if (count($word_theme_list) > 0) {
foreach ($word_theme_list as $word_theme_mst) {
$word_count = WordHandler::getWordCount($word_theme_mst->id);
$url = "http://" . HOST_NAME . "/words.php?theme_id=" . $word_theme_mst->id;
$theme_type_title = WordThemeType::getTitleById($word_theme_mst->theme_type);
?>
<tr>
<td align="center"><?=$theme_type_title ?></td>
<td align="center"><?=$word_theme_mst->title ?></td>
<td align="center">
<?
if(!empty($word_theme_mst->front)) {
?>
<img src="<?=KoalaHandler::getImageUrl($word_theme_mst->front, "theme", "") ?>" style="width:60px;" />
<?
}
?>
</td>
<td align="center">
<a class="flatbutton" href="word_theme_change_display_order.php?id=<?=$word_theme_mst->id ?>&type=up"></a>
<a class="flatbutton" href="word_theme_change_display_order.php?id=<?=$word_theme_mst->id ?>&type=down"></a>
</td>
<td align="center"><?=$word_count ?></td>
<!--
<td align="left">
<?=$url?>
<input type="button" value="复制" class="button_width_normal" onClick="copyToClipBoard('<?=$url?>');"/>
</td>
-->
<td align="left"><?=htmlspecialchars($word_theme_mst->comment) ?></td>
<td align="center">
<a class="flatbutton" href="word_theme_edit.php?id=<?=$word_theme_mst->id ?>">编集</a>
<a class="flatbutton" href="word_theme_dat_edit.php?id=<?=$word_theme_mst->id ?>">单词设定</a>
</td>
</tr>
<?
}
}
?>
</table>
</div>
\ No newline at end of file
<?php
/**
* 用户管理
* $Id: user_edit_result.php,v 1.1 2016-9-22 09:58:31 cuixl Exp $
* @author cuixl
* @package manager.public_html
*/
// 底层包含
require_once("manager_include.inc");
// 登录检查
require_once("check_login.inc");
// 权限检查
if (!checkAuthority("ADMIN")) {
// エラー表示
$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;
}
// 参数取得
$id = ParamUtil::getRequestString("id");
$user_mst = UserMst::getById($id);
if ($user_mst == null) {
// エラー表示
$layout_pages = array();
$layout_pages["footer"] = "footer.inc";
$layout_pages["top"] = "menu.inc";
$layout_pages["middle"] = "error.inc";
require_once(MANAGER_TEMPLATE_DIR_PATH . "/layout/topmenutopsub_layout.inc");
exit;
}
//添加积分账户
$user_point_log = new UserPointLog();
$user_point_log->appid = $user_mst->appid;
$user_point_log->user_id = $user_mst->id;
$user_point_log->openid = $user_mst->openid;
$user_point_log->action_type = 9;
$user_point_log->donation_dat_id = 0;
$user_point_log->point = 10;
$user_point_log->status = "SUCCESS";
$user_point_log->save();
//更新用户账户
$user_mst->point = $user_mst->point + 10;
$user_mst->save();
// 跳到一览页
header("Location:user_list.php");
exit;
\ No newline at end of file
<?
/**
* 用户管理
* $Id: user_list.php
* @author taocy
* @package manager.public_html
*/
// 底层包含
require_once("manager_include.inc");
// 登录检查
require_once("check_login.inc");
// 不做权限检查
if (!checkAuthority("ADMIN,MANAGER,STAFF")) {
// エラー表示
$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;
}
// 参数取得
$action_type = ParamUtil::getRequestString("action_type");
$id = ParamUtil::getRequestNumber("id", 0);
if($action_type == "confirmPay" && $id > 0) {
//获取报名记录
$user_buy_course_dat = UserBuyCouseDat::getById($id);
if(!empty($user_buy_course_dat) && $user_buy_course_dat->status=="PAYED") {
$user_buy_course_dat->status = "FINISH";
$user_buy_course_dat->save();
}
}
//退回操作的话,会逻辑删除本条记录
$param = array();
$param["delete_flg"] = false;
$user_buy_course_list = UserBuyCouseDat::getList($param, "id", "desc");
$total_count = count($user_buy_course_list);
// 页面
$_SCRIPT_FILE = array("scripts/validators.js", "scripts/user_buy_list.js");
$layout_pages = array();
$layout_pages["top"] = "menu.inc";
$layout_pages["menu_clicked"] = "li_user";
$layout_pages["middle"] = "user_buy_course_list.inc";
require_once(MANAGER_TEMPLATE_DIR_PATH . "/layout/topmenutopsub_layout.inc");
exit;
?>
\ No newline at end of file
<?php
/**
* 商品分类管理
* $Id: product_category_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("ADMIN,MANAGER,STAFF")) {
// エラー表示
$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;
}
//检索部分默认为最新报名的100个学员
$param = array();
$param["status"] = "FINISH";
$param["delete_flg"] = false;
$user_buy_course_list = UserBuyCouseDat::getList($param, "id", "desc", 0, 150);
// 页面表示
$_SCRIPT_FILE = array("scripts/validators.js", "scripts/user_class.js");
$layout_pages = array();
$layout_pages["top"] = "menu.inc";
$layout_pages["menu_clicked"] = "li_data";
$layout_pages["middle"] = "user_class_batch_input.inc";
require_once(MANAGER_TEMPLATE_DIR_PATH . "/layout/topmenutopsub_layout.inc");
exit;
\ No newline at end of file
<?php
/**
* 用户管理
* $Id: user_edit_result.php,v 1.1 2016-9-22 09:58:31 cuixl Exp $
* @author cuixl
* @package manager.public_html
*/
// 底层包含
require_once("manager_include.inc");
// 登录检查
require_once("check_login.inc");
// 权限检查
if (!checkAuthority("ADMIN,MANAGER,STAFF")) {
// エラー表示
$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;
}
// 参数取得
$title = ParamUtil::getRequestString("title");
$live_url = ParamUtil::getRequestString("live_url");
$user_ids = ParamUtil::getRequestString("user_ids");
$user_id_array = explode("_", $user_ids);
foreach($user_id_array as $user_id) {
if(empty($user_id)) continue;
//echo $user_id . ".<br/>";
//该用户是否有记录
$param = array();
$param["delete_flg"] = false;
$param["user_id"] = $user_id;
$tmp_list = UserClassDat::getList($param, "update_date", "desc", 0, 1);
if(empty($tmp_list)) {
$user_class_dat = new UserClassDat();
$user_class_dat->update_date = date("Y-m-d H:i:s");
$user_class_dat->title = $title;
$user_class_dat->user_id = $user_id;
$user_class_dat->live_url = $live_url;
$user_class_dat->is_valid = true;
$user_class_dat->save();
} else {
$user_class_dat = $tmp_list[0];
$user_class_dat->update_date = date("Y-m-d H:i:s");
$user_class_dat->title = $title;
$user_class_dat->user_id = $user_id;
$user_class_dat->live_url = $live_url;
$user_class_dat->save();
}
}
header("Location:user_class_list.php");
exit;
\ No newline at end of file
<?php
/**
* 商品分类管理
* $Id: product_category_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,MANAGER,STAFF")) {
// エラー表示
$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;
}
// 参数取得
$id = ParamUtil::getRequestString("id");
$user_class_dat = UserClassDat::getById($id);
if ($user_class_dat == null) {
// エラー表示
$layout_pages = array();
$layout_pages["footer"] = "footer.inc";
$layout_pages["top"] = "menu.inc";
$layout_pages["middle"] = "error.inc";
require_once(MANAGER_TEMPLATE_DIR_PATH . "/layout/topmenutopsub_layout.inc");
exit;
}
// 数据库更新
$user_class_dat->is_valid = !$user_class_dat->is_valid;
$user_class_dat->save();
// 跳到一览页
header("Location:user_class_list.php");
exit;
<?
/**
* 用户管理
* $Id: user_list.php
* @author taocy
* @package manager.public_html
*/
// 底层包含
require_once("manager_include.inc");
// 登录检查
require_once("check_login.inc");
// 不做权限检查
if (!checkAuthority("ADMIN,MANAGER,STAFF")) {
// エラー表示
$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;
}
//取得参数
$search_flg = ParamUtil::getRequestBoolean("search_flg",false);
$page_num = ParamUtil::getRequestNumber("page_num", 1);
$mobile = ParamUtil::getRequestNumber("mobile");
$nickname = ParamUtil::getRequestString("nickname");
$order_key = ParamUtil::getRequestString("order_key","update_date");
$direction = ParamUtil::getRequestString("direction","desc");
$session_name = "user_class_list";
if (!$search_flg) {
if (isset($_SESSION[$session_name])){
// ページ番、ソート順など保存
if (isset($_SESSION[$session_name]["page_num"]) && !isset($_REQUEST["page_num"])) {
$page_num = $_SESSION[$session_name]["page_num"];
}
$_SESSION[$session_name]["page_num"] = $page_num;
$mobile = $_SESSION[$session_name]["mobile"];
$nickname = $_SESSION[$session_name]["nickname"];
$order_key = $_SESSION[$session_name]["order_key"];
$direction = $_SESSION[$session_name]["direction"];
}
} else {
if (isset($_SESSION[$session_name])){
unset($_SESSION[$session_name]);
}
// 再設定
$_SESSION[$session_name]["mobile"] = $mobile;
$_SESSION[$session_name]["nickname"] = $nickname;
$_SESSION[$session_name]["order_key"] = $order_key;
$_SESSION[$session_name]["direction"] = $direction;
}
//当前页取得
$paging_url_link = "user_class_list.php";
$param = array();
$param["delete_flg"] = false;
if (!empty($mobile)) {
$param["mobile"] = $mobile;
}
if (!empty($nickname)) {
$param["nickname"] = $nickname;
}
$total_count = 0;
//总页数取得
$total_count = UserClassDat::getListCount($param);
if ($total_count > 0) {
$page_row = MANAGER_DEFAULT_ROW_COUNT;
$offset = ($page_num - 1) * $page_row;
//一览取得
$user_class_list = UserClassDat::getList($param, $order_key, $direction, $offset, $page_row);
$page_count = ceil($total_count / $page_row);
$show_page_num = 5;
$page_range = PagingHandler::getPageRange($page_num, $page_count, $show_page_num);
$page_first = $page_range[0];
$page_end = $page_range[1];
}
// 页面
$_SCRIPT_FILE = array("scripts/validators.js", "scripts/user_class.js");
$layout_pages = array();
$layout_pages["top"] = "menu.inc";
$layout_pages["menu_clicked"] = "li_user";
$layout_pages["middle"] = "user_class_list.inc";
require_once(MANAGER_TEMPLATE_DIR_PATH . "/layout/topmenutopsub_layout.inc");
exit;
?>
\ No newline at end of file
<?php
/**
* 用户管理
* $Id: product_delete_result.php,v 1.1 2016-9-22 09:58:31 cuixl Exp $
* @author cuixl
* @package manager.public_html
*/
// 底层包含
require_once("manager_include.inc");
// 登录检查
require_once("check_login.inc");
// 权限检查
if (!checkAuthority("USER")) {
// エラー表示
$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;
}
// 参数取得
$id = ParamUtil::getRequestString("id");
$user_mst = UserMst::getById($id);
if ($user_mst == null) {
// エラー表示
$layout_pages = array();
$layout_pages["footer"] = "footer.inc";
$layout_pages["top"] = "menu.inc";
$layout_pages["middle"] = "error.inc";
require_once(MANAGER_TEMPLATE_DIR_PATH . "/layout/topmenutopsub_layout.inc");
exit;
}
UserHandler::clearMemcachedUser($user_mst);
// 数据库更新
$user_mst->delete_flg = true;
$user_mst->save();
// 跳到一览页
header("Location:user_list.php");
exit;
<?php
/**
* 管理员管理
* $Id: account_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("ADMIN,MANAGER,STAFF")) {
// エラー表示
$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;
}
// 参数取得
$id = ParamUtil::getRequestString("id");
$action = ParamUtil::getRequestString("action");
$comment = ParamUtil::getRequestString("comment");
$status = ParamUtil::getRequestString("status", 1);
$user_mst = UserMst::getById($id);
if ($user_mst == null) {
// エラー表示
$layout_pages = array();
$layout_pages["footer"] = "footer.inc";
$layout_pages["top"] = "menu.inc";
$layout_pages["middle"] = "error.inc";
require_once(MANAGER_TEMPLATE_DIR_PATH . "/layout/topmenutopsub_layout.inc");
exit;
}
//添加回访记录
if($action == "ADD" && !empty($comment)) {
//相同内容排除
$param = array();
$param["delete_flg"] = false;
$param["user_id"] = $id;
$param["comment"] = $comment;
$param["account_id"] = $_account->id;
$param["status"] = $status;
$tmp_comment_list = UserCommentDat::getList($param, "id", "desc");
if(empty($tmp_comment_list)) {
$user_comment = new UserCommentDat();
$user_comment->user_id = $id;
$user_comment->account_id = $_account->id;
$user_comment->comment = $comment;
$user_comment->status = $status;
$user_comment->save();
//更新时间
$user_mst->update_date = date("Y-m-d H:i:s");
$user_mst->save();
}
}
//回访记录列表
$param = array();
$param["delete_flg"] = false;
$param["user_id"] = $id;
$user_comment_list = UserCommentDat::getList($param, "id", "desc");
//学员状态
$user_status_list = UserStatus::getList(null, "id", "desc");
// 页面表示
$_SCRIPT_FILE = array("scripts/validators.js", "scripts/user_edit_comment_input.js");
$layout_pages = array();
$layout_pages["top"] = "menu.inc";
$layout_pages["menu_clicked"] = "li_user";
$layout_pages["middle"] = "user_edit_comment_input.inc";
require_once(MANAGER_TEMPLATE_DIR_PATH . "/layout/topmenutopsub_layout.inc");
exit;
\ No newline at end of file
<?php
/**
* 管理员管理
* $Id: account_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("ADMIN,MANAGER")) {
// エラー表示
$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;
}
// 参数取得
$id = ParamUtil::getRequestString("id");
$action = ParamUtil::getRequestString("action");
$comment = ParamUtil::getRequestString("comment");
$status = ParamUtil::getRequestString("status", 1);
$user_mst = UserMst::getById($id);
if ($user_mst == null) {
// エラー表示
$layout_pages = array();
$layout_pages["footer"] = "footer.inc";
$layout_pages["top"] = "menu.inc";
$layout_pages["middle"] = "error.inc";
require_once(MANAGER_TEMPLATE_DIR_PATH . "/layout/topmenutopsub_layout.inc");
exit;
}
//添加回访记录
if($action == "ADD" && !empty($comment)) {
//相同内容排除
$param = array();
$param["delete_flg"] = false;
$param["user_id"] = $id;
$param["comment"] = $comment;
$param["account_id"] = $_account->id;
$param["status"] = $status;
$tmp_comment_list = UserCommentDat::getList($param, "id", "desc");
if(empty($tmp_comment_list)) {
$user_comment = new UserCommentDat();
$user_comment->user_id = $id;
$user_comment->account_id = $_account->id;
$user_comment->comment = $comment;
$user_comment->status = $status;
$user_comment->save();
//更新时间
$user_mst->update_date = date("Y-m-d H:i:s");
$user_mst->save();
}
}
//回访记录列表
$param = array();
$param["delete_flg"] = false;
$param["user_id"] = $id;
$user_comment_list = UserCommentDat::getList($param, "id", "desc");
//学员状态
$user_status_list = UserStatus::getList(null, "id", "desc");
// 页面表示
$_SCRIPT_FILE = array("scripts/validators.js", "scripts/user_edit_comment_input.js");
$layout_pages = array();
$layout_pages["top"] = "menu.inc";
$layout_pages["menu_clicked"] = "li_user";
$layout_pages["middle"] = "user_edit_comment_input2.inc";
require_once(MANAGER_TEMPLATE_DIR_PATH . "/layout/topmenutopsub_layout.inc");
exit;
\ No newline at end of file
<?php
/**
* 管理员管理
* $Id: account_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("ADMIN,MANAGER,STAFF")) {
// エラー表示
$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;
}
// 参数取得
$action = ParamUtil::getRequestString("action");
$id = ParamUtil::getRequestString("id");
$user_mst = new UserMst();
if($action == "new") {
$user_mst->id = "0";
$user_mst->mobile = "";
$user_mst->nickname = "";
$user_mst->sex = "UNKNOW";
$user_mst->status = "1";
$user_mst->channel_no = "1000";
}
if($action == "edit") {
$user_mst = UserMst::getById($id);
if ($user_mst == null) {
// エラー表示
$layout_pages = array();
$layout_pages["footer"] = "footer.inc";
$layout_pages["top"] = "menu.inc";
$layout_pages["middle"] = "error.inc";
require_once(MANAGER_TEMPLATE_DIR_PATH . "/layout/topmenutopsub_layout.inc");
exit;
}
}
//渠道列表
$channel_list = ChannelMst::getList(null, "id", "desc");
//学员状态
$user_status_list = UserStatus::getList(null, "id", "desc");
// 页面表示
$_SCRIPT_FILE = array("scripts/validators.js", "scripts/user_edit_input.js");
$layout_pages = array();
$layout_pages["top"] = "menu.inc";
$layout_pages["menu_clicked"] = "li_user";
$layout_pages["middle"] = "user_edit_input.inc";
require_once(MANAGER_TEMPLATE_DIR_PATH . "/layout/topmenutopsub_layout.inc");
exit;
\ No newline at end of file
<?php
/**
* 管理员管理
* $Id: account_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("ADMIN,MANAGER")) {
// エラー表示
$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;
}
// 参数取得
$action = ParamUtil::getRequestString("action");
$id = ParamUtil::getRequestString("id");
$user_mst = new UserMst();
if($action == "new") {
$user_mst->id = "0";
$user_mst->mobile = "";
$user_mst->nickname = "";
$user_mst->sex = "UNKNOW";
$user_mst->status = "1";
$user_mst->channel_no = "1000";
}
if($action == "edit") {
$user_mst = UserMst::getById($id);
if ($user_mst == null) {
// エラー表示
$layout_pages = array();
$layout_pages["footer"] = "footer.inc";
$layout_pages["top"] = "menu.inc";
$layout_pages["middle"] = "error.inc";
require_once(MANAGER_TEMPLATE_DIR_PATH . "/layout/topmenutopsub_layout.inc");
exit;
}
}
//渠道列表
$channel_list = ChannelMst::getList(null, "id", "desc");
//学员状态
$user_status_list = UserStatus::getList(null, "id", "desc");
//STAFF列表
$param = array();
$param["delete_flg"] = false;
$account_list = AccountMst::getList($param,"id","asc");
// 页面表示
$_SCRIPT_FILE = array("scripts/validators.js", "scripts/user_edit_input.js");
$layout_pages = array();
$layout_pages["top"] = "menu.inc";
$layout_pages["menu_clicked"] = "li_user";
$layout_pages["middle"] = "user_edit_input2.inc";
require_once(MANAGER_TEMPLATE_DIR_PATH . "/layout/topmenutopsub_layout.inc");
exit;
\ No newline at end of file
<?php
/**
* 用户管理
* $Id: user_edit_result.php,v 1.1 2016-9-22 09:58:31 cuixl Exp $
* @author cuixl
* @package manager.public_html
*/
// 底层包含
require_once("manager_include.inc");
// 登录检查
require_once("check_login.inc");
// 权限检查
if (!checkAuthority("ADMIN,MANAGER,STAFF")) {
// エラー表示
$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;
}
// 参数取得
$id = ParamUtil::getRequestString("id");
$action = ParamUtil::getRequestString("action");
$mobile = ParamUtil::getRequestString("mobile");
$nickname = ParamUtil::getRequestString("nickname");
$sex = ParamUtil::getRequestString("sex");
$wechat_no = ParamUtil::getRequestString("wechat_no");
$qq_no = ParamUtil::getRequestString("qq_no");
$status = ParamUtil::getRequestString("status");
$channel_no = ParamUtil::getRequestString("channel_no");
//新增添加
if($action == "new") {
$user_mst = new UserMst();
$user_mst->mobile = $mobile;
$user_mst->nickname = $nickname;
$user_mst->sex = $sex;
$user_mst->wechat_no = $wechat_no;
$user_mst->qq_no = $qq_no;
$user_mst->status = $status;
$user_mst->channel_no = $channel_no;
//如果已经登陆,不再重复登陆
$user_list_mobile = Array();
$user_list_wechat = Array();
if(!empty($mobile)) {
$param = array();
$param["mobile"] = $mobile;
$param["delete_flg"] = false;
$user_list = UserMst::getList($param);
}
if(!empty($wechat_no)) {
$param = array();
$param["wechat_no"] = $wechat_no;
$param["delete_flg"] = false;
$user_list_wechat = UserMst::getList($param);
}
if (empty($user_list_mobile) && empty($user_list_mobile)) {
$user_mst->save();
}
}
//资料编辑
if($action == "edit") {
$user_mst = UserMst::getById($id);
$user_mst->mobile = $mobile;
$user_mst->nickname = $nickname;
$user_mst->nickname = $nickname;
$user_mst->sex = $sex;
$user_mst->wechat_no = $wechat_no;
$user_mst->qq_no = $qq_no;
$user_mst->status = $status;
$user_mst->channel_no = $channel_no;
$user_mst->save();
}
//渠道列表
$channel_list = ChannelMst::getList(null, "id", "desc");
// 页面表示
$_SCRIPT_FILE = array("scripts/validators.js", "scripts/user_edit_input.js");
$layout_pages = array();
$layout_pages["top"] = "menu.inc";
$layout_pages["menu_clicked"] = "li_user";
$layout_pages["middle"] = "user_edit_result.inc";
require_once(MANAGER_TEMPLATE_DIR_PATH . "/layout/topmenutopsub_layout.inc");
exit;
\ No newline at end of file
<?php
/**
* 用户管理
* $Id: user_edit_result.php,v 1.1 2016-9-22 09:58:31 cuixl Exp $
* @author cuixl
* @package manager.public_html
*/
// 底层包含
require_once("manager_include.inc");
// 登录检查
require_once("check_login.inc");
// 权限检查
if (!checkAuthority("ADMIN,MANAGER,STAFF")) {
// エラー表示
$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;
}
// 参数取得
$id = ParamUtil::getRequestString("id");
$action = ParamUtil::getRequestString("action");
$mobile = ParamUtil::getRequestString("mobile");
$nickname = ParamUtil::getRequestString("nickname");
$sex = ParamUtil::getRequestString("sex");
$wechat_no = ParamUtil::getRequestString("wechat_no");
$qq_no = ParamUtil::getRequestString("qq_no");
$status = ParamUtil::getRequestString("status");
$channel_no = ParamUtil::getRequestString("channel_no");
$account_id = ParamUtil::getRequestNumber("account_id", 0);
//新增添加
if($action == "new") {
$user_mst = new UserMst();
$user_mst->mobile = $mobile;
$user_mst->nickname = $nickname;
$user_mst->sex = $sex;
$user_mst->wechat_no = $wechat_no;
$user_mst->qq_no = $qq_no;
$user_mst->status = $status;
$user_mst->channel_no = $channel_no;
$user_mst->account_id = $account_id;
//如果已经登陆,不再重复登陆
$user_list_mobile = Array();
$user_list_wechat = Array();
if(!empty($mobile)) {
$param = array();
$param["mobile"] = $mobile;
$param["delete_flg"] = false;
$user_list = UserMst::getList($param);
}
if(!empty($wechat_no)) {
$param = array();
$param["wechat_no"] = $wechat_no;
$param["delete_flg"] = false;
$user_list_wechat = UserMst::getList($param);
}
if (empty($user_list_mobile) && empty($user_list_mobile)) {
$user_mst->save();
}
}
//资料编辑
if($action == "edit") {
$user_mst = UserMst::getById($id);
$user_mst->mobile = $mobile;
$user_mst->nickname = $nickname;
$user_mst->nickname = $nickname;
$user_mst->sex = $sex;
$user_mst->wechat_no = $wechat_no;
$user_mst->qq_no = $qq_no;
$user_mst->status = $status;
$user_mst->channel_no = $channel_no;
if($account_id > 0) {
$user_mst->account_id = $account_id;
}
$user_mst->save();
}
header("Location:ocean_user_list.php");
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
* @package manager.public_html
*/
// 底层包含
require_once("manager_include.inc");
// 登录检查
require_once("check_login.inc");
// 权限检查
if (!checkAuthority("ADMIN,MANAGER,STAFF")) {
// エラー表示
$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;
}
$ueid = ParamUtil::getRequestNumber("ueid", 0);
$user_examination_mst = UserExaminationMst::getById($ueid);
//题目小项列表
$param = array();
$param["user_examination_mst_id"] = $ueid;
$param["delete_flg"] = false;
$user_examination_dat_list = UserExaminationDat::getList($param);
// ページ
$_SCRIPT_FILE = array("scripts/validators.js", "scripts/examination.js");
$layout_pages = array();
$layout_pages["top"] = "menu.inc";
$layout_pages["menu_clicked"] = "li_data";
$layout_pages["middle"] = "user_eximation_detail.inc";
require_once(MANAGER_TEMPLATE_DIR_PATH . "/layout/topmenutopsub_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
* @package manager.public_html
*/
// 底层包含
require_once("manager_include.inc");
// 登录检查
require_once("check_login.inc");
// 权限检查
if (!checkAuthority("ADMIN,MANAGER,STAFF")) {
// エラー表示
$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;
}
// 一览取得
$param = array();
$param["delete_flg"] = false;
$user_examination_mst_list = UserExaminationMst::getList($param, "id", "desc");
// ページ
$_SCRIPT_FILE = array("scripts/validators.js", "scripts/examination.js");
$layout_pages = array();
$layout_pages["top"] = "menu.inc";
$layout_pages["menu_clicked"] = "li_data";
$layout_pages["middle"] = "user_eximation_list.inc";
require_once(MANAGER_TEMPLATE_DIR_PATH . "/layout/topmenutopsub_layout.inc");
exit;
\ No newline at end of file
<?php
/**
* 管理员管理
* $Id: account_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("ADMIN,MANAGER")) {
// エラー表示
$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;
}
// 参数取得
$action = ParamUtil::getRequestString("action");
$id = ParamUtil::getRequestString("id");
$user_mst = UserMst::getById($id);
if ($user_mst == null) {
// エラー表示
$layout_pages = array();
$layout_pages["footer"] = "footer.inc";
$layout_pages["top"] = "menu.inc";
$layout_pages["middle"] = "error.inc";
require_once(MANAGER_TEMPLATE_DIR_PATH . "/layout/topmenutopsub_layout.inc");
exit;
}
//渠道列表
$coupon_list = Coupon::getList();
// 页面表示
$_SCRIPT_FILE = array("scripts/validators.js", "scripts/user_list.js");
$layout_pages = array();
$layout_pages["top"] = "menu.inc";
$layout_pages["menu_clicked"] = "li_user";
$layout_pages["middle"] = "user_send_coupon.inc";
require_once(MANAGER_TEMPLATE_DIR_PATH . "/layout/topmenutopsub_layout.inc");
exit;
\ No newline at end of file
<?php
/**
* 用户管理
* $Id: user_edit_result.php,v 1.1 2016-9-22 09:58:31 cuixl Exp $
* @author cuixl
* @package manager.public_html
*/
// 底层包含
require_once("manager_include.inc");
// 登录检查
require_once("check_login.inc");
// 权限检查
if (!checkAuthority("ADMIN,MANAGER,STAFF")) {
// エラー表示
$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;
}
// 参数取得
$user_id = ParamUtil::getRequestString("id");
$coupon_id = ParamUtil::getRequestNumber("coupon_id", 1);
$user_mst = UserMst::getById($user_id);
$coupon_mst = Coupon::getById($coupon_id);
$dead_time = time() + ($coupon_mst->valid_days)*24*3600;
//添加代金券
$user_coupon_dat = new UserCouponDat();
$user_coupon_dat->user_id = $user_id;
$user_coupon_dat->coupon_id = $coupon_id;
$user_coupon_dat->coupon_count = 1;
$user_coupon_dat->dead_time = date('y-m-d',$dead_time) . " 23:59:59";
$user_coupon_dat->transfer_count = 0;
$user_coupon_dat->save();
// 跳到结果页面
header("Location:user_send_coupon_result.php?id=" . $user_id);
exit;
\ No newline at end of file
<?php
/**
* 用户管理
* $Id: user_edit_result.php,v 1.1 2016-9-22 09:58:31 cuixl Exp $
* @author cuixl
* @package manager.public_html
*/
// 底层包含
require_once("manager_include.inc");
// 登录检查
require_once("check_login.inc");
// 权限检查
if (!checkAuthority("ADMIN,MANAGER,STAFF")) {
// エラー表示
$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;
}
// 参数取得
$user_id = ParamUtil::getRequestString("id");
$user_mst = UserMst::getById($user_id);
//用户当前持有的代金券
$param = array();
$param["user_id"] = $user_id;
$param["delete_flg"] = false;
$user_coupon_list = UserCouponDat::getList($param, "dead_time", "asc");
// 页面表示
$_SCRIPT_FILE = array("scripts/validators.js", "scripts/user_list.js");
$layout_pages = array();
$layout_pages["top"] = "menu.inc";
$layout_pages["menu_clicked"] = "li_user";
$layout_pages["middle"] = "user_send_coupon_result.inc";
require_once(MANAGER_TEMPLATE_DIR_PATH . "/layout/topmenutopsub_layout.inc");
exit;
\ No newline at end of file
<?php
/**
* 管理员管理
* $Id: account_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("ADMIN,MANAGER")) {
// エラー表示
$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;
}
// 参数取得
$action = ParamUtil::getRequestString("action");
$id = ParamUtil::getRequestString("id");
$user_mst = UserMst::getById($id);
if ($user_mst == null) {
// エラー表示
$layout_pages = array();
$layout_pages["footer"] = "footer.inc";
$layout_pages["top"] = "menu.inc";
$layout_pages["middle"] = "error.inc";
require_once(MANAGER_TEMPLATE_DIR_PATH . "/layout/topmenutopsub_layout.inc");
exit;
}
//渠道列表
$coupon_list = Coupon::getList();
// 页面表示
$_SCRIPT_FILE = array("scripts/validators.js", "scripts/user_list.js");
$layout_pages = array();
$layout_pages["top"] = "menu.inc";
$layout_pages["menu_clicked"] = "li_user";
$layout_pages["middle"] = "user_send_point.inc";
require_once(MANAGER_TEMPLATE_DIR_PATH . "/layout/topmenutopsub_layout.inc");
exit;
\ No newline at end of file
<?php
/**
* 用户管理
* $Id: user_edit_result.php,v 1.1 2016-9-22 09:58:31 cuixl Exp $
* @author cuixl
* @package manager.public_html
*/
// 底层包含
require_once("manager_include.inc");
// 登录检查
require_once("check_login.inc");
// 权限检查
if (!checkAuthority("ADMIN,MANAGER,STAFF")) {
// エラー表示
$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;
}
// 参数取得
$user_id = ParamUtil::getRequestString("id");
$action_type = ParamUtil::getRequestString("action_type");
$point = ParamUtil::getRequestNumber("point", 0);
$user_mst = UserMst::getById($user_id);
$left_point = 0;
//查找该用户的最后一条记录
$param = array();
$param["user_id"] = $user_id;
$param["status"] = "SUCCESS";
$param["delete_flg"] = false;
$user_point_list = UserPointLog::getList($param, "id", "desc", 0, 1);
if(!empty($user_point_list)) {
$point_left = $user_point_list[0]->point_left;
}
$point_left = $point_left + $point;
if($action_type==4 || $action_type==7) {
//添加积分记录
$user_point_log = new UserPointLog();
$user_point_log->user_id = $user_id;
$user_point_log->action_type = $action_type; //购买课程奖励
$user_point_log->point = $point;
$user_point_log->point_left = $point_left;
$user_point_log->status = "SUCCESS";
$user_point_log->save();
//更新用户表的积分数值
$user_mst->point = $point_left;
$user_mst->save();
}
// 跳到结果页面
header("Location:user_send_point_result.php?id=" . $user_id);
exit;
\ No newline at end of file
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