settable('flow_element');
}
public function getsubtable($modeid,$iszb=1, $hang=1, $ism=0, &$zbshu=1)
{
if($iszb<=0)$iszb=1;
if($hang<=0)$hang=1;
$rows = $this->getall("`mid`='$modeid' and `iszb`=$iszb and `islu`=1",'`isbt`,`fields`,`fieldstype`,`name`','`sort`');
if(!$rows)return '';
$xu = $iszb-1;
$str = '
';
$str.='';
$str.='| 序号 | ';
$yfsr= array('hidden','fixed');
$yczd= array();
$zlen= 0;
foreach($rows as $k=>$rs){
$zlen++;
$xh = '';
if($rs['isbt']==1)$xh='*';
if(in_array($rs['fieldstype'], $yfsr)){
$yczd[] = $rs['fields'];
continue;
}
$str.=''.$xh.''.$rs['name'].' | ';
}
$strm = '| {subzbname'.$xu.'} |
';
$zbshu = $zlen;
$str.='操作 | ';
$str.='';
$strm1= '';
for($j=0;$j<$hang;$j++){
$str.='';
$str.='| [xuhao'.$xu.','.$j.'] | ';
$yoi =0;
$tstr= '';
foreach($rows as $k=>$rs){
if(in_array($rs['fieldstype'], $yfsr))continue;
$tstr='['.$rs['fields'].''.$xu.','.$j.']';
if(isset($rows[$k+1]) && in_array($rows[$k+1]['fieldstype'], $yfsr)){
$tstr.='['.$rows[$k+1]['fields'].''.$xu.','.$j.']'; //隐藏字段
}
$xh = '';
if($rs['isbt']==1)$xh='*';
$strm1.='';
$str .=''.$tstr.' | ';
$yoi++;
}
$str.='{删,'.$xu.'} | ';
$str.='
';
}
$str.='
';
//$strm.= '[xuhao'.$xu.',0]'.$strm1.'{删,'.$xu.'} |
';
$strm.= '';
$strm.= '{subzbname'.$xu.'} [xuhao'.$xu.',0] ';
$strm.= ''.$strm1.' ';
$strm.= ' {删,'.$xu.'}';
$strm.= ' |
';
if($ism==0)$str.='{新增,'.$xu.'}
';
if($ism==1){
$str.='{新增,'.$xu.'}
';
$strm.='{新增,'.$xu.'}
';
return $strm;//如果你想移动端录入页显示一起就返回这个
}
return $str;
}
}