bookborrowModel.php 396 B

12345678910111213141516171819
  1. <?php
  2. /**
  3. * 模块.图书借阅
  4. */
  5. class flow_bookborrowClassModel extends flowModel
  6. {
  7. public function flowrsreplace($rs)
  8. {
  9. $fte = '<font color=red>否</font>';
  10. $isgh= 0;
  11. if(!isempt($rs['ghtime'])){
  12. $fte = '<font color=green>是</font>';
  13. $isgh= 1;
  14. }
  15. if($rs['isgh'] != $isgh)$this->update('`isgh`='.$isgh.'', $rs['id']);
  16. $rs['isgh'] = $fte;
  17. return $rs;
  18. }
  19. }
粤ICP备19079148号