本文共 1231 字,大约阅读时间需要 4 分钟。
html
php
// 各种状态的数字提醒$whereall = array('member_id' => $this->member_id);$allorder = $this->orderModel->where($whereall)->select();$num = array('all'=>0,'unpaid'=>0,'unsent'=>0,'unresevied'=>0,'resevied'=>0);foreach ($allorder as $k => $order) { if ( $order['paytime'] == 0 ) { $num['unpaid']++ ; } if ($order['paytime'] != 0 && $order['sendtime'] == 0) { $num['unsent'] ++ ; } if ($order['paytime'] != 0 && $order['sendtime'] != 0 && $order['receivetime'] == 0) { $num['unresevied'] ++ ; } if ($order['paytime'] != 0 && $order['sendtime'] != 0 && $order['receivetime'] != 0) { $num['resevied'] ++ ; } $num['all'] ++ ;}$this->assign('num',$num);
本次采用数组的形式传值,具有统一性。
再加一个固定布局效果
css本文转自TBHacker博客园博客,原文链接:http://www.cnblogs.com/jiqing9006/p/5314395.html,如需转载请自行联系原作者