PageRenderTime 241ms queryTime 16ms sortTime 9ms getByIdsTime 96ms findMatchingLines 30ms

100+ results results for 'php ceil repo:symfony/symfony' (241 ms)

Not the results you expected?
SearchHelper.php git://github.com/thorsten/phpMyFAQ.git | PHP | 382 lines
                    
1<?php
                    
2
                    
3/**
                    
4 * Helper class for phpMyFAQ search.
                    
5 *
                    
9 *
                    
10 * @package   phpMyFAQ\Helper
                    
11 * @author    Thorsten Rinne <thorsten@phpmyfaq.de>
                    
11 * @author    Thorsten Rinne <thorsten@phpmyfaq.de>
                    
12 * @copyright 2009-2021 phpMyFAQ Team
                    
13 * @license   http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
                    
13 * @license   http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
                    
14 * @link      https://www.phpmyfaq.de
                    
15 * @since     2009-09-07
                    
17
                    
18namespace phpMyFAQ\Helper;
                    
19
                    
                
DB.php http://phpfor.googlecode.com/svn/trunk/ | PHP | 488 lines
                    
1<?php
                    
2/**
                    
33        else{
                    
34            showError(__T('Config\'s argument error,or miss adapter,please check conf.php!'));
                    
35        }
                    
39
                    
40        require_once(SYSBASE.'Database/DB/'.$DB_config['adapter'].'.php');
                    
41
                    
168
                    
169        $totalpage=ceil($total/$title_rows);
                    
170
                    
                
handlers.dev.js http://buddypress-media.googlecode.com/svn/bp_media/trunk/ | JavaScript | 433 lines
                    
41	jQuery('.bar', item).width( w * bytesDone / bytesTotal );
                    
42	jQuery('.percent', item).html( Math.ceil(bytesDone / bytesTotal * 100) + '%' );
                    
43
                    
113		jQuery.ajax({
                    
114			url: 'admin-ajax.php',
                    
115			type: 'post',
                    
131		jQuery.ajax({
                    
132			url: 'admin-ajax.php',
                    
133			type: 'post',
                    
                
tags.php http://bitcero-modules.googlecode.com/svn/ | PHP | 371 lines
                    
1<?php
                    
2// $Id: tags.php 900 2012-01-03 07:07:52Z i.bitcero $
                    
11define('RMCLOCATION','tags');
                    
12include 'header.php';
                    
13
                    
50	$start = $num<=0 ? 0 : ($page - 1) * $limit;
                    
51    $tpages = ceil($num / $limit);	
                    
52    $nav = new RMPageNav($num, $limit, $page, 5);
                    
52    $nav = new RMPageNav($num, $limit, $page, 5);
                    
53    $nav->target_url("tags.php?search=".urlencode($search)."&amp;page={PAGE_NUM}");
                    
54    
                    
87	
                    
88	include RMTemplate::get()->get_template("admin/gs_tags.php",'module','galleries');
                    
89	RMTemplate::get()->add_script(RMCURL.'/include/js/jquery.checkboxes.js');
                    
89	RMTemplate::get()->add_script(RMCURL.'/include/js/jquery.checkboxes.js');
                    
90	RMTemplate::get()->add_script('../include/js/gsscripts.php?file=sets&form=frm-tags');
                    
91	RMTemplate::get()->add_script('../include/js/gsscripts.php?file=tags');
                    
                
func.php http://snowcms.googlecode.com/svn/trunk/ | PHP | 272 lines
                    
1<?php
                    
2////////////////////////////////////////////////////////////////////////////
                    
66			'stripos' => create_function('$haystack, $needle, $offset = 0', '
                    
67										 // This function doesn\'t exist until PHP 5.2.0 >=
                    
68										 if(function_exists(\'mb_stripos\'))
                    
191		// So how many pages total..?
                    
192		$total_pages = ceil((int)($num_items == 0 ? 1 : $num_items) / (int)$per_page);
                    
193
                    
                
AzureStorage.php https://code.google.com/p/celebrio/ | PHP | 252 lines
                    
1<?php
                    
2
                    
107            AzureStorageBLOB::connection()->createContainerIfNotExists($container);
                    
108            $numOfBlocks = ceil (\strlen($dataFile->getData()) / self::MAX_BLOCK_SIZE);
                    
109            $indexes = $this->getIndexes($numOfBlocks);
                    
                
image.php git://github.com/bcosca/fatfree.git | PHP | 616 lines
                    
1<?php
                    
2
                    
369		$dim=$blocks*floor($size/$blocks)*2/$blocks;
                    
370		for ($j=0,$y=ceil($blocks/2);$j<$y;++$j)
                    
371			for ($i=$j,$x=$blocks-1-$j;$i<$x;++$i) {
                    
480		$format=$args?array_shift($args):'png';
                    
481		if (PHP_SAPI!='cli') {
                    
482			header('Content-Type: image/'.$format);
                    
                
materials.php https://gitlab.com/kidaa/quantum.git | PHP | 193 lines
                    
1<?php
                    
2
                    
150        }
                    
151        return ceil($all_vals / $limit);
                    
152    }
                    
                
Pager.php https://github.com/ninjapenguin/kohana-Doctrine-module.git | PHP | 576 lines
                    
1<?php
                    
2/*
                    
18 * and is licensed under the LGPL. For more information, see
                    
19 * <http://www.phpdoctrine.org>.
                    
20 */
                    
27 * @subpackage  Pager
                    
28 * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
                    
29 * @version     $Revision$
                    
29 * @version     $Revision$
                    
30 * @link        www.phpdoctrine.org
                    
31 * @since       0.9
                    
128        $this->_setLastPage(
                    
129            max(1, ceil($this->getNumResults() / $this->getMaxPerPage()))
                    
130        );
                    
                
category.php https://bitbucket.org/zirrow/ecoelka.com.git | PHP | 412 lines
                    
1<?php
                    
