Commit d23a73f7 by biao

111

parent 69cbf090
<?php
/**
* 学校管理
* $Id: school_list.php,v 1.1 2020/01/03 11:18:46 Exp $
* @author lixq
* @package manager.public_html
*/
// 底层包含
require_once("manager_include.inc");
// 登录检查
require_once("check_login.inc");
// 权限检查
if (!checkAuthority("3")) {
// エラー表示
$layout_pages = array();
$layout_pages["left"] = "menu.inc";
$layout_pages["right"] = "error.inc";
$message = "权限不足,请联系系统管理员。";
require_once(MANAGER_TEMPLATE_DIR_PATH . "/layout/leftmenu_layout.inc");
exit;
}
if(!empty($_account->school_id)){
$school_mst = SchoolMst::getById($_account->school_id);
$id = $_account->school_id;
$can_back = true;
// ページ
$layout_pages = array();
$layout_pages["left"] = "menu.inc";
$layout_pages["right"] = "school_edit_input.inc";
$layout_pages["menu_clicked"] = "1-1";
require_once(MANAGER_TEMPLATE_DIR_PATH . "/layout/leftmenu_layout.inc");
exit;
}
$school_title = ParamUtil::getRequestString("school_title");
$order_key = ParamUtil::getRequestString("order_key", "id");
$sort = ParamUtil::getRequestString("sort", "ASC");
$page_num = ParamUtil::getRequestNumber("page_num", 1);
$page_row = MANAGER_DEFAULT_ROW_COUNT;
$paging_url_link = "./school_list.php";
// trueの場合、Sessionを再設定
$search_flg = ParamUtil::getRequestBoolean("search_flg", false);
$session_name = "school_criteria";
if ($search_flg) {
if (isset($_SESSION[$session_name])){
$param = $_SESSION[$session_name];
} else {
$param = array();
}
if (isset($param["school_title"])) {
$school_title = $param["school_title"];
}
if (isset($param["page_num"])) {
$page_num = $param["page_num"];
}
} else {
// 検索条件を作成してsessionに設定
$param = array();
if (!empty($school_title)) {
$param["school_title"] = $school_title;
}
if (!empty($page_num)) {
$param["page_num"] = $page_num;
}
$_SESSION[$session_name] = $param;
}
$school_list = [];
// 一览取得
$param = array();
$param["delete_flg"] = false;
if (!empty($school_title)) {
$param["title"] = $school_title;
}
//总件数
$school_count = CompassHandler::getSchoollListCount($param);
// 获取相应页面的数据
if ($school_count > 0) {
$offset = ($page_num - 1) * $page_row;
$school_list = CompassHandler::getSchoollList($param, $order_key, $sort, $offset, $page_row);
$page_count = ceil($school_count / $page_row);
$show_page_num = MANAGER_PAGING_SHOW_PAGE_COUNT;
$page_range = PagingHandler::getPageRange($page_num, $page_count, $show_page_num);
$page_first = $page_range[0];
$page_end = $page_range[1];
}
// ページ
$layout_pages = array();
$layout_pages["left"] = "menu.inc";
$layout_pages["right"] = "school_list.inc";
$layout_pages["menu_clicked"] = "1-1";
require_once(MANAGER_TEMPLATE_DIR_PATH . "/layout/leftmenu_layout.inc");
exit;
\ No newline at end of file
...@@ -79,7 +79,7 @@ table.main_frame { ...@@ -79,7 +79,7 @@ table.main_frame {
margin-right: 0px; margin-right: 0px;
margin-bottom: 0px; margin-bottom: 0px;
padding-top: 0px; padding-top: 0px;
padding-left: 10px; padding-left: 0px;
padding-right: 0px; padding-right: 0px;
padding-bottom: 0px; padding-bottom: 0px;
} }
...@@ -108,13 +108,15 @@ td.title_area { ...@@ -108,13 +108,15 @@ td.title_area {
font-weight: bold; font-weight: bold;
text-align: center; text-align: center;
height: 68px; height: 68px;
background:#3A5FCD;
color:#fff;
/*border-bottom: solid 1px #B0B0B0;*/ /*border-bottom: solid 1px #B0B0B0;*/
} }
/** 左边菜单 **/ /** 左边菜单 **/
div.left_menu { div.left_menu {
margin-top:10px; margin-top:0px;
width:100%; width:100%;
} }
...@@ -239,7 +241,7 @@ div.logo{ ...@@ -239,7 +241,7 @@ div.logo{
position: relative; position: relative;
float: left; float: left;
top: 0px; top: 0px;
left: 220px; left: 50px;
z-index:3; z-index:3;
} }
......
...@@ -47,5 +47,8 @@ $layout_pages = array(); ...@@ -47,5 +47,8 @@ $layout_pages = array();
$layout_pages["left"] = "menu.inc"; $layout_pages["left"] = "menu.inc";
$layout_pages["right"] = "grade_list.inc"; $layout_pages["right"] = "grade_list.inc";
$layout_pages["menu_clicked"] = "1-2"; $layout_pages["menu_clicked"] = "1-2";
require_once(MANAGER_TEMPLATE_DIR_PATH . "/layout/leftmenu_layout.inc"); //require_once(MANAGER_TEMPLATE_DIR_PATH . "/layout/leftmenu_layout.inc");
require_once(MANAGER_TEMPLATE_DIR_PATH . "/layout/content_iframe.inc");
exit; exit;
\ No newline at end of file
...@@ -35,8 +35,6 @@ if(!empty($_account->school_id)){ ...@@ -35,8 +35,6 @@ if(!empty($_account->school_id)){
exit; exit;
} }
$school_title = ParamUtil::getRequestString("school_title"); $school_title = ParamUtil::getRequestString("school_title");
$order_key = ParamUtil::getRequestString("order_key", "id"); $order_key = ParamUtil::getRequestString("order_key", "id");
$sort = ParamUtil::getRequestString("sort", "ASC"); $sort = ParamUtil::getRequestString("sort", "ASC");
...@@ -100,5 +98,6 @@ $layout_pages = array(); ...@@ -100,5 +98,6 @@ $layout_pages = array();
$layout_pages["left"] = "menu.inc"; $layout_pages["left"] = "menu.inc";
$layout_pages["right"] = "school_list.inc"; $layout_pages["right"] = "school_list.inc";
$layout_pages["menu_clicked"] = "1-1"; $layout_pages["menu_clicked"] = "1-1";
require_once(MANAGER_TEMPLATE_DIR_PATH . "/layout/leftmenu_layout.inc");
require_once(MANAGER_TEMPLATE_DIR_PATH . "/layout/content_iframe.inc");
exit; exit;
\ No newline at end of file
...@@ -57,7 +57,7 @@ function doPopup(html_data, width_min, width_max, height_min, height_max) { ...@@ -57,7 +57,7 @@ function doPopup(html_data, width_min, width_max, height_min, height_max) {
<script type="text/JavaScript" src="dynamicscripts/do_select_popup.js"></script> <script type="text/JavaScript" src="dynamicscripts/do_select_popup.js"></script>
<script type="text/JavaScript" src="dynamicscripts/do_image_popup.js"></script> <script type="text/JavaScript" src="dynamicscripts/do_image_popup.js"></script>
<? <?
//JavaScript読み込みの指定 //JavaScript
if (isset($_SCRIPT_FILE)) { if (isset($_SCRIPT_FILE)) {
if (is_array($_SCRIPT_FILE)) { if (is_array($_SCRIPT_FILE)) {
foreach ($_SCRIPT_FILE as $filename) { foreach ($_SCRIPT_FILE as $filename) {
...@@ -89,7 +89,7 @@ if (isset($_SCRIPT_FILE)) { ...@@ -89,7 +89,7 @@ if (isset($_SCRIPT_FILE)) {
<body> <body>
<!-- 読み込み中 --> <!-- loading -->
<div id="view_loading" style="height: 1px; left: 0; position: absolute;top: 0; visibility: hidden; width: 1px;"></div> <div id="view_loading" style="height: 1px; left: 0; position: absolute;top: 0; visibility: hidden; width: 1px;"></div>
<div id="selectpopup" class="hiddendialog"> <div id="selectpopup" class="hiddendialog">
<div id="selectdialogouterframe"> <div id="selectdialogouterframe">
...@@ -103,14 +103,13 @@ if (isset($_SCRIPT_FILE)) { ...@@ -103,14 +103,13 @@ if (isset($_SCRIPT_FILE)) {
<table class="main_frame"> <table class="main_frame">
<tr> <tr>
<td class="title_area"> <td class="title_area">
<div style="width: 202px;height: 81px;background: #000;position: absolute;top: 0;left: 10px;"></div>
<div class="logo"><img src="images/logo.png"/ style="width: 50px;"></div> <div class="logo"><img src="images/logo.png"/ style="width: 50px;"></div>
<div class="title" style="color: #000;text-align: left;padding-left: 350px;"><?=SERVICE_NAME ?>工作平台</div> <div class="title" style="text-align: left;padding-left: 160px;"><?=SERVICE_NAME ?>工作平台</div>
<div id="logininfo" class="logininfo" style="color: #000;"> <div id="logininfo" class="logininfo">
<img src="images/user.png" /> <img src="images/user.png" />
<?=htmlspecialchars(empty($_account->name) ? "管理员" : $_account->name) ?> <?=htmlspecialchars(empty($_account->name) ? "管理员" : $_account->name) ?>
<? if (isset($_SESSION["account"]) && ($_account != null)) { ?> <? if (isset($_SESSION["account"]) && ($_account != null)) { ?>
<a class="transbutton" href="logout.php" style="position: fixed;top: 26px;right: 30px;text-decoration: none;color: #666;display: flex;align-items: center;font-size: 14px;font-weight: normal;"><img src="images/back.png" style="width: 20px;height: 20px;margin-right: 10px;margin-top: 4px;" />退出</a> <a class="transbutton" href="logout.php" style="position: fixed;top: 26px;right: 30px;text-decoration: none;color: #fff;display: flex;align-items: center;font-size: 14px;font-weight: normal;"><img src="images/back.png" style="width: 20px;height: 20px;margin-right: 10px;margin-top: 4px;" />退出</a>
<? } ?> <? } ?>
</div> </div>
</td> </td>
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
?> ?>
<br /> <br />
<!--可以在此设定场用菜单--> <!--可以在此设定场用菜单-->
<a href="javascript:void(0);" onClick="backupDatabase();">可以在此设定场用菜单</a><br /> <!--<a href="javascript:void(0);" onClick="backupDatabase();">可以在此设定场用菜单</a><br />-->
<script> <script>
......
<?php
/**
* 共通头部文件
* $RCSfile: topmenutopsub_header.inc,v $
* @package templates.manager
*/
@header('Content-Language: ja');
@header('Content-Type: text/html;charset=UTF-8');
?>
<!DOCTYPE html>
<html lang="zh_CN" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="UTF-8" />
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
<meta http-equiv="Pragma" content="no-cache"/>
<meta http-equiv="Cache-Control" content="no-cache"/>
<meta http-equiv="Expires" content="-1"/>
<meta http-equiv="Pragma" content="no-cache"/>
<title><?=SERVICE_NAME ?>管理</title>
<link href="css/manager_layout.css" rel="stylesheet" type="text/css" />
<link href="css/common_design.css" rel="stylesheet" type="text/css" />
<link href="css/jquery.ui.core.css" rel="stylesheet" type="text/css" />
<link href="css/jquery.ui.theme.css" rel="stylesheet" type="text/css" />
<link href="css/jquery.ui.datepicker.css" rel="stylesheet" type="text/css" />
<link href="css/selectpopup.css" rel="stylesheet" type="text/css" />
<!-- スクリプト -->
<script type="text/JavaScript">
/**
* doPopup()
* @return
*/
function doPopup(html_data, width_min, width_max, height_min, height_max) {
var selectdialogouterframe = document.getElementById('selectdialogouterframe');
selectdialogouterframe.style.visibility = "visible";
selectdialogouterframe.style.minWidth = width_min + "px";
selectdialogouterframe.style.maxWidth = width_max + "px";
selectdialogouterframe.style.minHeight = height_min + "px";
selectdialogouterframe.style.maxHeight = height_max + "px";
var innerframe = document.getElementById('innerframe');
innerframe.style.minWidth = (width_min - 20) + "px";
innerframe.style.maxWidth = (width_max - 20) + "px";
innerframe.style.minHeight = (height_min - 40) + "px";
innerframe.style.maxHeight = (height_max - 40) + "px";
innerframe.innerHTML = html_data;
}
</script>
<script src="scripts/jquery.js" type="text/javascript"></script>
<script src="scripts/jquery.ui.core.min.js" type="text/javascript"></script>
<script src="scripts/jquery.ui.datepicker.min.js" type="text/javascript"></script>
<link href="https://cdnjs.cloudflare.com/ajax/libs/jquery.colorbox/1.4.33/example1/colorbox.min.css" rel="stylesheet">
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.colorbox/1.4.33/jquery.colorbox-min.js"></script>
<script type="text/JavaScript" src="dynamicscripts/do_select_popup.js"></script>
<script type="text/JavaScript" src="dynamicscripts/do_image_popup.js"></script>
<script type="text/javascript" src="scripts/vue.min.js" ></script>
<link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css">
<script src="https://unpkg.com/element-ui/lib/index.js"></script>
<script type="text/javascript" src="scripts/axios.min.js" ></script>
<?
//JavaScript
if (isset($_SCRIPT_FILE)) {
if (is_array($_SCRIPT_FILE)) {
foreach ($_SCRIPT_FILE as $filename) {
if (!empty($_SCRIPT_FILE)) {
?><script language="JavaScript" type="text/JavaScript" src="<?=$filename ?>"></script>
<?
}
}
} else {
if (!empty($_SCRIPT_FILE)) {
?><script language="JavaScript" type="text/JavaScript" src="<?=$_SCRIPT_FILE ?>"></script>
<?
}
}
}
?>
<link rel="stylesheet" href="scripts/jquery-ui-1.10.3/themes/base/jquery.ui.all.css">
<link rel="stylesheet" media="all" type="text/css" href="scripts/jquery-ui-1.10.3/themes/base/jquery.ui.datepicker.css" />
<script src="scripts/jquery-ui-1.10.3/ui/jquery.ui.core.min.js"></script>
<script src="scripts/jquery-ui-1.10.3/ui/jquery.ui.widget.min.js"></script>
<script src="scripts/jquery-ui-1.10.3/ui/jquery.ui.datepicker.min.js"></script>
<script src="scripts/jquery-ui-1.10.3/ui/jquery.ui.tabs.min.js"></script>
<script src="scripts/jquery-ui-1.10.3/ui/datepicker_addon.js"></script>
</head>
<? require(MANAGER_TEMPLATE_DIR_PATH . "/" . $layout_pages["right"]); ?>
<?php <?php
/** /**
* 左にメニュー枠があるレイアウト * 上:左:右 结构
* Created on 2005/04/03 * Created on 2020/02/03
* @package templates.manager * @package templates.manager
*/ */
// デフォルトヘッダー // 顶部
if (!isset($layout_pages["header"])) { if (!isset($layout_pages["header"])) {
$layout_pages["header"] = "header.inc"; $layout_pages["header"] = "header.inc";
} }
// デフォルトフッター // 底部
if (!isset($layout_pages["footer"])) { if (!isset($layout_pages["footer"])) {
$layout_pages["footer"] = "footer.inc"; $layout_pages["footer"] = "footer.inc";
} }
...@@ -27,30 +27,57 @@ if (!isset($layout_pages["right"])) { ...@@ -27,30 +27,57 @@ if (!isset($layout_pages["right"])) {
require(MANAGER_TEMPLATE_DIR_PATH. "/" . $layout_pages["header"]); require(MANAGER_TEMPLATE_DIR_PATH. "/" . $layout_pages["header"]);
?> ?>
<style type="text/css">
#contentFrame {
position:fixed;
top:80px;
left:210px;
height:1200px;
border:none;
scrollbar-width: none; /* firefox */
-ms-overflow-style: none; /* IE 10+ */
overflow-x: hidden;
overflow-y: auto;
}
</style>
<script>
$(function(){
var clientHeight = document.body.clientHeight - 80;
$('.table').css('height',clientHeight)
var width = document.body.clientWidth-220;
$('.rightWidth').css('width',width);
//设定宽度
var w = document.documentElement.clientWidth || document.body.clientWidth;
//设定iframe的宽度
var iFrameWidth = w - 195;
$('#contentFrame').css('width', iFrameWidth);
//设定高度
var h = document.documentElement.clientHeight || document.body.clientHeight;
var iFrameHeight = h - 80;
$('#contentFrame').css('height', iFrameHeight);
})
</script>
<table width="100%" height="100%;" class="table"> <table width="100%" height="100%;" class="table">
<tr> <tr>
<td style="width:200px;height: 100%;background: #000;float: left;"> <td style="width:200px;height: 100%;background: #fff;float: left;">
<div class="left_menu"> <div class="left_menu">
<? require(MANAGER_TEMPLATE_DIR_PATH . "/" . $layout_pages["left"]); ?> <? require(MANAGER_TEMPLATE_DIR_PATH . "/" . $layout_pages["left"]); ?>
</div> </div>
</td> </td>
<td class="rightWidth" style="position: relative;overflow-y: auto;overflow-x: hidden;"> <td class="rightWidth" style="position: relative;overflow-y: auto;overflow-x: hidden;">
<div class="right_content" style="position: absolute;top: 0;left: 0;bottom:0;"> <div class="right_content">
<? require(MANAGER_TEMPLATE_DIR_PATH . "/" . $layout_pages["right"]); ?> <iframe id="contentFrame" src="" scrolling="auto"/>
</div> </div>
</td> </td>
</tr> </tr>
</table> </table>
<script>
$(function(){
var clientHeight = document.body.clientHeight - 80;
$('.table').css('height',clientHeight)
var width = document.body.clientWidth-220;
$('.rightWidth').css('width',width)
})
</script>
<? <?
// フッター // 底部共同
require(MANAGER_TEMPLATE_DIR_PATH . "/" . $layout_pages["footer"]); require(MANAGER_TEMPLATE_DIR_PATH . "/" . $layout_pages["footer"]);
?> ?>
\ No newline at end of file
...@@ -7,6 +7,12 @@ ...@@ -7,6 +7,12 @@
* @package manager.templates * @package manager.templates
*/ */
?> ?>
<script type="text/javascript" src="scripts/vue.min.js" ></script>
<link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css">
<script src="https://unpkg.com/element-ui/lib/index.js"></script>
<script type="text/javascript" src="scripts/axios.min.js" ></script>
<style type="text/css"> <style type="text/css">
.viewbutton_used { .viewbutton_used {
color: #000 color: #000
...@@ -20,8 +26,21 @@ html,body{ ...@@ -20,8 +26,21 @@ html,body{
border-right: none!important; border-right: none!important;
} }
.el-menu-item{ .el-menu-item{
padding-left:0px!important;
text-align:center;
height: 45px !important; height: 45px !important;
line-height: 45px !important; line-height: 45px !important;
color: #000 !important;;
background:#fff !important;
}
.el-menu-item.is-active{
color: #fff !important;
background:#616161 !important;
}
.el-menu-item-group__title {
padding:0 !important;
border:1px solid #C1C1C1 !important;
} }
/*a{ /*a{
color: #000; color: #000;
...@@ -30,34 +49,9 @@ html,body{ ...@@ -30,34 +49,9 @@ html,body{
a:hover{ a:hover{
text-align: none; text-align: none;
} }
.el-menu-item.is-active{ */
color: #409EFF;!important
}*/
</style> </style>
<script type="text/javascript" src="scripts/vue.min.js" ></script>
<link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css">
<script src="https://unpkg.com/element-ui/lib/index.js"></script>
<script type="text/javascript" src="scripts/axios.min.js" ></script>
<!--<div id="menus" class="menus">
<div class="menu_title">信息设定</div>
<div class="menu_item" id="menu_info"><a href="#nogo">学校管理</a></div>
<div class="menu_item" id="menu_grade"><a href="grade_list.php">年级设定</a></div>
<div class="menu_item" id="menu_class"><a href="class_list.php">班级设定</a></div>
<div class="menu_title">审核管理</div>
<div class="menu_item" id="menu_organization"><a href="organization_list.php">机构认证</a></div>
<div class="menu_title">活动管理</div>
<div class="menu_item" id="menu_class"><a href="class_list.php">活动列表</a></div>
<div class="menu_item" id="menu_class"><a href="class_list.php">活动发布</a></div>
<div class="menu_item" id="menu_class"><a href="class_list.php">活动审核</a></div>
<div class="menu_title">系统设定</div>
<div class="menu_item" id="menu_account"><a href="government_list.php">厅县局管理</a></div>
<div class="menu_item" id="menu_account"><a href="account_list.php">账户管理</a></div>
<div class="menu_item" id="menu_account"><a href="system_const_list.php">常量设定</a></div>
</div>-->
<div id="leftMenu"> <div id="leftMenu">
<el-menu <el-menu
<?if(isset($layout_pages["menu_clicked"])){?> <?if(isset($layout_pages["menu_clicked"])){?>
...@@ -67,8 +61,8 @@ a:hover{ ...@@ -67,8 +61,8 @@ a:hover{
@open="handleOpen" @open="handleOpen"
@close="handleClose" @close="handleClose"
unique-opened="true" unique-opened="true"
background-color="#000" background-color="#f6f6f6"
text-color="#fff"> text-color="#000">
<el-submenu index="1"> <el-submenu index="1">
<template slot="title"> <template slot="title">
<i class="el-icon-menu"></i> <i class="el-icon-menu"></i>
...@@ -165,10 +159,12 @@ a:hover{ ...@@ -165,10 +159,12 @@ a:hover{
console.log(key, keyPath); console.log(key, keyPath);
}, },
fn11(){ fn11(){
window.location.href='school_list.php' $("#contentFrame").attr("src", 'school_list.php');
//window.location.href='school_list.php'
}, },
fn12(){ fn12(){
window.location.href='grade_list.php' $("#contentFrame").attr("src", 'grade_list.php');
//window.location.href='grade_list.php'
}, },
fn13(){ fn13(){
window.location.href='class_list.php' window.location.href='class_list.php'
......
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