Browse Source

初始架构

embed
IQ 2 years ago
parent
commit
9c532a1331
12 changed files with 3413 additions and 0 deletions
  1. +34
    -0
      admin/index.class.php
  2. +106
    -0
      admin/install.class.php
  3. +1
    -0
      admin/templates/css/appcheck.min.css
  4. +1212
    -0
      admin/templates/css/metinfo.css
  5. +1
    -0
      admin/templates/css/site.min.css
  6. +68
    -0
      admin/templates/footer.php
  7. +57
    -0
      admin/templates/header.php
  8. +1490
    -0
      admin/templates/index.php
  9. +310
    -0
      admin/templates/js/own.js
  10. +33
    -0
      web/index.class.php
  11. +10
    -0
      web/templates/met/css/metinfo.css
  12. +91
    -0
      web/templates/met/js/own.js

+ 34
- 0
admin/index.class.php View File

@ -0,0 +1,34 @@
<?php
defined('IN_MET') or exit ('No permission');
load::sys_class('admin');
class index extends admin
{
public function __construct()
{
global $_M;
parent::__construct();
ini_set("display_errors", "On");
error_reporting(E_ALL & ~E_NOTICE);
// 执行需要移动的文件处理
deldir('cache/templates');
// html样式
$_M['html_class'] = 'no-js css-menubar';
$_M['body_class'] = 'animsition site-navbar-small dashboard';
}
//应用入口
public function doindex()
{
global $_M;
$sys_json = parent::sys_json();
$data =array_merge([],$sys_json);
$this->view('app/index',$data);
}
}
?>

+ 106
- 0
admin/install.class.php View File

@ -0,0 +1,106 @@
<?php
defined('IN_MET') or exit ('No permission');
//2.0
class install
{
private $appno;
private $appver;
private $m_name;
private $m_class;
private $m_action;
private $appname;
private $info;
private $depend;
private $target;
private $display;
private $mlangok;
public function __construct() {
global $_M;
do{
$this->appno = mt_rand(2001,9999); //应用编号
} while (self::sqlone('applist') != false);
$this->appver = '1.0'; //应用版本号
$this->m_name = 'metremark';
$this->m_class = 'index';
$this->m_action = 'doindex';
$this->appname = 'Remark UI 融入米拓'; //应用名称
$this->info = 'Remark UI 融入米拓调试测试页面'; //应用描述
$this->depend = ''; //应用依赖
$this->target = 1; //是否支新窗口打开
$this->display = 1; //是否显示应用图标
$this->mlangok = 1; //是否支持多语言
}
//安装主方法
public function dosql() {
global $_M;
$stall = self::sqlone('applist'," m_name='{$this->m_name}' ");
if(!$stall){
//系统表
self::appsql();
}else{
}
return 'complete';
}
//执行APP相关的表数据插入
private function appsql() {
global $_M;
$time = time();
//注册应用
$field = "
`no`='{$this->appno}',
`ver` = {$this->appver},
`m_name` = '{$this->m_name}',
`m_class`='{$this->m_class}',
`m_action`='{$this->m_action}',
`appname`='{$this->appname}',
`info`='{$this->info}',
`addtime`='{$time}',
`updatetime`='{$time}',
`target`='{$this->target}',
`display`='{$this->display}',
`depend`='{$this->depend}',
`mlangok`='{$this->mlangok}' ";
self::addsql('applist',$field);
/**
* 1、增加新表
* name 配置名称
* id 添加信息自动增加,
* value 配置名称值
* lang 语言[后台]
**/
$field = " `id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(150) NOT NULL,
`m_name` varchar(100) NOT NULL,
`value` text,
`lang` varchar(50) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `name_lang` (`name`,`m_name`,`lang`)";
DB::query("CREATE TABLE `".$_M['config']['tablepre']."cloud_config` ( {$field} ) ENGINE=MyISAM AUTO_INCREMENT=5 DEFAULT CHARSET=utf8");
add_table('cloud_config');
}
//公共查询方法
private function sqlone($tname,$where = '') {
global $_M;
$table = $_M['table'][$tname];
if(!$where){
$where = "no='{$this->appno}'";
}
return DB::get_one("select * from {$table} where {$where}");
}
//公共写入方法
private function addsql($tname,$field = '') {
global $_M;
$table = $_M['table'][$tname];
DB::query("INSERT INTO {$table} SET {$field}");
}
}
?>

