发布v2.5.7版本

This commit is contained in:
雨中磐石
2023-05-11 16:19:42 +08:00
parent 8145b2df84
commit 8c2983b577
63 changed files with 1371 additions and 162 deletions

View File

@@ -629,7 +629,7 @@ class inputAction extends Action
}
foreach($courses as $k=>$rs1){
$na = $rs1['name'];
if(!$this->isempt($rs1['explain']))$na.= '<br><span style="font-size:12px">('.$rs1['explain'].')</span>';
//if(!$this->isempt($rs1['explain']))$na.= '<br><span style="font-size:12px">('.$rs1['explain'].')</span>';
$rs1['name'] = $na;
$rs1['k'] = $k;
$rs1['isnow']= $rs1['id']==$nowcourseid;
@@ -829,22 +829,23 @@ class inputAction extends Action
$this->atypearr[] = array(
'id' => 0,
'num' => 'grant',
'name' => ''.$this->flow->modename.'授权查看',
'name' => ''.$this->flow->modename.''.lang('授权查看').'',
);
}else if($this->loadci==1 && $this->adminid>0){
$this->atypearr = m('where')->getmywhere($this->modeid, $this->adminid, $pnum);
if(LANG!='zh-CN' && $this->atypearr)foreach($this->atypearr as $k1=>$rs1)$this->atypearr[$k1]['name'] = $this->flow->lang($rs1['name']);
if(isempt($pnum)){
$mors = $this->flow->moders;
if((int)arrvalue($mors,'iscs','0')>0)$this->atypearr[] = array(
'id' => 0,
'num' => 'chaos',
'name' => ''.$mors['name'].'抄送给我',
'name' => ''.$mors['name'].''.lang('抄送给我').'',
);
if($mors['isflow']>0){
$this->atypearr[] = array(
'id' => 0,
'num' => 'mychuli',
'name' => ''.$mors['name'].'经我处理',
'name' => ''.$mors['name'].''.lang('经我处理').'',
);
}
}
@@ -903,6 +904,7 @@ class inputAction extends Action
$souarr = array();
$this->input= c('input');
$this->flow = $flow;
$this->input->flow = $flow;
foreach($flow->fieldsarra as $k=>$rs){
if($rs['issou']==1){

View File

@@ -0,0 +1,56 @@
//流程模块【flowelement.表单元素管理】下录入页面自定义js页面,初始函数
function initbodys(){
c.fieldshide('xiaoshu');
if(mid==0){
form('mid').value = js.request('mkid');
if(!form('mid').value){
js.msgerror('没有选择模块,无法新增');
c.formdisabled();
return;
}
}
form('attr').readOnly=false;
form('fields').readOnly=false;
form('dev').readOnly=false;
c.onselectdata['attr']=function(sav,sna,sid){
form('attr').value = sid;
}
c.onselectdata['fields']=function(sav,sna,sid){
if(sav.subname)form('name').value = sav.subname;
}
$(form('fieldstype')).change(function(){
c.changetypes();
});
}
c.onselectdatabefore=function(fid){
if(fid=='fields')return {mkid:form('mid').value,iszb:form('iszb').value};
}
c.changetypes=function(){
var val = form('fieldstype').value;
if(val=='number'){
c.fieldsshow('xiaoshu');
}else{
c.fieldshide('xiaoshu');
}
}
function changesubmit(d){
if(d.fieldstype.indexOf('change')==0){
if(d.data=='' || d.data==d.fields)return '此字段元素类型时数据源必须填写用来存储选择来的Id请填写为'+d.fields+'id';
}
if(d.islu=='1' && d.fields=='id')return 'id字段是不可以做录入项字段';
}
c.xuanchangs=function(){
var val = form('fieldstype').value;
if(val.indexOf('change')==0){
var cans1 = {
idobj:form('gongsi')
};
js.changeuser('AltS', 'deptusercheck', '选择范围', cans1);
}else{
js.msg('msg','元素类型不是选择人员部门的');
}
}

View File

@@ -0,0 +1,4 @@
//流程模块【flowmenu.菜单管理】下录入页面自定义js页面,初始函数
function initbodys(){
}

View File

@@ -0,0 +1,4 @@
//流程模块【flowset.流程模块列表】下录入页面自定义js页面,初始函数
function initbodys(){
}

View File

@@ -0,0 +1,114 @@
<?php
/**
* 此文件是流程模块【flowelement.表单元素管理】对应控制器接口文件。
*/
class mode_flowelementClassAction extends inputAction{
public $pobj;
protected function savebefore($table, $arr, $id, $addbo){
include_once('webmain/main/flow/flowAction.php');
$this->pobj = new flowClassAction();
$strs= $this->pobj->elemensavefieldsbefore($table, $arr, $id);
if($strs)return $strs;
$rows = array();
if($arr['zdsm'])$rows['zdsm'] = htmlspecialchars_decode($arr['zdsm']);
return array(
'rows' => $rows
);
}
protected function saveafter($table, $arr, $id, $addbo){
$this->pobj->elemensavefields($table, $arr);
}
public function iszbdata()
{
$mkid = (int)$this->get('mkid','0');
$mid = (int)$this->get('mid','0');
$mkrs = array();
$talbe = '';
if($mid>0){
$mkid = m('flow_element')->getmou('mid', $mid);
}
if($mkid){
$mkrs = m('flow_set')->getone($mkid);
$talbe = $mkrs['table'];
}
$arr[] = array('value'=>'0','name'=>'主表('.$talbe.')字段');
if($mkrs){
$tables = $mkrs['tables'];
$names = $mkrs['names'];
if(!isempt($tables)){
$tablesa = explode(',', $tables);
$namesa = explode(',', $names);
foreach($tablesa as $k=>$v)$arr[] = array('value'=>$k+1,'name'=>'第个'.($k+1).'子表('.arrvalue($namesa, $k).'.'.$v.')字段');
}
}
return $arr;
}
public function attrdata()
{
$arr[] = array('value'=>'readonly','name'=>'只读');
$arr[] = array('value'=>'onlyen','name'=>'不能有中文');
$arr[] = array('value'=>'onlycn','name'=>'必须包含中文');
$arr[] = array('value'=>'maxhang','name'=>'布局占整行');
$arr[] = array('value'=>'email','name'=>'邮件格式');
$arr[] = array('value'=>'mobile','name'=>'中文手机号');
$arr[] = array('value'=>'number','name'=>'必须是数字');
$arr[] = array('value'=>'date','name'=>'必须是日期格式如2020-02-02');
return $arr;
}
public function devdata()
{
$arr[] = array('value'=>'admin','name'=>'{admin}','subname'=>'当前用户姓名');
$arr[] = array('value'=>'deptname','name'=>'{deptname}','subname'=>'当前用户部门');
$arr[] = array('value'=>'uid','name'=>'{uid}','subname'=>'当前用户ID');
$arr[] = array('value'=>'date','name'=>'{date}','subname'=>'当前日期');
$arr[] = array('value'=>'optdt','name'=>'{optdt}','subname'=>'当前时间');
$arr[] = array('value'=>'ranking','name'=>'{urs.ranking}','subname'=>'当前用户职位');
$arr[] = array('value'=>'urs','name'=>'{urs.mobile}','subname'=>'当前用户其他信息字段mobile改成需要字段名');
return $arr;
}
protected function storeafter($table, $rows)
{
$mkid = (int)$this->post('mkid','0');
$mkrs = false;
if($mkid>0)$mkrs = m('flow_set')->getone($mkid);
if($this->loadci>1)return array(
'rows' => $rows,
'mkrs' => $mkrs,
);
return array(
'rows' => $rows,
'modearr' => m('mode')->getmodearr(),
'mkrs' => $mkrs,
);
}
public function fieldsstore()
{
$mkid = (int)$this->get('mkid','0');
$iszb = (int)$this->get('iszb','0');
$mkrs = m('flow_set')->getone($mkid);
$table = $mkrs['table'];
$tables = $mkrs['tables'];
if($iszb>0 && !isempt($tables)){
$tablesa = explode(',', $tables);
$table = $tablesa[$iszb-1];
}
$farrs = array();
$farr = $this->db->gettablefields('[Q]'.$table.'');
foreach($farr as $k=>$rs){
$farrs[]= array('value'=>$rs['name'],'name'=>$rs['name'],'subname'=>$rs['explain']);
}
return $farrs;
}
}

View File

@@ -0,0 +1,52 @@
<?php
/**
* 此文件是流程模块【flowmenu.菜单管理】对应控制器接口文件。
*/
class mode_flowmenuClassAction extends inputAction{
protected function savebefore($table, $arr, $id, $addbo){
}
protected function saveafter($table, $arr, $id, $addbo){
}
public $alldata = array();
protected function storeafter($table, $rows)
{
$pid = (int)$this->post('pid','0');
if($pid>0){
$this->showgetmenu($rows,0,1,1);
$rows = $this->alldata;
}
return array(
'rows' => $rows
);
}
private function showgetmenu($rows,$pid, $oi, $zt)
{
$zh = 0;
foreach($rows as $k=>$rs){
if($pid==$rs['pid']){
$zh++;
$rs['level'] = $oi;
$zthui = $rs['status'];
if($zt==0){
$rs['ishui']=1;
$zthui = 0;
}
$this->alldata[] = $rs;
$len = count($this->alldata)-1;
$cd = $this->showgetmenu($rows,$rs['id'], $oi+1, $zthui);
$this->alldata[$len]['stotal']=$cd;
}
}
return $zh;
}
}

View File

@@ -0,0 +1,40 @@
<?php
/**
* 此文件是流程模块【flowset.流程模块列表】对应控制器接口文件。
*/
class mode_flowsetClassAction extends inputAction{
public $pobj;
protected function savebefore($table, $arr, $id, $addbo){
include_once('webmain/main/flow/flowAction.php');
$this->pobj = new flowClassAction();
return $this->pobj->flowsetsavebefore($table, $arr);
}
protected function saveafter($table, $arr, $id, $addbo){
$this->pobj->flowsetsaveafter($table, $arr);
}
public function typedata()
{
$arr = array();
$rows = $this->db->getall('select `type` from `[Q]flow_set` group by `type` order by `sort`');
foreach($rows as $k=>$rs)$arr[] = array('value'=>'','name'=>$rs['type']);
return $arr;
}
public function getothernrAjax()
{
$mkid = (int)$this->get('mkid','0');
$ind = (int)$this->get('ind','0');
$bh = 'flowelement';
$atype = 'all';
//读取数据
$flow = m('flow')->initflow($bh);//初始化模块
$cont = $flow->getrowstable($atype, 'and `mid`='.$mkid.'', 100,'name,fields,fieldstype,islu,isbt,iszb');//读取表格数据
return $cont;
}
}

View File

@@ -38,12 +38,32 @@ class mode_userinfoClassAction extends inputAction{
public function storeafter($table, $rows)
{
$deptdata = false;
if($this->loadci==1 && $this->post('showdept')=='1'){
$drows = m('dept')->getall('1=1','`id`,`name`,`pid`');
$deptdata = $this->depttreeshu($drows, '0', '0');
}
return array(
'statearr' => $this->flow->statearrs,
'isadd' => false
'isadd' => false,
'deptdata' => $deptdata,
);
}
//组织结构活动得到树形数据
private function depttreeshu($rows, $pid, $fids)
{
$barr = array();
foreach($rows as $k=>$rs){
if($rs['pid']==$pid){
$rs['children'] = $this->depttreeshu($rows, $rs['id'], $fids);
$rs['expanded'] = $pid==$fids;
$barr[] = $rs;
}
}
return $barr;
}
//人员状态切换保存后处理
public function userstateafter($table, $cans, $id)
{

View File

@@ -96,7 +96,7 @@ echo 'body{--main-color:'.$maincolor.';--main-border:rgba('.$maincolors.',0.2)}'
$stsp = '<div style="padding-top:20px"><table width="100%"><tr><td width="15%" nowrap height="30" align="right">';
if($firstrs['checktype']=='change'){
$stsp.='<font color=red>*</font>';
$placeholder = '必须指定人员';
$placeholder = '必须指定人员'.arrvalue($firstrs,'explain').'';
$firstrs['isbt'] = 1;
}
$stsp.= ''.$firstrs['name'].'</td>';

View File

@@ -152,7 +152,7 @@ if($showheader==1)echo '<div id="header_title" style="padding-top:'.$cenghei.'px
$stsp.= '<td class="lurim" nowrap>';
if($firstrs['checktype']=='change'){
$stsp.='<font color=red>*</font>';
$placeholder = '必须指定人员';
$placeholder = '必须指定人员'.arrvalue($firstrs,'explain').'';
$firstrs['isbt'] = 1;
}
$stsp.= ''.$firstrs['name'].':</td>';

View File

@@ -0,0 +1 @@
<table width="100%" border="0" class="ke-zeroborder"><tbody><tr class="autoyijianview"><td height="34" width="15%" align="right" class="ys1">*^mid^</td><td width="35%" class="ys2">{mid}</td><td height="34" width="15%" align="right" class="ys1">*^iszb^</td><td width="35%" class="ys2">{iszb}</td></tr><tr><td height="34" width="15%" align="right" class="ys1">*^name^</td><td width="35%" class="ys2">{name}</td><td height="34" width="15%" align="right" class="ys1">*^fields^</td><td width="35%" class="ys2">{fields}</td></tr><tr><td height="34" width="15%" align="right" class="ys1">*^fieldstype^</td><td width="35%" class="ys2">{fieldstype}</td><td height="34" width="15%" align="right" class="ys1">^dev^</td><td width="35%" class="ys2">{dev}</td></tr><tr><td height="34" width="15%" align="right" class="ys1">^ftype^</td><td width="35%" class="ys2">{ftype}</td><td height="34" width="15%" align="right" class="ys1">^lens^</td><td width="35%" class="ys2">{lens}</td></tr><tr><td height="34" width="15%" align="right" class="ys1">^xiaoshu^</td><td width="35%" class="ys2">{xiaoshu}</td><td height="34" align="right" class="ys1"></td><td class="ys2"></td></tr><tr><td height="34" align="right" class="ys1">^data^</td><td colspan="3" class="ys2">{data}</td></tr><tr><td height="34" align="right" class="ys1">^attr^</td><td colspan="3" class="ys2">{attr}</td></tr><tr><td height="34" align="right" class="ys1">^placeholder^</td><td colspan="3" class="ys2">{placeholder}</td></tr><tr><td height="34" align="right" class="ys1">^gongsi^</td><td colspan="3" class="ys2">{gongsi}</td></tr><tr><td height="34" align="right" class="ys1">^savewhere^</td><td colspan="3" class="ys2">{savewhere}</td></tr><tr><td height="34" width="15%" align="right" class="ys1">^sort^</td><td width="35%" class="ys2">{sort}</td><td height="34" width="15%" align="right" class="ys1">^isalign^</td><td width="35%" class="ys2">{isalign}</td></tr><tr><td height="34" width="15%" align="right" class="ys1">^islu^</td><td width="35%" class="ys2">{islu}</td><td height="34" width="15%" align="right" class="ys1">^isbt^</td><td width="35%" class="ys2">{isbt}</td></tr><tr><td height="34" width="15%" align="right" class="ys1">^iszs^</td><td width="35%" class="ys2">{iszs}</td><td height="34" width="15%" align="right" class="ys1">^islb^</td><td width="35%" class="ys2">{islb}</td></tr><tr><td height="34" width="15%" align="right" class="ys1">^ispx^</td><td width="35%" class="ys2">{ispx}</td><td height="34" width="15%" align="right" class="ys1">^issou^</td><td width="35%" class="ys2">{issou}</td></tr><tr><td height="34" width="15%" align="right" class="ys1">^isonly^</td><td width="35%" class="ys2">{isonly}</td><td height="34" width="15%" align="right" class="ys1">^isdr^</td><td width="35%" class="ys2">{isdr}</td></tr><tr><td height="34" width="15%" align="right" class="ys1">^istj^</td><td width="35%" class="ys2">{istj}</td><td height="34" width="15%" align="right" class="ys1">^iseditlx^</td><td width="35%" class="ys2">{iseditlx}</td></tr><tr><td height="34" align="right" class="ys1">^zdsm^</td><td colspan="3" class="ys2">{zdsm}</td></tr></tbody></table>

View File

@@ -0,0 +1 @@
<table width="100%" border="0" class="ke-zeroborder"><tbody><tr class="autoyijianview"><td height="34" width="15%" align="right" class="ys1">*^name^</td><td width="35%" class="ys2">{name}</td><td height="34" width="15%" align="right" class="ys1">^num^</td><td width="35%" class="ys2">{num}</td></tr><tr><td height="34" align="right" class="ys1">^url^</td><td colspan="3" class="ys2">{url}</td></tr><tr><td height="34" width="15%" align="right" class="ys1">*^pid^</td><td width="35%" class="ys2">{pid}</td><td height="34" width="15%" align="right" class="ys1">^icons^</td><td width="35%" class="ys2">{icons}</td></tr><tr><td height="34" width="15%" align="right" class="ys1">^status^</td><td width="35%" class="ys2">{status}</td><td height="34" width="15%" align="right" class="ys1">^ispir^</td><td width="35%" class="ys2">{ispir}</td></tr><tr><td height="34" width="15%" align="right" class="ys1">^ishs^</td><td width="35%" class="ys2">{ishs}</td><td height="34" width="15%" align="right" class="ys1">^sort^</td><td width="35%" class="ys2">{sort}</td></tr><tr><td height="34" width="15%" align="right" class="ys1">^color^</td><td width="35%" class="ys2">{color}</td><td height="34" width="15%" align="right" class="ys1">^type^</td><td width="35%" class="ys2">{type}</td></tr></tbody></table>

View File

@@ -0,0 +1 @@
<br /><div><b>基本信息</b></div><table width="100%" border="0" class="ke-zeroborder"><tbody><tr class="autoyijianview"><td height="34" width="15%" align="right" class="ys1">*^type^</td><td width="35%" class="ys2">{type}</td><td height="34" width="15%" align="right" class="ys1">*^name^</td><td width="35%" class="ys2">{name}</td></tr><tr><td height="34" width="15%" align="right" class="ys1">*^num^</td><td width="35%" class="ys2">{num}</td><td height="34" width="15%" align="right" class="ys1">*^table^</td><td width="35%" class="ys2">{table}</td></tr><tr><td height="34" width="15%" align="right" class="ys1">^where^</td><td width="35%" class="ys2">{where}</td><td height="34" width="15%" align="right" class="ys1">^tables^</td><td width="35%" class="ys2">{tables}</td></tr><tr><td height="34" width="15%" align="right" class="ys1">^sort^</td><td width="35%" class="ys2">{sort}</td><td height="34" width="15%" align="right" class="ys1">^names^</td><td width="35%" class="ys2">{names}</td></tr><tr><td height="34" align="right" class="ys1">*^recename^</td><td colspan="3" class="ys2">{recename}</td></tr><tr><td height="34" width="15%" align="right" class="ys1">^status^</td><td width="35%" class="ys2">{status}</td><td height="34" align="right" class="ys1"></td><td class="ys2"></td></tr></tbody></table><br /><div><b>流程</b></div><table width="100%" border="0" class="ke-zeroborder"><tbody><tr class="autoyijianview"><td height="34" width="15%" align="right" class="ys1">*^isflow^</td><td width="35%" class="ys2">{isflow}</td><td height="34" width="15%" align="right" class="ys1">^sericnum^</td><td width="35%" class="ys2">{sericnum}</td></tr><tr><td height="34" width="15%" align="right" class="ys1">*^isflowlx^</td><td width="35%" class="ys2">{isflowlx}</td><td height="34" width="15%" align="right" class="ys1">^isys^</td><td width="35%" class="ys2">{isys}</td></tr><tr><td height="34" width="15%" align="right" class="ys1">^isbxs^</td><td width="35%" class="ys2">{isbxs}</td><td height="34" width="15%" align="right" class="ys1">*^iscs^</td><td width="35%" class="ys2">{iscs}</td></tr><tr><td height="34" width="15%" align="right" class="ys1">^zfeitime^</td><td width="35%" class="ys2">{zfeitime}</td><td height="34" align="right" class="ys1"></td><td class="ys2"></td></tr></tbody></table><br /><div><b>摘要设置</b></div><table width="100%" border="0" class="ke-zeroborder"><tbody><tr class="autoyijianview"><td height="34" align="right" class="ys1">^summary^</td><td colspan="3" class="ys2">{summary}</td></tr><tr><td height="34" align="right" class="ys1">^summarx^</td><td colspan="3" class="ys2">{summarx}</td></tr><tr><td height="34" width="15%" align="right" class="ys1">^sortdir^</td><td width="35%" class="ys2">{sortdir}</td><td height="34" align="right" class="ys1"></td><td class="ys2"></td></tr></tbody></table><br /><div><b>提醒设置</b></div><table width="100%" border="0" class="ke-zeroborder"><tbody><tr class="autoyijianview"><td height="34" width="15%" align="right" class="ys1">^pctx^</td><td width="35%" class="ys2">{pctx}</td><td height="34" width="15%" align="right" class="ys1">^emtx^</td><td width="35%" class="ys2">{emtx}</td></tr><tr><td height="34" width="15%" align="right" class="ys1">^mctx^</td><td width="35%" class="ys2">{mctx}</td><td height="34" width="15%" align="right" class="ys1">^wxtx^</td><td width="35%" class="ys2">{wxtx}</td></tr><tr><td height="34" width="15%" align="right" class="ys1">^ddtx^</td><td width="35%" class="ys2">{ddtx}</td><td height="34" width="15%" align="right" class="ys1">^istxset^</td><td width="35%" class="ys2">{istxset}</td></tr></tbody></table><br /><div><b>详情显示</b></div><table width="100%" border="0" class="ke-zeroborder"><tbody><tr class="autoyijianview"><td height="34" width="15%" align="right" class="ys1">^isgbjl^</td><td width="35%" class="ys2">{isgbjl}</td><td height="34" width="15%" align="right" class="ys1">^isgbcy^</td><td width="35%" class="ys2">{isgbcy}</td></tr><tr><td height="34" width="15%" align="right" class="ys1">^ispl^</td><td width="35%" class="ys2">{ispl}</td><td height="34" align="right" class="ys1"></td><td class="ys2"></td></tr></tbody></table><br /><div><b>其他</b></div><table width="100%" border="0" class="ke-zeroborder"><tbody><tr class="autoyijianview"><td height="34" width="15%" align="right" class="ys1">^islu^</td><td width="35%" class="ys2">{islu}</td><td height="34" width="15%" align="right" class="ys1">^isup^</td><td width="35%" class="ys2">{isup}</td></tr><tr><td height="34" align="right" class="ys1">^statusstr^</td><td colspan="3" class="ys2">{statusstr}</td></tr><tr><td height="34" width="15%" align="right" class="ys1">^ishz^</td><td width="35%" class="ys2">{ishz}</td><td height="34" width="15%" align="right" class="ys1">^lbztxs^</td><td width="35%" class="ys2">{lbztxs}</td></tr></tbody></table>

View File

@@ -1 +1 @@
<table width="100%" bordercolor="#000000" border="0" class="ke-zeroborder"><tbody><tr><td height="34" align="right" class="ys1">*^title^</td><td class="ys2" colspan="3">{title}</td></tr><tr><td height="34" align="right" class="ys1">封面图片</td><td class="ys2" colspan="3">{fengmian}</td></tr><tr><td height="34" width="15%" align="right" class="ys1">*类型名称</td><td width="35%" class="ys2">{typename}</td><td align="right" width="15%" class="ys1">发手机短信</td><td width="35%" class="ys2"><label>{issms}短信提醒</label>&nbsp;<label>{appxs}APP首页显示</label></td></tr><tr><td height="34" align="right" class="ys1">发送给</td><td colspan="3" class="ys2">{recename}</td></tr><tr><td height="34" align="right" class="ys1">*内容</td><td colspan="3" class="ys2">{content}</td></tr><tr><td height="34" align="right" class="ys1">相关文件</td><td colspan="3" class="ys2">{file_content}</td></tr><tr><td height="34" align="right" class="ys1">相应地址</td><td colspan="3" class="ys2">{url}</td></tr><tr><td height="34" align="right" class="ys1">*来源</td><td class="ys2">{zuozhe}</td><td align="right" class="ys1">*日期</td><td class="ys2">{indate}</td></tr><tr><td height="34" align="right" class="ys1">展示日期</td><td class="ys2">{zstart}</td><td align="right" class="ys1">展示截止</td><td class="ys2">{zsend}</td></tr><tr><td height="34" align="right" class="ys1">至少投票</td><td class="ys2">{mintou}</td><td align="right" class="ys1">最多投票</td><td class="ys2">{maxtou}</td></tr><tr><td height="34" align="right" class="ys1">开始时间</td><td class="ys2">{startdt}</td><td align="right" class="ys1">截止时间</td><td class="ys2">{enddt}</td></tr><tr id="subtitletou"><td class="ys2" style="background-color:#CCCCCC;" colspan="4"><strong>投票选项</strong> </td></tr><tr><td class="ys0" colspan="4"><table class="tablesub ke-zeroborder" id="tablesub0" style="width:100%;" border="0" cellspacing="0" cellpadding="0"><tbody><tr><td width="10%">序号</td><td>*投票选项</td><td width="5%">操作</td></tr><tr><td>[xuhao0,0]</td><td>[touitems0,0]</td><td>{删,0}</td></tr><tr><td>[xuhao0,1]</td><td>[touitems0,1]</td><td>{删,0}</td></tr></tbody></table><div style="background-color:#F1F1F1;">{新增,0}</div></td></tr></tbody></table>
<table width="100%" bordercolor="#000000" border="0" class="ke-zeroborder"><tbody><tr><td height="34" align="right" class="ys1">*^title^</td><td class="ys2" colspan="3">{title}</td></tr><tr><td height="34" align="right" class="ys1">^fengmian^</td><td class="ys2" colspan="3">{fengmian}</td></tr><tr><td height="34" width="15%" align="right" class="ys1">*^typename^</td><td width="35%" class="ys2">{typename}</td><td align="right" width="15%" class="ys1">^issms^</td><td width="35%" class="ys2">{issms}&nbsp;<label>{appxs}</label></td></tr><tr><td height="34" align="right" class="ys1">^recename^</td><td colspan="3" class="ys2">{recename}</td></tr><tr><td height="34" align="right" class="ys1">*^content^</td><td colspan="3" class="ys2">{content}</td></tr><tr><td height="34" align="right" class="ys1">^file_content^</td><td colspan="3" class="ys2">{file_content}</td></tr><tr><td height="34" align="right" class="ys1">^url^</td><td colspan="3" class="ys2">{url}</td></tr><tr><td height="34" align="right" class="ys1">*^zuozhe^</td><td class="ys2">{zuozhe}</td><td align="right" class="ys1">*^indate^</td><td class="ys2">{indate}</td></tr><tr><td height="34" align="right" class="ys1">^zstart^</td><td class="ys2">{zstart}</td><td align="right" class="ys1">^zsend^</td><td class="ys2">{zsend}</td></tr><tr><td height="34" align="right" class="ys1">^mintou^</td><td class="ys2">{mintou}</td><td align="right" class="ys1">^maxtou^</td><td class="ys2">{maxtou}</td></tr><tr><td height="34" align="right" class="ys1">^startdt^</td><td class="ys2">{startdt}</td><td align="right" class="ys1">^enddt^</td><td class="ys2">{enddt}</td></tr><tr id="subtitletou"><td class="ys2" style="background-color:#CCCCCC;" colspan="4"><strong>投票选项</strong> </td></tr><tr><td class="ys0" colspan="4"><table class="tablesub ke-zeroborder" id="tablesub0" style="width:100%;" border="0" cellspacing="0" cellpadding="0"><tbody><tr><td width="10%">序号</td><td>*投票选项</td><td width="5%">操作</td></tr><tr><td>[xuhao0,0]</td><td>[touitems0,0]</td><td>{删,0}</td></tr><tr><td>[xuhao0,1]</td><td>[touitems0,1]</td><td>{删,0}</td></tr></tbody></table><div style="background-color:#F1F1F1;">{新增,0}</div></td></tr></tbody></table>

View File

@@ -1,5 +1,6 @@
//<script>
var c = {
optalign:'',
reload:function(){
a.reload();
},
@@ -49,7 +50,7 @@
searchuname:function(d){
js.getuser({
type:'deptusercheck',
title:'搜索'+d.name,
title:'<?=lang('搜索')?>'+d.name,
changevalue:this.search_value,
callback:function(sna,sid){
c.searchunames(d,sna,sid);
@@ -94,7 +95,7 @@
this.initpage();
this.soudownobj = $('#downbtn_{rand}').rockmenu({
width:120,top:35,donghua:false,
data:[{name:'高级搜索',lx:0}],
data:[{name:'<?=lang('高级搜索')?>',lx:0}],
itemsclick:function(d, i){
if(d.lx==0)c.searchhigh();
if(d.lx==1)c.printlist();
@@ -133,7 +134,7 @@
loaddata:function(d){
this.setdownsodata(d.souarr);
if(d.modeid)modeid = d.modeid;
if(modeid>101 && d.loadci==1 && (!d.atypearr || d.atypearr.length==0))js.confirm('列表页没设置好,数据无法显示,没有可切换选择卡,去看帮助设置',function(){window.open('<?=URLY?>view_columns.html')});
if(modeid>101 && d.loadci==1 && (!d.atypearr || d.atypearr.length==0))js.confirm('<?=lang('notcolumns','base')?>',function(){window.open('<?=URLY?>view_columns.html')});
if(!d.atypearr)return;
get('addbtn_{rand}').disabled=(d.isadd!=true);
get('daobtn_{rand}').disabled=(d.isdaochu!=true);
@@ -148,14 +149,14 @@
js.initbtn(c);
},
setdownsodata:function(darr){
var ddata = [{name:'高级搜索',lx:0}],dsd,i;
var ddata = [{name:'<?=lang('高级搜索')?>',lx:0}],dsd,i;
if(darr)for(i=0;i<darr.length;i++){
dsd = darr[i];
dsd.lx=3;
ddata.push(dsd);
}
if(admintype==1)ddata.push({name:'自定义列显示',lx:2});
ddata.push({name:'打印',lx:1});
if(admintype==1)ddata.push({name:'<?=lang('自定义列显示')?>',lx:2});
ddata.push({name:'<?=lang('打印')?>',lx:1});
this.soudownobj.setData(ddata);
},
setcinfo:{},
@@ -176,18 +177,19 @@
},
daoru:function(){
window['managelist'+modenum+''] = a;
addtabs({num:'daoru'+modenum+'',url:'flow,input,daoru,modenum='+modenum+'',icons:'plus',name:'导入'+modename+''});
addtabs({num:'daoru'+modenum+'',url:'flow,input,daoru,modenum='+modenum+'',icons:'plus',name:'<?=lang('导入')?>'+modename+''});
},
initcolumns:function(bots){
var num = 'columns_'+modenum+'_'+pnum+'',d=[],d1,d2={},i,len=fieldsarr.length,bok,sa=[{name:'默认搜索',fields:'','inputtype':'dev'}];
var num = 'columns_'+modenum+'_'+pnum+'',d=[],d1,d2={},i,len=fieldsarr.length,ebo,bok,sa=[{name:'<?=lang('默认搜索')?>',fields:'','inputtype':'dev'}];
var nstr= fieldsselarr[num];if(!nstr)nstr='';
if(nstr)nstr=','+nstr+',';
if(nstr=='' && isflow>0){
var nes = chufarr.base_name;if(!nes)nes='申请人';
var nes = chufarr.base_name;if(!nes)nes='<?=lang('申请人')?>';
d.push({text:nes,dataIndex:'base_name',sortable:true});
nes = chufarr.base_deptname;if(!nes)nes='申请人部门';
nes = chufarr.base_deptname;if(!nes)nes='<?=lang('申请人部门')?>';
d.push({text:nes,dataIndex:'base_deptname',sortable:true});
}
var celleditor = 0;
for(i=0;i<len;i++){
d1 = fieldsarr[i];
bok= false;
@@ -197,11 +199,24 @@
if(nstr.indexOf(','+d1.fields+',')>=0)bok=true;
}
if(bok){
ebo = 0;
d2={text:d1.name,dataIndex:d1.fields};
if(d1.ispx=='1')d2.sortable=true;
if(d1.width)d2.width=d1.width;
if(d1.isalign=='1')d2.align='left';
if(d1.isalign=='2')d2.align='right';
if(d1.iseditlx=='1')ebo=1;
if(d1.iseditlx=='2' && admintype=='1')ebo=1;
if(d1.iseditlx=='3' && admintype=='1' && adminid=='1')ebo=1;
if(ebo==1){
d2.editor = true;
celleditor= 1;
d2.type = d1.fieldstype;
if(d1.fieldstype=='select' || d1.fieldstype=='rockcombo'){
d2.type='select';
d2.store=this.editorstore(d1.store);
}
}
d.push(d2);
}
if(d1['issou']=='1'){
@@ -209,10 +224,14 @@
sa.push(d2);
}
}
if(isflow>0)d.push({text:'流程状态',dataIndex:'statustext'});
if(nstr=='' || nstr.indexOf(',caozuo,')>=0)d.push({text:'',dataIndex:'caozuo',callback:'opegs{rand}'});
if(isflow>0)d.push({text:'<?=lang('流程')?><?=lang('状态')?>',dataIndex:'statustext'});
if(nstr=='' || nstr.indexOf(',caozuo,')>=0){
d1 = {text:'',dataIndex:'caozuo',callback:'opegs{rand}'};
(this.optalign=='left')?d.unshift(d1):d.push(d1);
}
for(i=0;i<d.length;i++)if(this.setcinfo[d[i].dataIndex])d[i] = js.apply(d[i],this.setcinfo[d[i].dataIndex]);
d = this.oncolumns(d);
if(celleditor==1)a.setCans({celleditor:true});
bootparams.columns = d;
if(bots)a.setColumns(d);
d1 = this.fieldzarr;
@@ -227,6 +246,11 @@
this.changefields();
return d;
},
editorstore:function(d){
var d1=[],i;
if(d)for(i=0;i<d.length;i++)d1.push([d[i].value,d[i].name]);
return d1;
},
changefields:function(){
var o1 = get('fields_{rand}');
if(!o1)return;
@@ -251,7 +275,7 @@
$('#selkey_{rand}').show();
o2.value='1';
var o3 = get('selkey_{rand}');
$(o3).html('<option value="">-请选择-</option>');
$(o3).html('<option value="">-<?=lang('请选择')?>-</option>');
js.setselectdata(o3,xa.store,'value');
}else{
$('#keygj_{rand}').show();
@@ -277,10 +301,15 @@
}
window.open('?d=public&m=print&table='+rnd+'&modenum='+modenum+'&modename='+jm.base64encode(modename)+'');
},
getbtnstr:function(txt, click, ys, ots){
getbtnstr:function(txt, click, ys, ots,alx){
if(!ys)ys='default';
if(!ots)ots='';
return '<button class="btn btn-'+ys+'" id="btn'+click+'_{rand}" click="'+click+'" '+ots+' type="button">'+txt+'</button>';
var str='<button class="btn btn-'+ys+'" id="btn'+click+'_{rand}" click="'+click+'" '+ots+' type="button">'+txt+'</button>';
if(alx=='right')this.addrightbtn(str);
return str;
},
addrightbtn:function(str){
$('#tdright_{rand}').prepend(str+'&nbsp;&nbsp;');
},
setfieldslist:function(){
new highsearchclass({
@@ -304,7 +333,7 @@
fanye:true,modenum:modenum,listcreate:true,modename:modename,statuschange:false,tablename:jm.base64decode(listname),
url:c.storeurl(),storeafteraction:'storeaftershow',storebeforeaction:'storebeforeshow',optobj:c,syspnum:pnum,
params:{atype:atype},
columns:[{text:"字段",dataIndex:"face"},{
columns:[{text:"fields",dataIndex:"face"},{
text:'',dataIndex:'caozuo',callback:'opegs{rand}'
}],
itemdblclick:function(){

View File

@@ -5,7 +5,7 @@
*/
defined('HOST') or die ('not access');
$modenum = arrvalue($pageparams,'bh');
if(!$modenum)exit('没有参数bh');
if(!$modenum)exit('404 modenum is empty');
$flow = m('flow:'.$modenum.'')->initbase($modenum);
$isflow = $flow->isflow;
@@ -25,8 +25,8 @@ $(document).ready(function(){
$path = 'webmain/flow/page/rock_page_'.$modenum.'_script.php';
if(file_exists($path))include_once($path);
$shoukey = '关键字';
if($flow->isflow>0)$shoukey = '关键字/申请人/单号';
$shoukey = lang('关键字');
if($flow->isflow>0)$shoukey = ''.lang('关键字').'/'.lang('申请人').'/'.lang('单号').'';
?>
@@ -40,13 +40,13 @@ $(document).ready(function(){
<!--SCRIPTend-->
<!--HTMLstart-->
<div>
<table width="100%">
<table width="100%" id="tools<?=$modenum?>_{rand}">
<tr>
<td style="padding-right:10px;" id="tdleft_{rand}" nowrap><button id="addbtn_{rand}" class="btn btn-primary" click="clickwin,0" disabled type="button"><i class="icon-plus"></i> 新增</button></td>
<td style="padding-right:10px;" id="tdleft_{rand}" nowrap><button id="addbtn_{rand}" class="btn btn-primary" click="clickwin,0" disabled type="button"><i class="icon-plus"></i> <?=lang('新增')?></button></td>
<td><select class="form-control" style="width:110px;border-top-right-radius:0;border-bottom-right-radius:0;padding:0 2px" id="fields_{rand}"></select></td>
<td><select class="form-control" style="width:60px;border-radius:0px;border-left:0;padding:0 2px" id="like_{rand}"><option value="0">包含</option><option value="1">等于</option><option value="2">大于等于</option><option value="3">小于等于</option><option value="4">不包含</option></select></td>
<td><select class="form-control" style="width:130px;border-radius:0;border-left:0;display:none;padding:0 5px" id="selkey_{rand}"><option value="">-请选择-</option></select><input class="form-control" style="width:130px;border-radius:0;border-left:0;padding:0 5px" id="keygj_{rand}" placeholder="关键词"><input class="form-control" style="width:130px;border-radius:0;border-left:0;padding:0 5px;display:none;" id="key_{rand}" placeholder="<?=$shoukey?>">
<td tdlx="sou"><select class="form-control" style="width:110px;border-top-right-radius:0;border-bottom-right-radius:0;padding:0 2px" id="fields_{rand}"></select></td>
<td tdlx="sou"><select class="form-control" style="width:60px;border-radius:0px;border-left:0;padding:0 2px" id="like_{rand}"><option value="0"><?=lang('包含')?></option><option value="1"><?=lang('等于')?></option><option value="2"><?=lang('大于')?><?=lang('等于')?></option><option value="3"><?=lang('小于')?><?=lang('等于')?></option><option value="4"><?=lang('不包含')?></option></select></td>
<td tdlx="sou"><select class="form-control" style="width:130px;border-radius:0;border-left:0;display:none;padding:0 5px" id="selkey_{rand}"><option value="">-<?=lang('请选择')?>-</option></select><input class="form-control" style="width:130px;border-radius:0;border-left:0;padding:0 5px" id="keygj_{rand}" placeholder="<?=lang('关键字')?>"><input class="form-control" style="width:130px;border-radius:0;border-left:0;padding:0 5px;display:none;" id="key_{rand}" placeholder="<?=$shoukey?>">
</td>
<?php
$lbztxs = $flow->moders['lbztxs'];
@@ -56,25 +56,26 @@ $(document).ready(function(){
if($lbztxs==2)$showzt = false;
if($showzt){
$ztarr = $flow->getstatusarr();
$zthtml = '<td><select class="form-control" style="width:120px;border-left:0;border-radius:0;" id="selstatus_{rand}"><option value="">-全部状态-</option>';
$zthtml = '<td><select class="form-control" style="width:120px;border-left:0;border-radius:0;" id="selstatus_{rand}"><option value="">-'.lang('全部').''.lang('状态').'-</option>';
foreach($ztarr as $zt=>$ztv){
if($isflow==0 && $zt==23)continue;
$zthtml .= '<option style="color:'.arrvalue($ztv, 1).'" value="'.$zt.'">'.$ztv[0].'</option>';
$vals = str_replace('?','', $ztv[0]);
$zthtml .= '<option style="color:'.arrvalue($ztv, 1).'" value="'.$zt.'">'.lang($vals).'</option>';
}
$zthtml .= '</select></td>';
$zthtml = str_replace('?','', $zthtml);
echo $zthtml;
}
?>
<td>
<td tdlx="sou">
<div style="white-space:nowrap">
<button style="border-right:0;border-radius:0;border-left:0" class="btn btn-default" click="searchbtn" type="button">搜索</button><button class="btn btn-default" id="downbtn_{rand}" type="button" style="padding-left:8px;padding-right:8px;border-top-left-radius:0;border-bottom-left-radius:0"><i class="icon-angle-down"></i></button>
<button style="border-right:0;border-radius:0;border-left:0" class="btn btn-default" click="searchbtn" type="button"><?=lang('搜索')?></button><button class="btn btn-default" id="downbtn_{rand}" type="button" style="padding-left:8px;padding-right:8px;border-top-left-radius:0;border-bottom-left-radius:0"><i class="icon-angle-down"></i></button>
</div>
</td>
<td width="90%" style="padding-left:10px"><div id="changatype{rand}" class="btn-group"></div></td>
<td id="tdcenter_{rand}" width="90%" style="padding-left:10px"><div id="changatype{rand}" class="btn-group"></div></td>
<td align="right" id="tdright_{rand}" nowrap>
<span style="display:none" id="daoruspan_{rand}"><button class="btn btn-default" click="daoru,1" type="button">导入</button>&nbsp;&nbsp;&nbsp;</span><button class="btn btn-default" style="display:none" id="daobtn_{rand}" disabled click="daochu" type="button">导出 <i class="icon-angle-down"></i></button>
<span style="display:none" id="daoruspan_{rand}"><button class="btn btn-default" click="daoru,1" type="button"><?=lang('导入')?></button>&nbsp;&nbsp;&nbsp;</span><button class="btn btn-default" style="display:none" id="daobtn_{rand}" disabled click="daochu" type="button"><?=lang('导出')?> <i class="icon-angle-down"></i></button>
</td>
</tr>
</table>

View File

@@ -44,22 +44,22 @@ if(pnum=='all'){
<div>
<table width="100%">
<tr>
<td style="padding-right:10px;" id="tdleft_{rand}" nowrap><button id="addbtn_{rand}" class="btn btn-primary" click="clickwin,0" disabled type="button"><i class="icon-plus"></i> 新增</button></td>
<td style="padding-right:10px;" id="tdleft_{rand}" nowrap><button id="addbtn_{rand}" class="btn btn-primary" click="clickwin,0" disabled type="button"><i class="icon-plus"></i> <?=lang('新增')?></button></td>
<td><select class="form-control" style="width:110px;border-top-right-radius:0;border-bottom-right-radius:0;padding:0 2px" id="fields_{rand}"></select></td>
<td><select class="form-control" style="width:60px;border-radius:0px;border-left:0;padding:0 2px" id="like_{rand}"><option value="0">包含</option><option value="1">等于</option><option value="2">大于等于</option><option value="3">小于等于</option><option value="4">不包含</option></select></td>
<td><select class="form-control" style="width:130px;border-radius:0;border-left:0;display:none;padding:0 5px" id="selkey_{rand}"><option value="">-请选择-</option></select><input class="form-control" style="width:130px;border-radius:0;border-left:0;padding:0 5px" id="keygj_{rand}" placeholder="关键词"><input class="form-control" style="width:130px;border-radius:0;border-left:0;padding:0 5px;display:none;" id="key_{rand}" placeholder="关键字/申请人/单号">
<td><select class="form-control" style="width:60px;border-radius:0px;border-left:0;padding:0 2px" id="like_{rand}"><option value="0"><?=lang('包含')?></option><option value="1"><?=lang('等于')?></option><option value="2"><?=lang('大于')?><?=lang('等于')?></option><option value="3"><?=lang('小于')?><?=lang('等于')?></option><option value="4"><?=lang('不包含')?></option></select></td>
<td><select class="form-control" style="width:130px;border-radius:0;border-left:0;display:none;padding:0 5px" id="selkey_{rand}"><option value="">-<?=lang('请选择')?>-</option></select><input class="form-control" style="width:130px;border-radius:0;border-left:0;padding:0 5px" id="keygj_{rand}" placeholder="<?=lang('关键字')?>"><input class="form-control" style="width:130px;border-radius:0;border-left:0;padding:0 5px;display:none;" id="key_{rand}" placeholder="<?=lang('关键字')?>/<?=lang('申请人')?>/<?=lang('单号')?>">
</td>
<td><select class="form-control" style="width:120px;border-left:0;border-radius:0;" id="selstatus_{rand}"><option value="">-全部状态-</option><option style="color:blue" value="0">待处理</option><option style="color:green" value="1">已审核</option><option style="color:red" value="2">不同意</option><option style="color:#888888" value="5">已作废</option><option style="color:#17B2B7" value="23">退回</option></select></td>
<td><select class="form-control" style="width:120px;border-left:0;border-radius:0;" id="selstatus_{rand}"><option value="">-<?=lang('全部')?><?=lang('状态')?>-</option><option style="color:blue" value="0"><?=lang('待处理')?></option><option style="color:green" value="1"><?=lang('已审核')?></option><option style="color:red" value="2"><?=lang('不同意')?></option><option style="color:#888888" value="5"><?=lang('已作废')?></option><option style="color:#17B2B7" value="23"><?=lang('退回')?></option></select></td>
<td>
<div style="white-space:nowrap">
<button style="border-right:0;border-radius:0;border-left:0" class="btn btn-default" click="searchbtn" type="button">搜索</button><button class="btn btn-default" id="downbtn_{rand}" type="button" style="padding-left:8px;padding-right:8px;border-top-left-radius:0;border-bottom-left-radius:0"><i class="icon-angle-down"></i></button>
<button style="border-right:0;border-radius:0;border-left:0" class="btn btn-default" click="searchbtn" type="button"><?=lang('搜索')?></button><button class="btn btn-default" id="downbtn_{rand}" type="button" style="padding-left:8px;padding-right:8px;border-top-left-radius:0;border-bottom-left-radius:0"><i class="icon-angle-down"></i></button>
</div>
</td>
<td width="90%" style="padding-left:10px"><div id="changatype{rand}" class="btn-group"></div></td>
<td align="right" id="tdright_{rand}" nowrap>
<span style="display:none" id="daoruspan_{rand}"><button class="btn btn-default" click="daoru,1" type="button">导入</button>&nbsp;&nbsp;&nbsp;</span><button class="btn btn-default" style="display:none" id="daobtn_{rand}" disabled click="daochu" type="button">导出 <i class="icon-angle-down"></i></button>
<span style="display:none" id="daoruspan_{rand}"><button class="btn btn-default" click="daoru,1" type="button"><?=lang('导入')?></button>&nbsp;&nbsp;&nbsp;</span><button class="btn btn-default" style="display:none" id="daobtn_{rand}" disabled click="daochu" type="button"><?=lang('导出')?> <i class="icon-angle-down"></i></button>
</td>
</tr>
</table>

View File

@@ -0,0 +1,102 @@
//<script>
c.optalign = 'left';
var editarr = ['islu','isbt','iszs','islb','ispx','issou','isonly','isdr','istj'],mkid=0,mknum=modenum;
for(var i=0;i<editarr.length;i++)c.setcolumns(editarr[i],{type:'checkbox'});
bootparams.fanye = false;
c.initpage=function(){
$('#tdleft_{rand}').after('<td ><select style="width:180px;" class="form-control" id="modeid_{rand}" ></select></td>');
$('#modeid_{rand}').change(function(){
c.changemodeid(this);
});
}
c.onloadbefore=function(d){
if(d.modearr){
var s = '<option value="0">-选择模块-</option>',len=d.modearr.length,i,csd,types='';
for(i=0;i<len;i++){
csd = d.modearr[i];
if(types!=csd.type){
if(types!='')s+='</optgroup>';
s+='<optgroup label="'+csd.type+'">';
}
s+='<option value="'+csd.id+'">'+csd.name+'</option>';
types = csd.type;
}
s+='</optgroup>';
$('#modeid_{rand}').html(s);
}
if(d.mkrs)mknum = d.mkrs.num;
}
c.changemodeid=function(o1){
var val = o1.value;
if(val=='0')return;
mkid = val;
a.setparams({mkid:mkid},true);
}
c.xuanmoxbo = function(){
if(mkid=='0'){
js.msgerror('请先选择模块');
return false;
}
return true;
}
c.clickwin=function(o1,lx){
if(!this.xuanmoxbo())return;
openinput(modename,modenum,'0&mkid='+mkid+'','opegs{rand}');
}
$('#tools'+modenum+'_{rand}').find('td[tdlx="sou"]').hide();
var strss = '<div class="btn-group" style="margin-right:10px">';
strss+='<button class="btn btn-default" click="inputs,0" type="button">PC端录入页布局</button>';
strss+='<button class="btn btn-default" click="zhanshi,0" type="button">PC端展示</button>';
strss+='<button class="btn btn-default" click="zhanshi,1" type="button">手机展示</button>';
strss+='<button class="btn btn-default" click="zhanshi,2" type="button">打印布局</button>';
strss+='<button class="btn btn-default" click="lulu,0" type="button">PC录入页</button>';
strss+='<button class="btn btn-default" click="lulu,1" type="button">手机录入页</button>';
strss+='<button class="btn btn-default" click="changelieb" type="button">生成列表页</button>';
strss+='</div>';
$('#tdcenter_{rand}').prepend(''+strss+'');
c.inputs=function(){
if(!this.xuanmoxbo())return;
var url='?m=flow&d=main&a=input&setid='+mkid+'&atype=0';
js.open(url,980,530);
}
c.zhanshi=function(o1,lx){
if(!this.xuanmoxbo())return;
var url='?m=flow&d=main&a=inputzs&setid='+mkid+'&atype='+lx+'';
js.open(url,980,530);
}
c.lulu=function(o1,lx){
if(!this.xuanmoxbo())return;
if(lx==1){
var url = js.getajaxurl('@lum','input','flow',{num:mknum});
js.open(url, 380,500);
}else{
var url = js.getajaxurl('@lu','input','flow',{num:mknum});
js.open(url, 800,450);
}
}
c.changelieb=function(){
if(!this.xuanmoxbo())return;
js.ajax(js.getajaxurl('changelieb','flow','main'),{modeid:mkid},function(s){
js.msg('success','生成成功路径:'+s+'');
},'get','','生成中...,生成成功');
}
c.getbtnstr('旧版','oldban','','','right');
c.getbtnstr('刷新排序','rexuhao','','','right');
c.rexuhao=function(){
if(!this.xuanmoxbo())return;
js.ajax(js.getajaxurl('rexuhao','flow','main'),{modeid:mkid},function(){
a.reload();
},'get','','刷新中...,刷新成功');
}
c.oldban=function(){
addtabs({'name':'表单元素管理(旧版)',url:'main,flow,element',num:'flowelementold','icons':'check'});
}

View File

@@ -0,0 +1,58 @@
//<script>
bootparams.statuschange = true;
$('#tools'+modenum+'_{rand}').find('td[tdlx="sou"]').hide();
bootparams.fanye = false;
bootparams.tree = true;
c.getbtnstr('旧版','oldban','','','right');
c.getbtnstr('加下级菜单','jiaxiaji','','disabled','right');
c.setcolumns('url',{
type:'textarea',
renderstyle:function(v,d){
return 'word-wrap:break-word;word-break:break-all;white-space:normal;width:180px';
}
});
if(ISDEMO){
c.setcolumns('status',{
editor:false
});
}
c.oldban=function(){
addtabs({'name':'菜单管理(旧版)',url:'system,menu',num:'menuold','icons':'list-ul'});
}
c.jiaxiaji=function(){
openinput(modename,modenum,'0&def_pid='+a.changeid+'','opegs{rand}');
}
function anbtsenb(bo){
get('btnjiaxiaji_{rand}').disabled=bo;
}
bootparams.itemclick=function(){
anbtsenb(false);
}
bootparams.beforeload=function(){
anbtsenb(true);
}
c.initpage=function(){
$('#tdleft_{rand}').after('<td style="padding-right:10px"><select style="width:150px;" class="form-control" id="modeid_{rand}" ><option value="0">请选择菜单</option></select></td>');
$('#modeid_{rand}').change(function(){
a.setparams({pid:this.value},true);
});
}
c.changemodeid=function(){
}
var boodes = false;
c.onloadbefore=function(d){
if(boodes)return;
js.setselectdata(get('modeid_{rand}'),d.rows,'id');
boodes = true;
}

View File

@@ -0,0 +1,171 @@
//<script>
c.optalign = 'left';
bootparams.statuschange = true;
bootparams.checked = true;
var editarr = ['pctx','status','emtx','mctx','wxtx','ddtx','istxset','ispl','islu','isup','ishz'];
for(var i=0;i<editarr.length;i++)c.setcolumns(editarr[i],{type:'checkbox'});
c.getbtnstr('旧版','oldban','','','right');
<?php if(getconfig('rockinzip'))echo "c.getbtnstr('生成安装包','shengsheng','','','right');"; ?>
c.getbtnstr('重新匹配流程','pipei','','','right');
c.getbtnstr('复制','fuzhi','','disabled','right');
c.getbtnstr('生成所有列表页','allcreate','','','right');
c.getbtnstr('模块开发管理 <i class="icon-angle-down"></i>','downbtn','primary','disabled','right');
if(ISDEMO){
c.setcolumns('status',{
editor:false,
type:'checkbox'
});
}
c.shengsheng=function(){
var sid = a.getchecked();
addtabs({'name':'创建安装包',url:'main,flow,createinstall,sid='+jm.base64encode(sid)+'',num:'createinstall'});
}
c.oldban=function(){
addtabs({'name':'流程模块列表(旧版)',url:'main,flow,set',num:'flowsetold','icons':'th-list'});
}
c.pipei=function(){
js.ajax(js.getajaxurl('reloadpipei','flow','main'),{},function(s){
js.msg('success', s);
},'get',false,'匹配中...,匹配完成');
}
c.fuzhi=function(){
if(a.changeid==0)return;
js.prompt('输入新模块编号','将会从模块['+a.changedata.name+']复制主表子表和表单元素字段的!', function(jg,txt){
if(jg=='yes' && txt)c.copys(txt);
});
}
c.copys=function(txt){
js.ajax(js.getajaxurl('copymode','flow','main'),{id:a.changeid,name:txt},function(s){
if(s=='ok'){
a.reload();
}else{
js.msg('msg',s);
}
},'post',false,'复制中...,复制成功:还是要做其他很多事的,具体请到官网看模块开发视频。');
}
c.downbtn=function(){}
function anbtsenb(bo){
get('btnfuzhi_{rand}').disabled=bo;
get('btndownbtn_{rand}').disabled=bo;
}
bootparams.itemclick=function(){
anbtsenb(false);
}
bootparams.beforeload=function(){
anbtsenb(true);
}
c.allcreate=function(){
js.ajax(js.getajaxurl('allcreate','flow','main'),{},function(s){
js.msg('success', s);
},'get',false,'生成中...');
}
$('#btndownbtn_{rand}').rockmenu({
width:170,top:35,donghua:false,
data:[{
name:'主表管理',lx:0
},{
name:'清空此模块数据',lx:2
},{
name:'同步到单位数据',lx:3
},{
name:'同步菜单到单位数据',lx:4
}],
itemsclick:function(d, i){
var id = a.changedata.id;
if(!id)return;
if(d.lx==0)c.biaoge();
if(d.lx==2)c.clearalldata(id);
if(d.lx==3)c.tongbudanwu();
if(d.lx==4)c.tongbumenu();
}
});
c.biaoge=function(){
this.showtalbe(a.changedata.table);
}
c.showtalbe=function(table){
if(!table)return;
var name='<?=PREFIX?>'+table+'';
addtabs({num:'tablefields'+name+'',url:'system,table,fields,table='+name+'',name:'['+name+']字段管理'});
}
c.clearalldata=function(id){
if(a.changedata.type=='系统'){
js.msgerror('系统类型模块不能清空');
return;
}
js.confirm('确定要清空此['+a.changedata.name+']模块所有数据嘛?<b style="color:red">慎重慎重慎重慎重!</b>',function(ssal){
if(ssal=='yes')c.clearalldatas(id);
});
}
c.clearalldatas=function(id){
js.ajax(js.getajaxurl('clearallmode','flow','main'),{id:id},function(s){
if(s=='ok'){
a.reload();
}else{
js.msg('msg',s);
}
},'post',false,'清空中...,清空成功');
}
c.tongbudanwu=function(){
var sid = a.getchecked();
if(!sid){
js.msgerror('复选框中没有选中模块');return;
}
this.xuandanwefe(sid,0);
}
c.xuandanwefe=function(sid,lx){
js.tanbody('senddw','同步到单位数据里', 350, 200, {
html:'<form name="sendform"><div style="padding:10px;" id="senddwdiv"><img src="images/mloading.gif"></div></form>',
btn:[{text:'确定同步'}]
});
js.ajax(js.getajaxurl('getcompanydata','flow','main'),{},function(ret){
var str = '',da=ret.data;
for(var i=0;i<da.length;i++){
str+='<div><label><input type="checkbox" name="xuanzhe[]" value="'+da[i].id+'">'+da[i].name+'</label></div>';
}
if(!str)str=ret.msg;
$('#senddwdiv').html(str);
},'get,json');
$('#senddw_btn0').click(function(){
c.sendgongwenjsok(sid,lx);
});
},
c.sendgongwenjsok=function(id1,lx){
var da = js.getformdata('sendform');
if(!da.xuanzhe){
js.msgerror('请选择单位');
return;
}
da.modeids = id1;
da.lx = lx;
js.loading('同步中...');
js.tanclose('senddw');
js.ajax(publicmodeurl('company','anaymodedata'),da,function(ret){
js.msgok(ret.data);
},'post,json');
},
c.tongbumenu=function(){
$.selectdata({
title:'选择需要同步的菜单',
url:js.getajaxurl('getmenu','upgrade','system',{glx:1}),
checked:true,maxshow:500,
onselect:function(d1,sna,sid){
if(sid)c.xuandanwefe(sid, 1)
}
});
}

View File

@@ -9,7 +9,7 @@ defined('HOST') or die ('not access');
<script>
$(document).ready(function(){
{params}
var modenum = 'gong',modename='通知公告',isflow=0,modeid='1',atype = params.atype,pnum=params.pnum,modenames='多行子表名称',listname='aW5mb3I:';
var modenum = 'gong',modename='通知公告',isflow=0,modeid='1',atype = params.atype,pnum=params.pnum,modenames='投票项目',listname='aW5mb3I:';
if(!atype)atype='';if(!pnum)pnum='';
var fieldsarr = [],fieldsselarr= [],chufarr= [];
@@ -55,22 +55,22 @@ c.setcolumns('appxs',{
<div>
<table width="100%">
<tr>
<td style="padding-right:10px;" id="tdleft_{rand}" nowrap><button id="addbtn_{rand}" class="btn btn-primary" click="clickwin,0" disabled type="button"><i class="icon-plus"></i> 新增</button></td>
<td style="padding-right:10px;" id="tdleft_{rand}" nowrap><button id="addbtn_{rand}" class="btn btn-primary" click="clickwin,0" disabled type="button"><i class="icon-plus"></i> <?=lang('新增')?></button></td>
<td><select class="form-control" style="width:110px;border-top-right-radius:0;border-bottom-right-radius:0;padding:0 2px" id="fields_{rand}"></select></td>
<td><select class="form-control" style="width:60px;border-radius:0px;border-left:0;padding:0 2px" id="like_{rand}"><option value="0">包含</option><option value="1">等于</option><option value="2">大于等于</option><option value="3">小于等于</option><option value="4">不包含</option></select></td>
<td><select class="form-control" style="width:130px;border-radius:0;border-left:0;display:none;padding:0 5px" id="selkey_{rand}"><option value="">-请选择-</option></select><input class="form-control" style="width:130px;border-radius:0;border-left:0;padding:0 5px" id="keygj_{rand}" placeholder="关键词"><input class="form-control" style="width:130px;border-radius:0;border-left:0;padding:0 5px;display:none;" id="key_{rand}" placeholder="关键字">
<td><select class="form-control" style="width:60px;border-radius:0px;border-left:0;padding:0 2px" id="like_{rand}"><option value="0"><?=lang('包含')?></option><option value="1"><?=lang('等于')?></option><option value="2"><?=lang('大于')?><?=lang('等于')?></option><option value="3"><?=lang('小于')?><?=lang('等于')?></option><option value="4"><?=lang('不包含')?></option></select></td>
<td><select class="form-control" style="width:130px;border-radius:0;border-left:0;display:none;padding:0 5px" id="selkey_{rand}"><option value="">-<?=lang('请选择')?>-</option></select><input class="form-control" style="width:130px;border-radius:0;border-left:0;padding:0 5px" id="keygj_{rand}" placeholder="<?=lang('关键字')?>"><input class="form-control" style="width:130px;border-radius:0;border-left:0;padding:0 5px;display:none;" id="key_{rand}" placeholder="<?=lang('关键字')?>">
</td>
<td>
<div style="white-space:nowrap">
<button style="border-right:0;border-radius:0;border-left:0" class="btn btn-default" click="searchbtn" type="button">搜索</button><button class="btn btn-default" id="downbtn_{rand}" type="button" style="padding-left:8px;padding-right:8px;border-top-left-radius:0;border-bottom-left-radius:0"><i class="icon-angle-down"></i></button>
<button style="border-right:0;border-radius:0;border-left:0" class="btn btn-default" click="searchbtn" type="button"><?=lang('搜索')?></button><button class="btn btn-default" id="downbtn_{rand}" type="button" style="padding-left:8px;padding-right:8px;border-top-left-radius:0;border-bottom-left-radius:0"><i class="icon-angle-down"></i></button>
</div>
</td>
<td width="90%" style="padding-left:10px"><div id="changatype{rand}" class="btn-group"></div></td>
<td align="right" id="tdright_{rand}" nowrap>
<span style="display:none" id="daoruspan_{rand}"><button class="btn btn-default" click="daoru,1" type="button">导入</button>&nbsp;&nbsp;&nbsp;</span><button class="btn btn-default" style="display:none" id="daobtn_{rand}" disabled click="daochu" type="button">导出 <i class="icon-angle-down"></i></button>
<span style="display:none" id="daoruspan_{rand}"><button class="btn btn-default" click="daoru,1" type="button"><?=lang('导入')?></button>&nbsp;&nbsp;&nbsp;</span><button class="btn btn-default" style="display:none" id="daobtn_{rand}" disabled click="daochu" type="button"><?=lang('导出')?> <i class="icon-angle-down"></i></button>
</td>
</tr>
</table>

View File

@@ -66,7 +66,29 @@ if(atype=='all'){
get('btnbianjila_{rand}').disabled=true;
}
$('#viewuserinfo_{rand}').after('<div class="tishi">添加人员档案请到[用户管理]那添加,删除档案,需要先删除用户在删除档案。</div>');
c.initpage=function(){
a.settishi('<div class="tishi">添加人员档案请到[用户管理]那添加,删除档案,需要先删除用户在删除档案。</div>');
}
var showdept = false;//是否显示左边部门
if(showdept){
bootparams.params.showdept='1';
var shtm = '<table width="100%"><tr valign="top"><td><div style="border:1px #cccccc solid;width:220px"><div id="optionview_{rand}" style="height:'+(viewheight-90)+'px;overflow:auto;"></div></div></td><td width="8" nowrap><div style="width:8px;overflow:hidden"></div></td><td width="95%"><div id="viewuserinfo_{rand}"></div></td></tr></table>';
$('#viewuserinfo_{rand}').after(shtm).remove();
var at = $('#optionview_{rand}').bootstree({
url:false,autoLoad:false,
columns:[{
text:'部门',dataIndex:'name',align:'left',xtype:'treecolumn'
}],
itemdblclick:function(d){
a.setparams({'search_value':'d'+d.id+'','search_fields':'id'}, true);
}
});
c.onloadbefore=function(d){
if(d.deptdata)at.loadData(d.deptdata);
}
}
}
$('#tdleft_{rand}').hide();

View File

@@ -0,0 +1,28 @@
<div class="r-tabs" tabid="a" style="margin-left:34px">
<div index="0" class="r-tabs-item active">模块详情</div>
<div index="1" custid="{id}" class="r-tabs-item">字段信息</div>
</div>
<!--第一个内容,固定默认的详情变量-->
<div tabitem="0" tabid="a">
$contview$
</div>
<div class="ys0" tabitem="1" tabid="a" style="display:none">字段信息</div>
<script>
var loadbo = [];
js.ontabsclicks=function(ind,tid,o,ho){
if(ind>=1 && !loadbo[ind]){
var custid = o.attr('custid');
ho.html('<img src="images/mloading.gif">');
js.ajax(geturlact('getothernr'),{
'mkid':custid,
'ind':ind
},function(ret){
ho.html(ret);
});
}
loadbo[ind] = true;
}
</script>