diff --git a/README.md b/README.md index 2aaa726..03fbdff 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,3 @@ # metremark -米拓内的Remark版本调试 \ No newline at end of file +Remark UI 融入米拓7.0调试测试页面 \ No newline at end of file diff --git a/admin/index.class.php b/admin/index.class.php index 68697e9..a620aa2 100644 --- a/admin/index.class.php +++ b/admin/index.class.php @@ -16,8 +16,8 @@ class index extends admin deldir('cache/templates'); // html样式 - $_M['html_class'] = 'no-js css-menubar'; - $_M['body_class'] = 'animsition site-navbar-small dashboard'; +// $_M['html_class'] = 'no-js css-menubar'; +// $_M['body_class'] = 'animsition site-navbar-small dashboard'; } //应用入口 diff --git a/admin/install.class.php b/admin/install.class.php index 96f5154..427343d 100644 --- a/admin/install.class.php +++ b/admin/install.class.php @@ -25,8 +25,8 @@ class install $this->m_name = 'metremark'; $this->m_class = 'index'; $this->m_action = 'doindex'; - $this->appname = 'Remark UI 融入米拓'; //应用名称 - $this->info = 'Remark UI 融入米拓调试测试页面'; //应用描述 + $this->appname = 'Remark UI 融入米拓7.0'; //应用名称 + $this->info = 'Remark UI 融入米拓7.0调试测试页面'; //应用描述 $this->depend = ''; //应用依赖 $this->target = 1; //是否支新窗口打开 $this->display = 1; //是否显示应用图标 diff --git a/admin/templates/footer.php b/admin/templates/footer.php index 022038a..32ac7c1 100644 --- a/admin/templates/footer.php +++ b/admin/templates/footer.php @@ -13,43 +13,43 @@ $lang_json_admin_js_time = filemtime(PATH_WEB.'cache/lang_json_admin_'.$_M['lang - - - - - - - - - + + + + + + + + + - - - - + + + + - - - - + + + + - - - - - + + + + + - - + + - - - - + + + + + diff --git a/admin/templates/js/metremark.js b/admin/templates/js/metremark.js new file mode 100644 index 0000000..8e31998 --- /dev/null +++ b/admin/templates/js/metremark.js @@ -0,0 +1,3 @@ +$(function(){ + alert('dd88'); +}); \ No newline at end of file diff --git a/admin/templates/js/own.js b/admin/templates/js/own.js index 38e7195..6f23a20 100644 --- a/admin/templates/js/own.js +++ b/admin/templates/js/own.js @@ -35,276 +35,5 @@ * 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(''); -// dom.next().val(type); -// $self.tableaajx(dom); -// }, -// ownsubmit:function($form,typestr){ -// // 插入submit_type字段 -// if($form.find('[name="submit_type"]').length) $form.append(''); -// $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(''); -// $form.find('[name="all_id"]').val(all_id); -// } -// } -// }; -// -// APPFUN = new appfun(); -// -// //缓存 -// $.ajaxSetup({cache:false}); + alert('dd'); });