+ 1
- 0
admin/templates/css/appcheck.min.css View File

@ -0,0 +1 @@
@charset "UTF-8";.appcheck .panel-info{border:1px solid #57c7d4;}.appcheck .topimg{text-align:left;display:inline-block;}.appcheck .topimg>div{float:left;}.appcheck .topimg .topimg-image{position:relative;margin-right:10px;}.appcheck .topimg .topimg-image .avatar{width:100px;}.appcheck .topimg .topimg-image .avatar img{border-radius:50%;border:1px solid #e4eaec;}.appcheck .img-bordered-info{border-color:#79D1C9!important;}.appcheck .topimg .topimg-body>span{display:block;font-size:1rem;}.appcheck .topimg .topimg-body .topimg-author{font-size:20px;font-weight:600;}.appcheck .topimg .topimg-body .topimg-company{opacity:.8;}.appcheck .list-group .media .media-heading{font-size:1.1rem;color:#37474f;}.appcheck .list-group li h4{font-weight:600;}.appcheck .media-body small{font-size:98%;color:#76838f;}.appcheck .loader-circle{width:0.45em;height:0.45em;border-width:.08em;}.appcheck .icon{margin-right:0px;font-size:20px;}.appcheck .icon.fa-check-circle{color:#46be8a;}.appcheck .icon.fa-times-circle{color:#f96868;}.appcheck .icon.fa-exclamation-circle{color:#f2a654;}.appcheck .icon.fa-clock-o{color:#ccd5db;}.appcheck .modal{background:rgba(0,0,0,.8);}.appcheck .modal .close{opacity:1;font-weight:900;font-size:1.9rem;}.appcheck .modal .close:focus,.appcheck .modal .close:hover{cursor:pointer;text-decoration:none;opacity:.5;}.appcheck .modal .modal-header{border-bottom:1px solid #e4eaec;}.appcheck .modal .modal-footer{padding:15px 20px;border-top:1px solid #e4eaec;}.appcheck .modal .modal-body .ov-body{overflow-y:auto;}.appcheck .modal .ov-body span{color:#76838f;}

+ 1212
- 0
admin/templates/css/metinfo.css
File diff suppressed because it is too large
View File


+ 1
- 0
admin/templates/css/site.min.css
File diff suppressed because it is too large
View File


+ 68
- 0
admin/templates/footer.php View File

@ -0,0 +1,68 @@
<?php
# MetInfo Enterprise Content Management System
# Copyright (C) MetInfo Co.,Ltd (http://www.metinfo.cn). All rights reserved.
defined('IN_MET') or exit('No permission');
// 获取内容修改的时间戳提供给js
$basic_admin_js_time = filemtime(PATH_STATIC.'js/basic_admin.js');
$lang_json_admin_js_time = filemtime(PATH_WEB.'cache/lang_json_admin_'.$_M['lang'].'.js');
?>
</body>
<script>window.MET={$data['met_para']};</script>
<script src="{$url.static_new}js/basic_admin.js?{$basic_admin_js_time}"></script>
<script src="{$url.site}cache/lang_json_admin_{$_M['langset']}.js?{$lang_json_admin_js_time}"></script>
<!-- Core -->
<script src="http://www.cui.com/classic/global/vendor/babel-external-helpers/babel-external-helpers.js"></script>
<script src="http://www.cui.com/classic/global/vendor/jquery/jquery.js"></script>
<script src="http://www.cui.com/classic/global/vendor/popper-js/umd/popper.min.js"></script>
<script src="http://www.cui.com/classic/global/vendor/bootstrap/bootstrap.js"></script>
<script src="http://www.cui.com/classic/global/vendor/animsition/animsition.js"></script>
<script src="http://www.cui.com/classic/global/vendor/mousewheel/jquery.mousewheel.js"></script>
<script src="http://www.cui.com/classic/global/vendor/asscrollbar/jquery-asScrollbar.js"></script>
<script src="http://www.cui.com/classic/global/vendor/asscrollable/jquery-asScrollable.js"></script>
<script src="http://www.cui.com/classic/global/vendor/ashoverscroll/jquery-asHoverScroll.js"></script>
<!-- Plugins -->
<script src="http://www.cui.com/classic/global/vendor/switchery/switchery.js"></script>
<script src="http://www.cui.com/classic/global/vendor/intro-js/intro.js"></script>
<script src="http://www.cui.com/classic/global/vendor/screenfull/screenfull.js"></script>
<script src="http://www.cui.com/classic/global/vendor/slidepanel/jquery-slidePanel.js"></script>
<!-- Scripts -->
<script src="http://www.cui.com/classic/global/js/Component.js"></script>
<script src="http://www.cui.com/classic/global/js/Plugin.js"></script>
<script src="http://www.cui.com/classic/global/js/Base.js"></script>
<script src="http://www.cui.com/classic/global/js/Config.js"></script>
<script src="http://www.cui.com/classic/base/assets/js/Section/Menubar.js"></script>
<script src="http://www.cui.com/classic/base/assets/js/Section/GridMenu.js"></script>
<script src="http://www.cui.com/classic/base/assets/js/Section/Sidebar.js"></script>
<script src="http://www.cui.com/classic/base/assets/js/Section/PageAside.js"></script>
<script src="http://www.cui.com/classic/base/assets/js/Plugin/menu.js"></script>
<script src="http://www.cui.com/classic/global/js/config/colors.js"></script>
<script src="http://www.cui.com/classic/base/assets/js/config/tour.js"></script>
<script>Config.set('assets', '../assets');</script>
<!-- Page -->
<script src="http://www.cui.com/classic/base/assets/js/Site.js"></script>
<script src="http://www.cui.com/classic/global/js/Plugin/asscrollable.js"></script>
<script src="http://www.cui.com/classic/global/js/Plugin/slidepanel.js"></script>
<script src="http://www.cui.com/classic/global/js/Plugin/switchery.js"></script>
<script>
(function (document, window, $) {
'use strict';
var Site = window.Site;
$(document).ready(function () {
Site.run();
});
})(document, window, jQuery);
</script>
</html>

+ 57
- 0
admin/templates/header.php View File

@ -0,0 +1,57 @@
<?php
# MetInfo Enterprise Content Management System
# Copyright (C) MetInfo Co.,Ltd (http://www.metinfo.cn). All rights reserved.
defined('IN_MET') or exit('No permission');
// 获取上次修改的时间戳给css
$basic_admin_css_filemtime = filemtime(PATH_STATIC.'css/basic_admin.css');
$met_title.='-'.$word['metinfo'];
$synchronous=$_M['langlist']['admin'][$_M['langset']]['synchronous'];
?>
<!DOCTYPE HTML>
<html class="{$html_class}">
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit">
<meta name="robots" content="noindex,nofllow">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0,minimal-ui">
<meta name="format-detection" content="telephone=no">
<title data-title="{$word.metinfo}">{$met_title}</title>
<meta name="generator" content="MetInfo {$c.metcms_v}" data-variable="{$url.site}|{$_M['lang']}|{$synchronous}|{$c.met_skin_user}||||">
<link href="{$url.site}favicon.ico" rel="shortcut icon" type="image/x-icon">
<link href="{$url.static_new}css/basic_admin.css?{$basic_admin_css_filemtime}" rel='stylesheet' type='text/css'>
<!--['if lte IE 9']>
<script src="{$url.static_new}js/lteie9.js"></script>
<!['endif']-->
</head>
<!--['if lte IE 9']>
<div class="text-center mb-0 bg-danger alert">
<button type="button" class="close" data-dismiss="alert">
<span aria-hidden="true">×</span>
</button>
{$word.browserupdatetips}
</div>
<!['endif']-->
<!-- Stylesheets -->
<!--<link rel="stylesheet" href="http://www.cui.com/classic/global/css/bootstrap.min.css">-->
<link rel="stylesheet" href="http://www.cui.com/classic/global/css/bootstrap-extend.min.css">
<link rel="stylesheet" href="http://www.cui.com/classic/base/assets/css/site.min.css">
<!-- Plugins -->
<link rel="stylesheet" href="http://www.cui.com/classic/global/vendor/animsition/animsition.css">
<link rel="stylesheet" href="http://www.cui.com/classic/global/vendor/asscrollable/asScrollable.css">
<link rel="stylesheet" href="http://www.cui.com/classic/global/vendor/switchery/switchery.css">
<link rel="stylesheet" href="http://www.cui.com/classic/global/vendor/intro-js/introjs.css">
<link rel="stylesheet" href="http://www.cui.com/classic/global/vendor/slidepanel/slidePanel.css">
<link rel="stylesheet" href="http://www.cui.com/classic/global/vendor/flag-icon-css/flag-icon.css">
<!-- Fonts -->
<link rel="stylesheet" href="http://www.cui.com/classic/global/fonts/web-icons/web-icons.min.css">
<link rel="stylesheet" href="http://www.cui.com/classic/global/fonts/brand-icons/brand-icons.min.css">
<link rel='stylesheet' href='http://fonts.googleapis.com/css?family=Roboto:300,400,500,300italic'>
<script src="http://www.cui.com/classic/global/vendor/breakpoints/breakpoints.js"></script>
<script>
Breakpoints();
</script>
<body class="{$body_class}">

+ 1490
- 0
admin/templates/index.php
File diff suppressed because it is too large
View File


+ 310
- 0
admin/templates/js/own.js View File

@ -0,0 +1,310 @@
/*!
* M['weburl'] 网站网址
* M['lang'] 网站语言
* M['tem'] 模板目录路径
* M['user_name'] 页面登录用户名
* met_prevarrow,
met_nextarrow slick插件翻页按钮自定义html
* M['device_type'] 客户端判断dPC端t平板端m手机端
* M['n'] 当前模块名称
* M['c'] 当前类
* M['a'] 当前方法
* M['langtxt'] 当前语言文字
* M['langset'] 当前后台语言
* M['anyid'] 当前模块id
* M['met_editor'] 当前系统编辑器名称
* M['met_keywords'] 页面关键词
* M['url']['admin'] 后台文件夹路径
* M['url']['static']
* M['url']['static_vendor']
* M['url']['static2']
* M['url']['static2_vendor']
* M['url']['static2_plugin']
* M['url']['uiv2'] 模板框架v2路径
* M['url']['uiv2_css']
* M['url']['uiv2_js']
* M['url']['app'] 应用文件夹路径
* M['url']['pub'] 后台模块公用文件夹路径
* M['url']['epl'] 后台模块公用示例文件夹路径
* M['url']['ui'] 应用前后台公用UI文件app/system/include/piblic/ui/里面
* M['url']['own_form'] 当前页面程序地址
* M['url']['own_name'] 当前模块地址
* M['url']['own'] 当前模块后台路径
* M['url']['own_tem'] 当前页面模板路径
* M['url']['api'] app站点地址
* M['url']['editor'] 当前编辑器应用文件夹路径
*/
$(function(){
// var myDate=new Date().getTime()
// $.include(M.url.own_tem + 'js/appcheck.min.js?'+myDate);
//
// $.ajax({
// type: "GET",
// url: M.url.own_name + 'c=ajax&a=doajaxcl&lang=' + M['langset'],
// dataType: "jsonp",
// async: false
// }).done(function (data) {
// CL = data;
// });
//
// var appfun = function () {
// var $self = this;
// //有序表处理
// $.getJSON(M.url.own_name + 'c=ajax&a=dosequence&lang=' + M['langset'],{},function(json){});
// //select2
// if($('[data-plugin="select2"]').length) $self.select2(true);
// //排期广告位选择
// if($('.add_ap_list').length) $.include(M.url.own_tem + 'js/applan.js?'+myDate);
// //表格重绘后回调
// $('#tableslist').on( 'draw.dt', function ( e,settings ) {
// if($('[data-plugin="alertify"]').length) $self.select2(false);
// })
// //单个时间初始化
// if($('[data-plugin="alonetime"]').length) $self.alonetime();
// //时间区段选择
// if($('[data-plugin="datetosearch"]').length) $self.datepicker();
// //导出功能
// $(document).on('click','.backups',function (event) {
// var my = $(this);
// event.preventDefault();
// my.parents('form').metSubmit(0);
// var obj = my.parents("form").serialize();
// var href = my.data('url');
// window.location.href = href + '&' + obj;
// })
// //表格底部自定义按钮
// $(document).on('click','[table-zdybtn]',function (event) {
// var my = $(this),
// $form = my.parents('form'),
// typestr = my.data('submit_type');
// event.preventDefault();
// $self.ownsubmit($form,typestr);
// if(my.data('plugin') != 'alertify'){
// $form.submit();
// return true;
// }
// })
// //排序功能
// if($('a.orderby-link').length) $self.orders();
// //状态更改
// // http://bsify.admui.com/alertify/ 中文说明
// $(document).on('click','.btn-cursor-pointer', function () {
// var self = $(this);
// $.include(M['url']['static2_vendor'] + 'alertify/alertify.js', function () {
// alertify
// .okBtn("确定")
// .cancelBtn("取消")
// .confirm('确定更改状态吗?',function () {
// $.getJSON(self.data('href'), function(json){
// window.location.reload();
// })
// })
// })
// });
// };
//
// appfun.prototype = {
// isEmpty: function (val) {
// switch (typeof val) {
// case 'undefined':
// return true;
// case 'string':
// if (val.replace(/(^[ \t\n\r]*)|([ \t\n\r]*$)/g, '').length == 0)
// return true;
// break;
// case 'boolean':
// if (!val)
// return true;
// break;
// case 'number':
// if (0 === val || isNaN(val))
// return true;
// break;
// case 'object':
// if (null === val || val.length === 0)
// return true;
// for (var i in val) {
// return false;
// }
// return true;
// }
// return false;
// },
// select2:function(drawdt){
// // drawdt true 执行默认操作 false 不执行
// var $self = this,select = [];
// //选择器
// M['plugin']['select2'] = [
// M['url']['static2_vendor'] + 'select2/select2.min.css',
// M['url']['static2_vendor'] + 'select2/select2.full.min.js',
// M['url']['static2_vendor'] + 'select2/i18n/zh-CN.js',
// ];
// $.include(M['plugin']['select2'],function(){
// $('[data-plugin="select2"]').each(function(indexs,item){
// var _self = $(this),
// defaults = _self.data('default'),
// select2url = _self.data('select2-url') + '&'+ myDate;
//
// select[indexs] = _self.select2({
// placeholder: '输入搜索内容', //提示语
// ajax: {
// url: select2url,
// dataType: 'jsonp',
// delay: 500,
// data: function (params) {
// return {
// querys: params.term, //search term
// tname: _self.data('tname'), //指定简短表
// fiend: _self.data('fiend'), //指定字段值
// allnone: _self.data('allnone'), //是否只显示应用的值
// source: _self.data('source'), //查看来源标记
// condition: _self.data('condition') //查询限制条件
// };
// },
// results: function (data, page) {
// return {results: data.results};
// }
// }
// });
//
// //默认值处理
// if(!$self.isEmpty(defaults) && drawdt == true){
// $.getJSON(
// select2url,
// {
// tname: _self.data('tname'), //指定简短表
// fiend: _self.data('fiend'), //指定字段值
// allnone: _self.data('allnone'), //是否只显示应用的值
// source: _self.data('source'), //查看来源标记
// condition: _self.data('condition'), //查询限制条件
// default: defaults, //默认值
// division: _self.data('division') //默认值分隔符
// },
// function(obj){
// $.each(obj.results, function(index, ele) {
// $.each(ele.children, function(indexop, eleop) {
// var option = new Option(eleop.text, eleop.id, true, true);
// select[indexs].append(option).trigger('change');
// })
// });
// }
// )
// }
//
// });
// });
// },
// datepicker:function(){
// var $self = this;
// M['plugin']['datetimepicker']=[
// M['url']['epl']+'time/jquery.datetimepicker.css',
// M['url']['epl']+'time/jquery.datetimepicker.js'
// ];
// $.include(M['plugin']['datetimepicker'], function () {
// var starttime = $('#date_timepicker_start'),
// endtime = $('#date_timepicker_end');
// starttime.datetimepicker({
// lang:M.synchronous=='cn'?'ch':'en',
// timepicker:starttime.attr("data-day-type")==2?true:false,
// format:starttime.attr("data-day-type")==2?'Y-m-d H:i:s':'Y-m-d',
//// value:starttime.val()?starttime.val():'',
//// onShow:function( ct ){
//// this.setOptions({
//// maxDate:endtime.val()?endtime.val():false
//// })
//// },
// onSelectDate:function(ct,$i){
// $self.tableaajx(starttime);
// }
// });
// endtime.datetimepicker({
// lang:M.synchronous=='cn'?'ch':'en',
// timepicker:endtime.attr("data-day-type")==2?true:false,
// format:endtime.attr("data-day-type")==2?'Y-m-d H:i:s':'Y-m-d',
//// value:endtime.val()?endtime.val():'',
//// onShow:function( ct ){
//// this.setOptions({
//// minDate:starttime.val()?starttime.val():false
//// })
//// },
// onSelectDate:function(ct,$i){
// $self.tableaajx(endtime);
// }
// });
// })
// },
// alonetime:function(){
// var $self = this;
// M['plugin']['datetimepicker']=[
// M['url']['epl']+'time/jquery.datetimepicker.css',
// M['url']['epl']+'time/jquery.datetimepicker.js'
// ];
// $.include(M['plugin']['datetimepicker'], function () {
// var alonetime = $('[data-plugin="alonetime"]');
// alonetime.datetimepicker({
// lang:M.synchronous=='cn'?'ch':'en',
// timepicker:alonetime.attr("data-day-type")==2?true:false,
// format:alonetime.attr("data-day-type")==2?'Y-m-d H:i:s':'Y-m-d',
// onSelectDate:function(ct,$i){
// $self.tableaajx(alonetime);
// }
// });
// });
// },
// tableaajx:function(timedom){
// if(typeof datatable != 'undefined'){
// var $this_datatable=timedom.parents('.dataTable'),
// datatable_index=$this_datatable.index('.dataTable');
// if(datatable_index<0) datatable_index=0;
// datatable[datatable_index].ajax.reload();
// }
// },
// orders:function(){
// var $self = this;
// $(document).on('click','a.orderby-link',function (event) {
// var $this = $(this), arrow = $this.find(".orderby-arrow");
// if(arrow.length){
// if($this.find(".desc").length){
// $self.orderby($this,'asc');
// }else{
// //还原
// $self.orderby($this,'');
// }
// }else{
// $self.orderby($this,'desc');
// }
// });
// },
// orderby(dom,type){
// var $self = this;
// //清楚所有排序
// $("a.orderby-link").find(".orderby-arrow").remove();
// $("a.orderby-link").next().val('');
// //操作当前排序
// if(type) dom.append('<span class="orderby-arrow '+type+'"></span>');
// dom.next().val(type);
// $self.tableaajx(dom);
// },
// ownsubmit:function($form,typestr){
// // 插入submit_type字段
// if($form.find('[name="submit_type"]').length) $form.append('<input type="hidden" name="submit_type" value=""/>');
// $form.find('[name="submit_type"]').val(typestr);
// // 插入表格的all_id字段
// if($form.find('.dataTable').length){
// var $table = $form.find('.dataTable'),
// $checkbox = $table.find('tbody input[type="checkbox"][name="id"]:checked'),
// all_id='';
// $checkbox.each(function(index, el) {
// all_id += all_id?','+$(this).val():$(this).val();
// })
// if(!$form.find('[name="all_id"]').length) $form.append('<input type="hidden" name="all_id"/>');
// $form.find('[name="all_id"]').val(all_id);
// }
// }
// };
//
// APPFUN = new appfun();
//
// //缓存
// $.ajaxSetup({cache:false});
});

+ 33
- 0
web/index.class.php View File

@ -0,0 +1,33 @@
<?php
defined('IN_MET') or exit ('No permission');
load::sys_class('web');
class index extends web
{
public function __construct()
{
global $_M;
parent::__construct();
ini_set("display_errors", "On");
error_reporting(E_ALL & ~E_NOTICE);
}
//应用入口
public function doindex()
{
global $_M;
$_M['url']['site'] = '';//首页使用相对路径
load::mod_class('user/user_url', 'new')->insert_m(); //首页重新给会员链接赋值
$_M['config']['met_weburl'] = '';
$title = $_M['config']['met_hometitle'] ? $_M['config']['met_hometitle'] : $_M['config']['met_webname'] . '-' . $_M['config']['met_keywords'];
$this->seo_title($title);
$this->view('app/index', $this->input);
}
}
?>

+ 10
- 0
web/templates/met/css/metinfo.css View File

@ -0,0 +1,10 @@
/*
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
*/
/*
Created on : 2019年10月30日, 下午5:37:38
Author : IQ
*/

+ 91
- 0
web/templates/met/js/own.js View File

@ -0,0 +1,91 @@
/*!
* M['weburl'] 网站网址
* M['lang'] 网站语言
* M['tem'] 模板目录路径
* M['user_name'] 页面登录用户名
* met_prevarrow,
met_nextarrow slick插件翻页按钮自定义html
* M['device_type'] 客户端判断dPC端t平板端m手机端
* M['n'] 当前模块名称
* M['c'] 当前类
* M['a'] 当前方法
* M['langtxt'] 当前语言文字
* M['langset'] 当前后台语言
* M['anyid'] 当前模块id
* M['met_editor'] 当前系统编辑器名称
* M['met_keywords'] 页面关键词
* M['url']['admin'] 后台文件夹路径
* M['url']['static']
* M['url']['static_vendor']
* M['url']['static2']
* M['url']['static2_vendor']
* M['url']['static2_plugin']
* M['url']['uiv2'] 模板框架v2路径
* M['url']['uiv2_css']
* M['url']['uiv2_js']
* M['url']['app'] 应用文件夹路径
* M['url']['pub'] 后台模块公用文件夹路径
* M['url']['epl'] 后台模块公用示例文件夹路径
* M['url']['ui'] 应用前后台公用UI文件app/system/include/piblic/ui/里面
* M['url']['own_form'] 当前页面程序地址
* M['url']['own_name'] 当前模块地址
* M['url']['own'] 当前模块后台路径
* M['url']['own_tem'] 当前页面模板路径
* M['url']['api'] app站点地址
* M['url']['editor'] 当前编辑器应用文件夹路径
*/
$(function () {
var appfun = function () {
var self = this;
if(self.isEmpty(M['n'])) M['n'] = $('div[data-m_name]').data('m_name');
self.own_name = $('div[data-own_name]').data('own_name');
self.config();
};
appfun.prototype = {
config:function(){
var self = this;
$.ajax({
type: "GET",
url: self.own_name + 'c=index&a=doajaxcl&lang=' + M['lang'],
dataType: "jsonp",
async: false
}).done(function (data) {
CL = data;
});
},
isEmpty: function (val) {
switch (typeof val) {
case 'undefined':
return true;
case 'string':
if (val.replace(/(^[ \t\n\r]*)|([ \t\n\r]*$)/g, '').length == 0)
return true;
break;
case 'boolean':
if (!val)
return true;
break;
case 'number':
if (0 === val || isNaN(val))
return true;
break;
case 'object':
if (null === val || val.length === 0)
return true;
for (var i in val) {
return false;
}
return true;
}
return false;
}
};
APPFUN = new appfun();
//缓存
$.ajaxSetup({cache: false});
});

Loading…
Cancel
Save