webmain/flow/input/mode_collectsAction.php
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<?php
/**
* 此文件是流程模块【collects.信息收集表】对应控制器接口文件。
*/
class mode_collectsClassAction extends inputAction{
/**
* 重写函数:保存前处理,主要用于判断是否可以保存
* $table String 对应表名
* $arr Array 表单参数
* $id Int 对应表上记录Id 0添加时,大于0修改时
* $addbo Boolean 是否添加时
* return array('msg'=>'错误提示内容','rows'=> array()) 可返回空字符串,或者数组 rows 是可同时保存到数据库上数组
*/
protected function savebefore($table, $arr, $id, $addbo){
$rows['type'] = 3; //必须为3
return array(
'rows' => $rows
);
}
/**
* 重写函数:保存后处理,主要保存其他表数据
* $table String 对应表名
* $arr Array 表单参数
* $id Int 对应表上记录Id
* $addbo Boolean 是否添加时
*/
protected function saveafter($table, $arr, $id, $addbo){
}
protected function storeaftersss($table, $rows, $barr=array())
{
$arr = array();
$mid = (int)$this->get('leixingid','0');
if($mid>0 && isset($barr['listinfo'])){
$fieldsarr = $barr['listinfo']['fieldsarr'];
}
return $arr;
}
private $zdarr,$zdobj;
public function collectstotal_before()
{
$mid = (int)$this->get('mid','0');
$this->mid = $mid;
$key = $this->post('key');
$this->zdarr = m('plans')->getall('mid='.$this->mid.'','*','`sort`');
$this->zdobj = array();
$where = '';
if($key)$where=" and (`optname` like '%".$key."%'";
$wher1 = '';
foreach($this->zdarr as $k=>$rs){
$flx = $rs['zxren'];
$this->zdobj[$rs['id']] = $flx;
}
后面还有 67 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
