receiptModel.php 837 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. //回执确认
  3. class agent_receiptClassModel extends agentModel
  4. {
  5. protected $showuface = false; //不显示人员头像
  6. public function gettotal()
  7. {
  8. $stotal = $this->getwdtotal($this->adminid);
  9. $titles = '';
  10. return array('stotal'=>$stotal,'titles'=> $titles);
  11. }
  12. //未读统计
  13. private function getwdtotal($uid)
  14. {
  15. $stotal = m('flow:receipt')->getweitotal($uid);
  16. return $stotal;
  17. }
  18. //菜单未读数组
  19. protected function agenttotals($uid)
  20. {
  21. $a = array(
  22. 'mywei' => $this->getwdtotal($uid)
  23. );
  24. return $a;
  25. }
  26. protected function agentrows($rows, $rowd, $uid){
  27. if($rows){
  28. foreach($rowd as $k=>$rs){
  29. $rows[$k]['ishui'] = $rs['ishui'];
  30. $rows[$k]['modenum'] = $rs['modenumshow'];
  31. $rows[$k]['id'] = $rs['mid'];
  32. }
  33. }
  34. return $rows;
  35. }
  36. }
粤ICP备19079148号