Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

php·ÖÒ³Àà

<?php
class SubPages{

private $each_disNums;//ÿҳÏÔʾµÄÌõÄ¿Êý
private $nums;//×ÜÌõÄ¿Êý
private $current_page;//µ±Ç°±»Ñ¡ÖеÄÒ³
private $sub_pages;//ÿ´ÎÏÔʾµÄÒ³Êý
private $pageNums;//×ÜÒ³Êý
private $page_array = array();//ÓÃÀ´¹¹Ôì·ÖÒ³µÄÊý×é
private $subPage_link;//ÿ¸ö·ÖÒ³µÄÁ´½Ó
private $subPage_type;//ÏÔʾ·ÖÒ³µÄÀàÐÍ
/*
__constructÊÇSubPagesµÄ¹¹Ô캯Êý£¬ÓÃÀ´ÔÚ´´½¨ÀàµÄʱºò×Ô¶¯ÔËÐÐ.
@$each_disNums ÿҳÏÔʾµÄÌõÄ¿Êý
@nums ×ÜÌõÄ¿Êý
@current_num µ±Ç°±»Ñ¡ÖеÄÒ³
@sub_pages ÿ´ÎÏÔʾµÄÒ³Êý
@subPage_link ÿ¸ö·ÖÒ³µÄÁ´½Ó
@subPage_type ÏÔʾ·ÖÒ³µÄÀàÐÍ

µ±@subPage_type=1µÄʱºòΪÆÕͨ·Öҳģʽ
example£º ¹²4523Ìõ¼Ç¼,ÿҳÏÔʾ10Ìõ,µ±Ç°µÚ1/453Ò³ [Ê×Ò³] [ÉÏÒ³] [ÏÂÒ³] [βҳ]
µ±@subPage_type=2µÄʱºòΪ¾­µä·ÖÒ³Ñùʽ
example£º µ±Ç°µÚ1/453Ò³ [Ê×Ò³] [ÉÏÒ³] 1 2 3 4 5 6 7 8 9 10 [ÏÂÒ³] [βҳ]
*/
function __construct($each_disNums,$nums,$current_page,$sub_pages,$subPage_link,$subPage_type){
$this->each_disNums=intval($each_disNums);
$this->nums=intval($nums);
if(!$current_page){
$this->current_page=1;
}else{
$this->current_page=intval($current_page);
}
$this->sub_pages=intval($sub_pages);
$this->pageNums=ceil($nums/$each_disNums);
$this->subPage_link=$subPage_link;
$this->show_SubPages($subPage_type);
//echo $this->pageNums."--".$this->sub_pages;
}


/*
__destructÎö¹¹º¯Êý£¬µ±À಻ÔÚʹÓõÄʱºòµ÷Ó㬸ú¯ÊýÓÃÀ´ÊÍ·Å×ÊÔ´¡£
*/
function __destruct(){
unset($each_disNums);
unset($nums);
unset($current_page);
unset($sub_pages);
unset($pageNums);
unset($page_array);
unset($subPage_link);
unset($subPage_type);
}

/*
show_SubPagesº¯ÊýÓÃÔÚ¹¹Ô캯ÊýÀïÃæ¡£¶øÇÒÓÃÀ´ÅжÏÏ


Ïà¹ØÎĵµ£º

PHPÉú³ÉEXCEL£¬¿ÉÇø·ÖÊýÖµÓë×Ö·û´®

ÕâÊǸöÔÚ±ðÈ˵Ļù´¡ÉÏ×öÐ޸ĵĴúÂ룬Ìí¼ÓÁË Åжϵ¥Ôª¸ñÖµÊÇ·ñΪÊýÖµ£¬ÊǵĻ°£¬½«¸Ãµ¥Ôª¸ñµÄÀàÐÍת³É Number£¬±ÜÃâÉú²úµÄEXCELÖÐû·¨½øÐÐÊýÖµµÄ¼Ó¼õ¡£¡£¡£
<?php
/**
* Simple excel generating from PHP5
*
* This is one of my utility-classes.
*
* The MIT License
*
* Copyright (c) 2007 Oliver Sc ......

PHPÍøÕ¾¿ª·¢·½°¸£¨¿ª·¢ÐÂÈ˱ضÁ£©



Ò»¡¢ ¿ª·¢³ÉÔ±
a)ÏîÄ¿Ö÷¹Ü
b)Ò³ÃæÃÀ¹¤
c)Ò³Ã濪·¢
d)·þÎñ¶Ë³ÌÐò¿ª·¢
e)ϵͳÓëÊý¾Ý¹ÜÀí
f)²âÊÔÓë°æ±¾¿ØÖÆ
¶þ¡¢ ÍøÕ¾×鿪·¢¼òÃ÷Á÷³Ì
Èý¡¢ ¿ª·¢¹¤¾ßÓë»·¾³
a) ·þÎñÆ÷ÅäÖÃ
i. WEB·þÎñÆ÷£º FreeBSD6.1+Apache2.0+PHP5.0£¬SVN°æ±¾¿ØÖÆ·þÎñ(½ö²âÊÔ»ú)¡£
ii. Êý¾Ý¿â·þÎñÆ÷£º WIN2003 server+SQL server 2000 ......

JSP/PHPÔËÓÃÏê½â

1£¬DateTimeÀàÐÍÊý×Ö 
ÒÔÏÂÊÇÒýÓÃƬ¶Î£º 
µ±Ç°Ê±¼äSystem.DateTimeµÄ=ÐÂSystem.DateTimeµÄ£¨£©; 
1.1Сʱ·ÖÖÓµ±Ç°ÈÕÆÚÃ룬µ±Ç°Ê±¼ä= System.DateTime.Now; 
1.2¼ì²é±¾Äê¶ÈÁ®ÕþÄê= currentTime.Year; 
1.3µ±Ç°Ô·ÝÁ®Õþ¸öÔÂ= currentTime.Month; 
1,4²ÉÈ¡µ±ÌìÁ®ÕþÌì= currentTime.Day;&n ......

2009Äê9ÔÂÓïÑÔÅÅÐаñ£ºPHP³¬Ô½C++


TIOBEÊÀ½ç±à³ÌÓïÑÔÅÅÐаñÕ¹ÏÖÁ˱à³ÌÓïÑÔµÄÁ÷ÐÐÇ÷ÊÆ¡£Ã¿¸öÔ£¬¶¼ÓÐ×îеÄÊý¾Ý±»¸üС£Õâ·ÝÅÅÐаñµÄÊý¾ÝÈ¡ÑùÀ´Ô´ÓÚ»¥ÁªÍøÉϸ»Óо­ÑéµÄ³ÌÐòÔ±¡¢ÉÌ ÒµÓ¦Óá¢ÖøÃûµÄËÑË÷ÒýÇ棨ÖîÈç¹È¸è¡¢ MSN ¡¢ÑÅ»¢£©µÄ¹Ø¼ü×ÖÅÅÃû¡¢ Alexa ÉϵÄÅÅÃûµÈ¡£Çë×¢ÒâÕâ¸öÅÅÐаñÖ»ÊÇ·´Ó³ÁËij¸ö±à³ÌÓïÑÔµÄÈÈÃÅ³Ì¶È , Õâ²¢²»´ú±íËüÊÇÒ»¸ö×îºÃµÄ±à³ÌÓïÑÔ» ......

PHP»ñȡʱ¼ä´íÎóµÄÐÞÕý·½·¨

PHP»ñȡʱ¼ä´íÎóµÄÐÞÕý·½·¨
   ½ñÌìÔËÐÐPHP³ÌÐòµÄʱºò£¬ºÜÆæ¹Ö£¬ÎªÊ²Ã´PHP»ñÈ¡µÄʱ¼ä±Èʵ¼Êʱ¼äÕûÕûÉÙÁË8Сʱ£¬ÒÔǰҲûעÒâÕâ¸öÎÊÌ⣬×ÜÒÔΪÊÇʱ¼äÏÔʾ´íÁË£¬ÊÇ°²×°Èí¼þµÄÎÊÌ⣬½ñÌìÔÚÍøÉϲéÁËÏÂ×ÊÁÏ£¬Ô­À´ÁíÓÐÔ­Òò¡£
   ÆäʵÕâºÍʱÇøÓйأ¬PHPĬÈÏ»ñÈ¡0ʱÇø¿ªÊ¼µÄʱ¼ä£¬ÖйúÔÚ¶«°ËÇø£¬Òò´Ë£¬ÎÒÃÇÖÐ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