2class ControllerProductCategory extends Controller {
                    
332
                    
333			$data['results'] = sprintf($this->language->get('text_pagination'), ($product_total) ? (($page - 1) * $limit) + 1 : 0, ((($page - 1) * $limit) > ($product_total - $limit)) ? $product_total : ((($page - 1) * $limit) + $limit), $product_total, ceil($product_total / $limit));
                    
334
                    
345
                    
346			if ($limit && ceil($product_total / $limit) > $page) {
                    
347			    $this->document->addLink($this->url->link('product/category', 'path=' . $category_info['category_id'] . '&page='. ($page + 1)), 'next');
                    
                
Image.php http://hppg.googlecode.com/svn/trunk/ | PHP | 362 lines
                    
1<?php
                    
2/**
                    
6 */
                    
7require_once 'modules/lhcaptcha/pear/Text/CAPTCHA.php';
                    
8require_once 'modules/lhcaptcha/pear/Image/Text.php';
                    
15 * 
                    
16 * @license PHP License, version 3.0
                    
17 * @author Christian Wenz <wenz@php.net>
                    
190        $options['height'] = $this->_height - 20; 
                    
191        $options['cx'] = ceil(($this->_width) / 2 + 10);
                    
192        $options['cy'] = ceil(($this->_height) / 2 + 10); 
                    
354    /**
                    
355     * __wakeup method (PHP 5 only)
                    
356     */
                    
                
jquery.bxSlider.min.js https://hg.codeplex.com/wrapcode2 | JavaScript | 12 lines
                    
8 * Free to use and abuse under the MIT license.
                    
9 * http://www.opensource.org/licenses/mit-license.php
                    
10 * 
                    
11 */
                    
12(function(a){a.fn.bxSlider=function(b){function Z(b,c,d,e){var f=[];var g=d;var h=false;if(e=="backward"){b=a.makeArray(b);b.reverse()}while(g>0){a.each(b,function(b,d){if(g>0){if(!h){if(b==c){h=true;f.push(a(this).clone());g--}}else{f.push(a(this).clone());g--}}else{return false}})}return f}function Y(){var a=i.outerHeight()*b.displaySlideQty;return a}function X(){var a=i.outerWidth()*b.displaySlideQty;return a}function W(b,c){if(c=="left"){var d=a(".pager",h).eq(b).position().left}else if(c=="top"){var d=a(".pager",h).eq(b).position().top}return d}function V(){if(!b.infiniteLoop&&b.hideControlOnEnd){if(x==F){a(".bx-prev",h).hide()}else{a(".bx-prev",h).show()}if(x==G){a(".bx-next",h).hide()}else{a(".bx-next",h).show()}}}function U(c,e,f,g){p=a('<a href="" class="bx-start"></a>');if(c=="text"){r=e}else{r='<img src="'+e+'" />'}if(f=="text"){s=g}else{s='<img src="'+g+'" />'}if(b.autoControlsSelector){a(b.autoControlsSelector).append(p)}else{h.append('<div class="bx-auto"></div>');a(".bx-auto",h).html(p)}p.click(function(){if(b.ticker){if(a(this).hasClass("stop")){d.stopTicker()}else if(a(this).hasClass("start")){d.startTicker()}}else{if(a(this).hasClass("stop")){d.stopShow(true)}else if(a(this).hasClass("start")){d.startShow(true)}}return false})}function T(){var c=a("img",g.eq(x)).attr("title");if(c!=""){if(b.captionsSelector){a(b.captionsSelector).html(c)}else{a(".bx-captions",h).html(c)}}else{if(b.captionsSelector){a(b.captionsSelector).html(" ")}else{a(".bx-captions",h).html(" ")}}}function S(c){var e=g.length;if(b.moveSlideQty>1){if(g.length%b.moveSlideQty!=0){e=Math.ceil(g.length/b.moveSlideQty)}else{e=g.length/b.moveSlideQty}}var f="";if(b.buildPager){for(var i=0;i<e;i++){f+=b.buildPager(i,g.eq(i*b.moveSlideQty))}}else if(c=="full"){for(var i=1;i<=e;i++){f+='<a href="" class="pager-link pager-'+i+'">'+i+"</a>"}}else if(c=="short"){f='<span class="bx-pager-current">'+(b.startingSlide+1)+"</span> "+b.pagerShortSeparator+' <span class="bx-pager-total">'+g.length+"</span>"}if(b.pagerSelector){a(b.pagerSelector).append(f);n=a(b.pagerSelector)}else{var j=a('<div class="bx-pager"></div>');j.append(f);if(b.pagerLocation=="top"){h.prepend(j)}else if(b.pagerLocation=="bottom"){h.append(j)}n=a(".bx-pager",h)}n.children().click(function(){if(b.pagerType=="full"){var a=n.children().index(this);if(b.moveSlideQty>1){a*=b.moveSlideQty}d.goToSlide(a)}return false})}function R(c,e,f,g){var i=a('<a href="" class="bx-next"></a>');var j=a('<a href="" class="bx-prev"></a>');if(c=="text"){i.html(e)}else{i.html('<img src="'+e+'" />')}if(f=="text"){j.html(g)}else{j.html('<img src="'+g+'" />')}if(b.prevSelector){a(b.prevSelector).append(j)}else{h.append(j)}if(b.nextSelector){a(b.nextSelector).append(i)}else{h.append(i)}i.click(function(){d.goToNextSlide();return false});j.click(function(){d.goToPreviousSlide();return false})}function Q(c){if(b.pagerType=="full"&&b.pager){a("a",n).removeClass(b.pagerActiveClass);a("a",n).eq(c).addClass(b.pagerActiveClass)}else if(b.pagerType=="short"&&b.pager){a(".bx-pager-current",n).html(x+1)}}function P(){g.not(":eq("+x+")").fadeTo(b.speed,0).css("zIndex",98);g.eq(x).css("zIndex",99).fadeTo(b.speed,1,function(){E=false;if(jQuery.browser.msie){g.eq(x).get(0).style.removeAttribute("filter")}b.onAfterSlide(x,g.length,g.eq(x))})}function O(){e.hover(function(){if(t){d.stopTicker(false)}},function(){if(t){d.startTicker(false)}})}function N(){h.find(".bx-window").hover(function(){if(t){d.stopShow(false)}},function(){if(t){d.startShow(false)}})}function M(){if(b.startImage!=""){startContent=b.startImage;startType="image"}else{startContent=b.startText;startType="text"}if(b.stopImage!=""){stopContent=b.stopImage;stopType="image"}else{stopContent=b.stopText;stopType="text"}U(startType,startContent,stopType,stopContent)}function L(a,c,d){if(b.mode=="horizontal"){if(b.tickerDirection=="next"){e.animate({left:"-="+c+"px"},d,"linear",function(){e.css("left",a);L(a,A,b.tickerSpeed)})}else if(b.tickerDirection=="prev"){e.animate({left:"+="+c+"px"},d,"linear",function(){e.css("left",a);L(a,A,b.tickerSpeed)})}}else if(b.mode=="vertical"){if(b.tickerDirection=="next"){e.animate({top:"-="+c+"px"},d,"linear",function(){e.css("top",a);L(a,B,b.tickerSpeed)})}else if(b.tickerDirection=="prev"){e.animate({top:"+="+c+"px"},d,"linear",function(){e.css("top",a);L(a,B,b.tickerSpeed)})}}}function K(){if(b.auto){if(!b.infiniteLoop){if(b.autoDirection=="next"){o=setInterval(function(){x+=b.moveSlideQty;if(x>G){x=x%g.length}d.goToSlide(x,false)},b.pause)}else if(b.autoDirection=="prev"){o=setInterval(function(){x-=b.moveSlideQty;if(x<0){negativeOffset=x%g.length;if(negativeOffset==0){x=0}else{x=g.length+negativeOffset}}d.goToSlide(x,false)},b.pause)}}else{if(b.autoDirection=="next"){o=setInterval(function(){d.goToNextSlide(false)},b.pause)}else if(b.autoDirection=="prev"){o=setInterval(function(){d.goToPreviousSlide(false)},b.pause)}}}else if(b.ticker){b.tickerSpeed*=10;a(".pager",h).each(function(b){A+=a(this).width();B+=a(this).height()});if(b.tickerDirection=="prev"&&b.mode=="horizontal"){e.css("left","-"+(A+y)+"px")}else if(b.tickerDirection=="prev"&&b.mode=="vertical"){e.css("top","-"+(B+z)+"px")}if(b.mode=="horizontal"){C=parseInt(e.css("left"));L(C,A,b.tickerSpeed)}else if(b.mode=="vertical"){D=parseInt(e.css("top"));L(D,B,b.tickerSpeed)}if(b.tickerHover){O()}}}function J(){if(b.nextImage!=""){nextContent=b.nextImage;nextType="image"}else{nextContent=b.nextText;nextType="text"}if(b.prevImage!=""){prevContent=b.prevImage;prevType="image"}else{prevContent=b.prevText;prevType="text"}R(nextType,nextContent,prevType,prevContent)}function I(){if(b.mode=="horizontal"||b.mode=="vertical"){var c=Z(g,0,b.moveSlideQty,"backward");a.each(c,function(b){e.prepend(a(this))});var d=g.length+b.moveSlideQty-1;var f=g.length-b.displaySlideQty;var h=d-f;var i=Z(g,0,h,"forward");if(b.infiniteLoop){a.each(i,function(b){e.append(a(this))})}}}function H(){I(b.startingSlide);if(b.mode=="horizontal"){e.wrap('<div class="'+b.wrapperClass+'" style="width:'+l+'px; position:relative;"></div>').wrap('<div class="bx-window" style="position:relative; overflow:hidden; width:'+l+'px;"></div>').css({width:"999999px",position:"relative",left:"-"+y+"px"});e.children().css({width:j,"float":"left",listStyle:"none"});h=e.parent().parent();g.addClass("pager")}else if(b.mode=="vertical"){e.wrap('<div class="'+b.wrapperClass+'" style="width:'+v+'px; position:relative;"></div>').wrap('<div class="bx-window" style="width:'+v+"px; height:"+m+'px; position:relative; overflow:hidden;"></div>').css({height:"999999px",position:"relative",top:"-"+z+"px"});e.children().css({listStyle:"none",height:w});h=e.parent().parent();g.addClass("pager")}else if(b.mode=="fade"){e.wrap('<div class="'+b.wrapperClass+'" style="width:'+v+'px; position:relative;"></div>').wrap('<div class="bx-window" style="height:'+w+"px; width:"+v+'px; position:relative; overflow:hidden;"></div>');e.children().css({listStyle:"none",position:"absolute",top:0,left:0,zIndex:98});h=e.parent().parent();g.not(":eq("+x+")").fadeTo(0,0);g.eq(x).css("zIndex",99)}if(b.captions&&b.captionsSelector==null){h.append('<div class="bx-captions"></div>')}}var c={mode:"horizontal",infiniteLoop:true,hideControlOnEnd:false,controls:true,speed:500,easing:"swing",pager:false,pagerSelector:null,pagerType:"full",pagerLocation:"bottom",pagerShortSeparator:"/",pagerActiveClass:"pager-active",nextText:"next",nextImage:"",nextSelector:null,prevText:"prev",prevImage:"",prevSelector:null,captions:false,captionsSelector:null,auto:false,autoDirection:"next",autoControls:false,autoControlsSelector:null,autoStart:true,autoHover:false,autoDelay:0,pause:3e3,startText:"start",startImage:"",stopText:"stop",stopImage:"",ticker:false,tickerSpeed:5e3,tickerDirection:"next",tickerHover:false,wrapperClass:"bx-wrapper",startingSlide:0,displaySlideQty:1,moveSlideQty:1,randomStart:false,onBeforeSlide:function(){},onAfterSlide:function(){},onLastSlide:function(){},onFirstSlide:function(){},onNextSlide:function(){},onPrevSlide:function(){},buildPager:null};var b=a.extend(c,b);var d=this;var e="";var f="";var g="";var h="";var i="";var j="";var k="";var l="";var m="";var n="";var o="";var p="";var q="";var r="";var s="";var t=true;var u=false;var v=0;var w=0;var x=0;var y=0;var z=0;var A=0;var B=0;var C=0;var D=0;var E=false;var F=0;var G=g.length-1;this.goToSlide=function(a,c){if(!E){E=true;x=a;b.onBeforeSlide(x,g.length,g.eq(x));if(typeof c=="undefined"){var c=true}if(c){if(b.auto){d.stopShow(true)}}slide=a;if(slide==F){b.onFirstSlide(x,g.length,g.eq(x))}if(slide==G){b.onLastSlide(x,g.length,g.eq(x))}if(b.mode=="horizontal"){e.animate({left:"-"+W(slide,"left")+"px"},b.speed,b.easing,function(){E=false;b.onAfterSlide(x,g.length,g.eq(x))})}else if(b.mode=="vertical"){e.animate({top:"-"+W(slide,"top")+"px"},b.speed,b.easing,function(){E=false;b.onAfterSlide(x,g.length,g.eq(x))})}else if(b.mode=="fade"){P()}V();if(b.moveSlideQty>1){a=Math.floor(a/b.moveSlideQty)}Q(a);T()}};this.goToNextSlide=function(a){if(typeof a=="undefined"){var a=true}if(a){if(b.auto){d.stopShow(true)}}if(!b.infiniteLoop){if(!E){var c=false;x=x+b.moveSlideQty;if(x<=G){V();b.onNextSlide(x,g.length,g.eq(x));d.goToSlide(x)}else{x-=b.moveSlideQty}}}else{if(!E){E=true;var c=false;x=x+b.moveSlideQty;if(x>G){x=x%g.length;c=true}b.onNextSlide(x,g.length,g.eq(x));b.onBeforeSlide(x,g.length,g.eq(x));if(b.mode=="horizontal"){var f=b.moveSlideQty*k;e.animate({left:"-="+f+"px"},b.speed,b.easing,function(){E=false;if(c){e.css("left","-"+W(x,"left")+"px")}b.onAfterSlide(x,g.length,g.eq(x))})}else if(b.mode=="vertical"){var h=b.moveSlideQty*w;e.animate({top:"-="+h+"px"},b.speed,b.easing,function(){E=false;if(c){e.css("top","-"+W(x,"top")+"px")}b.onAfterSlide(x,g.length,g.eq(x))})}else if(b.mode=="fade"){P()}if(b.moveSlideQty>1){Q(Math.ceil(x/b.moveSlideQty))}else{Q(x)}T()}}};this.goToPreviousSlide=function(c){if(typeof c=="undefined"){var c=true}if(c){if(b.auto){d.stopShow(true)}}if(!b.infiniteLoop){if(!E){var f=false;x=x-b.moveSlideQty;if(x<0){x=0;if(b.hideControlOnEnd){a(".bx-prev",h).hide()}}V();b.onPrevSlide(x,g.length,g.eq(x));d.goToSlide(x)}}else{if(!E){E=true;var f=false;x=x-b.moveSlideQty;if(x<0){negativeOffset=x%g.length;if(negativeOffset==0){x=0}else{x=g.length+negativeOffset}f=true}b.onPrevSlide(x,g.length,g.eq(x));b.onBeforeSlide(x,g.length,g.eq(x));if(b.mode=="horizontal"){var i=b.moveSlideQty*k;e.animate({left:"+="+i+"px"},b.speed,b.easing,function(){E=false;if(f){e.css("left","-"+W(x,"left")+"px")}b.onAfterSlide(x,g.length,g.eq(x))})}else if(b.mode=="vertical"){var j=b.moveSlideQty*w;e.animate({top:"+="+j+"px"},b.speed,b.easing,function(){E=false;if(f){e.css("top","-"+W(x,"top")+"px")}b.onAfterSlide(x,g.length,g.eq(x))})}else if(b.mode=="fade"){P()}if(b.moveSlideQty>1){Q(Math.ceil(x/b.moveSlideQty))}else{Q(x)}T()}}};this.goToFirstSlide=function(a){if(typeof a=="undefined"){var a=true}d.goToSlide(F,a)};this.goToLastSlide=function(){if(typeof a=="undefined"){var a=true}d.goToSlide(G,a)};this.getCurrentSlide=function(){return x};this.getSlideCount=function(){return g.length};this.stopShow=function(a){clearInterval(o);if(typeof a=="undefined"){var a=true}if(a&&b.autoControls){p.html(r).removeClass("stop").addClass("start");t=false}};this.startShow=function(a){if(typeof a=="undefined"){var a=true}K();if(a&&b.autoControls){p.html(s).removeClass("start").addClass("stop");t=true}};this.stopTicker=function(a){e.stop();if(typeof a=="undefined"){var a=true}if(a&&b.ticker){p.html(r).removeClass("stop").addClass("start");t=false}};this.startTicker=function(a){if(b.mode=="horizontal"){if(b.tickerDirection=="next"){var c=parseInt(e.css("left"));var d=A+c+g.eq(0).width()}else if(b.tickerDirection=="prev"){var c=-parseInt(e.css("left"));var d=c-g.eq(0).width()}var f=d*b.tickerSpeed/A;L(C,d,f)}else if(b.mode=="vertical"){if(b.tickerDirection=="next"){var h=parseInt(e.css("top"));var d=B+h+g.eq(0).height()}else if(b.tickerDirection=="prev"){var h=-parseInt(e.css("top"));var d=h-g.eq(0).height()}var f=d*b.tickerSpeed/B;L(D,d,f);if(typeof a=="undefined"){var a=true}if(a&&b.ticker){p.html(s).removeClass("start").addClass("stop");t=true}}};this.initShow=function(){e=a(this);f=e.clone();g=e.children();h="";i=e.children(":first");j=i.width();v=0;k=i.outerWidth();w=0;l=X();m=Y();E=false;n="";x=0;y=0;z=0;o="";p="";q="";r="";s="";t=true;u=false;A=0;B=0;C=0;D=0;F=0;G=g.length-1;g.each(function(b){if(a(this).outerHeight()>w){w=a(this).outerHeight()}if(a(this).outerWidth()>v){v=a(this).outerWidth()}});if(b.randomStart){var c=Math.floor(Math.random()*g.length);x=c;y=k*(b.moveSlideQty+c);z=w*(b.moveSlideQty+c)}else{x=b.startingSlide;y=k*(b.moveSlideQty+b.startingSlide);z=w*(b.moveSlideQty+b.startingSlide)}H();if(b.pager&&!b.ticker){if(b.pagerType=="full"){S("full")}else if(b.pagerType=="short"){S("short")}}if(b.controls&&!b.ticker){J()}if(b.auto||b.ticker){if(b.autoControls){M()}if(b.autoStart){setTimeout(function(){d.startShow(true)},b.autoDelay)}else{d.stopShow(true)}if(b.autoHover&&!b.ticker){N()}}if(b.moveSlideQty>1){Q(Math.ceil(x/b.moveSlideQty))}else{Q(x)}V();if(b.captions){T()}b.onAfterSlide(x,g.length,g.eq(x))};this.destroyShow=function(){clearInterval(o);a(".bx-next, .bx-prev, .bx-pager, .bx-auto",h).remove();e.unwrap().unwrap().removeAttr("style");e.children().removeAttr("style").not(".pager").remove();g.removeClass("pager")};this.reloadShow=function(){d.destroyShow();d.initShow()};this.each(function(){if(a(this).children().length>0){d.initShow()}});return this};jQuery.fx.prototype.cur=function(){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null)){return this.elem[this.prop]}var a=parseFloat(jQuery.css(this.elem,this.prop));return a}})(jQuery)
                    
                
MY_Pagination.php git://github.com/imagecms/ImageCMS.git | PHP | 348 lines
                    
1<?php
                    
2
                    
29        // Calculate the total number of pages
                    
30        $num_pages = ceil($this->total_rows / $this->per_page);
                    
31
                    
208        // Calculate the total number of pages
                    
209        $num_pages = ceil($this->total_rows / $this->per_page);
                    
210
                    
                
mdl.magickwand.php http://phpfor.googlecode.com/svn/trunk/ | PHP | 439 lines
                    
1<?php
                    
2/**
                    
5 * @package
                    
6 * @version $Id: mdl.magickwand.php 1867 2008-04-23 04:00:24Z hujianxin $
                    
7 * @copyright 2003-2007 ShopEx
                    
272            $mu = $srcImageWidth / $objWidth;
                    
273            $objHeight = ceil($srcImageHeight / $mu);
                    
274        }
                    
277            $mu = $srcImageHeight / $objHeight;
                    
278            $objWidth = ceil($srcImageWidth / $mu);
                    
279        }
                    
                
paginator.php git://github.com/ericbarnes/Status-Board.git | PHP | 424 lines
                    
1<?php namespace Laravel;
                    
2
                    
100
                    
101		$last = ceil($total / $per_page);
                    
102
                    
120		// the last page, the last page will be returned.
                    
121		if (is_numeric($page) and $page > $last = ceil($total / $per_page))
                    
122		{
                    
                
users.php https://gitlab.com/kidaa/quantum.git | PHP | 200 lines
                    
1<?php
                    
2namespace A;
                    
37        }
                    
38        return ceil($all_vals / $limit) > 1 ? ceil($all_vals / $limit) : 1;
                    
39    }
                    
88        $_SESSION['msg'] = 'success';
                    
89        $this->engine->url->redirect(PRTCL . "://" . $this->engine->host . ADM_PATH . "index.php?page=users&view=tiny&id=" .
                    
90            $this->engine->db->getLastId());
                    
172                'caption'   => $this->language['users'],
                    
173                'link'      => 'index.php?page=users'
                    
174            );
                    
                
class.jetpack-sync-module-posts.php https://bitbucket.org/ericstrom/ballmerpeak.git | PHP | 410 lines
                    
1<?php
                    
2
                    
2
                    
3require_once dirname( __FILE__ ) . '/class.jetpack-sync-settings.php';
                    
4
                    
94
                    
95		return (int) ceil( $count / self::ARRAY_CHUNK_SIZE );
                    
96	}
                    
221
                    
222		/** This filter is already documented in core. wp-includes/post-template.php */
                    
