信呼OA版本v2.3.8
This commit is contained in:
12
webmain/index/iframe/rock_iframe.php
Normal file
12
webmain/index/iframe/rock_iframe.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<?php defined('HOST') or die('not access');?>
|
||||
<script >
|
||||
$(document).ready(function(){
|
||||
{params}
|
||||
var url = jm.base64decode(params.url);
|
||||
get('iframe{rand}').src = url;
|
||||
$('#iframediv{rand}').css('height',''+(viewheight-20)+'px');
|
||||
});
|
||||
</script>
|
||||
<div style="height:200px" id="iframediv{rand}">
|
||||
<iframe src="" id="iframe{rand}" width="100%" height="100%" frameborder="0"></iframe>
|
||||
</div>
|
||||
309
webmain/index/indexAction.php
Normal file
309
webmain/index/indexAction.php
Normal file
@@ -0,0 +1,309 @@
|
||||
<?php
|
||||
class indexClassAction extends Action{
|
||||
|
||||
public $homestylebool = false;
|
||||
|
||||
public function defaultAction()
|
||||
{
|
||||
if(strlen(getconfig('randkey'))!=26)exit('配置文件randkey不正确,请重新设置为:'.$this->jm->getRandkey().'');
|
||||
|
||||
$homestyle = getconfig('homestyle');
|
||||
if($homestyle>=1 && !$this->homestylebool){
|
||||
$temshot = $this->getsession('homestyle');
|
||||
if(!$temshot){
|
||||
$urlt = '?a=home';
|
||||
if($homestyle==2)$urlt = '?a=new';
|
||||
$this->rock->location($urlt);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
$afrom = $this->get('afrom');
|
||||
$this->tpltype = 'html';
|
||||
$my = $this->db->getone('[Q]admin', "`id`='$this->adminid' and `status`=1",'`face`,`id`,`name`,`ranking`,`deptname`,`deptallname`,`type`,`style`,`user`');
|
||||
if(!$my)return '登录用户不存在了,<a href="?m=login&a=exit">重新登录</a>';
|
||||
$allmenuid = m('sjoin')->getuserext($this->adminid, $my['type']);
|
||||
m('dept')->online(1);
|
||||
$mewhere = '';
|
||||
$isadmin = 1;
|
||||
$myext = $allmenuid;
|
||||
if($myext != '-1'){
|
||||
$isadmin = 0;
|
||||
$mewhere = ' and `id` in('.str_replace(array('[',']'), array('',''), $myext).')';
|
||||
}
|
||||
if($this->adminid!=1)$mewhere.=' and `type`=0';
|
||||
|
||||
$this->rock->savesession(array(
|
||||
'adminallmenuid' => $allmenuid,
|
||||
'isadmin' => $isadmin,
|
||||
'homestyle' => 'rock',
|
||||
'adminuser' => $my['user']
|
||||
));
|
||||
$this->smartydata['adminuser'] = $my['user'];
|
||||
$this->smartydata['topmenu'] = m('menu')->getall("`pid`=0 and `status`=1 $mewhere order by `sort`");
|
||||
$homeurl = $this->jm->base64decode($this->get('homeurl'));
|
||||
$homename = $this->jm->base64decode($this->get('homename'));
|
||||
$menuid = (int)$this->jm->base64decode($this->get('menuid'));
|
||||
$showkey = $this->jm->base64encode($this->jm->getkeyshow());
|
||||
if($menuid<1)$menuid = '';
|
||||
if($homeurl=='')$showkey = '';
|
||||
if(!isempt($homeurl) && isempt($menuid))return '无权限打开['.$homename.']的页面1';
|
||||
if(!isempt($menuid) && $isadmin==0){
|
||||
if(!contain($myext,'['.$menuid.']'))return '无权限打开['.$homename.']的页面2';
|
||||
}
|
||||
$this->smartydata['showkey'] = $showkey;
|
||||
$this->smartydata['homeurl'] = $homeurl;
|
||||
$this->smartydata['homename'] = $homename;
|
||||
$this->smartydata['admintype'] = $isadmin;
|
||||
$this->smartydata['my'] = $my;
|
||||
$this->smartydata['afrom'] = $afrom;
|
||||
$this->smartydata['face'] = $this->rock->repempt($my['face'], 'images/noface.png');
|
||||
if(!isempt($homename))$this->title = $homename;
|
||||
|
||||
//样式主题处理
|
||||
$strs = explode(',', ',cerulean,cosmo,cyborg,darkly,flatly,journal,lumen,paper,readable,sandstone,simplex,slate,spacelab,superhero,united,xinhu,yeti');
|
||||
$zys = count($strs)-1;
|
||||
$style= (int)$this->rock->repempt($my['style'], '0');//默认样式
|
||||
$styys= 'inverse';
|
||||
$this->smartydata['style'] = $style;
|
||||
if($style==0)$style = (int)getconfig('defstype','1');//默认的主题皮肤
|
||||
if($style>$zys){
|
||||
$styys= 'default';
|
||||
$style= $style-$zys;
|
||||
}
|
||||
$stylecs1 = 'mode/bootstrap3.3/css/bootstrap';
|
||||
$stylecss = ''.$stylecs1.'_'.$strs[$style].'.css';
|
||||
if(!file_exists($stylecss))$stylecss= ''.$stylecs1.'_cerulean.css';
|
||||
$this->smartydata['stylecss'] = $stylecss;
|
||||
$this->smartydata['styledev'] = $styys;
|
||||
|
||||
//读取单位
|
||||
$this->smartydata['logo'] = 'images/xh829.png';
|
||||
$this->smartydata['icon'] = 'favicon.ico';
|
||||
$companyinfo = false;
|
||||
if(COMPANYNUM)$companyinfo = m('company')->getone(1);
|
||||
if(ISMORECOM)$companyinfo = m('admin')->getcompanyinfo($this->adminid, 1);
|
||||
if($companyinfo){
|
||||
$this->title = $companyinfo['name'];
|
||||
if(!isempt($companyinfo['oaname']))$this->title = $companyinfo['oaname'];
|
||||
if(!isempt($companyinfo['logo'])){
|
||||
$this->smartydata['logo'] = $companyinfo['logo'];
|
||||
$this->smartydata['icon'] = $this->smartydata['logo'];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public function newAction()
|
||||
{
|
||||
$this->homestylebool = true;
|
||||
$this->defaultAction();
|
||||
$stylecss = 'mode/bootstrap3.3/css/bootstrap4_default.css';
|
||||
$stylecss = 'mode/bootstrap3.3/css/bootstrap3_xinhuoa.css';
|
||||
if(!file_exists('webmain/index/tpl_index_new.html')){
|
||||
$this->displayfile = 'webmain/index/tpl_index.html';
|
||||
}else{
|
||||
$_ysts = $this->smartydata['stylecss'];
|
||||
if(contain($_ysts,'xinhu') || contain($_ysts,'cerulean'))$this->smartydata['stylecss'] = $stylecss;
|
||||
}
|
||||
}
|
||||
|
||||
public function homeAction()
|
||||
{
|
||||
$this->homestylebool = true;
|
||||
$this->defaultAction();
|
||||
$homewidth = getconfig('homewidth');
|
||||
if(!$homewidth)$homewidth='1300px';
|
||||
$this->smartydata['homewidth']= $homewidth;
|
||||
$this->smartydata['beijing'] = $this->option->getval('beijing_'.$this->adminid.'','images/beijing/bj0.jpg');
|
||||
if(!file_exists('webmain/index/tpl_index_home.html'))$this->displayfile = 'webmain/index/tpl_index.html';
|
||||
}
|
||||
|
||||
public function testnetAction()
|
||||
{
|
||||
$curl = c('curl');
|
||||
$url = 'https://www.baidu.com/';
|
||||
$cont = $curl->getcurl($url);
|
||||
if(contain($cont,'http')){
|
||||
echo '可以访问地址:'.$url.'<br>';
|
||||
}else{
|
||||
echo '无法访问地址:'.$url.'<br>';
|
||||
}
|
||||
$url = 'http://www.rockoa.com/';
|
||||
$cont = $curl->getcurl($url);
|
||||
if(contain($cont,'http')){
|
||||
echo '可以访问地址:'.$url.'<br>';
|
||||
}else{
|
||||
echo '无法访问地址:'.$url.'<br>';
|
||||
}
|
||||
return '测试完成';
|
||||
}
|
||||
|
||||
public function phpinfoAction()
|
||||
{
|
||||
$this->display = false;
|
||||
phpinfo();
|
||||
}
|
||||
|
||||
private function menuwheres()
|
||||
{
|
||||
$this->menuwhere = '';
|
||||
$myext = $this->getsession('adminallmenuid');
|
||||
if(isempt($myext))$myext = '0';
|
||||
if($myext != '-1'){
|
||||
$this->menuwhere = ' and `id` in('.str_replace(array('[',']'), array('',''), $myext).')';
|
||||
}
|
||||
if($this->adminid!=1)$this->menuwhere.=' and `type`=0';//非admin只能看普通菜单
|
||||
}
|
||||
|
||||
/**
|
||||
* 搜索菜单
|
||||
*/
|
||||
public function getmenusouAjax()
|
||||
{
|
||||
$key = $this->post('key');
|
||||
$this->menuwheres();
|
||||
$this->addmenu = m('menu')->getall("`status`=1 $this->menuwhere and `name` like '%$key%' and ifnull(`url`,'')<>'' order by `pid`,`sort` limit 10",'`id`,`num`,`url`,`icons`,`name`,`pid`');
|
||||
$arr = $this->getmenu(0, 1);
|
||||
$this->returnjson($arr);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取菜单
|
||||
*/
|
||||
public function getmenuAjax()
|
||||
{
|
||||
$pid = $this->get('pid');
|
||||
$loadci = (int)$this->get('loadci');
|
||||
$this->menuwheres();
|
||||
$this->addmenu = m('menu')->getall("`status`=1 $this->menuwhere order by `sort`,`id`",'`id`,`num`,`url`,`icons`,`name`,`pid`');
|
||||
$barr = array(
|
||||
'menuarr' => $this->getmenu($pid,0)
|
||||
);
|
||||
if($loadci==1)$barr['menutopid'] = $this->menutopid();
|
||||
return $barr;
|
||||
}
|
||||
private function getmenu($pid, $lx=0)
|
||||
{
|
||||
$menu = $this->addmenu;
|
||||
$rows = array();
|
||||
foreach($menu as $k=>$rs){
|
||||
if($lx == 0 && $pid != $rs['pid'])continue;
|
||||
$num = $rs['num'];
|
||||
$rs['bh'] = $num;
|
||||
$sid = $rs['id'];
|
||||
$icons = $rs['icons'];
|
||||
if(isempt($num))$num = 'num'.$sid;
|
||||
if(isempt($icons))$icons = 'bookmark-empty';
|
||||
$rs['icons'] = $icons;
|
||||
$rs['num'] = $num;
|
||||
if($lx == 0){
|
||||
$children = $this->getmenu($sid);
|
||||
$rs['children'] = $children;
|
||||
$rs['stotal'] = count($children);
|
||||
}else{
|
||||
$rs['stotal'] = 0;
|
||||
}
|
||||
$rows[] = $rs;
|
||||
}
|
||||
return $rows;
|
||||
}
|
||||
private function menutopid()
|
||||
{
|
||||
$pnuma = array();
|
||||
$gpar = array();
|
||||
foreach($this->addmenu as $k=>$rs)if($rs['pid']>0)$pnuma[$rs['id']]=$rs['pid'];
|
||||
foreach($this->addmenu as $k=>$rs){
|
||||
if($rs['pid']>0 && !isempt($rs['num'])){
|
||||
$pid = $rs['pid'];
|
||||
if(isset($pnuma[$pid])){
|
||||
$pid=$pnuma[$pid];
|
||||
if(isset($pnuma[$pid]))$pid=$pnuma[$pid];
|
||||
}
|
||||
$gpar[$rs['num']]=$pid;
|
||||
}
|
||||
}
|
||||
return $gpar;
|
||||
}
|
||||
|
||||
public function downAction()
|
||||
{
|
||||
$this->display = false;
|
||||
$id = (int)$this->jm->gettoken('id');
|
||||
m('file')->show($id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 单页显示
|
||||
*/
|
||||
public function showAction()
|
||||
{
|
||||
$url = $this->get('url');
|
||||
if($url=='')exit('无效请求');
|
||||
$this->defaultAction();
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取模版文件
|
||||
*/
|
||||
public function getshtmlAction()
|
||||
{
|
||||
$surl = $this->jm->base64decode($this->get('surl'));
|
||||
$num = $this->get('num');
|
||||
$menuname = $this->jm->base64decode($this->get('menuname'));
|
||||
if(isempt($surl))exit('not found');
|
||||
$file = ''.P.'/'.$surl.'.php';
|
||||
if(!file_exists($file))$file = ''.P.'/'.$surl.'.shtml';
|
||||
if(!file_exists($file))exit('404 not found '.$surl.'');
|
||||
if(contain($surl,'home/index/rock_index'))$this->showhomeitems();//首页的显示
|
||||
$this->displayfile = $file;
|
||||
//记录打开菜单日志
|
||||
if($num!='home' && getconfig('useropt')=='1')
|
||||
m('log')->addlog('打开菜单', '菜单['.$num.'.'.$menuname.']');
|
||||
}
|
||||
//显示桌面项目
|
||||
private function showhomeitems()
|
||||
{
|
||||
$rows = m('homeitems')->getmyshow();
|
||||
if(!$rows)$rows = json_decode('[{"num":"kjrk","row":"0","name":"快捷入口","sort":"0"},{"num":"gong","row":"0","name":"通知公告","sort":"1"},{"num":"kqdk","row":"0","name":"考勤打卡","sort":"2"},{"num":"gwwx","row":"0","receid":"u1","recename":"管理员","name":"微信办公","sort":"10"},{"num":"apply","row":"1","name":"我的申请","sort":"0"},{"num":"meet","row":"1","name":"今日会议","sort":"2"},{"num":"syslog","receid":"u1","recename":"管理员","row":"1","name":"系统日志","sort":"3"},{"num":"about","row":"1","receid":"u1","recename":"管理员","name":"关于信呼","sort":"10"}]', true);
|
||||
$homeitems = $homearrs = array();
|
||||
foreach($rows as $k=>$rs)$homearrs[] = $rs['num'];
|
||||
|
||||
foreach($rows as $k=>$rs){
|
||||
$bh = $rs['num'];
|
||||
if($bh != 'kjrko'){
|
||||
if(in_array('kjrko',$homearrs) && $bh == 'kjrk'){
|
||||
}else{
|
||||
$homeitems[$rs['row']][] = array(
|
||||
'num' => $bh,
|
||||
'name'=> $rs['name']
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
$this->assign('homeitems', $homeitems);
|
||||
$this->assign('homearrs', $homearrs);
|
||||
}
|
||||
|
||||
//开发时快速打开文件
|
||||
public function openfileAjax()
|
||||
{
|
||||
$file = $this->rock->jm->base64decode($this->get('file'));
|
||||
$str = ''.ROOT_PATH.'/'.$file.'';
|
||||
$bo = c('socket')->udpsend($str,'cmd');
|
||||
if(is_string($bo))return $bo;
|
||||
return 'ok';
|
||||
}
|
||||
|
||||
public function testAjax()
|
||||
{
|
||||
//header("HTTP/1.1 500 Not Found");
|
||||
echo $this->get('abc');
|
||||
}
|
||||
|
||||
public function getxings($str)
|
||||
{
|
||||
if(!isempt($str))$str = substr($str,0,5).'*****'.substr($str,-5);
|
||||
return $str;
|
||||
}
|
||||
}
|
||||
793
webmain/index/indexpublic.js
Normal file
793
webmain/index/indexpublic.js
Normal file
@@ -0,0 +1,793 @@
|
||||
var objcont,tabs_title,tabsarr={},nowtabs,opentabs=[],menutabs,menuarr,admintype='0';
|
||||
var viewwidth,viewheight,optmenudatas=[];
|
||||
|
||||
js.initbtn = function(obj){
|
||||
var o = $("[click]"),i,o1,cl;
|
||||
for(i=0; i<o.length; i++){
|
||||
o1 = $(o[i]);
|
||||
cl = o1.attr('clickadd');
|
||||
if(cl!='true'){
|
||||
o1.click(function(eo){
|
||||
var cls = $(this).attr('click');
|
||||
if(typeof(cls)=='string'){
|
||||
cls=cls.split(',');
|
||||
obj[cls[0]](this, cls[1], cls[2], eo);
|
||||
}
|
||||
return false;
|
||||
});
|
||||
}
|
||||
}
|
||||
o.attr('clickadd','true');
|
||||
}
|
||||
|
||||
js.initedit = function(id,can){
|
||||
var cans = js.apply({
|
||||
resizeType : 0,
|
||||
allowPreviewEmoticons : false,
|
||||
allowImageUpload : true,
|
||||
formatUploadUrl:false,
|
||||
uploadJson:'mode/kindeditor/kindeditor_upload.php',
|
||||
allowFileManager:true,
|
||||
items : ['fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline',
|
||||
'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
|
||||
'insertunorderedlist', '|','image', 'link','unlink','|','source','clearhtml','fullscreen'],
|
||||
blur:function(){
|
||||
|
||||
}
|
||||
},can);
|
||||
|
||||
var editorobj = KindEditor.create('#'+id+'', cans);
|
||||
return editorobj;
|
||||
}
|
||||
|
||||
js.setwhere = function(mid,call){
|
||||
if(!call)call='';
|
||||
var url =js.getajaxurl('@setwhere','where','flow',{modeid:mid,callback:call});
|
||||
js.tanbody('setwherewin','设置条件',500,330,{
|
||||
html:'<div style="height:320px;overflow:hidden"><iframe src="" name="winiframese" width="100%" height="100%" frameborder="0"></iframe></div>',
|
||||
bbar:'none'
|
||||
});
|
||||
winiframese.location.href=url;
|
||||
}
|
||||
|
||||
function publicstore(mo,dos,oans){
|
||||
if(!mo)mo='index';
|
||||
if(!dos)dos='';
|
||||
return js.getajaxurl('publicstore',mo,dos,oans);
|
||||
}
|
||||
function publicmodeurl(num,act,oans){
|
||||
if(!act)act='publicstore';
|
||||
return js.getajaxurl(act,'mode_'+num+'|input','flow',oans);
|
||||
}
|
||||
function publicsave(mo, dos,oans){
|
||||
if(!mo)mo='index';
|
||||
if(!dos)dos='';
|
||||
return js.getajaxurl('publicsave',mo,dos,oans);
|
||||
}
|
||||
|
||||
function editfacechang(xid,nems){
|
||||
js.upload('_editfacechangback',{maxup:'1',thumbnail:'150x150','title':'修改['+nems+']的头像',uptype:'image','params1':xid,'urlparams':'noasyn:yes'});
|
||||
}
|
||||
function _editfacechangback(a,xid){
|
||||
var f = a[0];
|
||||
var nf= f.thumbpath+'?'+Math.random()+'';
|
||||
if(xid==adminid)get('myface').src=nf;
|
||||
if(get('faceviewabc_'+xid+''))get('faceviewabc_'+xid+'').src=nf;
|
||||
js.msg('wait','头像修改中...');
|
||||
js.ajax(js.getajaxurl('editface','admin','system'),{fid:f.id,'uid':xid},function(){
|
||||
js.msg('success','修改成功,如没显示最新头像,请清除浏览器缓存');
|
||||
});
|
||||
}
|
||||
function _addbodykey(){
|
||||
$('body').keydown(function(e){
|
||||
var code = e.keyCode;
|
||||
if(code==27){
|
||||
var objt = $('div[tanbodynew]');
|
||||
if(objt.length>0){
|
||||
js.tanclose($(objt[objt.length-1]).attr('tanbodynew'));return false;
|
||||
}
|
||||
if(get('xpbg_bodydds')){
|
||||
js.tanclose($('#xpbg_bodydds').attr('xpbody'));
|
||||
}else{
|
||||
closenowtabs();
|
||||
}
|
||||
return false;
|
||||
}
|
||||
//弹出帮助
|
||||
if(code==113){
|
||||
js.confirm('是否打开查看关于['+nowtabs.name+']的帮助信息?',function(jg){
|
||||
if(jg=='yes')window.open('http://www.rockoa.com/view_'+nowtabs.num+'.html?title='+jm.base64encode(nowtabs.name)+'');
|
||||
});
|
||||
return false;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
function openinput(name,num, id,cbal){
|
||||
if(!id)id='0';
|
||||
if(!cbal)cbal='';
|
||||
if(id.substr(0,1)=='0'){name='[新增]'+name+'';}else{name='[编辑]'+name+'';}
|
||||
var url='?a=lu&m=input&d=flow&num='+num+'&mid='+id+'';
|
||||
openxiangs(name, url,'', cbal);
|
||||
return false;
|
||||
}
|
||||
function openxiangs(name,num,id,cbal){
|
||||
if(!id)id=0;
|
||||
if(!cbal)cbal='';
|
||||
var url = 'task.php?a=p&num='+num+'&mid='+id+'';
|
||||
var jg = num.indexOf('?')>-1 ? '&' : '?';
|
||||
if(num.indexOf('?')>-1 || num.substr(0,4)=='http'){url=num+''+jg+'callback='+cbal+'';}else{url+='&callback='+cbal+'';}
|
||||
js.winiframe(name,url);
|
||||
return false;
|
||||
}
|
||||
function openxiang(num,id,cbal){
|
||||
var url = 'task.php?a=p&num='+num+'&mid='+id+'';
|
||||
if(cbal)url+='&callback='+cbal+'';
|
||||
js.open(url, 800,500);
|
||||
}
|
||||
|
||||
//打开聊天会话
|
||||
function openchat(id, lx,face){
|
||||
try{if(nwjsgui){opener.openchat(id, lx,face);return;}}catch(e){}
|
||||
if(!lx)lx=0;var types=['user','group'];
|
||||
var sle = (types[lx]) ? types[lx] : lx;
|
||||
var url = '?d=reim&m=chat&uid='+id+'&type='+sle+'',csne={};
|
||||
if(face)csne.icon=face;
|
||||
var num = ''+sle+'_'+id+'';
|
||||
js.open(url, 480,500, num,{},csne);
|
||||
}
|
||||
|
||||
function optmenuclass(o1,num,id,obj,mname,oi, cola){
|
||||
this.modenum = num;
|
||||
this.modename= mname;
|
||||
this.id = id;
|
||||
this.mid = id;
|
||||
this.tableobj=obj;
|
||||
this.oi = oi;
|
||||
this.obj = o1;
|
||||
this.columns= cola;
|
||||
this.optmenudatas= {};
|
||||
this.optobj = obj.options.optobj || {};
|
||||
var me = this;
|
||||
xrockcd={inputblur:function(){},selectdata:function(){js.msg('msg','此功能未开发')}}
|
||||
this._init=function(){
|
||||
if(typeof(optmenuobj)=='object')optmenuobj.remove();
|
||||
this.callbackstr = '';
|
||||
if(this.columns.callback)this.callbackstr=this.columns.callback;
|
||||
optmenuobj=$.rockmenu({
|
||||
data:[],
|
||||
itemsclick:function(d){me.showmenuclick(d);},
|
||||
width:150
|
||||
});
|
||||
var da = [{name:'详情',lx:998,nbo:false},{name:'详情(新窗口)',lx:998,nbo:true}];
|
||||
var off=$(this.obj).offset();
|
||||
var subdata = this.optmenudatas[''+this.modenum+'_'+this.id+''];
|
||||
if(!subdata){
|
||||
da.push({name:'<img src="images/loadings.gif" align="absmiddle"> 加载菜单中...',lx:999});
|
||||
this.loadoptnum();
|
||||
}else{
|
||||
for(i=0;i<subdata.length;i++)da.push(subdata[i]);
|
||||
}
|
||||
optmenuobj.setData(da);
|
||||
optmenuobj.showAt(off.left,off.top+20);
|
||||
};
|
||||
this.xiang=function(oi,nbo){
|
||||
var mnem=this.modename;
|
||||
if(!nbo){
|
||||
if(!mnem)mnem='详情';
|
||||
openxiangs(mnem,this.modenum,this.mid, this.callbackstr);
|
||||
}else{
|
||||
openxiang(this.modenum,this.mid, this.callbackstr);
|
||||
}
|
||||
};
|
||||
this.openedit=function(){
|
||||
openinput(this.modename,this.modenum,this.mid, this.callbackstr);
|
||||
};
|
||||
this.getupgurl=function(str){
|
||||
if(str.substr(0,4)=='http' || str.indexOf('|')==-1)return str;
|
||||
var a1 = str.split('|'),lx = a1[0],mk = a1[1],cs=a1[2];
|
||||
var url= '';
|
||||
if(lx=='add')url='?a=lu&m=input&d=flow&num='+mk+'';
|
||||
if(lx=='xiang')url='task.php?a=p&num='+mk+'';
|
||||
if(cs)url+='&'+cs;
|
||||
return url;
|
||||
};
|
||||
this.showmenuclick=function(d){
|
||||
d.num=this.modenum;d.mid=this.id;
|
||||
d.modenum = this.modenum;
|
||||
var lx = d.lx;if(!lx)lx=0;
|
||||
if(lx==999)return;
|
||||
if(lx==998){this.xiang(d.oi, d.nbo);return;}
|
||||
if(lx==997){this.printexcel(d.oi);return;}
|
||||
if(lx==996){this.xiang(d.oi, d.nbo);return;}
|
||||
if(lx==11){this.openedit();return;}
|
||||
this.changdatsss = d;
|
||||
if(lx==2 || lx==3 || lx==6){
|
||||
var clx='user';if(lx==3)clx='usercheck';
|
||||
if(lx==6)clx='deptusercheck';
|
||||
js.getuser({type:clx,title:d.name,callback:function(na,nid){me.changeuser(na,nid);}});
|
||||
return;
|
||||
}
|
||||
//打开新窗口
|
||||
if(lx==5){
|
||||
var upg = d.upgcont;
|
||||
if(isempt(upg)){
|
||||
js.msg('msg','没有设置打开的操作地址');
|
||||
}else{
|
||||
var url = this.getupgurl(upg);
|
||||
openxiangs(d.name, url,'', this.callbackstr);
|
||||
}
|
||||
return;
|
||||
}
|
||||
if(lx==7){
|
||||
var upg = d.upgcont;
|
||||
if(isempt(upg)){
|
||||
js.msg('msg','没有设置自定义方法');
|
||||
}else{
|
||||
var dxs = this.optobj[upg];
|
||||
if(!dxs)dxs = window[upg];
|
||||
if(!dxs){
|
||||
js.msg('msg','设置的方法“'+upg+'”不存在');
|
||||
}else{
|
||||
dxs(this.tableobj.getData(this.oi),d);
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
var nwsh = 'showfielsv_'+js.getrand()+'';
|
||||
var uostr= '<div align="left" style="padding:10px"><div id="'+nwsh+'" style="height:60px;overflow:auto" class="input"></div><input style="width:180px" id="'+nwsh+'_input" type="file"></div>';
|
||||
var bts = (d.issm==1)?'必填':'选填';
|
||||
if(d.optnum!=null && d.optnum.indexOf('noup')>-1)uostr='';
|
||||
if(!d.smcont)d.smcont='';
|
||||
if(lx==1 || lx==9 || lx==10 || lx==13 || lx==15 || lx==16 || lx==17){
|
||||
if(d.nup==1)uostr=''; //不需要上传文件
|
||||
js.prompt(d.name,'请输入['+d.name+']说明('+bts+'):',function(index, text){
|
||||
if(index=='yes'){
|
||||
if(!text && d.issm==1){
|
||||
js.msg('msg','没有输入['+d.name+']说明');
|
||||
}else{
|
||||
me.okchangevalue(d, text);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
},d.smcont,'', uostr);
|
||||
this._uosschange(nwsh);
|
||||
return;
|
||||
}
|
||||
//提醒
|
||||
if(lx==14){
|
||||
openinput('提醒设置','remind',''+d.djmid+'&def_modenum='+this.modenum+'&def_mid='+this.mid+'&def_explain=basejm_'+jm.base64encode(d.smcont)+'', this.callbackstr);
|
||||
return;
|
||||
}
|
||||
//回执
|
||||
if(lx==18){
|
||||
openinput(d.name,'receipt',''+d.djmid+'&def_modenum='+this.modenum+'&def_mid='+this.mid+'&def_modename=basejm_'+jm.base64encode(d.modename)+'&def_explain=basejm_'+jm.base64encode(d.smcont)+'', this.callbackstr);
|
||||
return;
|
||||
}
|
||||
if(lx==4){
|
||||
js.prompt(d.name, '说明('+bts+'):', function(index, text){
|
||||
if(index=='yes'){
|
||||
var ad=js.getformdata('myformsbc');
|
||||
for(var i in ad)d['fields_'+i+'']=ad[i];
|
||||
me.okchangevalue(d, text);
|
||||
return true;
|
||||
}
|
||||
},'','<div align="left" id="showmenusss" style="padding:10px">加载中...</div>', uostr);
|
||||
var url='index.php?a=lus&m=input&d=flow&num='+d.modenum+'&menuid='+d.optmenuid+'&mid='+d.mid+'';
|
||||
$.get(url, function(s1){
|
||||
s1=s1.replace(/c\./gi, 'xrockcd.');
|
||||
var s='<form name="myformsbc">'+s1+'</form>';
|
||||
$('#showmenusss').html(s);
|
||||
js.resizetan('confirm');
|
||||
});
|
||||
this._uosschange(nwsh);
|
||||
return;
|
||||
}
|
||||
this.showmenuclicks(d,'');
|
||||
};
|
||||
this._uosschange=function(nwsh){
|
||||
this.fupobj = $.rockupload({
|
||||
autoup:false,
|
||||
fileview:nwsh,
|
||||
allsuccess:function(a,sid){
|
||||
me.upsuccessla(sid);
|
||||
}
|
||||
});
|
||||
$('#'+nwsh+'_input').change(function(){
|
||||
me.fupobj.change(this);
|
||||
});
|
||||
};
|
||||
this.upsuccessla=function(sid){
|
||||
var d = this.changdatsss;
|
||||
d.logfileid = sid;
|
||||
this.showmenuclicks(d, this.inputexplain);
|
||||
js.tanclose('confirm');
|
||||
};
|
||||
this.okchangevalue=function(d,text){
|
||||
this.changdatsss = d;
|
||||
this.inputexplain = text;
|
||||
this.fupobj.start();
|
||||
};
|
||||
this.changeuser=function(nas,sid){
|
||||
if(!sid)return;
|
||||
var d = this.changdatsss,sm='';
|
||||
d.changename = nas;
|
||||
d.changenameid = sid;
|
||||
this.showmenuclicks(d,sm);
|
||||
};
|
||||
this.showmenuclicks=function(d,sm){
|
||||
if(!sm)sm='';
|
||||
d.sm = sm;
|
||||
for(var i in d)if(d[i]==null)d[i]='';
|
||||
js.msg('wait','处理中...');
|
||||
js.ajax(js.getajaxurl('yyoptmenu','flowopt','flow'),d,function(ret){
|
||||
if(ret.code==200){
|
||||
me.optmenudatas[''+d.modenum+'_'+d.mid+'']=false;
|
||||
me.tableobj.reload();
|
||||
js.msg('success','处理成功');
|
||||
}else{
|
||||
js.msg('msg',ret.msg);
|
||||
}
|
||||
},'post,json');
|
||||
};
|
||||
this.loadoptnum=function(){
|
||||
js.ajax(js.getajaxurl('getoptnum','flowopt','flow'),{num:this.modenum,mid:this.id,bfrom:'hou'},function(ret){
|
||||
if(ret.code == 200){
|
||||
me.optmenudatas[''+me.modenum+'_'+me.id+''] = ret.data;
|
||||
me._init();
|
||||
}else{
|
||||
js.msg('msg',ret.msg);
|
||||
}
|
||||
},'get,json');
|
||||
};
|
||||
this._init();
|
||||
}
|
||||
js.getuser = function(cans){
|
||||
var can = js.apply({title:'读取人员',idobj:false,nameobj:false,value:'',type:'deptusercheck',callback:function(){}}, cans);
|
||||
can.onselect=can.callback;
|
||||
js.changeuser(false, can.type, can.title, can);
|
||||
}
|
||||
|
||||
/**
|
||||
* type=0高级搜索使用,1设置自定义字段
|
||||
*/
|
||||
var highdata={};
|
||||
function highsearchclass(options){
|
||||
var me = this;
|
||||
var cans = js.apply({'oncallback':function(){},'modenum':'','type':0}, options);
|
||||
for(var a in cans)this[a]=cans[a];
|
||||
this.init = function(){
|
||||
if(!this.modenum)return;
|
||||
if(this.type==0){
|
||||
js.tanbody('searchhigh','高级搜索', 450,300,{
|
||||
html:'<div id="searchhighhtml" style="height:200px;overflow:auto;"></div>',
|
||||
btn:[{text:'搜索'}],
|
||||
msg:'<a id="searchhigh_cz" href="javascript:;">[重置]</a> '
|
||||
});
|
||||
this.initfields();
|
||||
}
|
||||
if(this.type==1){
|
||||
js.tanbody('searchhigh','自定义列显示', 300,350,{
|
||||
html:'<div id="searchhighhtml" class="select-list" style="height:300px;overflow:auto;"></div>',
|
||||
btn:[{text:'确定'}]
|
||||
});
|
||||
this.initfields();
|
||||
}
|
||||
$('#searchhigh_btn0').click(function(){
|
||||
me.queding();
|
||||
});
|
||||
$('#searchhigh_cz').click(function(){
|
||||
me.chongzhi();
|
||||
});
|
||||
};
|
||||
this.initfields=function(){
|
||||
if(this.type==1){
|
||||
var i,a=this.fieldsarr,b=this.fieldsselarr,len=a.length,str='',fid='columns_'+this.modenum+'_'+this.pnum+'',selstr='caozuo';
|
||||
if(this.isflow>0)selstr+=',base_name,base_deptname';
|
||||
for(i=0;i<len;i++){
|
||||
str+='<div class="div01"><label><input name="selfields" type="checkbox" value="'+a[i].fields+'"> '+a[i].name+'('+a[i].fields+')</label></div>';
|
||||
if(a[i].islb==1)selstr+=','+a[i].fields+'';
|
||||
}
|
||||
str+='<div class="div01"><label><input name="selfields" type="checkbox" value="caozuo"> 操作列</label></div>';
|
||||
$('#searchhighhtml').html(str);
|
||||
if(b[fid])selstr=b[fid];
|
||||
selstr = ','+selstr+',';
|
||||
$('input[name=selfields]').each(function(){
|
||||
if(selstr.indexOf(','+this.value+',')>=0)this.checked=true;
|
||||
});
|
||||
this.columnsnum = fid;
|
||||
return;
|
||||
}
|
||||
$('#searchhighhtml').html('<div align="center" style="padding:10px">'+js.getmsg('加载中...')+'</div>');
|
||||
var fieldsat = this.getinitdata('fields');
|
||||
if(!fieldsat){
|
||||
var url = js.getajaxurl('getcolumns','mode_'+this.modenum+'|input','flow');
|
||||
js.ajax(url,{modenum:this.modenum},function(ret){
|
||||
me.searchhighshow(ret);
|
||||
},'get,json');
|
||||
}else{
|
||||
this.searchhighshow(fieldsat);
|
||||
}
|
||||
},
|
||||
this.getinitdata=function(lx){
|
||||
var d = highdata[this.modenum];
|
||||
if(!d)return false;
|
||||
return d[lx];
|
||||
};
|
||||
this.setinitdata=function(lx, da){
|
||||
if(!highdata[this.modenum])highdata[this.modenum]={};
|
||||
highdata[this.modenum][lx]=da;
|
||||
};
|
||||
this.searchhighshow=function(d){
|
||||
this.setinitdata('fields',d);
|
||||
var s = '<form name="highform"><table width="100%">',i,len=d.length,b;
|
||||
for(i=0;i<len;i++){
|
||||
b = d[i];
|
||||
s+='<tr>';
|
||||
s+='<td width="80" align="right"><font color="#555555">'+b.name+'</font></td>';
|
||||
s+='<td style="padding:5px">'+this.searchhighshowinput(b)+'</td>';
|
||||
s+='</tr>';
|
||||
}
|
||||
s+='</table></form>';
|
||||
$('#searchhighhtml').html(s);
|
||||
var obj = document['highform'],i,data=this.getinitdata('data'),na;
|
||||
if(!data)data={};
|
||||
for(i=0;i<obj.length;i++){
|
||||
$(obj[i]).blur(function(){
|
||||
me.saveformdata();
|
||||
}).keyup(function(e){
|
||||
if(e.keyCode==13)me.queding();
|
||||
});
|
||||
na = obj[i].name;
|
||||
if(data[na])obj[i].value=data[na];
|
||||
}
|
||||
};
|
||||
this.chongzhi=function(){
|
||||
document['highform'].reset();
|
||||
this.saveformdata();
|
||||
};
|
||||
this.searchhighshowinput=function(b){
|
||||
var type = b.fieldstype,name = 'soufields_'+b.fields+'';
|
||||
var s = '<input placeholder="关键词包含" type="text" class="inputs" name="'+name+'">';
|
||||
if(type=='date' || type=='datetime'){
|
||||
s='<input style="width:150px" onclick="js.datechange(this,\''+type+'\')" class="inputs datesss" readonly name="'+name+'_start"> 至 <input onclick="js.datechange(this,\''+type+'\')" style="width:150px" class="inputs datesss" readonly name="'+name+'_end"> ';
|
||||
}
|
||||
if(type=='month'){
|
||||
s='<input style="width:150px" onclick="js.datechange(this,\''+type+'\')" class="inputs datesss" readonly name="'+name+'">';
|
||||
}
|
||||
if(type=='number'){
|
||||
s='<input style="width:150px" type="number" onfocus="js.focusval=this.value" maxlength="10" onblur="js.number(this)" class="inputs" name="'+name+'_start"> 至 <input style="width:150px" type="number" onfocus="js.focusval=this.value" maxlength="10" onblur="js.number(this)" class="inputs" name="'+name+'_end"> ';
|
||||
}
|
||||
if(type=='select' || type=='rockcombo'){
|
||||
var i = 0,len=b.store.length;
|
||||
s='<select name="'+name+'" class="inputs">';
|
||||
s+='<option value="">-选择-</option>';
|
||||
for(i=0;i<len;i++){
|
||||
s+='<option value="'+b.store[i].value+'">'+b.store[i].name+'</option>';
|
||||
}
|
||||
s+='</select>';
|
||||
}
|
||||
return s;
|
||||
};
|
||||
this.setmsg=function(str){
|
||||
js.setmsg(str,'', 'msgview_searchhigh');
|
||||
};
|
||||
this.queding=function(){
|
||||
var d = '';
|
||||
if(this.type==0){
|
||||
d = this.saveformdata();
|
||||
this.oncallback(d);
|
||||
js.tanclose('searchhigh');
|
||||
}
|
||||
if(this.type==1){
|
||||
$('input[name=selfields]').each(function(){
|
||||
if(this.checked)d+=','+this.value+'';
|
||||
});
|
||||
if(d!='')d=d.substr(1);
|
||||
this.setmsg('保存中...');
|
||||
js.ajax(js.getajaxurl('savecolunms','flow','main'),{num:this.columnsnum,str:d,modeid:this.modeid},function(s){
|
||||
if(s=='ok'){
|
||||
js.msg('success','保存成功');
|
||||
me.oncallback(d);
|
||||
js.tanclose('searchhigh');
|
||||
}else{
|
||||
me.setmsg(s);
|
||||
}
|
||||
},'post');
|
||||
}
|
||||
};
|
||||
this.saveformdata=function(){
|
||||
var d = js.getformdata('highform');
|
||||
this.setinitdata('data',d);
|
||||
return d;
|
||||
};
|
||||
this.init();
|
||||
}
|
||||
|
||||
/**
|
||||
* 订阅
|
||||
*/
|
||||
function classubscribe(options){
|
||||
var me = this;
|
||||
var cans = js.apply({'oncallback':function(){},title:'','params':{},objtable:false}, options);
|
||||
for(var a in cans)this[a]=cans[a];
|
||||
this._init = function(){
|
||||
if(!this.objtable){
|
||||
js.msg('msg','没指定一个表格无法设置订阅');
|
||||
return;
|
||||
}
|
||||
var cyrl = this.objtable.geturlparams(),cstr='',i,vsts,ostrs='';
|
||||
var cyrls = cyrl[1];
|
||||
cyrls.loadci=1;
|
||||
for(i in cyrls){
|
||||
vsts = cyrls[i];
|
||||
if(vsts || vsts=='0')cstr+='&'+i+'='+vsts+'';
|
||||
}
|
||||
cstr = cstr.substr(1);
|
||||
|
||||
for(i in this.params){
|
||||
vsts = this.params[i];
|
||||
if(vsts || vsts=='0')ostrs+='&'+i+'='+vsts+'';
|
||||
}
|
||||
if(ostrs!='')ostrs=ostrs.substr(1);
|
||||
var h = $.bootsform({
|
||||
title:'订阅',height:500,width:500,tablename:'subscribe',isedit:0,
|
||||
params:{int_filestype:'status',otherfields:'optid={adminid},optname={admin},optdt={now}'},
|
||||
submitfields:'title,cont,explain,suburl,suburlpost',
|
||||
url:publicmodeurl('subscribe','publicsave'),beforesaveaction:'savebefore',
|
||||
items:[{
|
||||
labelText:'订阅名称',name:'title',required:true,value:this.title
|
||||
},{
|
||||
labelText:'订阅提醒内容',name:'cont',value:this.cont,type:'textarea',required:true,height:60
|
||||
},{
|
||||
labelText:'订阅参数',name:'suburlpost',type:'hidden',height:60,value:cstr
|
||||
},{
|
||||
labelText:'订阅地址',name:'suburl',type:'hidden',height:50,value:jm.base64encode(cyrl[0])
|
||||
},{
|
||||
labelText:'订阅参数',blankText:'根据参数获取数据如:key=关键词&month={month},乱写会导致预想不到的后果。',name:'suburlposts',type:'textarea',height:60,value:ostrs
|
||||
},{
|
||||
labelText:'说明',name:'explain',type:'textarea',height:50,value:this.explain
|
||||
},{
|
||||
name:'status',labelBox:'启用',type:'checkbox',checked:true
|
||||
}],
|
||||
success:function(){
|
||||
js.confirm('订阅成功,是否直接到我的订阅管理下添加订阅运行时间?',function(jg){
|
||||
if(jg=='yes')addtabs({url:'flow,page,subscribe,atype=my',name:'我订阅管理',num:'rssglmy','icons':'cog'});
|
||||
});
|
||||
me.oncallback();
|
||||
},
|
||||
submitcheck:function(d){
|
||||
var str = d.suburlpost;
|
||||
if(!isempt(d.suburlposts))str+='&'+d.suburlposts+'';
|
||||
str = jm.base64encode(str);
|
||||
return {'suburlpost':str};
|
||||
}
|
||||
});
|
||||
|
||||
h.isValid();
|
||||
};
|
||||
this._init();
|
||||
}
|
||||
|
||||
|
||||
js.subscribe=function(csns){
|
||||
return new classubscribe(csns);
|
||||
}
|
||||
|
||||
//自定义导出
|
||||
publicdaochuobjfarr = {};
|
||||
function publicdaochuobj(options){
|
||||
var me = this;
|
||||
var cans = js.apply({'oncallback':function(){},'modenum':'','modenames':'',modename:'',objtable:false,fieldsarr:[],btnobj:false,notdingyue:false}, options);
|
||||
for(var a in cans)this[a]=cans[a];
|
||||
this._init=function(){
|
||||
if(!this.btnobj || !this.objtable)return;
|
||||
|
||||
if(!this.daochuobj)this.daochuobj=$.rockmenu({
|
||||
width:120,top:35,donghua:false,data:[],
|
||||
itemsclick:function(d, i){
|
||||
me.daonchuclick(d);
|
||||
}
|
||||
});
|
||||
var d = [{name:'导出全部',lx:0},{name:'导出当前页',lx:1},{name:'自定义列导出',lx:3}];
|
||||
if(!this.notdingyue)d.push({name:'订阅此列表',lx:2});
|
||||
d.push({name:'打印此列表',lx:4});
|
||||
this.daochuobj.setData(d);
|
||||
var lef = $(this.btnobj).offset();
|
||||
this.daochuobj.showAt(lef.left, lef.top+35);
|
||||
};
|
||||
this.daonchuclick=function(d){
|
||||
if(d.lx==0)this.objtable.exceldown();
|
||||
if(d.lx==1)this.objtable.exceldownnow();
|
||||
if(d.lx==2)this.subscribelist();
|
||||
if(d.lx==3)this.excelautoinit();
|
||||
if(d.lx==4)this.printlist();
|
||||
}
|
||||
this.printlist=function(){
|
||||
var rnd = this.objtable.printrnd;
|
||||
if(!rnd){
|
||||
rnd = 'table'+js.getrand();
|
||||
window[rnd] = this.objtable;
|
||||
this.objtable.printrnd = rnd;
|
||||
}
|
||||
window.open('?d=public&m=print&table='+rnd+'&modenum='+this.modenum+'&modename='+jm.base64encode(this.modename)+'');
|
||||
}
|
||||
this.subscribelist=function(){
|
||||
var name = nowtabs.name;
|
||||
if(this.modename!='')name=''+this.modename+'('+name+')';
|
||||
js.subscribe({
|
||||
title:name,
|
||||
cont:''+name+'的列表的',
|
||||
explain:'订阅['+name+']的列表',
|
||||
objtable:this.objtable
|
||||
});
|
||||
}
|
||||
this.excelautoinit=function(){
|
||||
if(this.fieldsarr.length==0){
|
||||
if(this.modenum!=''){
|
||||
if(publicdaochuobjfarr[this.modenum]){
|
||||
this.loadfarrshow(publicdaochuobjfarr[this.modenum]);
|
||||
}else{
|
||||
js.loading('读取字段中...');
|
||||
js.ajax(js.getajaxurl('getfields','flowopt','flow'),{'modenum':this.modenum}, function(ret){
|
||||
js.unloading();
|
||||
me.loadfarrshow(ret);
|
||||
},'get,json', function(st){
|
||||
js.msgerror(st);
|
||||
});
|
||||
}
|
||||
}else{
|
||||
var farr = this.objtable.getcolumns(),i,fars=[];
|
||||
for(i=0;i<farr.length;i++){
|
||||
if(!farr[i].notexcel)fars.push({
|
||||
'fields':farr[i].dataIndex,
|
||||
'name':farr[i].text,
|
||||
'islb':'1'
|
||||
});
|
||||
}
|
||||
this.fieldsarr=fars;
|
||||
this.excelauto();
|
||||
}
|
||||
}else{
|
||||
this.excelauto();
|
||||
}
|
||||
}
|
||||
this.loadfarrshow=function(ret){
|
||||
var farr = ret.fieldsarr;
|
||||
publicdaochuobjfarr[this.modenum]=ret;
|
||||
this.fieldsarr=farr;
|
||||
this.isflow = ret.isflow;
|
||||
this.modenames = ret.modenames;
|
||||
this.excelauto();
|
||||
}
|
||||
this.excelauto=function(){
|
||||
if(this.fieldsarr.length==0){
|
||||
js.msg('msg','没有设置字段数据');
|
||||
return;
|
||||
}
|
||||
var dar=[],i,sdar;
|
||||
for(i in this.fieldsarr)dar.push(this.fieldsarr[i]);
|
||||
if(!isempt(this.modenames)){
|
||||
sdar = this.modenames.split(',');
|
||||
for(i in sdar)dar.push({'fields' : 'sub_table_'+i+'','name' : sdar[i]});
|
||||
}
|
||||
this.nowfieldsarr = dar;
|
||||
var str='<table width="100%"><tr>',len=dar.length,d1,sel,oi=0;
|
||||
for(i=0;i<len;i++){
|
||||
d1 = dar[i];
|
||||
if(this.isflow==0){
|
||||
if(d1.fields=='base_name' || d1.fields=='base_deptname' || d1.fields=='sericnum')continue;
|
||||
}
|
||||
oi++;
|
||||
sel = '';
|
||||
if(d1.islb==1)sel='checked';
|
||||
str+='<td width="25%" align="left"><label><input name="daochufields" value="'+i+'" '+sel+' type="checkbox">'+d1.name+'</label></td>';
|
||||
if(oi%4==0)str+='</tr><tr>';
|
||||
}
|
||||
str+='</tr></table>';
|
||||
str+='<div><label><input type="checkbox" onclick="js.selall(this,\'daochufields\')">全选</label> 导出前 <input type="number" class="form-control" id="daolimit" style="width:100px" min="1" value="1000"> 条记录</div>';
|
||||
js.tanbody('autoexceldao',''+this.modename+'自定义列导出',520,410,{
|
||||
html:'<div>'+str+'</div>',
|
||||
bodystyle:'padding:10px',
|
||||
btn:[{text:'确定'}]
|
||||
});
|
||||
$('#autoexceldao_btn0').click(function(){
|
||||
me.okdaochu();
|
||||
});
|
||||
}
|
||||
this.okdaochu=function(){
|
||||
var did = js.getchecked('daochufields');
|
||||
if(did==''){
|
||||
js.msg('msg','至少要选择一个列');
|
||||
return;
|
||||
}
|
||||
var dida = did.split(','),i,d1,str1='',str2='',str3='';
|
||||
for(i=0;i<dida.length;i++){
|
||||
d1 = this.nowfieldsarr[dida[i]];
|
||||
str1+=','+d1.name+'';
|
||||
str2+=','+d1.fields+'';
|
||||
if(d1.fields.indexOf('sub_table_')==0)str3+=','+d1.fields.substr(10)+'';
|
||||
}
|
||||
str1 = str1.substr(1);
|
||||
str2 = str2.substr(1);
|
||||
if(str3!='')str3 = str3.substr(1);
|
||||
this.objtable.exceldown('',2, {
|
||||
'page':1,
|
||||
'limit':get('daolimit').value,
|
||||
'excelfields':str2,
|
||||
'excelheader':str1,
|
||||
'excelsubtab':str3
|
||||
});
|
||||
js.tanclose('autoexceldao');
|
||||
}
|
||||
this._init();
|
||||
}
|
||||
|
||||
|
||||
//重写js.tanbody
|
||||
/*
|
||||
if(homestyle==222){
|
||||
js.winiframemax = 120;
|
||||
js.tanbody=function(act,title,w,h,can1){
|
||||
this.tanbodyindex++;
|
||||
var can = js.applyIf(can1,{html:'',msg:'',showfun:function(){},bodystyle:'',guanact:'',titlecls:'',btn:[]});
|
||||
var l=(winWb()-w-50)*0.5,t=(winHb()-h-50)*0.5;
|
||||
var s = '';
|
||||
var mid = ''+act+'_main';
|
||||
$('#'+mid+'').remove();
|
||||
var heis='';
|
||||
if(can.bodyheight)heis='height:'+can.bodyheight+';overflow:auto;';
|
||||
var s = '<div class="modal" id="'+mid+'" tabindex="-1" role="dialog" style="left:3px;top:'+t+'px" aria-labelledby="myModalLabel">';
|
||||
s+='<div id="xpbg_bodydds" xpbody="'+act+'" class="modal-dialog" style="width:'+w+'px;margin:0px auto" role="document">';
|
||||
s+=' <div class="modal-content">';
|
||||
s+=' <div class="modal-header" >';
|
||||
s+=' <button id="'+act+'_spancancel" type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>';
|
||||
s+=' <h4 onmousedown="js.move(\''+mid+'\')" class="modal-title">'+title+'</h4>';
|
||||
s+=' </div>';
|
||||
s+=' <div class="modal-body" style="padding:0px;'+heis+';'+can.bodystyle+'" id="'+act+'_body">'+can.html+'</div>';
|
||||
|
||||
s+=' <div id="'+act+'_bbar" class="modal-footer" align="right"><span id="msgview_'+act+'">'+can.msg+'</span> ';
|
||||
for(var i=0; i<can.btn.length; i++){
|
||||
var a = can.btn[i];
|
||||
s+='<button class="btn btn-success" id="'+act+'_btn'+i+'" onclick="return false">';
|
||||
if(!isempt(a.icons))s+='<i class="icon-'+a.icons+'"></i> ';
|
||||
s+=''+a.text+'</button> ';
|
||||
}
|
||||
s+=' <button class="btn btn-default" id="'+act+'_cancel" onclick="return js.tanclose(\''+act+'\',\''+can.guanact+'\')">取消</button>';
|
||||
s+=' </div>';
|
||||
|
||||
s+=' </div>';
|
||||
s+=' </div>';
|
||||
s+='</div>';
|
||||
$('body').append(s);
|
||||
|
||||
if(can.closed=='none'){
|
||||
$('#'+act+'_bbar').remove();
|
||||
$('#'+act+'_spancancel').remove();
|
||||
}
|
||||
if(can.bbar=='none')$('#'+act+'_bbar').remove();
|
||||
this.modalobj = $('#'+mid+'').modal({'keyboard':false,'show':true,'backdrop':'static'});
|
||||
this.modalobj.on('hidden.bs.modal',function(){
|
||||
$('#'+mid+'').remove();
|
||||
});
|
||||
this.tanoffset(act);
|
||||
can.showfun(act);
|
||||
}
|
||||
|
||||
js.tanclose=function(act, guan){
|
||||
$('#'+act+'_main').remove();
|
||||
$($('.modal-backdrop')[0]).remove();
|
||||
js.xpbody(act,'none');
|
||||
return false;
|
||||
}
|
||||
|
||||
js.tanoffset=function(act){
|
||||
var mid=''+act+'_main';
|
||||
var lh=$('#'+mid+'').find('div[xpbody]').height(),l,t;
|
||||
t=(winHb()-lh-20)*0.5;
|
||||
if(t<0)t=1;
|
||||
$('#'+mid+'').css({'top':''+t+'px'});
|
||||
}
|
||||
}
|
||||
*/
|
||||
459
webmain/index/indexscript.js
Normal file
459
webmain/index/indexscript.js
Normal file
@@ -0,0 +1,459 @@
|
||||
function initbody(){
|
||||
objcont = $('#content_allmainview');
|
||||
objtabs = $('#tabs_title');
|
||||
menubadge = hongbadge = menutopid = {};//角标数组
|
||||
resizewh();
|
||||
$(window).resize(resizewh);
|
||||
clickhome();
|
||||
if(show_key!='')jm.setJmstr(jm.base64decode(show_key));
|
||||
var a = $("li[pmenuid]");
|
||||
a.click(function(){
|
||||
if(js.ajaxbool)return;
|
||||
a.removeClass();
|
||||
loadmenu(this);
|
||||
});
|
||||
loadmenu($("li[pmenuid]")[0]);
|
||||
if(typeof(FormData)=='undefined'){
|
||||
js.msg('msg','您的浏览器太低了无法达到想要的预览效果<br>建议使用IE10+,Firefox,Chrome等高级点的',60);
|
||||
}
|
||||
if(get('indexuserl')){
|
||||
var ddsata=[{
|
||||
name:'<i class="icon-cog"></i> 个人设置',num:'grcog','icon':'cog',url:'system,geren,cog',names:'个人设置'
|
||||
},{
|
||||
name:'<i class="icon-bell"></i> 提醒信息',num:'todo','icon':'bell',url:'system,geren,todo',names:'提醒信息'
|
||||
},{
|
||||
name:'<i class="icon-picture"></i> 修改头像',num:'face','icon':'picture'
|
||||
},{
|
||||
name:'<i class="icon-laptop"></i> 新版首页1',num:'jiu','icon':'laptop'
|
||||
},{
|
||||
name:'<i class="icon-certificate"></i> 新版首页2',num:'jiu2','icon':'laptop'
|
||||
},{
|
||||
name:'<i class="icon-user"></i> 帐号('+adminuser+')',num:'user'
|
||||
}];
|
||||
if(js.request('afrom')=='')ddsata.push({name:'<i class="icon-signout"></i> 退出',num:'exit'});
|
||||
$('#indexuserl').rockmenu({
|
||||
width:150,top:get('topheaderid').offsetHeight,
|
||||
data:ddsata,
|
||||
itemsclick:function(d){
|
||||
if(d.num=='exit'){
|
||||
js.confirm('确定要退出系统吗?',function(bn){
|
||||
if(bn=='yes')js.location('?m=login&a=exit');
|
||||
});
|
||||
return;
|
||||
}
|
||||
if(d.num=='face'){
|
||||
editfacechang(adminid, adminname);
|
||||
return;
|
||||
}
|
||||
if(d.num=='jiu'){
|
||||
js.location('?a=home');
|
||||
return;
|
||||
}
|
||||
if(d.num=='jiu2'){
|
||||
js.location('?a=new');
|
||||
return;
|
||||
}
|
||||
if(d.num=='user')return;
|
||||
addtabs({num:d.num,url:d.url,name:d.names,icons:d.icon});
|
||||
}
|
||||
});
|
||||
}
|
||||
$('#reordershla').click(function(){
|
||||
$('#indexmenu').hide();
|
||||
$('#indexmenuss').show();
|
||||
resizewh();
|
||||
});
|
||||
$('#indexmenuss').click(function(){
|
||||
$('#indexmenu').show();
|
||||
$('#indexmenuss').hide();
|
||||
resizewh();
|
||||
});
|
||||
_addbodykey();
|
||||
$('#indesearchmenu').click(function(){
|
||||
_searchmenus();
|
||||
});
|
||||
|
||||
function _loadjsurl(){
|
||||
js.importjs('web/res/mode/echarts/echarts.common.min.js');
|
||||
}
|
||||
setTimeout(_loadjsurl,100);
|
||||
|
||||
//禁止后退
|
||||
$(document.body).keydown(function(e){
|
||||
var lxs = e.target.nodeName.toLowerCase();
|
||||
var bo = (lxs=='input' || lxs=='textarea');
|
||||
if(e.keyCode==8 && !bo)return false;
|
||||
});
|
||||
try{
|
||||
history.pushState(null, null, document.URL);
|
||||
window.addEventListener('popstate', function (){
|
||||
history.pushState(null, null, document.URL);
|
||||
});
|
||||
}catch(e){}
|
||||
}
|
||||
|
||||
|
||||
function _searchmenus(){
|
||||
js.prompt('搜索菜单','请输入搜索菜单名:',function(jg,txt){
|
||||
if(jg=='yes' && txt){
|
||||
$('#menulisttop').html('搜索结果');
|
||||
$('#menulist').html('<div style="padding:30px;" align="center"><img src="images/mloading.gif"></div>');
|
||||
js.ajax(js.getajaxurl('getmenusou','index'),{key:txt}, function(da){
|
||||
showmenula(da);
|
||||
},'post,json');
|
||||
}
|
||||
});
|
||||
}
|
||||
var loadmenuci=0;
|
||||
function loadmenu(o){
|
||||
var o1 = $(o),id,s1,ico;
|
||||
o1.addClass('active');id = o1.attr('pmenuid');ico = o1.attr('icon');
|
||||
if(!id)return;
|
||||
loadmenuci++;
|
||||
s1 = o.title;
|
||||
if(ico)s1='<i class="icon-'+ico+'"></i> '+s1+'';
|
||||
$('#menulisttop').html(s1);
|
||||
showmenupid = id;
|
||||
$('#menulist').html('<div style="padding:30px;" align="center"><img src="images/mloading.gif"></div>');
|
||||
js.ajax(js.getajaxurl('getmenu','index'),{pid:id,loadci:loadmenuci}, function(da){
|
||||
if(da.menutopid)menutopid=da.menutopid;
|
||||
showmenula(da.menuarr);
|
||||
},'get,json');
|
||||
}
|
||||
function showmenula(a){
|
||||
menuarr = a;
|
||||
var i,s='',j,k,child,hhild,css1,to,sid,o;
|
||||
hongbadge={};
|
||||
for(i=0; i<a.length; i++){
|
||||
o = a[i];
|
||||
css1='border-radius:0px;border-left:none;border-right:none;cursor:pointer;TEXT-DECORATION:none';
|
||||
s+='<a class="list-group-item" onClick="clickmenu(this,'+i+',-1,-1)" style="'+css1+'"><i class="icon-'+o.icons+'"></i> '+o.name+'';
|
||||
if(o.bh && o.stotal==0)s+=' <span class="badge" badge="'+o.bh+'" style="float:none;display:none;background:red;color:white"></span>';
|
||||
if(o.stotal>0)s+='<font color="red" id="hongdian_'+o.num+'" style="display:none">●</font><span style="float:right" id="menu_down_isons_'+o.num+'" class="icon-caret-down"></span>';
|
||||
s+='</a>';
|
||||
if(o.stotal>0){
|
||||
child = o.children;
|
||||
for(j=0; j<child.length; j++){
|
||||
o = child[j];
|
||||
s+='<a downmenu="'+i+'_'+j+'" class="list-group-item" style="'+css1+';padding-left:30px;background:rgba(0,0,0,0.05);display:none" id="menu_list_'+o.num+'" onClick="clickmenu(this,'+i+','+j+',-1)"><i class="icon-'+o.icons+'"></i> '+o.name+'';
|
||||
if(o.bh){
|
||||
hongbadge[o.bh]=a[i].num;
|
||||
s+=' <span class="badge" badge="'+o.bh+'" style="float:none;display:none;background:red;color:white"></span>';
|
||||
}
|
||||
if(o.stotal>0)s+='<span style="float:right" id="menu_down_isons_'+o.num+'" class="icon-caret-down"></span>';
|
||||
s+='</a>';
|
||||
if(o.stotal>0){
|
||||
hhild = o.children;
|
||||
for(k=0; k<hhild.length; k++){
|
||||
o = hhild[k];
|
||||
s+='<a downmenu="'+i+'_'+j+'_'+k+'" class="list-group-item" style="'+css1+';padding-left:60px;background:rgba(0,0,0,0.02);display:none" id="menu_list_'+o.num+'" onClick="clickmenu(this,'+i+','+j+','+k+')"><i class="icon-'+o.icons+'"></i> '+o.name+'</a>';
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if(s=='')s='<div style="padding:30px;color:#cccccc" align="center">暂无</div>';
|
||||
$('#menulist').html(s);
|
||||
showmenubadge();
|
||||
}
|
||||
//显示角标处理
|
||||
function showmenubadge(){
|
||||
var o,sid,to,tnu,tid,o1;
|
||||
$('li[pmenuid] font').remove();
|
||||
for(sid in menubadge){
|
||||
to = menubadge[sid];
|
||||
o = $('span[badge="'+sid+'"]');
|
||||
tnu= hongbadge[sid];
|
||||
if(o){if(to<=0){
|
||||
o.hide();
|
||||
if(tnu)$('#hongdian_'+tnu+'').hide();
|
||||
}else{
|
||||
o.show();o.html(to);
|
||||
if(tnu)$('#hongdian_'+tnu+'').show();
|
||||
tid= menutopid[sid];
|
||||
if(tid){
|
||||
o1 = $('li[pmenuid="'+tid+'"]');
|
||||
o1.find('font').remove();
|
||||
o1.find('a').append('<font color="red">●</font>');
|
||||
}
|
||||
}}
|
||||
}
|
||||
}
|
||||
function removetadge(num){
|
||||
if(typeof(menubadge[num])=='undefined')return;
|
||||
$('span[badge="'+num+'"]').hide();
|
||||
menubadge[num]=0;
|
||||
showmenubadge();
|
||||
}
|
||||
|
||||
function opentixiang(){
|
||||
addtabs({num:'todo',url:'system,geren,todo',icons:'bell',name:'提醒信息'});
|
||||
return false;
|
||||
}
|
||||
|
||||
function clickhome(){
|
||||
var ad = {num:'home',url:'home,index',icons:'home',name:'首页',hideclose:true};
|
||||
if(homeurl!='')ad.url= homeurl;
|
||||
if(homename!='')ad.name= homename;
|
||||
addtabs(ad);
|
||||
return false;
|
||||
}
|
||||
var fistwk=0;
|
||||
function resizewh(){
|
||||
var _lw = 0;
|
||||
if(get('indexmenu')){
|
||||
_lw = $('#indexmenu').width()+5;
|
||||
if(get('indexmenu').style.display=='none'){
|
||||
_lw = $('#indexmenuss').width()+5;
|
||||
}
|
||||
}
|
||||
var w = winWb()-_lw;
|
||||
var h = winHb(),_ht=0;
|
||||
if(get('topheaderid'))_ht=get('topheaderid').offsetHeight;
|
||||
viewwidth = w;
|
||||
viewheight = h-_ht-44;
|
||||
$('#indexcontent').css({width:''+viewwidth+'px',height:''+(viewheight)+'px'});
|
||||
$('#tabsindexm').css({width:''+viewwidth+'px'});
|
||||
var nh = h-_ht;
|
||||
$('#indexmenu').css({height:''+nh+'px'});
|
||||
$('#indexsplit').css({height:''+nh+'px'});
|
||||
$('#indexmenuss').css({height:''+nh+'px'});
|
||||
$('#menulist').css({height:''+(viewheight)+'px'});
|
||||
_pdleftirng();
|
||||
|
||||
if(fistwk==0){
|
||||
$('#topmenudiv span[pmenuid]').each(function(){
|
||||
fistwk+=$(this).width()+30;
|
||||
});
|
||||
}
|
||||
var lw=$('#logodiv').width();
|
||||
var rw = $('#topheaderright').width();
|
||||
var kj = winWb()-lw-rw;
|
||||
$('#topmenudiv').css('width',''+kj+'px');
|
||||
var o1 = $('#donwrigthw').css('right',''+rw+'px');
|
||||
o1.hide();
|
||||
if(fistwk>kj){
|
||||
o1.show();
|
||||
$('#topmenudiv').css('width',''+(kj-20)+'px');
|
||||
}
|
||||
}
|
||||
|
||||
function clickmenu(o, i, j,k){
|
||||
var a = menuarr[i];
|
||||
if(j>-1)a=a.children[j];
|
||||
if(k>-1)a=a.children[k];
|
||||
var oi = a.stotal,dxu=''+i+'_';
|
||||
if(oi>0){
|
||||
$('#hongdian_'+a.num+'').hide();//隐藏红点
|
||||
if(j>-1){
|
||||
dxu+=''+j+'_';
|
||||
$('a[downmenu^="'+dxu+'"]').toggle();
|
||||
}
|
||||
var o1 = get('menu_down_isons_'+a.num+'');
|
||||
if(o1.className.indexOf('down')>0){
|
||||
o1.className='icon-caret-up';
|
||||
if(j==-1)$('a[downmenu^="'+dxu+'"]').show();
|
||||
}else{
|
||||
o1.className='icon-caret-down';
|
||||
if(j==-1)$('a[downmenu^="'+dxu+'"]').hide();
|
||||
}
|
||||
}else{
|
||||
addtabs(a);
|
||||
}
|
||||
}
|
||||
|
||||
var coloebool = false;
|
||||
function closetabs(num){
|
||||
tabsarr[num] = false;
|
||||
$('#content_'+num+'').remove();
|
||||
$('#tabs_'+num+'').remove();
|
||||
if(num == nowtabs.num){
|
||||
var now ='home',i,noux;
|
||||
for(i=opentabs.length-1;i>=0;i--){
|
||||
noux= opentabs[i];
|
||||
if(get('content_'+noux+'')){
|
||||
now = noux;
|
||||
break;
|
||||
}
|
||||
}
|
||||
changetabs(now);
|
||||
}
|
||||
coloebool = true;
|
||||
_pdleftirng();
|
||||
setTimeout('coloebool=false',10);
|
||||
}
|
||||
|
||||
function closenowtabs(){
|
||||
var nu=nowtabs.num;
|
||||
if(nu=='home')return;
|
||||
closetabs(nu);
|
||||
}
|
||||
|
||||
function nowtabssettext(srt,icos){
|
||||
var num=nowtabs.num;
|
||||
var txt = srt;
|
||||
tabsarr[num].name = srt;
|
||||
nowtabs.name = srt;
|
||||
if(!icos)icos=nowtabs.icons;
|
||||
if(icos)txt='<i class="icon-'+icos+'"></i> '+txt+'';
|
||||
$('#tabs_'+num+' font').html(txt);
|
||||
}
|
||||
|
||||
function changetabs(num,lx){
|
||||
if(coloebool)return;
|
||||
if(!lx)lx=0;
|
||||
$("div[temp='content']").hide();
|
||||
$("[temp='tabs']").removeClass();
|
||||
var bo = false;
|
||||
if(get('content_'+num+'')){
|
||||
$('#content_'+num+'').show();
|
||||
$('#tabs_'+num+'').addClass('active');
|
||||
nowtabs = tabsarr[num];
|
||||
if(typeof(nowtabs.onshow)=='function')nowtabs.onshow();
|
||||
bo = true;
|
||||
}
|
||||
opentabs.push(num);
|
||||
if(lx==0)_changhhhsv(num);
|
||||
return bo;
|
||||
}
|
||||
function _changhhhsv(num){
|
||||
var o=$("[temp='tabs']"),i,w1=0;
|
||||
for(i=0;i<o.length;i++){
|
||||
if(o[i].id=='tabs_'+num+'')break;
|
||||
w1=w1+o[i].scrollWidth;
|
||||
}
|
||||
$('#tabsindexm').animate({scrollLeft:w1});
|
||||
}
|
||||
function _changesrcool(lx){
|
||||
var l = $('#tabsindexm').scrollLeft();
|
||||
var w = l+200*lx;
|
||||
$('#tabsindexm').animate({scrollLeft:w});
|
||||
}
|
||||
function _pdleftirng(){
|
||||
var mw=get('tabs_title').scrollWidth;
|
||||
if(mw>viewwidth){$('.jtcls').show();}else{$('.jtcls').hide();}
|
||||
}
|
||||
|
||||
function addiframe(a){
|
||||
a.url = 'index,iframe,url='+jm.base64encode(a.url)+'';
|
||||
addtabs(a);
|
||||
}
|
||||
|
||||
|
||||
//选择卡右键
|
||||
function tabsright(num,e){
|
||||
function _closeother(nu){
|
||||
var nus,d1;
|
||||
for(nus in tabsarr){
|
||||
d1 = tabsarr[nus];
|
||||
if(d1 && !d1.hideclose && nus!=nu)closetabs(nus);
|
||||
}
|
||||
}
|
||||
if(typeof(tabsrights)=='undefined')tabsrights=$.rockmenu({
|
||||
width:150,
|
||||
data:[],
|
||||
itemsclick:function(d){
|
||||
var lx = d.lx,num=d.num;
|
||||
if(lx==0)closetabs(num);
|
||||
if(lx==1){
|
||||
var d1 = tabsarr[num],s1=''+PROJECT+'/'+d1.urlpath+'';
|
||||
var s = '['+d1.name+']页面地址是:'+s1+'<div style="word-wrap:break-word;">,在[系统→基础管理→菜单管理]设置URL地址为:'+d1.url+'';
|
||||
if(HOST=='127.0.0.1' || HOST=='localhost')s+=' <a onclick="_openfile(\''+jm.base64encode(s1)+'\')" href="javascript:;">[打开]</a>';
|
||||
s+='</div>';
|
||||
js.alert(s);
|
||||
}
|
||||
if(lx==2)_closeother(num);
|
||||
if(lx==3)location.reload();
|
||||
if(lx==4)_opentabls(d.tobj);
|
||||
}
|
||||
});
|
||||
var to= tabsarr[num],d = [];
|
||||
if(!to.hideclose)d.push({'name':'关闭','num':num,lx:0});
|
||||
if(num==nowtabs.num)d.push({'name':'关闭其它页面','num':num,lx:2});
|
||||
if(admintype==1)d.push({'name':'查看页面地址','num':num,lx:1});
|
||||
if(homeurl=='' && to.id)d.push({'name':'新窗口打开',tobj:to,'num':num,lx:4});
|
||||
d.push({'name':'全部刷新','num':num,lx:3});
|
||||
tabsrights.setData(d);
|
||||
tabsrights.showAt(e.clientX,e.clientY+5);
|
||||
}
|
||||
function _opentabls(d){
|
||||
var url = '?homeurl='+jm.base64encode(d.url)+'&homename='+jm.base64encode(d.name)+'&menuid='+jm.base64encode(d.id)+'';
|
||||
window.open(url);
|
||||
}
|
||||
|
||||
//开发时打开文件
|
||||
function _openfile(s){
|
||||
js.ajax(js.getajaxurl('openfile','index'),{file:s},function(ds){
|
||||
if(ds!='ok')js.msg('msg', ds);
|
||||
},'get');
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加选择卡
|
||||
*/
|
||||
function addtabs(a){
|
||||
var url = a.url,
|
||||
num = a.num;
|
||||
if(isempt(url))return false;
|
||||
removetadge(num);
|
||||
if(url.indexOf('add,')==0){openinput(a.name,url.substr(4));return;}
|
||||
if(url.indexOf('open:')==0){window.open(url.substr(5));return;}
|
||||
if(url.indexOf('http')==0 || url.substr(0,1)=='?'){addiframe(a);return;}
|
||||
if(nowtabs && nowtabs.id && !a.id)a.id=nowtabs.id;
|
||||
nowtabs = a;
|
||||
if(changetabs(num))return true;
|
||||
|
||||
var s = '<td temp="tabs" oncontextmenu="tabsright(\''+num+'\',event);return false;"; nowrap onclick="changetabs(\''+num+'\',1)" id="tabs_'+num+'" class="active"><font>';
|
||||
if(a.icons)s+='<i class="icon-'+a.icons+'"></i> ';
|
||||
s+=a.name+'</font>';
|
||||
if(!a.hideclose)s+='<span onclick="closetabs(\''+num+'\')"><img src="images/del.png" width="12" height="12"></span>';
|
||||
s+='</td>';
|
||||
objtabs.append(s);
|
||||
_changhhhsv(num);
|
||||
_pdleftirng();
|
||||
|
||||
var rand = js.getrand(),i,oi=2,
|
||||
ura = url.split(','),
|
||||
dir = ura[0],
|
||||
mode= ura[1];
|
||||
url =''+dir+'/'+mode+'/rock_'+mode+'';
|
||||
if(ura[2]){
|
||||
if(ura[2].indexOf('=')<0){
|
||||
oi=3;
|
||||
url+='_'+ura[2]+'';
|
||||
}
|
||||
}
|
||||
var urlpms= '';
|
||||
for(i=oi;i<ura.length;i++){
|
||||
var nus = ura[i].split('=');
|
||||
urlpms += ",'"+nus[0]+"':'"+nus[1]+"'";
|
||||
}
|
||||
if(urlpms!='')urlpms = urlpms.substr(1);
|
||||
var bgs = '<div id="mainloaddiv" style="width:'+viewwidth+'px;height:'+viewheight+'px;overflow:hidden;background:#000000;color:white;filter:Alpha(opacity=20);opacity:0.2;z-index:3;position:absolute;left:0px;line-height:'+viewheight+'px;top:0px;" align="center"><img src="images/mloading.gif" align="absmiddle"> 加载中...</div>';
|
||||
$('#indexcontent').append(bgs);
|
||||
a.urlpath = url+'.php';
|
||||
objcont.append('<div temp="content" id="content_'+num+'"></div>');
|
||||
$.ajax({
|
||||
url:'?m=index&a=getshtml&surl='+jm.base64encode(url)+'&num='+num+'&menuname='+jm.base64encode(a.name)+'',
|
||||
type:'get',
|
||||
success: function(da){
|
||||
$('#mainloaddiv').remove();
|
||||
var s = da;
|
||||
s = s.replace(/\{rand\}/gi, rand);
|
||||
s = s.replace(/\{adminid\}/gi, adminid);
|
||||
s = s.replace(/\{adminname\}/gi, adminname);
|
||||
s = s.replace(/\{mode\}/gi, mode);
|
||||
s = s.replace(/\{dir\}/gi, dir);
|
||||
s = s.replace(/\{params\}/gi, "var params={"+urlpms+"};");
|
||||
var obja = $('#content_'+num+'');
|
||||
obja.html(s);
|
||||
},
|
||||
error:function(){
|
||||
$('#mainloaddiv').remove();
|
||||
var s = 'Error:加载出错喽,'+url+'';
|
||||
$('#content_'+num+'').html(s);
|
||||
}
|
||||
});
|
||||
tabsarr[num] = a;
|
||||
return false;
|
||||
}
|
||||
187
webmain/index/indexshow.js
Normal file
187
webmain/index/indexshow.js
Normal file
@@ -0,0 +1,187 @@
|
||||
function initbody(){
|
||||
jm.setJmstr(jm.base64decode(show_key));
|
||||
objcont = $('#content_allmainview');
|
||||
objtabs = $('#tabs_title');
|
||||
resizewh();
|
||||
$(window).resize(resizewh);
|
||||
clickhome();
|
||||
_addbodykey();
|
||||
}
|
||||
|
||||
function opentixiang(){
|
||||
addtabs({num:'todo',url:'system,geren,todo',icons:'bell',name:'提醒信息'});
|
||||
return false;
|
||||
}
|
||||
|
||||
function clickhome(){
|
||||
addtabs({num:'home',url:'home,index',icons:'home',name:'首页',hideclose:true});
|
||||
return false;
|
||||
}
|
||||
|
||||
function resizewh(){
|
||||
var _lw = 0;
|
||||
var w = winWb()-_lw-5;
|
||||
var h = winHb();
|
||||
viewwidth = w;
|
||||
viewheight = h-44;
|
||||
$('#indexcontent').css({width:''+viewwidth+'px',height:''+(viewheight)+'px'});
|
||||
$('#tabsindexm').css({width:''+viewwidth+'px'});
|
||||
var nh = h-50;
|
||||
$('#indexmenu').css({height:''+nh+'px'});
|
||||
$('#indexsplit').css({height:''+nh+'px'});
|
||||
$('#indexmenuss').css({height:''+nh+'px'});
|
||||
$('#menulist').css({height:''+(viewheight)+'px'});
|
||||
_pdleftirng();
|
||||
}
|
||||
|
||||
function clickmenu(o, i, k){
|
||||
var a = menuarr[i];
|
||||
if(k>-1)a=menuarr[i].children[k];
|
||||
var oi = a.stotal;
|
||||
if(oi>0){
|
||||
$('#menu_down_'+a.num+'').toggle();
|
||||
var o1 = get('menu_down_isons_'+a.num+'');
|
||||
if(o1.className.indexOf('down')>0){
|
||||
o1.className='icon-caret-up';
|
||||
}else{
|
||||
o1.className='icon-caret-down';
|
||||
}
|
||||
}else{
|
||||
addtabs(a);
|
||||
}
|
||||
}
|
||||
function changelassa(){
|
||||
var o1 = $("div[temp='menu']"),i,cls,cls1;
|
||||
for(i=0;i<o1.length;i++){
|
||||
cls = o1[i].className,cls1='menuone';
|
||||
if(cls.indexOf('two')>0)cls1='menutwo';
|
||||
o1[i].className=cls1;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
var coloebool = false;
|
||||
function closetabs(num){
|
||||
tabsarr[num] = false;
|
||||
$('#content_'+num+'').remove();
|
||||
$('#tabs_'+num+'').remove();
|
||||
if(num == nowtabs.num){
|
||||
var now ='home',i,noux;
|
||||
for(i=opentabs.length-1;i>=0;i--){
|
||||
noux= opentabs[i];
|
||||
if(get('content_'+noux+'')){
|
||||
now = noux;
|
||||
break;
|
||||
}
|
||||
}
|
||||
changetabs(now);
|
||||
}
|
||||
coloebool = true;
|
||||
_pdleftirng();
|
||||
setTimeout('coloebool=false',10);
|
||||
}
|
||||
|
||||
function closenowtabs(){
|
||||
var nu=nowtabs.num;
|
||||
if(nu=='home')return;
|
||||
closetabs(nu);
|
||||
}
|
||||
|
||||
function changetabs(num,lx){
|
||||
if(coloebool)return;
|
||||
if(!lx)lx=0;
|
||||
$("div[temp='content']").hide();
|
||||
$("[temp='tabs']").removeClass();
|
||||
var bo = false;
|
||||
if(get('content_'+num+'')){
|
||||
$('#content_'+num+'').show();
|
||||
$('#tabs_'+num+'').addClass('accive');
|
||||
nowtabs = tabsarr[num];
|
||||
bo = true;
|
||||
}
|
||||
opentabs.push(num);
|
||||
if(lx==0)_changhhhsv(num);
|
||||
return bo;
|
||||
}
|
||||
function _changhhhsv(num){
|
||||
var o=$("[temp='tabs']"),i,w1=0;
|
||||
for(i=0;i<o.length;i++){
|
||||
if(o[i].id=='tabs_'+num+'')break;
|
||||
w1=w1+o[i].scrollWidth;
|
||||
}
|
||||
$('#tabsindexm').animate({scrollLeft:w1});
|
||||
}
|
||||
function _changesrcool(lx){
|
||||
var l = $('#tabsindexm').scrollLeft();
|
||||
var w = l+200*lx;
|
||||
$('#tabsindexm').animate({scrollLeft:w});
|
||||
}
|
||||
function _pdleftirng(){
|
||||
var mw=get('tabs_title').scrollWidth;
|
||||
if(mw>viewwidth){$('.jtcls').show();}else{$('.jtcls').hide();}
|
||||
}
|
||||
function addtabs(a){
|
||||
var url = a.url,
|
||||
num = a.num;
|
||||
if(isempt(url))return false;
|
||||
if(url.indexOf('add,')==0){openinput(a.name,url.substr(4));return;}
|
||||
if(url.indexOf('http')==0){window.open(url);return;}
|
||||
nowtabs = a;
|
||||
if(changetabs(num))return true;
|
||||
|
||||
var s = '<td temp="tabs" nowrap onclick="changetabs(\''+num+'\',1)" id="tabs_'+num+'" class="accive">';
|
||||
if(a.icons)s+='<i class="icon-'+a.icons+'"></i> ';
|
||||
s+=a.name;
|
||||
if(!a.hideclose)s+='<span onclick="closetabs(\''+num+'\')" class="icon-remove"></span>';
|
||||
s+='</td>';
|
||||
objtabs.append(s);
|
||||
_changhhhsv(num);
|
||||
_pdleftirng();
|
||||
|
||||
var rand = js.getrand(),i,oi=2,
|
||||
ura = url.split(','),
|
||||
dir = ura[0],
|
||||
mode= ura[1];
|
||||
url =''+PROJECT+'/'+dir+'/'+mode+'/rock_'+mode+'';
|
||||
if(ura[2]){
|
||||
if(ura[2].indexOf('=')<0){
|
||||
oi=3;
|
||||
url+='_'+ura[2]+'';
|
||||
}
|
||||
}
|
||||
url+='.shtml?rnd='+Math.random()+'';
|
||||
var urlpms= '';
|
||||
for(i=oi;i<ura.length;i++){
|
||||
var nus = ura[i].split('=');
|
||||
urlpms += ",'"+nus[0]+"':'"+nus[1]+"'";
|
||||
}
|
||||
if(urlpms!='')urlpms = urlpms.substr(1);
|
||||
var bgs = '<div id="mainloaddiv" style="width:'+viewwidth+'px;height:'+viewheight+'px;overflow:hidden;background:#000000;color:white;filter:Alpha(opacity=20);opacity:0.2;z-index:3;position:absolute;left:0px;line-height:'+viewheight+'px;top:0px;" align="center"><img src="images/mloading.gif" align="absmiddle"> 加载中...</div>';
|
||||
$('#indexcontent').append(bgs);
|
||||
|
||||
objcont.append('<div temp="content" id="content_'+num+'"></div>');
|
||||
$.ajax({
|
||||
url:url,
|
||||
type:'get',
|
||||
success: function(da){
|
||||
$('#mainloaddiv').remove();
|
||||
var s = da;
|
||||
s = s.replace(/\{rand\}/gi, rand);
|
||||
s = s.replace(/\{adminid\}/gi, adminid);
|
||||
s = s.replace(/\{adminname\}/gi, adminname);
|
||||
s = s.replace(/\{mode\}/gi, mode);
|
||||
s = s.replace(/\{dir\}/gi, dir);
|
||||
s = s.replace(/\{params\}/gi, "var params={"+urlpms+"};");
|
||||
var obja = $('#content_'+num+'');
|
||||
obja.html(s);
|
||||
},
|
||||
error:function(){
|
||||
$('#mainloaddiv').remove();
|
||||
var s = 'Error:加载出错喽,'+url+'';
|
||||
if(num=='home')s+='<br><h3>你的服务器不支持shtml文件的类型,请设置添加,后缀名:.shtml,MIME类型:text/html</h3>';
|
||||
$('#content_'+num+'').html(s);
|
||||
}
|
||||
});
|
||||
tabsarr[num] = a;
|
||||
return false;
|
||||
}
|
||||
154
webmain/index/tpl_index.html
Normal file
154
webmain/index/tpl_index.html
Normal file
@@ -0,0 +1,154 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<title><?=$da['title']?></title>
|
||||
<link rel="stylesheet" type="text/css" href="<?=$da['p']?>/css/webmain.css"/>
|
||||
<link rel="stylesheet" type="text/css" id="mainstylecss" href="<?=$da['stylecss']?>"/>
|
||||
<link rel="stylesheet" type="text/css" href="web/res/fontawesome/css/font-awesome.min.css">
|
||||
<!--[if IE 7 ]><link rel="stylesheet" type="text/css" href="web/res/fontawesome/css/font-awesome-ie7.min.css"><![endif]-->
|
||||
<link rel="stylesheet" type="text/css" href="web/res/mode/menu/jquery-rockmenu.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="mode/plugin/css/jquery-rockdatepicker.css"/>
|
||||
<link rel="shortcut icon" href="<?=$da['icon']?>" />
|
||||
<script type="text/javascript" src="web/res/js/jquery.1.9.1.min.js"></script>
|
||||
<script type="text/javascript" src="js/js.js"></script>
|
||||
<script type="text/javascript" src="js/worker.js"></script>
|
||||
<script type="text/javascript" src="js/base64-min.js"></script>
|
||||
<script type="text/javascript" src="<?=$da['p']?>/<?=$da['d']?><?=$da['m']?>/<?=$da['m']?>public.js"></script>
|
||||
<script type="text/javascript" src="<?=$da['p']?>/<?=$da['d']?><?=$da['m']?>/<?=$da['m']?>script.js"></script>
|
||||
<script type="text/javascript" src="web/res/mode/menu/jquery-rockmenu.js"></script>
|
||||
<script type="text/javascript">
|
||||
<?php
|
||||
$maincolor = getconfig('apptheme','#1389D3');
|
||||
?>
|
||||
js.servernow = '<?=$da['now']?>';
|
||||
PROJECT = '<?=$da['p']?>';
|
||||
adminip = '<?=$da['ip']?>';
|
||||
VERSION = '<?=VERSION?>';
|
||||
companymode = <?=(getconfig('companymode')? 'true' : 'false')?>;
|
||||
var show_key = '<?=$da['showkey']?>',homeurl = '<?=$da['homeurl']?>',homename='<?=$da['homename']?>';
|
||||
function globalbody(){
|
||||
adminid = '<?=$da['adminid']?>';
|
||||
adminface = '<?=$da['face']?>';
|
||||
adminname = '<?=$da['adminname']?>';
|
||||
adminuser = '<?=$da['adminuser']?>';
|
||||
adminstyle = '<?=$da['style']?>';
|
||||
admintype = '<?=$da['admintype']?>';
|
||||
deptallname = '<?=$da['my']['deptallname']?>';
|
||||
adminranking= '<?=$da['my']['ranking']?>';
|
||||
}
|
||||
datesss = 'background:url(mode/icons/date.png) no-repeat right';
|
||||
maincolor = '<?=getconfig('apptheme','#1389D3')?>';
|
||||
homestyle = 0;
|
||||
</script>
|
||||
<style>
|
||||
<?php
|
||||
$maincolora= c('image')->colorTorgb($maincolor);
|
||||
$maincolors= ''.$maincolora[0].','.$maincolora[1].','.$maincolora[2].'';
|
||||
echo 'body{--main-color:'.$maincolor.'}';
|
||||
?>
|
||||
</style>
|
||||
</head>
|
||||
<body style="padding:0px;margin:0px; overflow:hidden;" scroll="no">
|
||||
<?php if(isempt($da['homeurl'])){?>
|
||||
|
||||
<div id="topheaderid">
|
||||
<nav class="navbar navbar-<?=$da['styledev']?> navbar-static-top" id="navtopheader" style="margin:0px;z-index:0">
|
||||
<div>
|
||||
<div class="navbar-header">
|
||||
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#app-navbar-collapse">
|
||||
<span class="sr-only">Toggle</span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
</button>
|
||||
<a class="navbar-brand" href="">
|
||||
<img src="<?=$da['logo']?>" style="display:inline;" align="absmiddle" height="24" width="24"> <?=$da['title']?>
|
||||
</a>
|
||||
</div>
|
||||
<div class="collapse navbar-collapse" id="app-navbar-collapse">
|
||||
<ul class="nav navbar-nav">
|
||||
<?php foreach($da['topmenu'] as $k=>$rs){
|
||||
$str = '<li pmenuid="'.$rs['id'].'" title="'.$rs['name'].'" icon="'.$rs['icons'].'"><a>';
|
||||
if($rs['icons'])$str.='<i class="icon-'.$rs['icons'].'"></i> ';
|
||||
$str.=''.$rs['name'].'</a></li>';
|
||||
echo $str;
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
<ul class="nav navbar-nav navbar-right">
|
||||
<?php
|
||||
if(getconfig('mobile_show',true))echo '<li><a href="javascript:;" onclick="openmobile()"><i class="icon-tablet"></i> 手机版</a></li>';
|
||||
if(getconfig('reim_show', true))echo '<li><a href="javascript:;" onclick="openreim(this)"><span title="REIM即时通信"><i class="icon-comments-alt"></i> REIM <font class="badge red" id="reim_stotal" style="font-size:12px;background:red;color:white"></font></span></a></li>';
|
||||
?>
|
||||
<li id="indexuserl">
|
||||
<a href="javascript:;">
|
||||
<div style="padding-right:10px">
|
||||
<img style="width:18px;height:18px;border-radius:50%" id="myface" src="<?=$da['face']?>" align="absmiddle">
|
||||
<?=$da['adminname']?><span class="caret"></span>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
</div>
|
||||
<?php }?>
|
||||
|
||||
|
||||
<table width="100%" border="0" id="zhutable" cellspacing="0" cellpadding="0">
|
||||
<tr valign="top">
|
||||
<?php if(isempt($da['homeurl'])){?>
|
||||
<td >
|
||||
|
||||
<div id="indexmenu" style="width:200px;overflow:hidden;">
|
||||
<ul class="list-group" style="margin:0">
|
||||
<li style="border-radius:0px;border-left:none;border-right:none;border-top:none;cursor:pointer;border-bottom:0px" class="list-group-item list-group-item-info"><b id="menulisttop">基本</b>
|
||||
<span style="float:right"><i id="indesearchmenu" class="icon-search"></i> <i id="reordershla" class="icon-reorder cursor"></i></span>
|
||||
</li>
|
||||
</ul>
|
||||
<div style="overflow:auto;height:200px;" id="menulist">
|
||||
<ul class="list-group" style="margin:0" id="menushow">
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div id="indexmenuss" style="display:none;background:rgba(0,0,0,0.3)" class="menulistbg cursor"><i class="icon-reorder"></i><br>打<br>开<br>导<br>航</div>
|
||||
</td>
|
||||
<td>
|
||||
<div id="indexsplit" style="overflow:hidden;width:5px;background:rgba(0,0,0,0.1)"></div>
|
||||
</td>
|
||||
<?php }?>
|
||||
<td width="100%">
|
||||
<div style="overflow:hidden;position:relative;">
|
||||
<div class="jtcls" id="jtcls_left" onclick="_changesrcool(1)">></div>
|
||||
<div class="jtcls" id="jtcls_right" onclick="_changesrcool(-1)" style="left:0px"><</div>
|
||||
|
||||
<div class="panel panel-default" style="border:none;border-radius:0;margin-bottom:0">
|
||||
<div id="tabsindexm" class="panel-heading tabsindex" style="border:none;border-radius:0;padding:0px;overflow:hidden;">
|
||||
<table border="0" cellspacing="0" cellpadding="0"><tr id="tabs_title"></tr></table>
|
||||
</div>
|
||||
</div>
|
||||
<div id="indexcontent" style="overflow:auto;position:relative;">
|
||||
<div id="content_allmainview" style="margin:10px;"></div>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<script src="mode/bootstrap3.3/bootstrap.min.js"></script>
|
||||
<script type="text/javascript" src="mode/bootstrapplugin/jquery-bootstable.js"></script><!--表格插件-->
|
||||
<script type="text/javascript" src="mode/bootstrapplugin/jquery-bootsform.js"></script><!--表单插件-->
|
||||
<script type="text/javascript" src="mode/bootstrapplugin/jquery-bootstree.js"></script><!--表格树形插件-->
|
||||
<script type="text/javascript" src="mode/plugin/jquery-rockdatepicker.js"></script><!--日期选择插件-->
|
||||
<script type="text/javascript" src="web/res/js/jquery-imgview.js"></script><!--图片预览-->
|
||||
<script type="text/javascript" src="web/res/perfectscrollbar/jquery.mousewheel.js"></script><!--鼠标-->
|
||||
<script type="text/javascript" src="web/res/js/jquery-rockupload.js"></script><!--上传插件-->
|
||||
<script type="text/javascript" src="web/res/js/jquery-changeuser.js"></script><!--人员选择-->
|
||||
<script type="text/javascript" src="web/res/mode/calendar/jquery-rockcalendar.js"></script><!--日期插件-->
|
||||
<script type="text/javascript" src="web/res/mode/calendar/jquery-rocklunar.js"></script><!--农历-->
|
||||
<script type="text/javascript" src="js/option.js"></script><!--数据选项-->
|
||||
<script type="text/javascript" src="web/res/js/notify.js"></script><!--通知提醒插件-->
|
||||
<script type="text/javascript" src="mode/plugin/jquery-rockmodels.js"></script><!--弹出提示插件-->
|
||||
</body>
|
||||
</html>
|
||||
55
webmain/index/tpl_index_show.html
Normal file
55
webmain/index/tpl_index_show.html
Normal file
@@ -0,0 +1,55 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<!--<meta http-equiv="X-UA-Compatible" content="IE=edge">-->
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<title><?=$da['title']?></title>
|
||||
<link rel="stylesheet" type="text/css" href="mode/bootstrap3.3/css/bootstrap.min.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="web/res/fontawesome/css/font-awesome.min.css">
|
||||
<!--[if IE 7 ]><link rel="stylesheet" type="text/css" href="web/res/fontawesome/css/font-awesome-ie7.min.css"><![endif]-->
|
||||
<link rel="stylesheet" type="text/css" href="<?=$da['p']?>/css/webmain.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="<?=$da['p']?>/css/style<?=$da['style']?>.css" id="mainstylecss"/>
|
||||
<link rel="stylesheet" type="text/css" href="web/res/mode/menu/jquery-rockmenu.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="mode/plugin/css/jquery-rockdatepicker.css"/>
|
||||
<link rel="shortcut icon" href="favicon.ico" />
|
||||
<script type="text/javascript" src="js/jquery.1.9.1.min.js"></script>
|
||||
<script type="text/javascript" src="js/js.js"></script>
|
||||
<script type="text/javascript" src="js/base64-min.js"></script>
|
||||
<script type="text/javascript" src="<?=$da['p']?>/<?=$da['p']?>Script.js"></script>
|
||||
<script type="text/javascript" src="<?=$da['p']?>/<?=$da['d']?><?=$da['m']?>/<?=$da['m']?>public.js"></script>
|
||||
<script type="text/javascript" src="<?=$da['p']?>/<?=$da['d']?><?=$da['m']?>/<?=$da['m']?>show.js"></script>
|
||||
<script type="text/javascript" src="web/res/mode/menu/jquery-rockmenu.js"></script>
|
||||
<script type="text/javascript">
|
||||
js.servernow = '<?=$da['now']?>';
|
||||
PROJECT = '<?=$da['p']?>';
|
||||
VERSION = '<?=VERSION?>';
|
||||
var show_key = '<?=$da['showkey']?>';
|
||||
function globalbody(){
|
||||
adminid = '<?=$da['adminid']?>';
|
||||
adminname = '<?=$da['adminname']?>';
|
||||
adminuser = '<?=$da['adminuser']?>';
|
||||
adminstyle = '<?=$da['style']?>';
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body style="padding:0px;margin:0px; overflow:hidden;" scroll="no">
|
||||
|
||||
<div style="overflow:hidden;position:relative;">
|
||||
<div class="jtcls" id="jtcls_left" onclick="_changesrcool(1)">></div>
|
||||
<div class="jtcls" id="jtcls_right" onclick="_changesrcool(-1)" style="left:0px"><</div>
|
||||
<div id="tabsindexm" class="tabsindex"><table border="0" cellspacing="0" cellpadding="0"><tr id="tabs_title"></tr></table></div>
|
||||
<div id="indexcontent" style="overflow:auto;position:relative;">
|
||||
<div id="content_allmainview" style="margin:10px;"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript" src="mode/bootstrapplugin/jquery-bootstable.js"></script>
|
||||
<script type="text/javascript" src="mode/bootstrapplugin/jquery-bootsform.js"></script>
|
||||
<script type="text/javascript" src="mode/bootstrapplugin/jquery-bootstree.js"></script>
|
||||
<script type="text/javascript" src="mode/plugin/jquery-rockdatepicker.js"></script>
|
||||
<script type="text/javascript" src="web/res/js/jquery-rockupload.js"></script>
|
||||
<script type="text/javascript" src="web/res/js/jquery-changeuser.js"></script>
|
||||
<script type="text/javascript" src="web/res/mode/calendar/jquery-rockcalendar.js"></script>
|
||||
<script type="text/javascript" src="web/res/mode/calendar/jquery-rocklunar.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user