PHP·ÖÒ³Àà
½ñÌìÈ¥XX¹«Ë¾ÃæÊÔÁË£¬¸Ð¾õºÜ²»ÀíÏë¡£ÒòΪÕâÒ»¶Îʱ¼ä¶¼ÔÚ¼ÓÉîZend Framework£¬¶¼Ã»Á·Ï°³£Óú¯ÊýºÍ·½·¨ÁË¡£
±ÊÊԻشðµÄ²»Ì«ºÃ£¬ÌرðÊÇJS²¿·Ö£¬Ò²ÊÇÐí¾Ã¶¼Ã»¸´Ï°µÄÔÒò¡£
ÉÏ»úÌâÄ¿ÊÇҪдһ¸ö·Âgoogle·ÖÒ³µÄÀ࣬µ±ÒªÈ¡ÀàËÆ9/2µÄ×î´óÕûÊý£¬È´ÔõôҲÏë²»Æðº¯ÊýceilµÄÃû×Ö£¬ÔÎÁË°ëÌì¡£
×îºó²âÊÔ³ÌÐòû´íÎ󣬵«ÊǾÍÊDz»ÄÜÕý³£ÏÔʾ£¬ºóÀ´£¨»Ø¼Òºó£©Ò»²é²ÅÖªµÀÊÇÓï¾ä£ºfor($i=0;$i++;$i<9)д´íÁË£¬ÓÚÊÇϾöÐÄÖØÐÂдһ±é£¬ÓÚÊǾÍÓÐÁËÏÂÃæµÄ´úÂëÁË£º
<?php
/*
ÏÔʾÑùʽÈçÏ£º
[1] 2 3 4 5 6 7 8 9 10 ...100 ÏÂÒ³ βҳ
Ê×Ò³ ÉÏÒ³ 1..12 13 14 15 [16] 17 18 19 20 ...100 ÏÂÒ³ βҳ
Ê×Ò³ ÉÏÒ³ 1..92 93 94 95 96 97 98 [99] 100
ʹÓ÷½·¨£º
$currentPage = $_GET['page']?$_GET['page']:1;
$pagediv = new pagediv(500, 10, 11, $currentPage, 'test.php?page=');
$pagediv->show();
*/
class pagediv
{
public $part1;
public $part2;
public $part3;
public $part4;
public $part5;
/*
¶ÔÏÂÃæµÄ·ÖÒ³ÏÔʾ½øÐзָî:
Ê×Ò³ ÉÏÒ³ 1..12 13 14 15 [16] 17 18 19 20 ...100 ÏÂÒ³ βҳ
$part1 : Ê×Ò³ ÉÏÒ³
$part2 : 1..
$part3 : 12 13 14 15 [16] 17 18 19 20
$part4 : ...100
$part5 : ÏÂÒ³ βҳ
*/
public $allPage; //×ÜÒ³Êý
public $allRocords; //×ܼǼÊý
public $perPage; //ÿҳ¼Ç¼Êý
public $showPagesNo; //ÏÔʾ·ÖÒ³À¸µÄ×ÜÒ³ÂëÊý ÏÔʾÑùʽÀï¹²ÓÐ11¸ö
public $currentPage; //µ±Ç°Ò³
public $urlModel; //UrlÁ´½ÓÑùʽ
public $startHidden; //³öÏÖ 1... ʱµÄÒ³Êý ¿ªÊ¼Òþ²ØÖмäÒ³
public $endHidden; //³öÏÖ ...100 ʱµÄÒ³Êý ½áÊøÒþ²ØÖмäÒ³
public function __construct($allRocords, $perPage, $showPagesNo, $currentPage, $urlModel){
$this->allRocords = $allRocords;
$this->perPage = $perPage;
$this->showPagesNo = $showPagesNo;
$this->currentPage = $currentPage;
$this->urlModel = $urlModel;
$this->allPage = $this->getAllPage();
&
Ïà¹ØÎĵµ£º
TIOBEÊÀ½ç±à³ÌÓïÑÔÅÅÐаñÕ¹ÏÖÁ˱à³ÌÓïÑÔµÄÁ÷ÐÐÇ÷ÊÆ¡£Ã¿¸öÔ£¬¶¼ÓÐ×îеÄÊý¾Ý±»¸üС£Õâ·ÝÅÅÐаñµÄÊý¾ÝÈ¡ÑùÀ´Ô´ÓÚ»¥ÁªÍøÉϸ»ÓоÑéµÄ³ÌÐòÔ±¡¢ÉÌ ÒµÓ¦Óá¢ÖøÃûµÄËÑË÷ÒýÇ棨ÖîÈç¹È¸è¡¢ MSN ¡¢ÑÅ»¢£©µÄ¹Ø¼ü×ÖÅÅÃû¡¢ Alexa ÉϵÄÅÅÃûµÈ¡£Çë×¢ÒâÕâ¸öÅÅÐаñÖ»ÊÇ·´Ó³ÁËij¸ö±à³ÌÓïÑÔµÄÈÈÃÅ³Ì¶È , Õâ²¢²»´ú±íËüÊÇÒ»¸ö×îºÃµÄ±à³ÌÓïÑÔ»òÊ ......
ÓÉÓÚijÖÖÐèÒª£¬ÕâÒ»¶ÎÐèҪѧϰPHP£¬ËùÒÔÔÚÕâÀà¼Ç¼һÏÂ×Ô¼ºµÄһЩÐĵúÍ×Ô¼ºÔÚѧϰÖÐÓöµ½µÄһЩÎÊÌâ¡££¨¸üÐÂÖÐ...£©
1.LinuxºÍwindowsÏ¿ª·¢PHP
ÔÚÕâÁ½ÖÖϵͳÏ¿ª·¢PHP¶¼ÐèÒª´î½¨»·¾³£¬ÔÚLinuxÏÂÒ»°æÓÃapache×÷Ϊweb·þÎñÆ÷£¬¶øÇÒÏà¶ÔÀ´Ëµ»·¾³µÄ´î½¨ºÜ¼òµ¥£»¶øÔÚwindowsÏÂÒªÊÇ¿ª·¢PHP½¨ÒéÓÃwindows server 2003£¬windows x ......
¿ÉÒÔͨ¹ýÐòÁл°Ò»¸öÊý×飬Ȼºó·Åµ½cookieÖÐ
´ÓcookieÖеõ½Öµ£¬È»ºóÔÚ·´ÐòÁл¯£¬×ª»»ÎªÊý×é¡£
$cur_goods_array = unserialize(stripslashes($_COOKIE['shop_cart_info']));
¡¡
¡¡setcookie("shop_cart_info",serialize($cur_goods_array)); ......
Show All 1 2 3 4 5
±¾ÎÄÓÉMichaelÔ´´ºÍÕûÀí£¬×ªÔØÇë±£Áô³ö´¦£¡http://www.toplee.com/blog/?p=100
Trackback URL: http://www.toplee.com/blog/wp-trackback.php?p=100
¶ÔÓÚ±¾ÎÄÖгöÏֵĴíÎóµ¼ÖÂÄúµÄËðʧ£¬Michael²»³Ðµ£ÔðÈΡ£
Ç°Ò»¶Îʱ¼äÍê³ÉÁË·þÎñÆ÷´ÓFreeBSD4.10µ½6.1µÄÉý¼¶£¬Í¬Ê±°ÑPHPÒ²Éý¼¶µ½ÁË×îÐ嵀 ......
ºÜ¾ÃǰЩµÄһЩÎÄÕ£¬ÄÇʱºò¼¼Êõ»¹ÔÚ³õ¼¶½×¶Î£¬ÔÚÏÖÔÚ¿´À´´úÂë¹»Àõģ¬µ«ÊÇÈË×ÜÊÇÒ»²½²½×ßÉÏÀ´µÄ£¬Ï£ÍûÄܸø³õѧÕßÒ»µã¹ÄÀøÁË£¡
<?php
/*********************************************************
filename£ºmulti.php
describe£º ÏÔʾ¶àÓÚÒ»Ò³µÄÁ´½Ó
function£º·ÖÒ³ÏÔʾģ¿é
auth ......