223		if ( Jetpack_Sync_Settings::get_setting( 'render_filtered_content' ) && $post_type->public ) {
                    
                
ico.php http://lansuite.googlecode.com/svn/trunk/ | PHP | 729 lines
                    
1<?php
                    
2/*
                    
226
                    
227$Zbytek=(4-ceil(($Width/(8/$biBitCount)))%4)%4;
                    
228
                    
287//Maska
                    
288$Zbytek=(4-ceil(($Width/(8)))%4)%4;
                    
289for($y=$Height-1;$y>=0;$y--)
                    
                
gallery.php git://github.com/imagecms/ImageCMS.git | PHP | 307 lines
                    
1<?php
                    
2
                    
217        $paginationConfig['base_url'] = site_url('gallery/thumbnails/' . $id);
                    
218        $paginationConfig['total_rows'] = ceil($album[count] / 15);
                    
219        $paginationConfig['last_link'] = ceil($album[count] / 15);
                    
224        $paginationConfig['num_links'] = 3;
                    
225        include_once "./templates/{$this->config->item('template')}/paginations.php";
                    
226
                    
306
                    
307/* End of file gallery.php */
                    
                
base_sound_manager.cpp git://github.com/scummvm/scummvm.git | C++ | 298 lines
                    
24 * This file is based on WME Lite.
                    
25 * http://dead-code.org/redir.php?target=wmelite
                    
26 * Copyright (c) 2011 Jan Nedoma
                    
243	_volumeMasterPercent = percent;
                    
244	setMasterVolume((int)ceil(percent * 255.0 / 100.0));
                    
245	return STATUS_OK;
                    
                
handlers.dev.js http://buddypress-media.googlecode.com/svn/bp_media/trunk/ | JavaScript | 452 lines
                    
39	jQuery('.bar', item).width( w * bytesDone / bytesTotal );
                    
40	jQuery('.percent', item).html( Math.ceil(bytesDone / bytesTotal * 100) + '%' );
                    
41
                    
111	else {
                    
112		item.load('async-upload.php', {attachment_id:serverData, fetch:f}, function(){prepareMediaItemInit(fileObj);updateMediaForm()});
                    
113	}
                    
146		jQuery.ajax({
                    
147			url: 'admin-ajax.php',
                    
148			type: 'post',
                    
164		jQuery.ajax({
                    
165			url: 'admin-ajax.php',
                    
166			type: 'post',
                    
                
generate_pairs.php http://lansuite.googlecode.com/svn/trunk/ | PHP | 311 lines
                    
1<?php
                    
2
                    
2
                    
3include_once("modules/mail/class_mail.php");
                    
4$mail = new mail();
                    
18if ($team_anz < 4) {
                    
19	$func->information(t('Es müssen mindestens 4 Teams angemeldet sein!'), "index.php?mod=tournament2&action=details&tournamentid={$_GET["tournamentid"]}&headermenuitem=2");
                    
20
                    
22} elseif ($tournament['mode'] == "groups" and $team_anz < 6) {
                    
23	$func->information(t('Es müssen mindestens 6 Teams angemeldet sein!'), "index.php?mod=tournament2&action=details&tournamentid={$_GET["tournamentid"]}&headermenuitem=2");
                    
24
                    
75		if (($tournament['teamplayer'] == 1) || ($waiting_teams == 0)) $_GET["step"] = 3;
                    
76		else $func->question(t('Zu diesem Turnier haben sich Teams angemeldet, welche noch nicht komplett sind. Möchtest du diese beim Generieren aus dem Turnier entfernen?'), "index.php?mod=tournament2&action=generate_pairs&step=4&tournamentid={$_GET["tournamentid"]}", "index.php?mod=tournament2&action=generate_pairs&step=3&tournamentid={$_GET["tournamentid"]}");
                    
77	}
                    
97
                    
98		$func->question(t('Alle unvollständigen Teams im Turnier %1 wurden erfolgreich gelöscht. Möchtest du das Turnier nun generieren?', $tournament["name"]), "index.php?mod=tournament2&action=generate_pairs&step=3&tournamentid={$_GET["tournamentid"]}", "index.php?mod=tournament2&action=details&tournamentid={$_GET["tournamentid"]}&headermenuitem=2");
                    
99	}
                    
                
mapfile.php http://phpfor.googlecode.com/svn/trunk/ | PHP | 375 lines
                    
1<?php
                    
2define('DF_BEGIN',0);
                    
27            $slen = strlen($data);
                    
28            $bs = intval(ceil($slen/$this->bs));
                    
29
                    
                
Pagination.php git://github.com/thorsten/phpMyFAQ.git | PHP | 378 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * PHP Version 5.3
                    
6 *
                    
10 *
                    
11 * @category  phpMyFAQ
                    
12 * @package   PMF_Pagination
                    
12 * @package   PMF_Pagination
                    
13 * @author    Anatoliy Belsky <ab@php.net>
                    
14 * @author    Thorsten Rinne <thorsten@phpmyfaq.de>
                    
14 * @author    Thorsten Rinne <thorsten@phpmyfaq.de>
                    
15 * @copyright 2009-2012 phpMyFAQ Team
                    
16 * @license   http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
                    
16 * @license   http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
                    
17 * @link      http://www.phpmyfaq.de
                    
18 * @since     2009-09-27
                    
                
jqplot.enhancedLegendRenderer.js https://bitbucket.org/hybird/creme_crm | JavaScript | 306 lines
                    
9 * jqPlot is currently available for use in all personal or commercial projects 
                    
10 * under both the MIT (http://www.opensource.org/licenses/mit-license.php) and GPL 
                    
11 * version 2.0 (http://www.gnu.org/licenses/gpl-2.0.html) licenses. This means that you can 
                    
15 * know of any substantial use of jqPlot.  You can reach the author at: 
                    
16 * chris at jqplot dot com or see http://www.jqplot.com/info.php .
                    
17 *
                    
18 * If you are feeling kind and generous, consider supporting the project by
                    
19 * making a donation at: http://www.jqplot.com/donate.php .
                    
20 *
                    
97                if (!this.numberColumns){
                    
98                    nc = Math.ceil(series.length/nr);
                    
99                }
                    
105                nc = this.numberColumns;
                    
106                nr = Math.ceil(series.length/this.numberColumns);
                    
107            }
                    
                
ImageHelper.php git://github.com/croogo/croogo.git | PHP | 188 lines
                    
1<?php
                    
2
                    
73			if (($size[1]/$height) > ($size[0]/$width)) {
                    
74				$width = ceil(($size[0]/$size[1]) * $height);
                    
75			} else {
                    
75			} else {
                    
76				$height = ceil($width / ($size[0]/$size[1]));
                    
77			}
                    
                
index.php http://twpug.googlecode.com/svn/trunk/ | PHP | 144 lines
                    
1<?php
                    
2include '../../../include/cp_header.php';
                    
2include '../../../include/cp_header.php';
                    
3include 'function.php';
                    
4if ( file_exists("../language/".$xoopsConfig['language']."/admin.php") ) {
                    
4if ( file_exists("../language/".$xoopsConfig['language']."/admin.php") ) {
                    
5	include "../language/".$xoopsConfig['language']."/admin.php";
                    
6} else {
                    
6} else {
                    
7	include "../language/english/admin.php";
                    
8}
                    
9xoops_cp_header();
                    
10define('LANG_THIS_URL', XOOPS_URL.'/modules/lang_tool/admin/index.php');
                    
11switch($_GET['act']){
                    
70    $start = ($page-1)*$per;                     //????????
                    
71    $pages = ceil($total/$per);                  //?????
                    
72    
                    
                
thememove-blog.php https://bitbucket.org/super-firma/zdrojove_soubory.git | PHP | 248 lines
                    
1<?php
                    
2
                    
51
                    
52		$this->num_pages = intval( $atts['total_posts'] ) != - 1 ? ceil( $total_posts / $posts_per_page ) : $this->query->max_num_pages;
                    
53	}
                    
78
                    
79		$format = $wp_rewrite->using_index_permalinks() && ! strpos( $pagenum_link, 'index.php' ) ? 'index.php/' : '';
                    
80		$format .= $wp_rewrite->using_permalinks() ? user_trailingslashit( $wp_rewrite->pagination_base . '/%#%', 'paged' ) : '?paged=%#%';
                    
                
class-wpml-string-translation-table.php https://bitbucket.org/ed47/epfl-smart-move.git | PHP | 331 lines
                    
1<?php
                    
2
                    
24		<table id="icl_string_translations" class="widefat" cellspacing="0">
                    
25			<?php
                    
26			$this->render_table_header_or_footer( 'thead' );
                    
92				<div class="icl-st-original"<?php _icl_string_translation_rtl_div( $icl_string['string_language'] ) ?>>
                    
93					<img src="<?php echo esc_url( $sitepress->get_flag_url( $icl_string['string_language'] ) ) ?>"> <?php echo esc_html( $icl_string['value'] ) ?>
                    
94				</div>
                    
166 												data-lang="<?php echo $lang['code']; ?>"
                    
167												<?php if ( isset( $icl_string['translations'][ $lang['code'] ] ) ): ?>id="icl_st_ta_<?php echo esc_attr( $icl_string['translations'][ $lang['code'] ]['id'] ) ?>"<?php endif; ?>
                    
168										><?php echo esc_html( $string_value ) ?></textarea>
                    
184												<?php echo $tr_complete_checked ?>
                    
185																			   <?php if ( isset( $icl_string['translations'][ $lang['code'] ] ) ): ?>id="icl_st_cb_<?php echo esc_attr( $icl_string['translations'][ $lang['code'] ]['id'] ) ?>"<?php endif; ?>
                    
186											/>
                    
216				</span>
                    
217				<input type="hidden" id="icl_st_wc_<?php echo esc_attr( $string_id ) ?>" value="<?php
                    
218				echo $WPML_String_Translation->estimate_word_count( $icl_string['value'], $icl_string['string_language'] ) ?>"/>
                    
                
AdminWindow.php http://mlepp.googlecode.com/svn/trunk/ | PHP | 259 lines
                    
1<?php
                    
2namespace ManiaLivePlugins\MLEPP\Admin\Gui\Windows;
                    
179		$this->page_items = floor( ($this->table->getSizeY()-12) / $this->item_height);
                    
180		$this->page_last = ceil(count($this->records) * $this->item_height / max(1, $this->table->getSizeY()-12));
                    
181	}
                    
                
EnvironmentWindow.php http://mlepp.googlecode.com/svn/trunk/ | PHP | 250 lines
                    
1<?php
                    
2
                    
96		$count = $this->modList->countMods();
                    
97		$this->lastPage = ceil($count / $itemCount);
                    
98
                    
                
ImageMagic.php https://bitbucket.org/kiruthiga208/expertplus_enc.git | PHP | 334 lines
                    
1<?php
                    
2/**
                    
32        if (!(extension_loaded('imagick'))) {
                    
33            throw new \RuntimeException('You need to install Imagick PHP Extension OR use http://github.com/Gregwar/Image library');
                    
34        }
                    
301                foreach ($this->image as $frame) {
                    
302                    $this->image->cropImage(ceil($width * $geo['height'] / $height), $geo['height'], (($geo['width'] - ($width * $geo['height'] / $height)) / 2), 0);
                    
303                    $frame->setImagePage($width, $height, 0, 0);
                    
305            } else {
                    
306                $this->image->cropImage(ceil($width * $geo['height'] / $height), $geo['height'], (($geo['width'] - ($width * $geo['height'] / $height)) / 2), 0);
                    
307            }
                    
                
user_permission.php https://bitbucket.org/Hibiki08/goodlack.git | PHP | 460 lines
                    
1<?php
                    
2class ControllerUserUserPermission extends Controller {
                    
246
                    
247		$data['results'] = sprintf($this->language->get('text_pagination'), ($user_group_total) ? (($page - 1) * $this->config->get('config_limit_admin')) + 1 : 0, ((($page - 1) * $this->config->get('config_limit_admin')) > ($user_group_total - $this->config->get('config_limit_admin'))) ? $user_group_total : ((($page - 1) * $this->config->get('config_limit_admin')) + $this->config->get('config_limit_admin')), $user_group_total, ceil($user_group_total / $this->config->get('config_limit_admin')));
                    
248
                    
                
MY_Pagination.php http://toan-friendly-ch4n.googlecode.com/svn/trunk/ | PHP | 339 lines
                    
1<?php
                    
2class MY_Pagination extends CI_Pagination {
                    
25		// Calculate the total number of pages
                    
26		$num_pages = ceil($this->total_rows / $this->per_page);
                    
27
                    
186		// Calculate the total number of pages
                    
187		$num_pages = ceil($this->total_rows / $this->per_page);
                    
188
                    
                
webcore.gallery.php https://webcore.svn.codeplex.com/svn | PHP | 374 lines
                    
1<?php
                    
2/**
                    
36                    $this->state->setTotalRecordCount($recordCount);
                    
37                    $pageCount = intval(ceil($recordCount / $this->pageSize));
                    
38                    $this->state->setPageCount($pageCount);
                    
                
admin_insts_db.php https://github.com/azeckoski/az-php-sandbox.git | PHP | 326 lines
                    
24// login if not autheticated
                    
25require $ACCOUNTS_PATH.'include/auth_login_redirect.php';
                    
26
                    
146	"<a href='admin_insts.php'>Institutions</a> - " .
                    
147"<a href='admin_perms.php'>Permissions</a> - <a href='admin_roles.php'>Roles</a>" .
                    
148	" <strong>** WARNING: This tool is deprecated! **</strong>" .
                    
164
                    
165<?php include $ACCOUNTS_PATH.'include/top_header.php'; ?>
                    
166<script type="text/javascript">
                    
180<?php //INCLUDE THE HEADER
                    
181include $ACCOUNTS_PATH.'include/header.php'; 
                    
182 ?>
                    
323</div>
                    
324<?php include $ACCOUNTS_PATH.'include/footer.php'; // Include the FOOTER ?>
                    
325
                    
                
merkleblock.h git://github.com/bitcoin/bitcoin.git | C Header | 173 lines
                    
3// Distributed under the MIT software license, see the accompanying
                    
4// file COPYING or http://www.opensource.org/licenses/mit-license.php.
                    
5
                    
33 *
                    
34 *   SIZE <= 10 + ceil(32.25*N)
                    
35 *
                    
                
graph.vue https://gitlab.com/bugagazavr/gitlab-ce.git | Vue | 340 lines
                    
10import GraphDeployment from './graph/deployment.vue';
                    
11import GraphPath from './graph/path.vue';
                    
12import MonitoringMixin from '../mixins/monitoring_mixins';
                    
25    GraphDeployment,
                    
26    GraphPath,
                    
27    GraphLegend,
                    
101      return {
                    
102        paddingBottom: `${Math.ceil(this.baseGraphHeight * 100) / this.baseGraphWidth || 0}%`,
                    
103      };
                    
                
sitemap.xml.php http://pixie-cms.googlecode.com/svn/trunk/ | PHP | 163 lines
                    
1<?php
                    
2/**
                    
34if (defined('DIRECT_ACCESS')) {
                    
35	require_once 'admin/lib/lib_misc.php';
                    
36	pixieExit();
                    
39define('DIRECT_ACCESS', 1);
                    
40require_once 'admin/lib/lib_misc.php';
                    
41/* perform basic sanity checks */
                    
44error_reporting(0);
                    
45include_once 'admin/config.php';
                    
46include_once 'admin/lib/lib_db.php';
                    
46include_once 'admin/lib/lib_db.php';
                    
47include_once 'admin/lib/lib_date.php';
                    
48include_once 'admin/lib/lib_tags.php';
                    
155}
                    
156/* http://php.net/manual/en/function.header.php
                    
157header() must be called before any actual output is sent, either by normal HTML tags, blank lines in a file, or from PHP.
                    
                
m_groups.php https://bitbucket.org/johnroyer/phpwind8.7.git | PHP | 402 lines
                    
1<?php
                    
2!defined('A_P') && exit('Forbidden');
                    
12
                    
13require_once(R_P . 'u/lib/space.class.php');
                    
14$newSpace = new PwSpace($uid ? $uid : $winduid);
                    
21	$USCR = 'space_groups';
                    
22	require_once S::escapePath($appEntryBasePath . 'action/view.php');
                    
23}
                    
28
                    
29require_once(R_P.'require/showimg.php');
                    
30$current_tab_id = empty($a) ? 'index' : ($a == 'create' ? 'index' : $a);
                    
64		$count = $weiboService->getConloysWeibosCount($colonyids);
                    
65		$pageCount = ceil($count / $perpage);
                    
66		$page = validatePage($page,$pageCount);
                    
66		$page = validatePage($page,$pageCount);
                    
67		$navPages = numofpage($count,$page,$pageCount,'apps.php?q=groups&');
                    
68		$weiboList = $weiboService->getConloysWeibos($colonyids,$page,$perpage);
                    
                
sagepay_direct.php https://bitbucket.org/mmahdy/opencart-modules-app.git | PHP | 273 lines
                    
1<?php
                    
2class ControllerExtensionCreditCardSagepayDirect extends Controller {
                    
62
                    
63			$data['results'] = sprintf($this->language->get('text_pagination'), ($cards_total) ? (($page - 1) * 10) + 1 : 0, ((($page - 1) * 10) > ($cards_total - 10)) ? $cards_total : ((($page - 1) * 10) + 10), $cards_total, ceil($cards_total / 10));
                    
64		} else {
                    
                
table.php https://github.com/PorteroGCooper/zoop-helios.git | PHP | 643 lines
                    
1<?php
                    
2/**
                    
335		if (is_numeric($this->limit))
                    
336			$this->pages = ceil($this->total / $this->limit);
                    
337		else
                    
                
Drawing.php git://github.com/jasonhinkle/phreeze.git | PHP | 272 lines
                    
22 * @package    PHPExcel_Shared
                    
23 * @copyright  Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
24 * @license    http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt	LGPL
                    
33 * @package    PHPExcel_Shared
                    
34 * @copyright  Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
35 */
                    
70	 */
                    
71	public static function pixelsToCellDimension($pValue = 0, PHPExcel_Style_Font $pDefaultFont) {
                    
72		// Font name and size
                    
78			$colWidth = $pValue
                    
79				* PHPExcel_Shared_Font::$defaultColumnWidths[$name][$size]['width']
                    
80				/ PHPExcel_Shared_Font::$defaultColumnWidths[$name][$size]['px'];
                    
174	 *
                    
175	 * @link http://www.php.net/manual/en/function.imagecreatefromwbmp.php#86214
                    
176	 * @param string $filename Path to Windows DIB (BMP) image
                    
                
Drawing.php git://github.com/Dolibarr/dolibarr.git | PHP | 272 lines
                    
22 * @package    PHPExcel_Shared
                    
23 * @copyright  Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
24 * @license    http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt	LGPL
                    
33 * @package    PHPExcel_Shared
                    
34 * @copyright  Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
35 */
                    
70	 */
                    
71	public static function pixelsToCellDimension($pValue = 0, PHPExcel_Style_Font $pDefaultFont) {
                    
72		// Font name and size
                    
78			$colWidth = $pValue
                    
79				* PHPExcel_Shared_Font::$defaultColumnWidths[$name][$size]['width']
                    
80				/ PHPExcel_Shared_Font::$defaultColumnWidths[$name][$size]['px'];
                    
174	 *
                    
175	 * @link http://www.php.net/manual/en/function.imagecreatefromwbmp.php#86214
                    
176	 * @param string $filename Path to Windows DIB (BMP) image
                    
                
return_reason.php https://bitbucket.org/DidenkoDima/opta.git | PHP | 370 lines
                    
1<?php
                    
2// *	@copyright	OPENCART.PRO 2011 - 2016.
                    
251
                    
252		$data['results'] = sprintf($this->language->get('text_pagination'), ($return_reason_total) ? (($page - 1) * $this->config->get('config_limit_admin')) + 1 : 0, ((($page - 1) * $this->config->get('config_limit_admin')) > ($return_reason_total - $this->config->get('config_limit_admin'))) ? $return_reason_total : ((($page - 1) * $this->config->get('config_limit_admin')) + $this->config->get('config_limit_admin')), $return_reason_total, ceil($return_reason_total / $this->config->get('config_limit_admin')));
                    
253
                    
                
return_action.php https://bitbucket.org/DidenkoDima/opta.git | PHP | 370 lines
                    
1<?php
                    
2// *	@copyright	OPENCART.PRO 2011 - 2016.
                    
251
                    
252		$data['results'] = sprintf($this->language->get('text_pagination'), ($return_action_total) ? (($page - 1) * $this->config->get('config_limit_admin')) + 1 : 0, ((($page - 1) * $this->config->get('config_limit_admin')) > ($return_action_total - $this->config->get('config_limit_admin'))) ? $return_action_total : ((($page - 1) * $this->config->get('config_limit_admin')) + $this->config->get('config_limit_admin')), $return_action_total, ceil($return_action_total / $this->config->get('config_limit_admin')));
                    
253
                    
                
sas.php http://ccds.googlecode.com/svn/trunk/ | PHP | 358 lines
                    
1<?php
                    
2/*************************************************************************************
                    
2/*************************************************************************************
                    
3 * sas.php
                    
4 * -------
                    
76            'BAND', 'BETAINV', 'BLSHIFT', 'BNOT', 'BOR', 'BRSHIFT', 'BXOR',
                    
77            'BYTE', 'CDF', 'CEIL', 'CEXIST', 'CINV', 'CLOSE', 'CNONCT', 'COLLATE',
                    
78            'COMPBL', 'COMPOUND', 'COMPRESS', 'COSH', 'COS', 'CSS', 'CUROBS',
                    
                
pay.99bill.php http://phpfor.googlecode.com/svn/trunk/ | PHP | 172 lines
                    
1<?php
                    
2require('paymentPlugin.php');
                    
20        $ikey = $this->getConf($payment['M_OrderId'], 'PrivateKey');//????????99BILL????????    
                    
21        $payment['M_Amount']=ceil($payment['M_Amount'] * 100);
                    
22        $orderTime = date('YmdHis',$payment['M_Time']?$payment['M_Time']:time());
                    
                
portfolio.php https://bitbucket.org/Taktisch/taktisch.git | PHP | 187 lines
                    
81      <div class="<?php if ( $wspm_filter_show_asc_desc == '1' or $wspm_filter_show_shuffle == '1' ) { echo 'col-sm-9'; } else { echo 'col-sm-12'; } ?>">
                    
82        <?php if ( $wspm_filter_show_filters == '1' ) echo '<a class="wspm-slideout" href="javascript:void(0);">'.$wspm_filter_toggle_text.'</a><div class="wspm-slideout-hidden">'.$wspm_all_active_filters.'</div>'; ?>
                    
83      </div>
                    
116    
                    
117    <div class="filters-stamp stamp col-lg-<?php echo $wspm_stamp_grid_lg; ?> col-md-<?php echo $wspm_stamp_grid_md; ?> col-sm-<?php echo $wspm_stamp_grid_sm; ?> col-xs-<?php echo $wspm_stamp_grid_xs; ?> item">
                    
118      <div class="stamp-inner">
                    
156  
                    
157<?php
                    
158$uri = JFactory::getURI();
                    
168<div class="wspm-pagination clearfix">
                    
169  <a class="<?php if($wslimitstart == 0) { echo 'disabled'; } ?>" href="<?php echo JRoute::_($firstl); ?>"><i class="fa fa-step-backward"></i></a>
                    
170<?php
                    
177?>
                    
178  <a class="<?php if($wslimitstart == (($seiten - 1 ) * $wslimit)) { echo 'disabled'; } ?>" href="<?php echo JRoute::_($lastl); ?>"><i class="fa fa-step-forward"></i></a>
                    
179</div>
                    
                
shopex_stat_modifiers.php http://phpfor.googlecode.com/svn/trunk/ | PHP | 142 lines
                    
1<?php
                    
2if(!class_exists('pageFactory')){
                    
2if(!class_exists('pageFactory')){
                    
3    require(CORE_DIR.'/include/pageFactory.php');
                    
4}
                    
78                    for(var  i=0;i<  l;i++)  {
                    
79                        tmp  +=  x.charAt(Math.ceil(Math.random()*100000000)%x.length);
                    
80                    }
                    
                
php.js http://tatami.googlecode.com/svn/trunk/ | JavaScript | 297 lines
                    
1if(!dojo._hasResource["dojox.date.php"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
                    
2dojo._hasResource["dojox.date.php"] = true;
                    
2dojo._hasResource["dojox.date.php"] = true;
                    
3dojo.provide("dojox.date.php");
                    
4dojo.require("dojo.date");
                    
5
                    
6dojox.date.php.format = function(/*Date*/ date, /*String*/ format, /*Object?*/ overrides){
                    
7	// summary: Get a formatted string for a given date object
                    
7	// summary: Get a formatted string for a given date object
                    
8	var df = new dojox.date.php.DateFormat(date);
                    
9	return df.format(format, overrides);	
                    
11
                    
12dojox.date.php.DateFormat = function(/*Date*/ date){
                    
13	this.date = date;
                    
14}
                    
15dojo.extend(dojox.date.php.DateFormat, {
                    
16	weekdays: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"],
                    
                
Page.class.php http://nblog-thinkphp.googlecode.com/svn/trunk/ | PHP | 180 lines
                    
1<?php
                    
2// +----------------------------------------------------------------------
                    
2// +----------------------------------------------------------------------
                    
3// | ThinkPHP [ WE CAN DO IT JUST THINK IT ]
                    
4// +----------------------------------------------------------------------
                    
4// +----------------------------------------------------------------------
                    
5// | Copyright (c) 2009 http://thinkphp.cn All rights reserved.
                    
6// +----------------------------------------------------------------------
                    
10// +----------------------------------------------------------------------
                    
11// $Id: Page.class.php 75 2011-03-29 16:58:45Z nicholasinlove1986@gmail.com $
                    
12
                    
58        $this->listRows = !empty($listRows)?$listRows:C('PAGE_LISTROWS');
                    
59        $this->totalPages = ceil($this->totalRows/$this->listRows);     //???
                    
60        $this->coolPages  = ceil($this->totalPages/$this->rollPage);
                    
83        $p = C('VAR_PAGE');
                    
84        $nowCoolPage      = ceil($this->nowPage/$this->rollPage);
                    
85        $url  =  $_SERVER['REQUEST_URI'].(strpos($_SERVER['REQUEST_URI'],'?')?'':"?").$this->parameter;
                    
                
components.class.php http://pumukit.googlecode.com/svn/trunk/ | PHP | 175 lines
                    
1<?php
                    
2
                    
8 * @author     Your name here
                    
9 * @version    SVN: $Id: components.class.php 2692 2006-11-15 21:03:55Z fabien $
                    
10 */
                    
52    $this->total_serial = SerialPeer::doCount($cTotal);
                    
53    $this->total = ceil($this->total_serial / $limit); 
                    
54
                    
                
index.php git://github.com/Dolibarr/dolibarr.git | PHP | 340 lines
                    
1<?php
                    
2/* Copyright (C) 2001-2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
                    
21/**
                    
22 *  \file       htdocs/don/stats/index.php
                    
23 *  \ingroup    donations
                    
26
                    
27require '../../main.inc.php';
                    
28require_once DOL_DOCUMENT_ROOT.'/don/class/don.class.php';
                    
28require_once DOL_DOCUMENT_ROOT.'/don/class/don.class.php';
                    
29require_once DOL_DOCUMENT_ROOT.'/don/class/donstats.class.php';
                    
30require_once DOL_DOCUMENT_ROOT.'/core/class/dolgraph.class.php';
                    
88	$px1->SetLegend($legend);
                    
89	$px1->SetMaxValue($px1->GetCeilMaxValue());
                    
90	$px1->SetMinValue(min(0, $px1->GetFloorMinValue()));
                    
128	$px2->SetLegend($legend);
                    
129	$px2->SetMaxValue($px2->GetCeilMaxValue());
                    
130	$px2->SetMinValue(min(0,$px2->GetFloorMinValue()));
                    
                
mdl.comment.php http://phpfor.googlecode.com/svn/trunk/ | PHP | 279 lines
                    
1<?php
                    
2include_once('shopObject.php');
                    
179
                    
180        $maxPage = ceil($aRet['total'] / $pagenum);
                    
181        if($page > $maxPage) $page = $maxPage;
                    
199
                    
200        $maxPage = ceil($aRet['total'] / $pagenum);
                    
201        if($page > $maxPage) $page = $maxPage;
                    
                
weight_class.php https://bitbucket.org/wwwebexpert/sample-code.git | PHP | 401 lines
                    
1<?php
                    
2class ControllerLocalisationWeightClass extends Controller {
                    
252
                    
253		$data['results'] = sprintf($this->language->get('text_pagination'), ($weight_class_total) ? (($page - 1) * $this->config->get('config_limit_admin')) + 1 : 0, ((($page - 1) * $this->config->get('config_limit_admin')) > ($weight_class_total - $this->config->get('config_limit_admin'))) ? $weight_class_total : ((($page - 1) * $this->config->get('config_limit_admin')) + $this->config->get('config_limit_admin')), $weight_class_total, ceil($weight_class_total / $this->config->get('config_limit_admin')));
                    
254
                    
                
banner.php https://bitbucket.org/rgbrewer/oc-training.git | PHP | 430 lines
                    
1<?php
                    
2class ControllerDesignBanner extends Controller {
                    
249
                    
250		$data['results'] = sprintf($this->language->get('text_pagination'), ($banner_total) ? (($page - 1) * $this->config->get('config_limit_admin')) + 1 : 0, ((($page - 1) * $this->config->get('config_limit_admin')) > ($banner_total - $this->config->get('config_limit_admin'))) ? $banner_total : ((($page - 1) * $this->config->get('config_limit_admin')) + $this->config->get('config_limit_admin')), $banner_total, ceil($banner_total / $this->config->get('config_limit_admin')));
                    
251
                    
                
Text.php http://kumbia-enterprise.googlecode.com/svn/trunk/ | PHP | 527 lines
                    
1<?php
                    
2
                    
19 * @license 	New BSD License
                    
20 * @version 	$Id: Html.php 122 2010-02-11 19:09:18Z gutierrezandresfelipe $
                    
21 */
                    
448					if($calculatedOffset==-1){
                    
449						$calculatedOffset = ceil(($this->_rowHeight*$numberRows+$this->_headerHeight+20)/700);
                    
450						$rowsToRender = floor($numberRows/$calculatedOffset);
                    
                
arr.php https://bitbucket.org/huanteng/touyou.git | PHP | 371 lines
                    
1<?php
                    
2//一维数组
                    
223		// 进一取整、舍弃取整
                    
224		$more = ceil( $key_count / $group );
                    
225		$less = floor( $key_count / $group );
                    
331	 */
                    
332	function php_json_encode( $json )
                    
333	{
                    
                
class-wc-widget-price-filter.php https://gitlab.com/CarlCDavid/woocommerce.git | PHP | 182 lines
                    
1<?php
                    
2
                    
109			) );
                    
110			$max = ceil( $wpdb->get_var(
                    
111				$wpdb->prepare('
                    
134			) ) );
                    
135			$max = ceil( $wpdb->get_var(
                    
136				$wpdb->prepare('
                    
                
citycont.php https://bitbucket.org/obsidian/selador | PHP | 334 lines
                    
1<?php
                    
2/* citycont.php - Back-end utility functions for city and research views
                    
224
                    
225  $pages = ceil (count ($list) / $display_rows);
                    
226
                    
241      $page = (int)($rowcounter / $display_rows);
                    
242      if (!($outfile = fopen ($precalcpath."-".$page.".php", "w")))
                    
243      {
                    
243      {
                    
244        log_err ("Can't open file: ".$precalcpath."-".$page.".php");
                    
245        return (0);
                    
247      if (1 == $what)
                    
248        fwrite ($outfile, phpit ('if (count($gui->building_queue) < 2)  $slotsfree = true; else $slotsfree = false;'));
                    
249      else
                    
249      else
                    
250        fwrite ($outfile, phpit ('if (!$gui->research_string) $slotsfree = true; else $slotsfree = false;'));
                    
251
                    
                
lotpin_page.php http://ebpls.googlecode.com/svn/trunk/ | PHP | 195 lines
                    
46                                for($i = $pager-5; $i < $pager; $i++){
                    
47					echo "<a href='index.php?part=4&class_type=Preference&selMode=ebpls_nannouncement&page=$i&orderkey=$orderkey&is_asc=$is_asc'>$i</a>&nbsp;";
                    
48                                }
                    
91		<td align=center class='hdr' width="40%"> 
                    
92			<a href='index.php?part=4&class_type=Preference&selMode=ebpls_nannouncement&is_desc=<?php echo $is_desc;?>&orderkey=announcements'>&nbsp;Announcements</a>
                    
93		</td>
                    
94		<td align=center class='hdr' width="15%"> 
                    
95			<a href='index.php?part=4&class_type=Preference&selMode=ebpls_nannouncement&is_desc=<?php echo $is_desc;?>&orderkey=announced_by'>&nbsp;Announced By</a>
                    
96		</td>
                    
97		<td align=center class='hdr' width="15%"> 
                    
98			<a href='index.php?part=4&class_type=Preference&selMode=ebpls_nannouncement&is_desc=<?php echo $is_desc;?>&orderkey=date_modified'>&nbsp;Date Announced</a>
                    
99		</td>
                    
105	<tr width=100%>
                    
106<?php
                    
107		/*
                    
                
class-gsc-table.php https://bitbucket.org/hcdesenvolvimentos/palupa_site.git | PHP | 385 lines
                    
1<?php
                    
2/**
                    
6if ( ! class_exists( 'WP_List_Table' ) ) {
                    
7	require_once( ABSPATH . 'wp-admin/includes/class-wp-list-table.php' );
                    
8}
                    
243			'total_items' => $total_items,
                    
244			'total_pages' => ceil( ( $total_items / $posts_per_page ) ),
                    
245			'per_page'    => $posts_per_page,
                    
342
                    
343		require WPSEO_PATH . '/admin/google_search_console/views/gsc-create-redirect.php';
                    
344
                    
                
ObjectStaticTest.php git://github.com/silverstripe/sapphire.git | PHP | 132 lines
                    
1<?php
                    
2/**
                    
65		
                    
66		// test the $ceiling param
                    
67		$this->assertEquals (
                    
                
date.js https://gitlab.com/BGCX261/zofplus-svn-to-git.git | JavaScript | 505 lines
                    
14 * Dual licensed under the MIT and GPL licenses:
                    
15 *   http://www.opensource.org/licenses/mit-license.php
                    
16 *   http://www.gnu.org/licenses/gpl.html
                    
248	add("getWeekOfYear", function() {
                    
249		return Math.ceil(this.getDayOfYear() / 7);
                    
250	});
                    
                
DateTimeFormatter.php https://github.com/vanilla/vanilla.git | PHP | 419 lines
                    
1<?php
                    
2/**
                    
36     *
                    
37     * @link http://us.php.net/manual/en/function.strftime.php
                    
38     *
                    
112            } elseif ($time > $now - (TimeUnit::ONE_MINUTE * 30)) {
                    
113                $minutesAgo = ceil($secondsAgo / 60);
                    
114                return sprintf(self::t('%s minutes ago'), $minutesAgo);
                    
                
banner.php https://bitbucket.org/DidenkoDima/opta.git | PHP | 435 lines
                    
1<?php
                    
2// *	@copyright	OPENCART.PRO 2011 - 2016.
                    
254
                    
255		$data['results'] = sprintf($this->language->get('text_pagination'), ($banner_total) ? (($page - 1) * $this->config->get('config_limit_admin')) + 1 : 0, ((($page - 1) * $this->config->get('config_limit_admin')) > ($banner_total - $this->config->get('config_limit_admin'))) ? $banner_total : ((($page - 1) * $this->config->get('config_limit_admin')) + $this->config->get('config_limit_admin')), $banner_total, ceil($banner_total / $this->config->get('config_limit_admin')));
                    
256
                    
                
global.func.php https://gitlab.com/BGCX262/zyyhong-svn-to-git.git | PHP | 175 lines
                    
1<?php
                    
2
                    
6
                    
7	$Id: global.func.php 16713 2008-11-17 03:25:20Z cnteacher $
                    
8*/
                    
36		($action != 'home' ? "<anchor title=\"confirm\"><prev/>$lang[return]</anchor> <a href=\"index.php\">$lang[home_page]</a><br />" : '').
                    
37		($discuz_uid ? "<a href=\"index.php?action=login&amp;logout=yes&amp;formhash=".FORMHASH."\">$discuz_user:$lang[logout]</a>" : "<a href=\"index.php?action=login\">$lang[login]</a> <a href=\"index.php?action=register\">$lang[register]</a>")."<br /><br />\n".
                    
38		"<small><a href=\"http://wap.jiaju001.com\">wap.jiaju001.com</a></small></p>\n".
                    
67
                    
68		$realpages = @ceil($num / $perpage);
                    
69		$pages = $realpages;
                    
                
tax_class.php https://bitbucket.org/zirrow/ecoelka.com.git | PHP | 373 lines
                    
1<?php
                    
2class ControllerLocalisationTaxClass extends Controller {
                    
233
                    
234		$data['results'] = sprintf($this->language->get('text_pagination'), ($tax_class_total) ? (($page - 1) * $this->config->get('config_limit_admin')) + 1 : 0, ((($page - 1) * $this->config->get('config_limit_admin')) > ($tax_class_total - $this->config->get('config_limit_admin'))) ? $tax_class_total : ((($page - 1) * $this->config->get('config_limit_admin')) + $this->config->get('config_limit_admin')), $tax_class_total, ceil($tax_class_total / $this->config->get('config_limit_admin')));
                    
235
                    
                
location.php https://bitbucket.org/mmahdy/opencart-modules-app.git | PHP | 427 lines
                    
1<?php
                    
2class ControllerLocalisationLocation extends Controller {
                    
235
                    
236		$data['results'] = sprintf($this->language->get('text_pagination'), ($location_total) ? (($page - 1) * $this->config->get('config_limit_admin')) + 1 : 0, ((($page - 1) * $this->config->get('config_limit_admin')) > ($location_total - $this->config->get('config_limit_admin'))) ? $location_total : ((($page - 1) * $this->config->get('config_limit_admin')) + $this->config->get('config_limit_admin')), $location_total, ceil($location_total / $this->config->get('config_limit_admin')));
                    
237
                    
                
base2n.php https://bitbucket.org/frogdog/noveosdx.git | PHP | 304 lines
                    
1<?php
                    
2
                    
4/**
                    
5 * Binary-to-text PHP Utilities
                    
6 *
                    
6 *
                    
7 * @package     binary-to-text-php
                    
8 * @link        https://github.com/ademarre/binary-to-text-php
                    
24 *
                    
25 * @package binary-to-text-php
                    
26 */
                    
165						$bytesPerGroup = $lcmMap[$bitsPerCharacter];
                    
166						$pads = $bytesPerGroup * $charsPerByte - ceil((strlen($rawString) % $bytesPerGroup) * $charsPerByte);
                    
167						$encodedString .= str_repeat($padCharacter, $pads);
                    
                
PageByPage.php https://bitbucket.org/iarp/knowledgebase.git | PHP | 348 lines
                    
1<?php
                    
2// +----------------------------------------------------------------------+
                    
124		if(!isset($_GET[$this->get_name])) {
                    
125			$this->num_pages = ceil($this->num_records/$this->limit);   //num pages
                    
126		} else {
                    
138		if(!$this->action_page) {
                    
139			$this->action_page = $_SERVER['PHP_SELF'];
                    
140		}
                    
247		if($more_fields !== false) {
                    
248			require_once ('HTML/FormSelect.php');
                    
249			
                    
296		if(!$this->action_page) {
                    
297			$this->action_page = $_SERVER['PHP_SELF'];
                    
298		}
                    
                
class-wp-walker.php git://github.com/wordpress/wordpress.git | PHP | 447 lines
                    
1<?php
                    
2/**
                    
309			if ( -1 == $max_depth ) {
                    
310				$this->max_pages = ceil( $total_top / $per_page );
                    
311			}
                    
353		if ( $paging ) {
                    
354			$this->max_pages = ceil( $total_top / $per_page );
                    
355		} else {
                    
                
SC_PageNavi.php https://git01.codeplex.com/eccubeonwaz | PHP | 148 lines
                    
1<?php
                    
2/*
                    
55        // ????????
                    
56        $this->max_page = ceil($all_row/$page_row);
                    
57
                    
                
tax_rate.php https://bitbucket.org/mmahdy/opencart-modules-app.git | PHP | 403 lines
                    
1<?php
                    
2class ControllerLocalisationTaxRate extends Controller {
                    
243
                    
244		$data['results'] = sprintf($this->language->get('text_pagination'), ($tax_rate_total) ? (($page - 1) * $this->config->get('config_limit_admin')) + 1 : 0, ((($page - 1) * $this->config->get('config_limit_admin')) > ($tax_rate_total - $this->config->get('config_limit_admin'))) ? $tax_rate_total : ((($page - 1) * $this->config->get('config_limit_admin')) + $this->config->get('config_limit_admin')), $tax_rate_total, ceil($tax_rate_total / $this->config->get('config_limit_admin')));
                    
245
                    
                
model.c git://github.com/phalcon/cphalcon.git | C | 327 lines
                    
5  +------------------------------------------------------------------------+
                    
6  | Copyright (c) 2011-2012 Phalcon Team (http://www.phalconphp.com)       |
                    
7  +------------------------------------------------------------------------+
                    
12  | obtain it through the world-wide-web, please send an email             |
                    
13  | to license@phalconphp.com so we can send you a copy immediately.       |
                    
14  +------------------------------------------------------------------------+
                    
14  +------------------------------------------------------------------------+
                    
15  | Authors: Andres Gutierrez <andres@phalconphp.com>                      |
                    
16  |          Eduar Carvajal <eduar@phalconphp.com>                         |
                    
23
                    
24#include "php.h"
                    
25#include "php_phalcon.h"
                    
50 */
                    
51PHP_METHOD(Phalcon_Paginator_Adapter_Model, __construct){
                    
52
                    
                
BaseDrawing.php git://github.com/Dolibarr/dolibarr.git | PHP | 486 lines
                    
22 * @package    PHPExcel_Worksheet
                    
23 * @copyright  Copyright (c) 2006 - 2011 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
24 * @license    http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt	LGPL
                    
33 * @package    PHPExcel_Worksheet
                    
34 * @copyright  Copyright (c) 2006 - 2011 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
35 */
                    
35 */
                    
36class PHPExcel_Worksheet_BaseDrawing implements PHPExcel_IComparable
                    
37{
                    
217     */
                    
218    public function setWorksheet(PHPExcel_Worksheet $pValue = null, $pOverrideOld = false) {
                    
219    	if (is_null($this->_worksheet)) {
                    
239    		} else {
                    
240    			throw new Exception("A PHPExcel_Worksheet has already been assigned. Drawings can only exist on one PHPExcel_Worksheet.");
                    
241    		}
                    
                
twitter.js git://github.com/appcelerator/KitchenSink.git | JavaScript | 319 lines
                    
7function strtotime (str, now) {
                    
8	// Emlulates the PHP strtotime function in JavaScript
                    
9	// obtained from http://phpjs.org/functions/strtotime:554
                    
18	} else if (now) {
                    
19		now = new Date(now*1000); // Accept PHP-style seconds
                    
20	} else {
                    
197	day_diff < 7 && day_diff + " days ago" ||
                    
198	day_diff < 31 && Math.ceil( day_diff / 7 ) + " week" + ((Math.ceil( day_diff / 7 )) == 1 ? "" : "s") + " ago";
                    
199}
                    
                
toolkit.inc.php https://github.com/kitpz2/grupappz.git | PHP | 378 lines
                    
1<?php
                    
2
                    
23
                    
24include_once("config-me.inc.php");
                    
25
                    
25
                    
26if(!@include_once("config.inc.php"))
                    
27{
                    
27{
                    
28	error( _('You have to create a config.inc.php!') );
                    
29}
                    
78
                    
79require_once("database.inc.php");
                    
80// Generates $db variable to access database.
                    
160
                    
161require_once("error.inc.php");
                    
162require_once("auth.inc.php");
                    
                
lib.image.corner.class.php http://php-ppcms.googlecode.com/svn/trunk/ | PHP | 271 lines
                    
1<?php
                    
2/***************************************************************
                    
93					if( ($x_ratio * $this->src_h) < $this->dest_h ) {
                    
94						$dest_h = ceil($x_ratio * $this->src_h);
                    
95						$dest_w = $this->dest_w;
                    
96					} else {
                    
97						$dest_w = ceil($y_ratio * $this->src_w);
                    
98						$dest_h = $this->dest_h;
                    
113					if( ($x_ratio * $this->src_h) < $this->dest_h ) {
                    
114						$dest_h = ceil($x_ratio * $this->src_h);
                    
115						$dest_w = $this->dest_w;
                    
116					} else {
                    
117						$dest_w = ceil($y_ratio * $this->src_w);
                    
118						$dest_h = $this->dest_h;
                    
125					if( ($x_ratio * $this->src_h) < $this->dest_h ) {
                    
126						$dest_h = ceil($x_ratio * $this->src_h);
                    
127						$dest_w = $this->dest_w;
                    
                
catalog.php http://ouyo.googlecode.com/svn/trunk/ | PHP | 182 lines
                    
31?>
                    
32        <?php include ("header.php"); ?>
                    
33<div class="crumb"><a href="index.php">??</a>&gt;??</div>
                    
142							<div class="post">
                    
143								<h3><a href="show.php?pid=<?php echo $row_list['id']; ?>"><?php echo $row_list['title']; ?></a></h3>
                    
144								<span class="date"><?php echo $row_list['created']; ?></span>
                    
162					<div class="pageinfo">
                    
163								<a href="?cid=<?php echo $cid; ?>&p=<?php echo $page - 1; ?>">???</a>
                    
164                                <?php
                    
173								
                    
174								<a href="?cid=<?php echo $cid; ?>&p=<?php echo $page + 1; ?>">???</a>
                    
175							</div>
                    
177				</div>
                    
178				<?php include ("sidebar.php"); ?>
                    
179				<div class="c"></div>
                    
181            
                    
182        <?php include ("footer.php"); ?>
                    
                
attribute_group.php https://bitbucket.org/mmahdy/opencart-api.git | PHP | 359 lines
                    
1<?php
                    
2class ControllerCatalogAttributeGroup extends Controller {
                    
235
                    
236		$data['results'] = sprintf($this->language->get('text_pagination'), ($attribute_group_total) ? (($page - 1) * $this->config->get('config_limit_admin')) + 1 : 0, ((($page - 1) * $this->config->get('config_limit_admin')) > ($attribute_group_total - $this->config->get('config_limit_admin'))) ? $attribute_group_total : ((($page - 1) * $this->config->get('config_limit_admin')) + $this->config->get('config_limit_admin')), $attribute_group_total, ceil($attribute_group_total / $this->config->get('config_limit_admin')));
                    
237
                    
                
mnw-themepage-handler.php https://github.com/singpolyma/mnw.git | PHP | 242 lines
                    
44        $actions = array(
                    
45                    'subscribe' => array('subscribe.php', 'mnw_parse_subscribe'),
                    
46                    'get_notice' => array('get_notice.php', 'mnw_get_notice'),
                    
75        <ul>
                    
76            <li><a href="<?php echo attribute_escape(get_option('mnw_themepage_url')); ?>" title="<?php _e('Go to the subscribe form', 'mnw'); ?>"><?php _e('Subscribe', 'mnw'); ?></a></li>
                    
77            <li><a href="<?php echo attribute_escape(mnw_set_action('notices') . '&type=sent'); ?>" title="<?php _e('Display sent notices', 'mnw'); ?>"><?php _e('Sent notices', 'mnw'); ?></a></li>
                    
77            <li><a href="<?php echo attribute_escape(mnw_set_action('notices') . '&type=sent'); ?>" title="<?php _e('Display sent notices', 'mnw'); ?>"><?php _e('Sent notices', 'mnw'); ?></a></li>
                    
78            <li><a href="<?php echo attribute_escape(mnw_set_action('notices') . '&type=received'); ?>" title="<?php _e('Display received notices', 'mnw'); ?>"><?php _e('Received notices', 'mnw'); ?></a></li>
                    
79        </ul>
                    
141                <h3><?php _e('Notice', 'mnw'); ?></h3>
                    
142                <p><?php _e('Notice not found.', 'mnw'); ?></p>
                    
143<?php
                    
234  </div>
                    
235               <a href="<?php echo attribute_escape(mnw_set_action('notices') . "&type=$data[0]&format=atom"); ?>" title="<?php _e('Display Atom feed of notices', 'mnw');?>"><?php _e('Atom feed', 'mnw'); ?></a>
                    
236            </div>
                    
                
action.finder_lister.php http://phpfor.googlecode.com/svn/trunk/ | PHP | 144 lines
                    
1<?php
                    
2if(!function_exists('type_modifier_date')){
                    
2if(!function_exists('type_modifier_date')){
                    
3    require(CORE_INCLUDE_DIR.'/modifiers.php');
                    
4}
                    
52    $finder['count'] = $object->count($finder['params']);
                    
53    $totalPages = ceil($finder['count']/$finder['plimit']);
                    
54
                    
116        }elseif($list){
                    
117            if(!function_exists('object_cols_type')) require(CORE_INCLUDE_DIR.'/core/object.cols.type.php');
                    
118            object_cols_type($list, $colArray, $key_modifier, $object_modifier, $type_modifier, $object,'col',$escape_html);
                    
129            'current'=> $page,
                    
130            'total'=> ceil($finder['count']/$finder['plimit']),
                    
131            'link'=> 'javascript:'.$finder['var'].'.page(_PPP_)',
                    
138    restore_error_handler();
                    
139    if(strpos($errfile,'AloneDB.php')){
                    
140        $GLOBALS['last_error'] = $errstr;
                    
                
components.class.php http://pumukit.googlecode.com/svn/trunk/ | PHP | 138 lines
                    
1<?php
                    
2/**
                    
54    $this->total_event = EventPeer::doCount($cTotal);
                    
55    $this->total = ceil($this->total_event / $limit); 
                    
56
                    
                
class.jetpack-sync-module-comments.php https://bitbucket.org/ericstrom/ballmerpeak.git | PHP | 188 lines
                    
1<?php
                    
2
                    
112
                    
113		return (int) ceil( $count / self::ARRAY_CHUNK_SIZE );
                    
114	}
                    
                
view.html.php http://getk2.googlecode.com/svn/trunk/ | PHP | 105 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * @version		$Id: view.html.php 1531 2012-03-26 09:54:29Z lefteris.kavadas $
                    
4 * @package		K2
                    
37		if ($limitstart > $total - $limit){
                    
38			$limitstart = max(0, (int) (ceil($total / $limit) - 1) * $limit);
                    
39			JRequest::setVar('limitstart', $limitstart);
                    
94			$toolbar=& JToolBar::getInstance('toolbar');
                    
95			$toolbar->appendButton('Popup', 'config', 'Parameters', 'index.php?option=com_k2&view=settings');
                    
96		}
                    
                
Pagination.php git://github.com/thorsten/phpMyFAQ.git | PHP | 379 lines
                    
1<?php
                    
2
                    
9 *
                    
10 * @package   phpMyFAQ
                    
11 * @author    Anatoliy Belsky <ab@php.net>
                    
11 * @author    Anatoliy Belsky <ab@php.net>
                    
12 * @author    Thorsten Rinne <thorsten@phpmyfaq.de>
                    
13 * @copyright 2009-2021 phpMyFAQ Team
                    
14 * @license   http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
                    
15 * @link      https://www.phpmyfaq.de
                    
16 * @since     2009-09-27
                    
18
                    
19namespace phpMyFAQ;
                    
20
                    
23 *
                    
24 * @package phpMyFAQ
                    
25 */
                    
                
TranslateEditForm.php git://github.com/drupal/drupal.git | PHP | 242 lines
                    
1<?php
                    
2
                    
111        // Approximate the number of rows to use in the default textarea.
                    
112        $rows = min(ceil(str_word_count($source_array[0]) / 12), 10);
                    
113        if (!$plural) {
                    
                
album_memberlist.php git://github.com/MightyGorgon/icy_phoenix.git | PHP | 344 lines
                    
1<?php
                    
2/**
                    
6* @copyright (c) 2008 Icy Phoenix
                    
7* @license http://opensource.org/licenses/gpl-license.php GNU Public License
                    
8*
                    
24// $album_user_id, $cat_id and $moderators_list are as default set
                    
25// in album.php file in the main folder.
                    
26// ------------------------------------------------------------------------
                    
53// set some initial values...
                    
54// $allowed_cat is set in album.php !!!
                    
55$list_sql = '';
                    
183
                    
184				$pic_preview = 'onmouseover="showtrail(\'' . append_sid(album_append_uid('album_picm.' . PHP_EXT . '?pic_id=' . $picrow[$j]['pic_id'])) . '\',\'' . addslashes($picrow[$j]['pic_title']) . '\', ' . $album_config['midthumb_width'] . ', ' . $album_config['midthumb_height'] . ')" onmouseout="hidetrail()"';
                    
185			}
                    
197			{
                    
198				$album_page_url = 'album.' . PHP_EXT;
                    
199			}
                    
                
2011-12-05-big-graph.html git://github.com/desandro/isotope.git | HTML | 197 lines
                    
96        // make groups look nice, by limiting rows, makes for blockier blocks
                    
97        groupMaxRows = groupLen / Math.ceil( groupLen / bigGraphOpts.maxRows );
                    
98
                    
146    while (i--) {
                    
147      projects.push( makeBigGraphProject() );
                    
148    }
                    
                
IntegerToLocalizedStringTransformerTest.php git://github.com/fabpot/symfony.git | PHP | 260 lines
                    
1<?php
                    
2
                    
13
                    
14use PHPUnit\Framework\TestCase;
                    
15use Symfony\Component\Form\Extension\Core\DataTransformer\IntegerToLocalizedStringTransformer;
                    
36            // towards positive infinity (1.6 -> 2, -1.6 -> -1)
                    
37            [1234.5, '1235', IntegerToLocalizedStringTransformer::ROUND_CEILING],
                    
38            [1234.4, '1235', IntegerToLocalizedStringTransformer::ROUND_CEILING],
                    
38            [1234.4, '1235', IntegerToLocalizedStringTransformer::ROUND_CEILING],
                    
39            [-1234.5, '-1234', IntegerToLocalizedStringTransformer::ROUND_CEILING],
                    
40            [-1234.4, '-1234', IntegerToLocalizedStringTransformer::ROUND_CEILING],
                    
132            // towards positive infinity (1.6 -> 2, -1.6 -> -1)
                    
133            ['1234,5', 1235, IntegerToLocalizedStringTransformer::ROUND_CEILING],
                    
134            ['1234,4', 1235, IntegerToLocalizedStringTransformer::ROUND_CEILING],
                    
134            ['1234,4', 1235, IntegerToLocalizedStringTransformer::ROUND_CEILING],
                    
135            ['-1234,5', -1234, IntegerToLocalizedStringTransformer::ROUND_CEILING],
                    
136            ['-1234,4', -1234, IntegerToLocalizedStringTransformer::ROUND_CEILING],
                    
                
Top10k.php https://repo.or.cz/zzandy.git | PHP | 166 lines
                    
1<?php
                    
2
                    
138		$mid = floor((self::show_records-2) / 2);	// part of records table shown in the middle
                    
139		$top = ceil($mid / self::goldsection);		// first records shown
                    
140		$bot = self::show_records - 2 - $top - $mid;// records from the bottom
                    
153				array(0, floor(self::show_records * 2 / 3) -2 + ($shift)), 
                    
154				array($maxi - ceil(self::show_records/3) + 1 + ($shift), $maxi)
                    
155			);
                    
                
BigFloatTest.class.php git://github.com/xp-framework/xp-framework.git | PHP | 325 lines
                    
1<?php namespace net\xp_framework\unittest\math;
                    
2
                    
221  #[@test]
                    
222  public function ceil() {
                    
223    $this->assertEquals(new BigFloat(5.0), create(new BigFloat(4.5))->ceil());
                    
226  #[@test]
                    
227  public function ceilInt() {
                    
228    $this->assertEquals(new BigFloat(4.0), create(new BigFloat(4.0))->ceil());
                    
231  #[@test]
                    
232  public function ceilClose() {
                    
233    $this->assertEquals(new BigFloat(10.0), create(new BigFloat(9.999))->ceil());
                    
236  #[@test]
                    
237  public function ceilNegative() {
                    
238    $this->assertEquals(new BigFloat(-4.0), create(new BigFloat(-4.5))->ceil());
                    
311  #[@test]
                    
312  public function ceilLotsOfZeros() {
                    
313    $this->assertEquals(new BigFloat(4.0), create(new BigFloat('4.00000000000000000'))->ceil());
                    
                
article_keywords_make.php http://jqbird.googlecode.com/svn/trunk/ | PHP | 223 lines
                    
1<?php
                    
2@ob_start();
                    
3@set_time_limit(3600);
                    
4require_once(dirname(__FILE__).'/config.php');
                    
5CheckPurview('sys_Keyword');
                    
98	}
                    
99	ShowMsg('??????????????????','article_keywords_main.php');
                    
100	exit();
                    
104{
                    
105	require_once(DEDEINC."/splitword.class.php");
                    
106	if(empty($startdd))
                    
197	{
                    
198		$tjlen = ceil( ($tjnum/$totalnum) * 100 );
                    
199	}
                    
210	{
                    
211		$nurl = "article_keywords_make.php?dopost=fetch&totalnum=$totalnum&startdd=".($startdd+$pagesize)."&pagesize=$pagesize";
                    
212		ShowMsg($tjsta,$nurl,0,500);
                    
                
forum_low.php git://github.com/FSB/Fire-Soft-Board-2.git | PHP | 465 lines
                    
1<?php
                    
2/**
                    
7 * @version $Id$
                    
8 * @license http://opensource.org/licenses/gpl-2.0.php GNU GPL 2
                    
9 */
                    
104			'HIGH_VERSION' =>	sprintf(Fsb::$session->lang('low_high'), Fsb::$cfg->get('forum_name')),
                    
105			'U_LOW_INDEX' =>	sid(ROOT . 'index.' . PHPEXT . '?p=low'),
                    
106		));
                    
126		Fsb::$tpl->set_vars(array(
                    
127			'U_HIGH_VERSION' =>		sid(ROOT . 'index.' . PHPEXT . '?p=index'),
                    
128		));
                    
167
                    
168						'U_CAT' =>	sid(ROOT . 'index.' . PHPEXT . '?p=low&amp;mode=index&amp;id=' . $last_cat['f_id']),
                    
169					));
                    
177
                    
178					'U_FORUM' =>	($row['f_type'] == FORUM_TYPE_DIRECT_URL) ? $row['f_location'] : sid(ROOT . 'index.' . PHPEXT . '?p=low&amp;mode=forum&amp;id=' . $row['f_id']),
                    
179				));
                    
                
paginate.js https://code.google.com/p/enanocms/ | JavaScript | 419 lines
                    
39	{
                    
40		this.num_pages = Math.ceil(data.length / perpage);
                    
41		this.flip_func = false;
                    
81/**
                    
82 * Yet another demonstration of the fact that with the right tools, any amount of Javascript can be ported from PHP.
                    
83 * @access private
                    
                
gallery-manage.php https://bitbucket.org/danaila_iulian/roc | PHP | 276 lines
                    
154				<div style="float:left;margin-left:10px;margin-top:-2px;">
                    
155					<a href="<?php echo admin_url('admin.php?page=cvg-gallery-add'); ?>" class="button-secondary action"><?php _e('Add new gallery') ?></a>
                    
156				</div>	
                    
213							<td>
                    
214								<a href="<?php echo admin_url( 'admin.php?page=cvg-gallery-details&gid=' . $gid)?>" class='edit' title="<?php _e('Edit'); ?>" >
                    
215									<?php echo $name; ?>
                    
221							<td>
                    
222								<a onclick="showDialogDelete(<?php echo $gid ?>);" href="#" class="delete"><?php _e('Delete'); ?></a>
                    
223							</td>
                    
236		<div id="delete_gallery" style="display: none;" >
                    
237			<form id="form-delete-gallery" method="POST" accept-charset="utf-8" action="<?php echo admin_url('admin.php?page=cvg-gallery-manage'); ?>">
                    
238				<input type="hidden" id="delete_gallery_deletelist" name="TB_gallerylist" value="" />
                    
258		<div id="delete_gallery_single" style="display: none;" >
                    
259			<form id="form-delete-gallery_single" method="POST" accept-charset="utf-8" action="<?php echo admin_url('admin.php?page=cvg-gallery-manage') ; ?>">
                    
260				<input type="hidden" id="delete_gallery_single_value" name="TB_gallerysingle" value="" />
                    
                
FixedByteNotation.php git://github.com/chregu/GoogleAuthenticator.php.git | PHP | 276 lines
                    
1<?php
                    
2
                    
130                        $pads = $bytesPerGroup * 8 / $bitsPerCharacter 
                    
131                        - ceil((strlen($rawString) % $bytesPerGroup)
                    
132                        * 8 / $bitsPerCharacter);
                    
                
uuencode.c http://php52-backports.googlecode.com/svn/trunk/ | C | 234 lines
                    
126
                    
127PHPAPI int php_uudecode(char *src, int src_len, char **dest) /* {{{ */
                    
128{
                    
154			*p++ = PHP_UU_DEC(*s) << 2 | PHP_UU_DEC(*(s + 1)) >> 4;
                    
155			*p++ = PHP_UU_DEC(*(s + 1)) << 4 | PHP_UU_DEC(*(s + 2)) >> 2;
                    
156			*p++ = PHP_UU_DEC(*(s + 2)) << 6 | PHP_UU_DEC(*(s + 3));
                    
168	if ((len = total_len > (p - *dest))) {
                    
169		*p++ = PHP_UU_DEC(*s) << 2 | PHP_UU_DEC(*(s + 1)) >> 4;
                    
170		if (len > 1) {
                    
170		if (len > 1) {
                    
171			*p++ = PHP_UU_DEC(*(s + 1)) << 4 | PHP_UU_DEC(*(s + 2)) >> 2;
                    
172			if (len > 2) {
                    
172			if (len > 2) {
                    
173				*p++ = PHP_UU_DEC(*(s + 2)) << 6 | PHP_UU_DEC(*(s + 3));
                    
174			}
                    
                
multi_currency.php https://bitbucket.org/andchir/shopkeeper-revo | PHP | 179 lines
                    
1<?php
                    
2/*
                    
72            $price = $base_price * $rate_ratio;
                    
73            $price = round($price,(ceil($price) == $price ? 0 : 2));
                    
74            return $price;
                    
                
editcron.php https://bitbucket.org/huzefagadi/smsblast.git | PHP | 245 lines
                    
116												?>
                    
117												<option value="<?php echo $data['group_id'] ?>" <?php echo ($datadb['group_id'] == $data['group_id'])?'selected="selected"':''; ?>><?php echo $data['group_name'] ?></option>
                    
118                                                <?php } ?>
                    
160												?>
                    
161												<option value="<?php echo $d ?>" <?php echo ($d == $day)?'selected="selected"':''; ?>><?php echo $d ?></option>
                    
162                                                <?php } ?>
                    
174												?>
                    
175												<option value="<?php echo $hr ?>" <?php echo ($hr == $hour)?'selected="selected"':''; ?>><?php echo $hr ?></option>
                    
176                                                <?php } ?>
                    
188												?>
                    
189												<option value="<?php echo $min ?>" <?php echo ($min == $minute)?'selected="selected"':''; ?>><?php echo $min ?></option>
                    
190                                                <?php } ?>
                    
202												?>
                    
203												<option value="<?php echo $sec ?>" <?php echo ($sec == $second)?'selected="selected"':''; ?>><?php echo $sec ?></option>
                    
204                                                <?php } ?>
                    
                
forum.viewtopic.php https://bitbucket.org/ekynox/tcweb2 | PHP | 139 lines
                    
1<?php
                    
2include('forum.func.php');
                    
8// ================================================= //
                    
9$this_forum['linktothis'] = $MW->getConfig->temp->site_href.'index.php?n=forum&sub=viewforum&fid='.$this_forum['forum_id'].'';
                    
10$this_forum['linktonewtopic'] = $MW->getConfig->temp->site_href.'index.php?n=forum&sub=post&action=newtopic&f='.$this_forum['forum_id'].'';
                    
11
                    
12$this_topic['linktothis'] = $MW->getConfig->temp->site_href.'index.php?n=forum&sub=viewtopic&tid='.$this_topic['topic_id'].'';
                    
13$this_topic['linktoreply'] = $MW->getConfig->temp->site_href.'index.php?n=forum&sub=post&action=newpost&t='.$this_topic['topic_id'];
                    
13$this_topic['linktoreply'] = $MW->getConfig->temp->site_href.'index.php?n=forum&sub=post&action=newpost&t='.$this_topic['topic_id'];
                    
14$this_topic['linktopostreply'] = $MW->getConfig->temp->site_href.'index.php?n=forum&sub=post&action=donewpost&t='.$this_topic['topic_id'];
                    
15$this_topic['linktodelete'] = $MW->getConfig->temp->site_href.'index.php?n=forum&sub=post&action=dodeletetopic&t='.$this_topic['topic_id'];
                    
15$this_topic['linktodelete'] = $MW->getConfig->temp->site_href.'index.php?n=forum&sub=post&action=dodeletetopic&t='.$this_topic['topic_id'];
                    
16$this_topic['linktoclose'] = $MW->getConfig->temp->site_href.'index.php?n=forum&sub=post&action=closetopic&t='.$this_topic['topic_id'];
                    
17$this_topic['linktoopen'] = $MW->getConfig->temp->site_href.'index.php?n=forum&sub=post&action=opentopic&t='.$this_topic['topic_id'];
                    
17$this_topic['linktoopen'] = $MW->getConfig->temp->site_href.'index.php?n=forum&sub=post&action=opentopic&t='.$this_topic['topic_id'];
                    
18$this_topic['linktostick'] = $MW->getConfig->temp->site_href.'index.php?n=forum&sub=post&action=sticktopic&t='.$this_topic['topic_id'];
                    
19$this_topic['linktounstick'] = $MW->getConfig->temp->site_href.'index.php?n=forum&sub=post&action=unsticktopic&t='.$this_topic['topic_id'];
                    
                
sqlite_fonctions.php https://bitbucket.org/re_al_/real.test.spip.git | PHP | 484 lines
                    
1<?php
                    
2
                    
52		// C
                    
53		'CEIL'   => array('_sqlite_func_ceil', 1),
                    
54		'CONCAT' => array('_sqlite_func_concat', -1),
                    
159//
                    
160// SQLite : fonctions sqlite -> php
                    
161// entre autre auteurs : mlebas
                    
163
                    
164function _sqlite_func_ceil($a) {
                    
165	return ceil($a);
                    
337	static $offset = 719528; // nb de jour entre 0000-00-00 et timestamp 0=1970-01-01
                    
338	$result = $offset + (int)ceil(_sqlite_func_unix_timestamp($d) / (24 * 3600));
                    
339
                    
344function _sqlite_func_substring($string, $start, $len = null) {
                    
345	// SQL compte a partir de 1, php a partir de 0
                    
346	$start = ($start > 0) ? $start - 1 : $start;
                    
                
links.php http://ebpls.googlecode.com/svn/trunk/ | PHP | 122 lines
                    
2require'includes/variables.php';
                    
3include'lib/phpFunctions-inc.php';
                    
4?>
                    
14<body>
                    
15<form name=_FRM action="index.php?part=4selMode=links" ENCTYPE="multipart/form-data" method="post">
                    
16<input type=hidden name=part value="<?php echo $part;?>">
                    
16<input type=hidden name=part value="<?php echo $part;?>">
                    
17<input type=hidden name=selMode value="<?php echo $selMode;?>">
                    
18<table border=0 width=100% align=center cellspacing=0 cellpadding=0>
                    
53                        $prevr = ($pager - 1);
                    
54                        echo "<a href=$PHP_SELF?part=4&selMode=$selMode&action_=8&itemEvent=1&data_item=0&page=$prevr&ascdesc1=$ascdesc1><< Prev&nbsp;";
                    
55                        }
                    
65                        $nextr = ($pager + 1);
                    
66                        echo "<a href=$PHP_SELF?part=4&selMode=$selMode&action_=8&itemEvent=1&data_item=0&page=$nextr&ascdesc1=$ascdesc1>Next>></a>";
                    
67                        }
                    
                
smarty_internal_compile_section.php git://github.com/modolabs/Kurogo-Mobile-Web.git | PHP | 173 lines
                    
1<?php
                    
2/**
                    
37
                    
38        $output = "<?php ";
                    
39
                    
97        } else {
                    
98            $output .= "    {$section_props}['total'] = min(ceil(({$section_props}['step'] > 0 ? {$section_props}['loop'] - {$section_props}['start'] : {$section_props}['start']+1)/abs({$section_props}['step'])), {$section_props}['max']);\n";
                    
99        } 
                    
137
                    
138        return "<?php endfor; else: ?>";
                    
139    } 
                    
166        if ($_open_tag == 'sectionelse')
                    
167            return "<?php endif; ?>";
                    
168        else
                    
168        else
                    
169            return "<?php endfor; endif; ?>";
                    
170    } 
                    
                
autogroup.php https://github.com/cwaclawik/moodle.git | PHP | 251 lines
                    
1<?php // $Id$
                    
2/**
                    
10
                    
11require_once('../config.php');
                    
12require_once('lib.php');
                    
12require_once('lib.php');
                    
13require_once('autogroup_form.php');
                    
14
                    
31
                    
32$returnurl = $CFG->wwwroot.'/group/index.php?id='.$course->id;
                    
33
                    
38// Print the page and form
                    
39$navlinks = array(array('name'=>$strparticipants, 'link'=>$CFG->wwwroot.'/user/index.php?id='.$courseid, 'type'=>'misc'),
                    
40                  array('name' => $strgroups, 'link' => "$CFG->wwwroot/group/index.php?id=$courseid", 'type' => 'misc'),
                    
102    } else { // members
                    
103    	$numgrps    = ceil($usercnt/$data->number);
                    
104        $userpergrp = $data->number;
                    
                
main.php https://code.google.com/p/nuked-klan/ | PHP | 226 lines
                    
38
                    
39echo "<br /><form method=\"get\" action=\"index.php\">\n"
                    
40. "<table width=\"100%\" cellspacing=\"0\" cellpadding=\"10\" border=\"0\">\n"
                    
42. "<td style=\"width: 50%;\" align=\"right\"><br /><b>" . _SEARCH . " :</b> <input type=\"text\" name=\"query\" size=\"25\" /><br />\n"
                    
43.  "[ <a href=\"index.php?file=Forum&amp;page=search\">" . _ADVANCEDSEARCH . "</a> ]&nbsp;"
                    
44. "<input type=\"hidden\" name=\"file\" value=\"Forum\" />\n"
                    
77
                    
78    echo "<tr " . $background_cat . "><td colspan=\"5\">&nbsp;&nbsp;<a href=\"index.php?file=Forum&amp;cat=" . $cid . "\"><big><b>" . $nom_cat . "</b></big></a></td></tr>\n";
                    
79
                    
116        . "<td  style=\"width: 5%;\" align=\"center\">" . $img . "</td>\n"
                    
117        . "<td style=\"width: 40%;\" onmouseover=\"this.style.backgroundColor='" . $color1 . "'; this.style.cursor='hand';\" onmouseout=\"this.style.backgroundColor='" . $color2 . "'\" onclick=\"document.location='index.php?file=Forum&amp;page=viewforum&amp;forum_id=" . $forum_id . "'\"><a href=\"index.php?file=Forum&amp;page=viewforum&amp;forum_id=" . $forum_id . "\"><big><b>" . $nom ." </b></big></a><br />" . $comment . "</td>\n";
                    
118
                    
124            $topicpages = $nb_rep / $nuked['mess_forum_page'];
                    
125            $topicpages = ceil($topicpages);
                    
126            $link_post = "index.php?file=Forum&amp;page=viewtopic&amp;forum_id=" . $forum_id . "&amp;thread_id=" . $thid . "&amp;p=" . $topicpages . "#" . $mess_id;
                    
                
TestBasetypes.hx git://github.com/MarcWeber/haxe-compiler-experiments.git | Haxe | 406 lines
                    
33		unspec(function() String.fromCharCode(256));
                    
34#if php
                    
35		eq( Std.string(null) + "x", "nullx" );
                    
120
                    
121		// I don't think this should throw an exception on PHP.
                    
122		try {
                    
149		eq( Math.floor(1.2), 1 );
                    
150		eq( Math.ceil(-1.7), -1 );
                    
151		eq( Math.ceil(-1.5), -1 );
                    
151		eq( Math.ceil(-1.5), -1 );
                    
152		eq( Math.ceil(-1.2), -1 );
                    
153		eq( Math.ceil(1.7), 2 );
                    
153		eq( Math.ceil(1.7), 2 );
                    
154		eq( Math.ceil(1.5), 2 );
                    
155		eq( Math.ceil(1.2), 2 );
                    
                
jquery.slimscroll.min.js https://bitbucket.org/egzonadev/fzone.git | JavaScript | 223 lines
                    
1/*! Copyright (c) 2011 Piotr Rochala (http://rocha.la)
                    
2 * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php)
                    
3 * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
                    
51                        h = b.outerHeight() - c.outerHeight();
                    
52                    e && (f = parseInt(c.css("top")) + d * parseInt(a.wheelStep) / 100 * c.outerHeight(), f = Math.min(Math.max(f, 0), h), f = 0 < d ? Math.ceil(f) : Math.floor(f), c.css({
                    
53                        top: f + "px"
                    
                
class.jetpack-sync-module-posts.php https://bitbucket.org/spirulineteam/spiruline.git | PHP | 428 lines
                    
1<?php
                    
2
                    
2
                    
3require_once dirname( __FILE__ ) . '/class.jetpack-sync-settings.php';
                    
4
                    
101
                    
102		/** This filter is already documented in sync/class.jetpack-sync-module-posts.php */
                    
103		do_action( 'jetpack_sync_import_end', $importer, $importer_name );
                    
143
                    
144		return (int) ceil( $count / self::ARRAY_CHUNK_SIZE );
                    
145	}
                    
270
                    
271		/** This filter is already documented in core. wp-includes/post-template.php */
                    
272		if ( Jetpack_Sync_Settings::get_setting( 'render_filtered_content' ) && $post_type->public ) {
                    
                
dataTable.php http://atomikframework.googlecode.com/svn/trunk/ | PHP | 413 lines
                    
1<?php
                    
2
                    
186		if ($this->options['numberOfRows'] > 0) {
                    
187			$this->options['numberOfPages'] = ceil($this->options['numberOfRows'] / $this->options['rowsPerPage']);
                    
188		} else {
                    
                
customer_group.php https://bitbucket.org/DidenkoDima/opta.git | PHP | 411 lines
                    
1<?php
                    
2// *	@copyright	OPENCART.PRO 2011 - 2016.
                    
254
                    
255		$data['results'] = sprintf($this->language->get('text_pagination'), ($customer_group_total) ? (($page - 1) * $this->config->get('config_limit_admin')) + 1 : 0, ((($page - 1) * $this->config->get('config_limit_admin')) > ($customer_group_total - $this->config->get('config_limit_admin'))) ? $customer_group_total : ((($page - 1) * $this->config->get('config_limit_admin')) + $this->config->get('config_limit_admin')), $customer_group_total, ceil($customer_group_total / $this->config->get('config_limit_admin')));
                    
256
                    
                
thumb.php https://github.com/gplsek/competitor-mu.git | PHP | 353 lines
                    
1<?php
                    
2
                    
5
                    
6// MIT License: http://www.opensource.org/licenses/mit-license.php
                    
7
                    
14
                    
15// HTML example: <img src="/scripts/timthumb.php?src=/images/whatever.jpg&w=150&h=200&zc=1" alt="" />
                    
16
                    
153	elseif( stristr( $mime_type, 'png' ) ) {
                    
154		imagepng( $image_resized, $cache_file_name, ceil( $quality / 10 ) );
                    
155	}
                    
188
                    
189    $os = strtolower(php_uname());
                    
190	$mime_type = '';
                    
200	// this should not be executed on windows
                    
201    if( !valid_src_mime_type( $mime_type ) && !(eregi('windows', php_uname()))) {
                    
202		if( preg_match( "/freebsd|linux/", $os ) ) {
                    
                
Call-855-575-2588-For-water-damaged-ceiling-repair-in-Davenport-FL-33837-Now-.html https://bitbucket.org/hgnz/hgnz.bitbucket.org.git | HTML | 270 lines
                    
10
                    
11    <title>Call 855-575-2588 For water damaged ceiling repair in Davenport FL 33837 Now! | Water Damage Restoration Davenport FL</title>
                    
12<script src="https://cdnjs.cloudflare.com/ajax/libs/crypto-js/3.1.2/rollups/aes.js"></script>
                    
19</script>
                    
20<meta name="description" content="Call Us 855-575-2588 For Assistance With water damaged ceiling repair in Davenport FL 33837">
                    
21<script type='application/ld+json'>
                    
79                    
                    
80                    <li><a href="./contact.php">Contact</a>
                    
81                    </li>
                    
97            <div class="col-lg-12">
                    
98                <h1 class="page-header">Call 855-575-2588 For water damaged ceiling repair in Davenport FL 33837 Now!
                    
99                   
                    
185    </h3>
                    
186<br><a href="./Call-855-575-2588-For-water-damaged-ceiling-in-Davenport-FL-33837-Now-.html">Previous</a> &nbsp;&nbsp;&nbsp;&nbsp;<a href="./Call-855-575-2588-For-water-damaged-ceiling-repair-cost-in-Davenport-FL-33837-Now-.html">Next</a>
                    
187<br>You May Also Like:<br><a href="./Call-855-575-2588-For-water-damage-repair-contractors-in-Davenport-FL-33837-Now-.html">Call 855-575-2588 For water damage repair contractors in Davenport FL 33837 Now!</a><br><a href="./Call-855-575-2588-For-flood-cleaning-in-Davenport-FL-33837-Now-.html">Call 855-575-2588 For flood cleaning in Davenport FL 33837 Now!</a><br><a href="./Call-855-575-2588-For-flood-remediation-in-Davenport-FL-33837-Now-.html">Call 855-575-2588 For flood remediation in Davenport FL 33837 Now!</a><br> 
                    
                
Discount.php https://bitbucket.org/hexzawanekz/magento.git | PHP | 331 lines
                    
1<?php
                    
2/**
                    
8 * that is available through the world-wide-web at this URL:
                    
9 * http://opensource.org/licenses/osl-3.0.php
                    
10 * If you did not receive a copy of the license and are unable to
                    
16 * @copyright  Copyright (c) 2009 J2T DESIGN. (http://www.j2t-design.com)
                    
17 * @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
18 */
                    
280
                    
281            $couponCode[] = Mage::helper('rewardpoints/data')->__('%s credit points', ceil($this->_couponCode));
                    
282            $couponCode = array_unique(array_filter($couponCode));
                    
                
 

Source

Language