|
@@ -688,32 +688,77 @@ class flowModel extends Model
|
|
if($lx==1){
|
|
if($lx==1){
|
|
$contvimr = '';
|
|
$contvimr = '';
|
|
if($this->isflow>0 && $this->urs){
|
|
if($this->isflow>0 && $this->urs){
|
|
- $contvimr.='<div class="r-border-b">
|
|
|
|
- <div class="blank5"></div>
|
|
|
|
- <table><tr>
|
|
|
|
- <td width="50" align="left"><img style="height:40px;width:40px;border-radius:50%" src="'.$this->urs['face'].'"></td>
|
|
|
|
- <td><div>'.$this->urs['name'].'<font color="#888888">('.$this->urs['ranking'].')</font></div><div style="padding-top:5px">'.$this->urs['deptallname'].'</div></td>
|
|
|
|
- </tr></table>
|
|
|
|
- <div style="margin:5px 0px" class="blank10"></div>
|
|
|
|
- </div>';
|
|
|
|
|
|
+
|
|
|
|
+// $contvimr.='<div class="r-border-b">
|
|
|
|
+// <div class="blank5"></div>
|
|
|
|
+// <table><tr>
|
|
|
|
+// <td width="50" align="left"><img style="height:40px;width:40px;border-radius:50%" src="'.$this->urs['face'].'"></td>
|
|
|
|
+// <td><div>'.$this->urs['name'].'<font color="#888888">('.$this->urs['ranking'].')</font></div><div style="padding-top:5px">'.$this->urs['deptallname'].'</div></td>
|
|
|
|
+// </tr></table>
|
|
|
|
+// <div style="margin:5px 0px" class="blank10"></div>
|
|
|
|
+// </div>';
|
|
|
|
+
|
|
|
|
+ // 顶部头像、申请信息
|
|
|
|
+ $contvimr .='<div class="" style="background-color: #fff; border-radius: 30px; padding: 10px;">
|
|
|
|
+ <div style="display: flex; align-items: center;">
|
|
|
|
+ <div style="width: 50px; height: 50px; border-radius: 50%; overflow: hidden;">
|
|
|
|
+ <img style="height:40px;width:40px;border-radius:50%;background-color:#fff;padding:5px;" src="'.$this->urs['face'].'">
|
|
|
|
+ </div>
|
|
|
|
+ <div style="margin-left: 10px;">
|
|
|
|
+ <div>'.$this->urs['name'].'<font color="#888888">('.$this->urs['ranking'].')</font></div>
|
|
|
|
+ <div style="padding-top:5px">'.$this->urs['deptallname'].'</div>
|
|
|
|
+ </div>
|
|
|
|
+ </div></div>
|
|
|
|
+ <div style="margin:5px 0px" class="blank10"></div>
|
|
|
|
+ ';
|
|
unset($fields['base_name']);
|
|
unset($fields['base_name']);
|
|
unset($fields['base_deptname']);
|
|
unset($fields['base_deptname']);
|
|
}
|
|
}
|
|
- $contvimr .= '<div><table width="100%" id="mobile_info_table">';
|
|
|
|
- foreach($fields as $f=>$n){
|
|
|
|
- $vs = arrvalue($data, $f);
|
|
|
|
- if(!isempt($vs)){
|
|
|
|
- //子表
|
|
|
|
- if(substr($f,0,7)=='subdata'){
|
|
|
|
- $contvimr .= '<tr><td colspan="3"><div style="padding:5px" align="left"><div><b>'.$n.'</b></div>'.$vs.'</div></td></tr>';
|
|
|
|
|
|
|
|
- }else{
|
|
|
|
- $contvimr .= '<tr><td nowrap><div align="right" style="color:#888888;padding:3px 0px">'.str_replace(' ','<br>',$n).'</div></td><td style="color:#888888">:</td><td width="95%"><div style="padding:3px" align="left">'.$vs.'</div></td></tr>';
|
|
|
|
|
|
+// $contvimr .= '<div><table width="100%" id="mobile_info_table">';
|
|
|
|
+// foreach($fields as $f=>$n){
|
|
|
|
+// $vs = arrvalue($data, $f);
|
|
|
|
+// if(!isempt($vs)){
|
|
|
|
+// //子表
|
|
|
|
+// if(substr($f,0,7)=='subdata'){
|
|
|
|
+// $contvimr .= '<tr><td colspan="3"><div style="padding:5px" align="left"><div><b>'.$n.'</b></div>'.$vs.'</div></td></tr>';
|
|
|
|
+//
|
|
|
|
+// }else{
|
|
|
|
+// $contvimr .= '<tr><td nowrap><div align="right" style="color:#888888;padding:3px 0px">'.str_replace(' ','<br>',$n).'</div></td><td style="color:#888888">:</td><td width="95%"><div style="padding:3px" align="left">'.$vs.'</div></td></tr>';
|
|
|
|
+//
|
|
|
|
+// }
|
|
|
|
+// }
|
|
|
|
+// }
|
|
|
|
+// $contvimr .= '</table></div>';
|
|
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- $contvimr .= '</table></div>';
|
|
|
|
|
|
+ $contvimr .= '<div style=""><div id="mobile_info_table" style="width: 100%;">';
|
|
|
|
+ $contvimr .= '<div style="">';
|
|
|
|
+ $i=0;
|
|
|
|
+// $bkcl = ["#fff", "#f7fff4"];
|
|
|
|
+ $bkcl = ["#fff", "#fff"];
|
|
|
|
+ foreach($fields as $f=>$n){
|
|
|
|
+ $vs = arrvalue($data, $f);
|
|
|
|
+ if(!isempt($vs)){
|
|
|
|
+ //子表
|
|
|
|
+ if(substr($f,0,7)=='subdata'){
|
|
|
|
+ $contvimr .= '<div style="padding:5px"><div><b>'.$n.'</b></div>'.$vs.'</div>';
|
|
|
|
+// } else if(substr($f,0,4)=='base'){
|
|
|
|
+
|
|
|
|
+ } else {
|
|
|
|
+ $contvimr .='
|
|
|
|
+ <div style="margin-bottom: 10px; padding: 10px; background-color:'.$bkcl[$i++ % 2].'">
|
|
|
|
+ <div style="font-weight: bold; color: #333; margin-bottom: 5px;">'.str_replace(' ','<br>',$n).'</div>
|
|
|
|
+ <div style="color: #666; ">'.$vs.'</div>
|
|
|
|
+ </div>';
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+// $contvimr .= '<div style="color:#888888;padding:3px 0px">'.str_replace(' ','<br>',$n).':</div>';
|
|
|
|
+// $contvimr .= '<div style="padding:3px" align="left">'.$vs.'</div>';
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ $contvimr .= '</div></div></div>';
|
|
}
|
|
}
|
|
if(isempt($contview))$contview = $contvimr;
|
|
if(isempt($contview))$contview = $contvimr;
|
|
$contview = str_replace('$contview$',$contvimr, $contview);
|
|
$contview = str_replace('$contview$',$contvimr, $contview);
|