public function depEdit() { sess(); $d = M('Department'); $pageArr = page_div($d, '', '个部门', 'convert(depname using gbk) asc'); $this->assign('data', $pageArr['list']); $this->assign('page', $pageArr['show']); $this->display(); }
public function userEdit() { sess(); $u = M('User'); //$data = $u->order('registertime desc')->select(); //$this->assign('data', $data); $pageArr = page_div($u, '', '位用户', 'convert(username using gbk) asc'); $this->assign('data', $pageArr['list']); $this->assign('page', $pageArr['show']); $this->display(); }
public function garbageBox() { $username = sess(); // 得到session中的用户名 $this->assign('username', $username); // 显示登录的用户名 $l = M('List_by_' . $username); $pageArr = page_div($l, 'stat=2', '封邮件', 'time desc'); $this->assign('data', $pageArr['list']); $this->assign('page', $pageArr['show']); $this->display(); }
" class="Title_sub"><?php echo $row['tenthongtinphu']; ?> </a></td></tr> <tr><td><?php echo $row['motangan']; ?> </td></tr> <tr> <td align="right"><div align="right"> <img align="absMiddle" src="images/arrow.gif"><a href="<?php echo $link; ?> " class="chitiet2"> Xem chi tiết</a></div> </td> </tr> </tbody> </table> </td> </tr> </tbody></table> <?php } // in phân trang // echo 'Pages: '.ceil($numofpages).'<br>'; echo "<br><center>"; page_div("ThongTin.html?mttc={$mttc}&page=%d_pg", "10", ceil($numofpages), $page); echo "</center>"; }
</td></tr> <tr><td>Điện thoại:</td><td><?php echo $row['dienthoai']; ?> </td></tr> <tr><td>Email:</td><td><?php echo $row['email']; ?> </td></tr> </tbody> </table> </td> <td> <img width="150" height="100" src="<?php echo $urlhinhanh; ?> " class="IMG"> </td> </tr> </tbody> </table> <table height="1"><tbody><tr><td><center><img src="images/linepp.gif"></center></td></tr></tbody></table> <?php } // in phân trang // echo 'Pages: '.ceil($numofpages).'<br>'; page_div("PhanPhoi.html?lpp={$_GET['lpp']}&page=%d_pg", "10", ceil($numofpages), $page); } }
<li> <p class="img_child_cat"><img src="<?php echo $urlhinhanh; ?> " alt="" title="" /></p> <h2><a class="name_child_cat" href="<?php echo $link; ?> "><?php echo cut_string(strip_tags($row['tenbaiviet']), 85); ?> </a></h2> <h4 class="des_child_cat"> <?php echo cut_string(strip_tags($row['mota']), 280); ?> </h4> </li> <?php } ?> </ul> </div> <ul class="ul_page"> <?php page_div("truyenthong.html?page=%d_pg", "10", ceil($numofpages), $page); ?> </ul> </div>
<li> <p class="img_child_cat"><img src="<?php echo $urlhinhanh; ?> " alt="" title="" /></p> <h2><a class="name_child_cat" href="<?php echo $link; ?> "><?php echo cut_string(strip_tags($row['tenbaiviet']), 85); ?> </a></h2> <h4 class="des_child_cat"> <?php echo cut_string(strip_tags($row['mota']), 280); ?> </h4> </li> <?php } ?> </ul> </div> <ul class="ul_page"> <?php page_div("tintuc.html?page=%d_pg", "10", ceil($numofpages), $page); ?> </ul> </div>
<li> <p class="img_child_cat"><img src="<?php echo $urlhinhanh; ?> " alt="" title="" /></p> <h2><a class="name_child_cat" href="<?php echo $link; ?> "><?php echo cut_string(strip_tags($row['tensanpham']), 85); ?> </a></h2> <h4 class="des_child_cat"> <?php echo cut_string(strip_tags($row['motangan']), 280); ?> </h4> </li> <?php } ?> </ul> </div> <ul class="ul_page"> <?php page_div("sanpham.html?page=%d_pg", "10", ceil($numofpages), $page); ?> </ul> </div>
</a></td></tr> <tr><td><?php echo $row['motangan']; ?> </td></tr> <tr> <td align="right"><div align="right"> <img align="absMiddle" src="images/arrow.gif"><a href="<?php echo $link; ?> " class="chitiet2"> Xem chi tiết</a></div> </td> </tr> </tbody> </table> </td> </tr> </tbody> </table> <?php } // in phân trang // echo 'Pages: '.ceil($numofpages).'<br>'; // echo "<div class='NSDivCenter1'>"; echo "<br><center>"; page_div("sanpham.html?mlsp={$maloaisanpham}&page=%d_pg", "10", ceil($numofpages), $page); // echo "</div>"; echo "</center>"; }