信呼OA版本v2.3.8
This commit is contained in:
52
webmain/we/flow/flowAction.php
Normal file
52
webmain/we/flow/flowAction.php
Normal file
@@ -0,0 +1,52 @@
|
||||
<?php
|
||||
class flowClassAction extends ActionNot{
|
||||
|
||||
public function initAction()
|
||||
{
|
||||
$this->mweblogin(0, true);
|
||||
}
|
||||
|
||||
public function applyAction()
|
||||
{
|
||||
$this->title = '申请流程';
|
||||
|
||||
$viewobj = m('view');
|
||||
$applyarr = m('mode')->getmoderows($this->adminid,'and islu=1');
|
||||
$modearr = array();
|
||||
$otyle = '';
|
||||
$oi = 0;
|
||||
foreach($applyarr as $k=>$rs){
|
||||
if(!$viewobj->isadd($rs, $this->adminid))continue;
|
||||
if($otyle!=$rs['type']){
|
||||
$oi = 0;
|
||||
}
|
||||
$otyle = $rs['type'];
|
||||
$oi++;
|
||||
$modearr[$rs['type']][]=array('modenum'=>$rs['num'],'url'=>'?a=lum&m=input&d=flow&num='.$rs['num'].'&show=we','name'=>$rs['name'],'title'=>''.$oi.'.'.$rs['name']);
|
||||
}
|
||||
$this->assign('modearr', $modearr);
|
||||
}
|
||||
|
||||
//单据查看
|
||||
public function viewAction()
|
||||
{
|
||||
$this->title = '单据查看';
|
||||
|
||||
$viewobj = m('view');
|
||||
$applyarr = m('mode')->getmoderows($this->adminid,'');
|
||||
$modearr = array();
|
||||
$otyle = '';
|
||||
$oi = 0;
|
||||
foreach($applyarr as $k=>$rs){
|
||||
if($rs['isscl']==0)continue;
|
||||
if($otyle!=$rs['type']){
|
||||
$oi = 0;
|
||||
}
|
||||
$otyle = $rs['type'];
|
||||
$oi++;
|
||||
$modearr[$rs['type']][]=array('modenum'=>$rs['num'],'url'=>'?m=ying&d=we&mnum='.$rs['num'].'&show=we','name'=>$rs['name'],'title'=>''.$oi.'.'.$rs['name']);
|
||||
}
|
||||
$this->assign('modearr', $modearr);
|
||||
$this->displayfile = 'webmain/we/flow/tpl_flow_apply.html';
|
||||
}
|
||||
}
|
||||
79
webmain/we/flow/tpl_flow_apply.html
Normal file
79
webmain/we/flow/tpl_flow_apply.html
Normal file
@@ -0,0 +1,79 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0">
|
||||
<title><?=$da['title']?></title>
|
||||
<link rel="stylesheet" type="text/css" href="mode/weui/weui.min.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="web/res/fontawesome/css/font-awesome.min.css">
|
||||
<link rel="stylesheet" type="text/css" href="webmain/css/rui.css">
|
||||
<script type="text/javascript" src="js/jquery.js"></script>
|
||||
<script type="text/javascript" src="js/js.js"></script>
|
||||
<style>
|
||||
|
||||
</style>
|
||||
<script>
|
||||
ismobile = 1;
|
||||
function xuantype(o1){
|
||||
var val = o1.value;
|
||||
if(val){
|
||||
js.backto('typelx'+val+'');
|
||||
}
|
||||
}
|
||||
function initApp(){
|
||||
js.setapptitle();
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<?php if($showheader==1){?>
|
||||
<div>
|
||||
<div class="r-header" style="padding-top:<?=$cenghei?>px" >
|
||||
<div onclick="location.reload()" id="header_title" class="r-header-text"><?=$da['title']?></div>
|
||||
<span onclick="js.back()" class="r-position-left r-header-btn"><i class="icon-chevron-left"></i></span>
|
||||
</div>
|
||||
<div class="blank50" id="header_line" style="height:<?=($cenghei+50)?>px"></div>
|
||||
</div>
|
||||
<?php }?>
|
||||
|
||||
<div style="background:white"><div style="margin:0px 10px"><select style="width:100%;border:none;background:none;height:40px;font-size:16px" onchange="xuantype(this)">
|
||||
<option value="">-快速选择分类-</option>
|
||||
<?php
|
||||
$count=0;
|
||||
foreach($modearr as $type=>$rows){
|
||||
$count++;
|
||||
echo '<option value="'.$count.'">'.$type.'('.count($rows).')</option>';
|
||||
}
|
||||
?>
|
||||
</select></div></div>
|
||||
|
||||
<?php
|
||||
$count=0;$count1=0;
|
||||
foreach($modearr as $type=>$rows){
|
||||
$count1++;
|
||||
?>
|
||||
<div class="weui_cells_title" id="typelx<?=$count1?>"><?=$type?>(<?=count($rows)?>)</div>
|
||||
<div class="weui_cells weui_cells_access">
|
||||
<?php
|
||||
foreach($rows as $k=>$rs){
|
||||
$count++;
|
||||
?>
|
||||
<a class="weui_cell" href="<?=$rs['url']?>">
|
||||
<div class="weui_cell_bd weui_cell_primary">
|
||||
<p><?=$rs['title']?></p>
|
||||
</div>
|
||||
<div class="weui_cell_ft">
|
||||
</div>
|
||||
</a>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<div align="center" class="weui_cells_title">总共<?=$count?>个模块</div>
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user