|
@@ -72,25 +72,64 @@ class mode_sealaplClassAction extends inputAction{
|
|
|
return $barr;
|
|
|
}
|
|
|
|
|
|
- public function sealaplaftershow($table) {
|
|
|
+ public function sealaplaftershow($table,$rows)
|
|
|
+ {
|
|
|
+ $barr['rows'] = $rows;
|
|
|
+ $barr['atypearr'] = $this->atypearr;
|
|
|
+ if($this->loadci==1){
|
|
|
+ $vobj = m('view');
|
|
|
+ $barr['isadd'] = $vobj->isadd($this->modeid, $this->adminid); //判断是否可添加
|
|
|
+ $barr['isdaoru'] = $vobj->isdaoru($this->modeid, $this->adminid); //判断是否可导入
|
|
|
+ $barr['isdaochu'] = $vobj->isdaochu($this->modeid, $this->adminid); //判断是否可导入
|
|
|
+// $barr['listinfo'] = m('mode')->createlistpage($this->flow->moders,0,1,$this);
|
|
|
+ }
|
|
|
+ $barr['souarr'] = $this->flow->flowsearchfields();
|
|
|
+ $rows = $this->flow->viewjinfields($rows);//禁看字段处理
|
|
|
+ $farrl = array();
|
|
|
+ foreach($this->flow->fieldsarra as $k2=>$rs2){
|
|
|
+ if($rs2['fieldstype']=='uploadimg')$farrl[$rs2['fields']]=$rs2['fieldstype'];
|
|
|
+ }
|
|
|
|
|
|
- return array(
|
|
|
- 'rows' => [
|
|
|
-
|
|
|
- ],
|
|
|
- 'where' =>'1=1',
|
|
|
- 'order'=>'id desc',
|
|
|
- 'table'=> $table
|
|
|
- );
|
|
|
+ if($rows)foreach($rows as $k1=>$rs1){
|
|
|
+ foreach($farrl as $fid=>$flx){
|
|
|
+ if(isset($rs1[$fid])){
|
|
|
+ $val = $rs1[$fid];
|
|
|
+ if($flx=='uploadimg'){
|
|
|
+ $val = $this->rock->gethttppath($val);
|
|
|
+ $rows[$k1][$fid] = $val;
|
|
|
+ //if($this->flow->modeid>92)$val='<img src="'.$val.'" height="60">';
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ $barr['modeid'] = $this->modeid;
|
|
|
+ $barr['loadci'] = $this->loadci;
|
|
|
+// $barr['rows'] = $rows;
|
|
|
+ $scarr = $this->storeafter($table, $rows, $barr);
|
|
|
+ if(is_array($scarr))foreach($scarr as $k=>$v)$barr[$k]=$v;
|
|
|
+ return $barr;
|
|
|
}
|
|
|
|
|
|
- public function sealaplbeforeshow($table) {
|
|
|
-
|
|
|
- return array(
|
|
|
- 'where' =>'1=1',
|
|
|
- 'order'=>'id desc',
|
|
|
- 'table'=> $table
|
|
|
- );
|
|
|
- }
|
|
|
+// public function sealaplaftershow($table) {
|
|
|
+//
|
|
|
+// return array(
|
|
|
+// 'rows' => [
|
|
|
+//
|
|
|
+// ],
|
|
|
+// 'where' =>'1=1',
|
|
|
+// 'order'=>'id desc',
|
|
|
+// 'table'=> $table
|
|
|
+// );
|
|
|
+// }
|
|
|
+//
|
|
|
+//
|
|
|
+// public function sealaplbeforeshow($table) {
|
|
|
+//
|
|
|
+// return array(
|
|
|
+// 'where' =>'1=1',
|
|
|
+// 'order'=>'id desc',
|
|
|
+// 'table'=> $table
|
|
|
+// );
|
|
|
+// }
|
|
|
}
|
|
|
|