100+ results results for 'php ceil repo:symfony/symfony' (283 ms)
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); 170handlers.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)."&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); 193AzureStorage.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 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 */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 }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--)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 }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); //????? 72AdminWindow.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); 98MY_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); 188webcore.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);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.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());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); 54mapfile.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)); 29mdl.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;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);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> "; 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'> 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'> 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'> Date Announced</a> 99 </td> 105 <tr width=100%> 106<?php 107 /*ObjectStaticTest.php git://github.com/silverstripe/sapphire.git | PHP | 132 lines
1<?php 2/** 65 66 // test the $ceiling param 67 $this->assertEquals (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>>??</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"); ?>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); 56view.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 }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 {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 }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);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 privateMY_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); 210FixedByteNotation.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 }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 "; 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 }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&page=search\">" . _ADVANCEDSEARCH . "</a> ] " 44. "<input type=\"hidden\" name=\"file\" value=\"Forum\" />\n" 77 78 echo "<tr " . $background_cat . "><td colspan=\"5\"> <a href=\"index.php?file=Forum&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&page=viewforum&forum_id=" . $forum_id . "'\"><a href=\"index.php?file=Forum&page=viewforum&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&page=viewtopic&forum_id=" . $forum_id . "&thread_id=" . $thid . "&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 );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 {theme.php http://nuke-viet.googlecode.com/svn/trunk/ | PHP | 644 lines
1<?php 2 30 { 31 $proc = ceil( ( $m['count'] / $cts['max'] ) * 100 ); 32 91 { 92 $proc = ceil( ( $value[0] / $cts['max'] ) * 100 ); 93 143 { 144 $proc = ceil( ( $value[0] / $cts['max'] ) * 100 ); 145 194 { 195 $proc = ceil( ( $value[0] / $cts['max'] ) * 100 ); 196 246 { 247 $proc = ceil( ( $value[0] / $cts['max'] ) * 100 ); 248class.media.template.php http://buddypress-media.googlecode.com/svn/bp_media/trunk/ | PHP | 400 lines
1<?php 2 76 // Calculate number of pages 77 $this->total_pages = ceil( (int) $this->total_item_count / (int) $ctrl["per_page"] ); 78application_functions.php https://code.google.com/p/my-imouto-booru/ | PHP | 248 lines
1<?php 2function only_user($level) { 117 // $updated = User::$current->is_anonymous ? false : $fp->updated_at > User::$current->last_forum_topic_read_at; 118 // $fp_cookies[] = array($fp->updated_at, $fp->id, $updated, ceil($fp->response_count/30)); 119 // }Speeder.as http://tai-qian.googlecode.com/svn/trunk/ | ActionScript | 206 lines
125 126 var max_spd:Number = Math.ceil(ms * 0.1) * 10; 127 187 now = t; 188 var dn_url:String = "http://tool.115.com/api/tools_speedtest.php?time=" + t; 189 var loader:Loader = new Loader();index.php http://bitcero-modules.googlecode.com/svn/ | PHP | 219 lines
1<?php 2// $Id$ 11define('RMCLOCATION','dashboard'); 12require 'header.php'; 13 30 31 $tpages = ceil($num / $limit); 32 $page = $page > $tpages ? $tpages : $page; 36 $nav = new RMPageNav($num, $limit, $page, 5); 37 $nav->target_url('index.php?page={PAGE_NUM}'); 38 72 73 include RMTemplate::get()->get_template('admin/ct_dashboard.php', 'module', 'contact'); 74 88 if(!$xoopsSecurity->check()){ 89 redirectMsg('index.php?page='.$page, __('Session token expired!','contact'), 1); 90 die();Jumping.php https://bitbucket.org/chamilo/chamilo/ | PHP | 260 lines
1<?php 2/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ 6 * 7 * PHP versions 4 and 5 8 * 32 * @author Lorenzo Alberton <l.alberton@quipo.it> 33 * @author Richard Heyes <richard@phpguru.org> 34 * @copyright 2003-2008 Lorenzo Alberton, Richard Heyes 35 * @license http://www.debian.org/misc/bsd.license BSD License (3 Clause) 36 * @version CVS: $Id: Jumping.php 137 2009-11-09 13:24:37Z vanpouckesven $ 37 * @link http://pear.php.net/package/Pager 42 */ 43require_once 'Pager/Common.php'; 44 46 * Pager_Jumping - Generic data paging class ("jumping window" style) 47 * Handles paging a set of data. For usage see the example.php provided. 48 *inc.tplparse_feeds.php http://punchcms.googlecode.com/svn/trunk/ | PHP | 257 lines
1<?php 2 107 //*** Render page navigation. 108 $pageCount = ceil($objFeeds->count() / $_SESSION["listCount"]); 109 if ($pageCount > 0) { 109 if ($pageCount > 0) { 110 $currentPage = ceil(($intPosition + 1) / $_SESSION["listCount"]); 111 $previousPos = (($intPosition - $_SESSION["listCount"]) > 0) ? ($intPosition - $_SESSION["listCount"]) : 0;ctl.brand.php http://phpfor.googlecode.com/svn/trunk/ | PHP | 119 lines
1<?php 2class ctl_brand extends shopPage{ 24 'current'=>$page, 25 'total'=>ceil($brandCount/$pageLimit), 26 'link'=>$this->system->mkUrl('brand','showList',array(($tmp = time()))), 73 'current'=>$page, 74 'total'=>ceil($productCount/$pageLimit), 75 'link'=>$this->system->mkUrl('brand','index',array($brand_id,$tmp=time())),global.functions.php http://viet-group.googlecode.com/svn/trunk/ | PHP | 108 lines
1<?php 2 33 global $lang_global; 34 $total_pages = ceil( $num_items / $per_page ); 35 if ( $total_pages == 1 ) return '';comments_need.php http://ouyo.googlecode.com/svn/trunk/ | PHP | 215 lines
95?> 96 <?php include ('header.php'); ?> 97 <?php 167 <tbody> 168 <?php 169$result_cata = mysql_query("select * from comment where isVal=0 order by id desc limit $beginNum,$pagesize"); 178 <td><?php echo $row_cata['post_date']; ?></td> 179 <td><a href="comment_del.php?cid[]=<?php echo $row_cata['id']; ?>">??</a></td> 180 </tr> 208 </div> 209 <?php include ('sidebar.php'); ?> 210 <div class="c"></div> 213 </div> 214<?php include ('footer.php'); ?> 215arc.caicai.class.php http://pj-photohost.googlecode.com/svn/trunk/ | PHP | 242 lines
1<?php 2if(!defined('DEDEINC')) 5} 6require_once(DEDEINC."/datalistcp.class.php"); 7require_once(DEDEINC."/channelunit.func.php"); 34 } 35 $this->totalPage = ceil($this->totalResult/$this->pageSize); 36 if($this->totalPage > $this->maxPageSize) 99 { 100 $arr['spaceurl'] = $GLOBALS['cfg_basehost'].'/member/index.php?uid='.$arr['userid']; 101 } 114 { 115 $arr['lastpost'] = "<a href='../plus/feedback.php?aid={$arr['id']}'>???>></a>"; 116 }lyric.php http://nukeviet-music.googlecode.com/svn/trunk/ | PHP | 138 lines
1<?php 2 34$sql = "FROM `" . NV_PREFIXLANG . "_" . $module_data . "_lyric` AS a INNER JOIN `" . NV_PREFIXLANG . "_" . $module_data . "` AS b ON a.songid=b.id WHERE a.id!=0"; 35$link = NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=" . $op; 36 84list( $output ) = $db->sql_fetchrow( $result1 ); 85$ts = ceil( $output / 50 ); 86 89$xtpl->assign( 'URL_DEL_BACK', str_replace( "&", "&", $link ) ); 90$xtpl->assign( 'URL_ACTIVE_LIST', "index.php?" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=listactive&where=_lyric" ); 91$xtpl->assign( 'URL_DEL', "index.php?" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=delall&where=_lyric" ); 99$xtpl->assign( 'DATA_SEARCH', $data_search ); 100$xtpl->assign( 'URL_CANCEL', NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=" . $op ); 101 104 105$link_del = "index.php?" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=del"; 106$link_active = "index.php?" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=active&where=_lyric&id=";gift.php http://nukeviet-music.googlecode.com/svn/trunk/ | PHP | 139 lines
1<?php 2 35$sql = "FROM `" . NV_PREFIXLANG . "_" . $module_data . "_gift` AS a INNER JOIN `" . NV_PREFIXLANG . "_" . $module_data . "` AS b ON a.songid=b.id WHERE a.id!=0"; 36$link = NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=" . $op; 37 85list( $output ) = $db->sql_fetchrow( $result1 ); 86$ts = ceil( $output / 50 ); 87 90$xtpl->assign( 'URL_DEL_BACK', str_replace( "&", "&", $link ) ); 91$xtpl->assign( 'URL_ACTIVE_LIST', "index.php?" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=listactive&where=_gift" ); 92$xtpl->assign( 'URL_DEL', "index.php?" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=delall&where=_gift" ); 100$xtpl->assign( 'DATA_SEARCH', $data_search ); 101$xtpl->assign( 'URL_CANCEL', NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=" . $op ); 102 102 103$link_del = "index.php?" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=del"; 104$link_active = "index.php?" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=active&where=_gift&id=";yb.php http://zhxiaojm.googlecode.com/svn/trunk/ | PHP | 206 lines
1<?php 2$hu = 'yb'; 2$hu = 'yb'; 3@require_once('../header.php'); 4set_time_limit(0); 47 } 48 $p = ceil($r_num/$p_num); //?????? 49 } 122<tr> 123<td><form action="" method="get" name="f1">???????<input name="q" id="q" type="text" size="18" delay="0" value="<?php if($_GET['w']=="shi") echo $q; ?>" style="width:100px;height:22px;font-size:16px;font-family: Geneva, Arial, Helvetica, sans-serif;" onmouseover="this.select()" /><input name="w" id="w" type="hidden" value="shi" /> <input type="submit" value=" ?? " /></form></td><td><form action="" method="get" name="f1">???????<input name="q" id="q" type="text" size="18" delay="0" value="<?php if($_GET['w']=="cun") echo $q; ?>" style="width:100px;height:22px;font-size:16px;font-family: Geneva, Arial, Helvetica, sans-serif;" onmouseover="this.select()" /><input name="w" id="w" type="hidden" value="cun" /> <input type="submit" value=" ?? " /></form></td> 124</tr> 125<tr> 126<td><form action="" method="get" name="f1">???????<input name="q" id="q" type="text" size="18" delay="0" value="<?php if($_GET['w']=="youbian") echo $q; ?>" style="width:100px;height:22px;font-size:16px;font-family: Geneva, Arial, Helvetica, sans-serif;" onmouseover="this.select()" /><input name="w" id="w" type="hidden" value="youbian" /> <input type="submit" value=" ?? " /></form></td><td><form action="" method="get" name="f1">???????<input name="q" id="q" type="text" size="18" delay="0" value="<?php if($_GET['w']=="quhao") echo $q; ?>" style="width:100px;height:22px;font-size:16px;font-family: Geneva, Arial, Helvetica, sans-serif;" onmouseover="this.select()" /><input name="w" id="w" type="hidden" value="quhao" /> <input type="submit" value=" ?? " /></form></td> 127</tr> 205</div> 206<?php @require_once('../foot.php');?>pageNavigation.php http://miacms.googlecode.com/svn/trunk/ | PHP | 183 lines
1<?php 2/** 3 * @package MiaCMS 4 * @author MiaCMS see README.php 5 * @copyright see README.php 5 * @copyright see README.php 6 * See COPYRIGHT.php for copyright notices and details. 7 * @license GNU/GPL Version 2, see LICENSE.php 92 $displayed_pages = 10; 93 $total_pages = ceil( $this->total / $this->limit ); 94 $this_page = ceil( ($this->limitstart+1) / $this->limit );pageNavigation.php http://miacms.googlecode.com/svn/trunk/ | PHP | 183 lines
1<?php 2/** 3* @package MiaCMS 4* @author MiaCMS see README.php 5* @copyright see README.php 5* @copyright see README.php 6* See COPYRIGHT.php for copyright notices and details. 7* @license GNU/GPL Version 2, see LICENSE.php 92 $displayed_pages = 10; 93 $total_pages = ceil( $this->total / $this->limit ); 94 $this_page = ceil( ($this->limitstart+1) / $this->limit );components.class.php http://pumukit.googlecode.com/svn/trunk/ | PHP | 86 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 */ 53 $this->total_language = LanguagePeer::doCount($cTotal); 54 $this->total = ceil($this->total_language / $limit); 55Page.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 3 2011-02-03 16:24:00Z 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;Default.php http://dynagrid.googlecode.com/svn/trunk/ | PHP | 241 lines
1<?php 2/** 2/** 3 * DynaGrid - The PHP datagrid 4 * 6 * @author $Author: keesschepers $ 7 * @version $Id: Default.php 12 2011-02-12 00:33:20Z keesschepers $ 8 */ 9 10include_once 'PageBrowser/Interface.php'; 11 187 if($this->totalRecords > 0 && $this->limit > 0){ 188 $this->pages = ceil($this->totalRecords / $this->limit); 189 } 202 203 $start = ($this->pageNumber>($this->browseOffset/2)) ? ceil($this->pageNumber-($this->browseOffset/2)) : 0; 204 $end = (($this->pageNumber+($this->browseOffset/2)) < $this->pages) ? ceil($this->pageNumber+($this->browseOffset/2)) : $this->pages;game_total.php http://ownerpress.googlecode.com/svn/trunk/ | PHP | 248 lines
45 <span>-</span> 46 <a href="/games/<?php echo $cat_en;?>/" <?php if(strcmp($this->cat, $cat_cn)==0){?>class="h_g_sel"<?php }?>><?php echo $cat_cn;?></a> 47 <?php } ?> 159 ?> 160 <a href="<?php echo "{$url}?page={$foot_in_page}";?>"><?php echo $foot_in_page;?></a> 161 <?php 170 ?> 171 <a href="<?php echo "{$url}?page={$here_page}";?>"><?php echo $here_page;?></a> 172 <?php 182 ?> 183 <a href="<?php echo "{$url}?page={$here_page}";?>"><?php echo $here_page;?></a> 184 <?php 241 <div class="h_g_itemR"> 242 <a href="<?php echo $link;?>"><?php echo $title;?></a> 243 <p><?php echo $page;?></p>body_apimage.tpl http://wowroster-addons.googlecode.com/svn/trunk/ | Smarty Template | 232 lines
1<div id="t5" style="display:none;"> 2<?php 3$apimgdir = $addon['url_path'] . DIR_SEP . 'screenshots' . DIR_SEP . 'thumbs' . DIR_SEP; 14} 15$apages = ceil($apages1); 16 21<div> 22<?php 23echo '<form action="'.makelink().'" method="post" enctype="multipart/form-data" id="configdel" onsubmit="submitonce(this)"> 201?> 202<?php 203if ( $tapproved == 0){zip_page.php http://ebpls.googlecode.com/svn/trunk/ | PHP | 185 lines
1<?php 2require 'setup/setting.php'; 3$max_resultsr = $thIntPageLimit; 46 for($i = $pager-5; $i < $pager; $i++){ 47 echo "<a href='index.php?part=4&class_type=Preference&selMode=ebpls_nzip&page=$i&orderkey=$orderkey&is_asc=$is_asc'>$i</a> "; 48 } 91 <td align=center class='hdr' width="20%"> 92 <a href='index.php?part=4&class_type=Preference&selMode=ebpls_nzip&is_desc=<?php echo $is_desc;?>&orderkey=zip_code'> ZIP Code</a> 93 </td> 94 <td align=center class='hdr' width="50%"> 95 <a href='index.php?part=4&class_type=Preference&selMode=ebpls_nzip&is_desc=<?php echo $is_desc;?>&orderkey=upper'> LGU</a> 96 </td> 176 echo "<a href='index.php?part=4&class_type=Preference&selMode=ebpls_nzip&page=$nextr&orderkey=$orderkey&is_asc=$is_asc'>Next </a>"; 177 echo "<a href='index.php?part=4&class_type=Preference&selMode=ebpls_nzip&page=$total_pagesr&orderkey=$orderkey&is_asc=$is_asc'>>></a>"; 178 }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 */page_transactions.php http://pef.googlecode.com/svn/trunk/ | PHP | 85 lines
1<?php 2/* 2/* 3 ./pages/page_transactions.php 4 29 30 $pages = ceil($entries/$cfg_transactions["per_page"]); 31ctl.messenger.php http://phpfor.googlecode.com/svn/trunk/ | PHP | 333 lines
1<?php 2define('MANUAL_SEND','MANUAL_SEND'); 43 44 $this->begin('index.php?ctl=member/messenger&act=outbox&p[0]='.$sender); 45 $mdl = $this->system->loadModel('resources/message'); 55 if($ret){ 56 $this->splash('success','index.php?ctl=member/messenger&act=index'); 57 }else{ 57 }else{ 58 $this->splash('failed','index.php?ctl=member/messenger&act=index'); 59 } 64 if ($messenger->saveActions($_POST['actdo'])) { 65 $this->splash('success', 'index.php?ctl=member/messenger&act=index'); 66 }else{ 66 }else{ 67 $this->splash('failed','index.php?ctl=member/messenger&act=index'); 68 }dateformat_parse.c https://github.com/php/php-src.git | C | 199 lines
2 +----------------------------------------------------------------------+ 3 | This source file is subject to version 3.01 of the PHP license, | 4 | that is bundled with this package in the file LICENSE, and is | 5 | available through the world-wide-web at the following url: | 6 | https://www.php.net/license/3_01.txt | 7 | If you did not receive a copy of the PHP license and are unable to | 8 | obtain it through the world-wide-web, please send a note to | 9 | license@php.net so we can mail you a copy immediately. | 10 +----------------------------------------------------------------------+ 21 22#include "php_intl.h" 23#include "intl_convert.h" 54 if (result > (double)LONG_MAX || result < (double)LONG_MIN) { 55 ZVAL_DOUBLE(return_value, result<0?ceil(result):floor(result)); 56 } else {function.mtpraizedmerchantspagination.php http://praized.googlecode.com/svn/trunk/ | PHP | 92 lines
1<?php 2 function smarty_function_mtpraizedmerchantspagination($args, &$ctx) { 10 $total_entries = $pagination->total_entries; 11 $total_pages = ceil($total_entries / $per_page); 12 14 15 // implementing will_paginate in dirty php.. 16 // this is a straight port of it.team.php http://phpfor.googlecode.com/svn/trunk/ | PHP | 82 lines
1<?php 2require_once(dirname(__FILE__) . '/app.php'); 5if (!$id || !$team = Table::FetchForce('team', $id) ) { 6 redirect( WEB_ROOT . '/team/index.php'); 7} 11 cookieset('_rid', $_GET['r']); 12 redirect( WEB_ROOT . "/team.php?id={$id}"); 13} 33/* progress bar size */ 34$bar_size = ceil(190*($team['now_number']/$team['min_number'])); 35$bar_offset = ceil(5*($team['now_number']/$team['min_number']));Drawing.php https://PHPExcel.svn.codeplex.com/svn | PHP | 184 lines
22 * @package PHPExcel_Shared 23 * @copyright Copyright (c) 2006 - 2010 PHPExcel (http://www.codeplex.com/PHPExcel) 24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL 29/** PHPExcel root */ 30if (!defined('PHPEXCEL_ROOT')) { 31 /** 37/** PHPExcel_Shared_String */ 38require_once PHPEXCEL_ROOT . 'PHPExcel/Shared/Font.php'; 39 45 * @package PHPExcel_Shared 46 * @copyright Copyright (c) 2006 - 2010 PHPExcel (http://www.codeplex.com/PHPExcel) 47 */ 79 * @param int $pValue Value in pixels 80 * @param PHPExcel_Style_Font $pDefaultFont Default font of the workbook 81 * @return int Value in cell dimensioninventory_edit_control.inc.php http://tracmor.googlecode.com/svn/trunk/ | PHP | 137 lines
1<?php 2/* 55 56<div class="title">Inventory: <?php $this->lblHeaderInventoryModelCode->Render(); ?> </div> 57<table class="datagrid" cellpadding="5" cellspacing="0" border="0" > 59 <td class="record_header"> 60 <?php 61 $this->btnEdit->Render(); 76 <table cellpadding="0" cellspacing="0"> 77 <?php 78 if(isset($arrInventoryFields)){ 78 if(isset($arrInventoryFields)){ 79 for ($i=0;$i<ceil(count($arrInventoryFields)/2);$i++) { 80 echo('<tr>'); 90 <table cellpadding="0" cellspacing="0"> 91 <?php 92 if(isset($arrInventoryFields)){outpost_fill.php http://pos-tracker-temar.googlecode.com/svn/trunk/ | PHP | 273 lines
1<?php 2/* 6* 7* PHP version 5 8* 35 36require_once 'config.php'; // doesnt exists.. old file?? 37require_once 'functions.php'; 37require_once 'functions.php'; 38require_once 'header.php'; 39include_once 'includes/pos_val.php'; 110 $needed_hours = (integer) (abs($days_to_refuel*24) + abs($hours_to_refuel)) ; 111 $real_required_ozone = ceil(($current_pg / $total_pg) * $required_ozone2) ; 112 $real_required_heavy_water = ceil(($current_cpu / $total_cpu) * $required_heavy_water2) ; 256 echo "<br>"; 257 $trips = ceil($total_volume / $size_of_hauler); 258 if ($trips > 1) {jquery.tablesorter.pager.js http://mbideasproject.googlecode.com/svn/trunk/ | JavaScript | 195 lines
7 Licences: MIT, GPL 8 http://www.opensource.org/licenses/mit-license.php 9 http://www.gnu.org/licenses/gpl.html 22 c.size = size; 23 c.totalPages = Math.ceil(c.totalRows / c.size); 24 c.pagerPositionSet = false; 129 c.totalRows = rows.length; 130 c.totalPages = Math.ceil(c.totalRows / c.size); 131functions.php http://creative-portal.googlecode.com/svn/trunk/ | PHP | 110 lines
1<?php 2 12define( 'NV_IS_MOD_ALBUMS', true ); 13require_once NV_ROOTDIR . "/modules/" . $module_name . '/albumdb.php'; 14 34 global $lang_global; 35 $total_pages = ceil( $num_items / $per_page ); 36 if ( $total_pages == 1 ) return '';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-27logarithmic.php git://github.com/phpundercontrol/phpUnderControl.git | PHP | 341 lines
1<?php 2/** 219 { 220 $this->properties['max'] = ceil( log( $this->properties['maxValue'], $this->properties['base'] ) ); 221 } 225 { 226 $this->properties['majorStep'] = $modifier = ceil( $modifier ); 227 $this->properties['min'] = floor( $this->properties['min'] / $modifier ) * $modifier;citizenship_page.php http://ebpls.googlecode.com/svn/trunk/ | PHP | 188 lines
11} 12require 'setup/setting.php'; 13$max_resultsr = $thIntPageLimit; 48 $prevr = ($pager - 1); 49 echo "<a href='index.php?part=4&class_type=Preference&selMode=$selMode&action_=8&itemEvent=1&data_item=0&page=1&orderkey=$orderkey&ascdesc1=$ascdesc1'><<</a> "; 50 echo "<a href='index.php?part=4&class_type=Preference&selMode=$selMode&action_=8&itemEvent=1&data_item=0&page=$prevr&orderkey=$orderkey&ascdesc1=$ascdesc1'>Prev</a> "; 102 103<a href='index.php?part=4&class_type=Preference&selMode=<?php echo $selMode;?>&action_=8&itemEvent=1&data_item=0&orderkey=cit_desc&is_desc=<?php echo $is_desc;?>'> 104 Citizenship</a> 108 <tr width=90%> 109 <?php 110 /* 181 echo "<a href='index.php?part=4&class_type=Preference&selMode=$selMode&action_=8&itemEvent=1&data_item=0&page=$nextr&orderkey=$orderkey&ascdesc1=$ascdesc1'>Next</a> "; 182 echo "<a href='index.php?part=4&class_type=Preference&selMode=$selMode&action_=8&itemEvent=1&data_item=0&page=$total_pagesr&orderkey=$orderkey&ascdesc1=$ascdesc1'>>></a>"; 183 }fuel_calculator.php http://pos-tracker-temar.googlecode.com/svn/trunk/ | PHP | 289 lines
1<?php 2/* 6* 7* PHP version 5 8* 27* @package POS-Tracker2 28* @version SVN: $Id: fuel_calculator.php 243 2009-04-26 16:10:33Z stephenmg $ 29* @link https://sourceforge.net/projects/pos-tracker2/ 35 36include_once 'includes/pos_val.php'; 37 254 if($cargosize > 0) { 255 $fuel['trips'] = ceil($total_size / $cargosize); 256 }TagCloudHelper.php git://github.com/infinitas/infinitas.git | PHP | 166 lines
1<?php 2 /** 2 /** 3 * CakePHP Tags Plugin 4 * 14 * @package Infinitas.Contents.Helper 15 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 16 */ 100 $size = $options['minSize'] + (($tag['GlobalTag']['weight'] - $minWeight) * (($options['maxSize'] - $options['minSize']) / ($spread))); 101 $size = ceil($size); 102sanitizer.php http://part2web.googlecode.com/svn/trunk/ | PHP | 486 lines
1<?php 2 20 * Class borrowed from Mediawiki, based on the following files: 21 * Sanitizer.php, SpecialUpload.php, UtfNormal.php, UtfNormalUtil.php 22 * 138 'lArr' => 8656, 139 'lceil' => 8968, 140 'ldquo' => 8220, 214 'rArr' => 8658, 215 'rceil' => 8969, 216 'rdquo' => 8221,category.php http://lzwblog.googlecode.com/svn/trunk/ | PHP | 416 lines
1<?php 2require(dirname(__FILE__) . '/includes/init.php'); 93 $brand_filter_arr[$tem_key]['brand_name']=$val['brand_name']; 94 $brand_filter_arr[$tem_key]['b_url']='category.php?id='.$cat_id."&brand=".$val['brand_id']."&price_min=".$price_min."&price_max=".$price_max."&page=1"; 95 if($brand == $val['brand_id']) 103 $brand_filter_arr[0]['brand_name']=$_LANG['all_attribute']; 104 $brand_filter_arr[0]['b_url']='category.php?id='.$cat_id."&price_min=".$price_min."&price_max=".$price_max."&page=1"; 105 $brand_filter_arr[0]['selected'] = empty($brand) ? 1 : 0; 128 } 129 $dx = ceil(($filter_grade_arr[0]['max'] - $filter_grade_arr[0]['min'])/$price_grade/$cat_info['grade'])*$price_grade; 130 $mi=floor($filter_grade_arr[0]['min']/$price_grade)*$price_grade; 130 $mi=floor($filter_grade_arr[0]['min']/$price_grade)*$price_grade; 131 $ma=ceil($filter_grade_arr[0]['max']/$price_grade)*$price_grade; 132 $mn=$mi; 138 $filter_grade_arr[$i]['price_range']=$filter_grade_arr[$i]['min']." - ".$filter_grade_arr[$i]['max']; 139 $filter_grade_arr[$i]['p_url']='category.php?id='.$cat_id."&brand=".$brand."&price_min=".$filter_grade_arr[$i]['min']."&price_max=".$filter_grade_arr[$i]['max']."&page=1"; 140 if($filter_grade_arr[$i]['min']==$price_min && $filter_grade_arr[$i]['max']==$price_max)NumberToLocalizedStringTransformer.php git://github.com/fabpot/symfony.git | PHP | 287 lines
1<?php 2 30 */ 31 const ROUND_CEILING = \NumberFormatter::ROUND_CEILING; 32 170 } else { 171 $type = PHP_INT_SIZE === 8 172 ? \NumberFormatter::TYPE_INT64 181 182 if ($result >= PHP_INT_MAX || $result <= -PHP_INT_MAX) { 183 throw new TransformationFailedException('I don\'t have a clear idea what infinity looks like.'); 258 switch ($this->roundingMode) { 259 case self::ROUND_CEILING: 260 $number = ceil($number); 265 case self::ROUND_UP: 266 $number = $number > 0 ? ceil($number) : floor($number); 267 break;SettingsWindow.php http://mlepp.googlecode.com/svn/trunk/ | PHP | 177 lines
1<?php 2 114 $envis = ForceMods::getEnvironments(); 115 $this->setSizeY($this->getSizeY() + (ceil(count($envis) / 3) * 5)); 116date.js http://lazycms.googlecode.com/svn/trunk/ | JavaScript | 502 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 245 add("getWeekOfYear", function() { 246 return Math.ceil(this.getDayOfYear() / 7); 247 });function.html_table_x.php http://bedita.googlecode.com/svn/trunk/ | PHP | 180 lines
1<?php 2/** 38 * @version 1.0 39 * @link http://smarty.php.net/manual/en/language.function.html.table.php {html_table} 40 * (Smarty online manual) 108 /* no rows specified */ 109 $rows = ceil($loop_count/$cols); 110 } elseif (empty($params['cols'])) { 112 /* no cols specified, but rows */ 113 $cols = ceil($loop_count/$rows); 114 }IndexAction.class.php http://thinksns-2.googlecode.com/svn/trunk/ | PHP | 463 lines
1<?php 2class IndexAction extends BaseAction { 231 $length = mb_strlen($_POST['content'], 'UTF8'); 232 $parts = ceil($length/140); 233 if (!isset($_POST['split']) && $length > 140) {signatories_page.php http://ebpls.googlecode.com/svn/trunk/ | PHP | 186 lines
46 for($i = $pager-5; $i < $pager; $i++){ 47 echo "<a href='index.php?part=4&class_type=Preference&selMode=ebpls_nsign&page=$i&orderkey=$orderkey&is_asc=$is_asc'>$i</a> "; 48 } 91 <td align=center class='hdr' width="35%"> 92 <a href='index.php?part=4&class_type=Preference&selMode=ebpls_nsign&is_desc=<?php echo $is_desc;?>&orderkey=gs_name'> Name</a> 93 </td> 94 <td align=center class='hdr' width="25%"> 95 <a href='index.php?part=4&class_type=Preference&selMode=ebpls_nsign&is_desc=<?php echo $is_desc;?>&orderkey=gs_pos'> Position</a> 96 </td> 97 <td align=center class='hdr' width="20%"> 98 <a href='index.php?part=4&class_type=Preference&selMode=ebpls_nsign&is_desc=<?php echo $is_desc;?>&orderkey=gs_office'> Office</a> 99 </td> 102 <tr width=90%> 103<?php 104 /*detail.php http://nuke-viet.googlecode.com/svn/trunk/ | PHP | 253 lines
1<?php 2 38 { 39 $body_contents = $db->sql_fetch_assoc( $db->sql_query( "SELECT bodyhtml as bodytext, sourcetext, imgposition, copyright, allowed_send, allowed_print, allowed_save FROM `" . NV_PREFIXLANG . "_" . $module_data . "_bodyhtml_" . ceil( $news_contents['id'] / 2000 ) . "` where `id`=" . $news_contents['id'] ) ); 40 $news_contents = array_merge( $news_contents, $body_contents ); 116 { 117 $redirect = "<meta http-equiv=\"Refresh\" content=\"3;URL=" . nv_url_rewrite( NV_BASE_SITEURL . "index.php?" . NV_LANG_VARIABLE . "=" . NV_LANG_DATA . "&" . NV_NAME_VARIABLE . "=" . $module_name, true ) . "\" />"; 118 nv_info_die( $lang_global['error_404_title'], $lang_global['error_404_title'], $lang_global['error_404_content'] . $redirect ); 121 { 122 $canonicalUrl = $global_config['site_url'] . "/index.php?" . NV_LANG_VARIABLE . "=" . NV_LANG_DATA . "&" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=" . $global_array_cat[$news_contents['catid']]['alias'] . "/" . $news_contents['alias'] . "-" . $news_contents['id']; 123 } 124 125 $news_contents['url_sendmail'] = NV_BASE_SITEURL . "index.php?" . NV_LANG_VARIABLE . "=" . NV_LANG_DATA . "&" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=sendmail/" . $global_array_cat[$catid]['alias'] . "/" . $news_contents['alias'] . "-" . $news_contents['id']; 126 $news_contents['url_print'] = NV_BASE_SITEURL . "index.php?" . NV_LANG_VARIABLE . "=" . NV_LANG_DATA . "&" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=print/" . $global_array_cat[$catid]['alias'] . "/" . $news_contents['alias'] . "-" . $news_contents['id']; 126 $news_contents['url_print'] = NV_BASE_SITEURL . "index.php?" . NV_LANG_VARIABLE . "=" . NV_LANG_DATA . "&" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=print/" . $global_array_cat[$catid]['alias'] . "/" . $news_contents['alias'] . "-" . $news_contents['id']; 127 $news_contents['url_savefile'] = NV_BASE_SITEURL . "index.php?" . NV_LANG_VARIABLE . "=" . NV_LANG_DATA . "&" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=savefile/" . $global_array_cat[$catid]['alias'] . "/" . $news_contents['alias'] . "-" . $news_contents['id']; 128HeaderFooterDrawing.php https://PHPExcel.svn.codeplex.com/svn | PHP | 341 lines
29/** PHPExcel_IComparable */ 30require_once 'PHPExcel/IComparable.php'; 31 35/** PHPExcel_Worksheet_BaseDrawing */ 36require_once 'PHPExcel/Worksheet/BaseDrawing.php'; 37 38/** PHPExcel_Worksheet_Drawing */ 39require_once 'PHPExcel/Worksheet/Drawing.php'; 40 46 * @package PHPExcel_Worksheet 47 * @copyright Copyright (c) 2006 - 2008 PHPExcel (http://www.codeplex.com/PHPExcel) 48 */ 48 */ 49class PHPExcel_Worksheet_HeaderFooterDrawing extends PHPExcel_Worksheet_Drawing implements PHPExcel_IComparable 50{tags.php http://bitcero-modules.googlecode.com/svn/ | PHP | 259 lines
1<?php 2// $Id: tags.php 901 2012-01-03 07:08:22Z i.bitcero $ 11define('RMCLOCATION','tags'); 12require('header.php'); 13 41 42 $tpages = ceil($num / $limit); 43 $page = $page > $tpages ? $tpages : $page; 47 $nav = new RMPageNav($num, $limit, $page, 5); 48 $nav->target_url('tags.php?page={PAGE_NUM}'); 49 59 RMTemplate::get()->add_script(RMCURL.'/include/js/jquery.checkboxes.js'); 60 RMTemplate::get()->add_script('..//include/js/scripts.php?file=tags-list.js'); 61 RMTemplate::get()->add_style('jquery.css','rmcommon'); 61 RMTemplate::get()->add_style('jquery.css','rmcommon'); 62 include RMTemplate::get()->get_template('admin/mywords_tags.php','module','mywords'); 63function.pager.php http://pos-tracker-temar.googlecode.com/svn/trunk/ | PHP | 66 lines
1<?php 2 20 21 $endpage = ceil($max / $split); 22newsletter.list.tmpl.php http://phpwcms.googlecode.com/svn/trunk/ | PHP | 229 lines
29 30 include_once(PHPWCMS_ROOT.'/include/inc_tmpl/newsletter.send.tmpl.php'); 31 76 77 <a href="phpwcms.php?do=messages&p=3&s=0&edit=1"><img src="img/famfamfam/email_add.gif" alt="Add" border="0" /><span><?php echo $BL['be_newsletter_new'] ?></span></a> 78</div> 118 <a href="phpwcms.php?do=messages&p=3&c=100">100</a> 119 <a href="phpwcms.php?do=messages&p=3&c=all"><?php echo $BL['be_ftptakeover_all'] ?></a> 120 </td> 163 } else { 164 echo '<a href="phpwcms.php?do=messages&p=3&s='.$row["newsletter_id"]; 165 echo '&send=1"><img src="img/famfamfam/email_go.gif" alt="Send" border="0" title="ID:'.$row["newsletter_id"].'"></a>'; 198 // edit 199 echo '<a href="phpwcms.php?do=messages&p=3&s='.$row["newsletter_id"]; 200 echo '&edit=1"><img src="img/button/edit_22x13.gif" alt="Edit" border="0" /></a>';moderate.php http://bitcero-modules.googlecode.com/svn/ | PHP | 520 lines
1<?php 2// $Id: moderate.php 857 2011-12-14 10:52:30Z mambax7@gmail.com $ 10 11include '../../mainfile.php'; 12 26if (!$xoopsUser || (!$forum->isModerator($xoopsUser->uid()) && !$xoopsUser->isAdmin())){ 27 redirect_header('forum.php?id='.$id, 2, __('Sorry, you don\'t have permission to do this action!','bxpress')); 28 die(); 39 $xoopsOption['module_subpage'] = "moderate"; 40 include 'header.php'; 41 67 $nav = new RMPageNav($num, $limit, $pactual); 68 $nav->target_url('moderate.php?id='.$forum->id().'&pag={PAGE_NUM}'); 69 $tpl->assign('itemsNavPage', $nav->render(false)); 90 } 91 $tpages = ceil($topic->replies()/$xoopsModuleConfig['perpage']); 92 if ($tpages>1){Pagination.php http://f-engine.googlecode.com/svn/trunk/ | PHP | 313 lines
1<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); 2/** 4 * 5 * An open source application development framework for PHP 4.3.2 or newer 6 * 114 // Calculate the total number of pages 115 $num_pages = ceil($this->total_rows / $this->per_page); 116 311 312/* End of file Pagination.php */ 313/* Location: ./system/libraries/Pagination.php */class.Pager.php http://globalban-spanish.googlecode.com/svn/globalban/ | PHP | 95 lines
1<?php 2/* 45 $this->page = (int) $page; //Page Number 46 $this->numPages = ceil($total / $limit); 47DateUtils.php http://smartbook.googlecode.com/svn/trunk/ | PHP | 82 lines
1<?php 2/* 5 * To change the template for this generated file go to 6 * Window - Preferences - PHPeclipse - PHP - Code Templates 7 */ 37 { // number of sec in a minute 38 return ceil( $sec / 60) . " minutes ago "; 39 }straipsniai.php http://mightmedia.googlecode.com/svn/trunk/ | PHP | 273 lines
1<?php 2/** 32unset($buttons); 33include_once ("priedai/kategorijos.php"); 34kategorija("straipsniai", true); 73 //apsauga nuo kenksmingo kodo 74 include_once ('priedai/safe_html.php'); 75 81 $pavadinimas = strip_tags($_POST['pav']); 82 $id = ceil((int)$_POST['idas']); 83 109 //apsauga nuo kenksmingo kodo 110 include_once ('priedai/safe_html.php'); 111 216} 217include_once ("priedai/class.php"); 218$bla = new forma();swfuploader.js http://litepublisher.googlecode.com/svn/trunk/ | JavaScript | 102 lines
10 var url = ltoptions.uploadurl == undefined ? ltoptions.url: ltoptions.uploadurl; 11 this.setUploadURL(url + '/admin/jsonserver.php?random=' + Math.random()); 12 var perm = $("#combo-idperm_upload"); 22 try { 23 var percent = Math.ceil((bytesLoaded / bytesTotal) * 100); 24 $( "#progressbar").progressbar( "value" , percent ); 54 flash_url : url + "/js/swfupload/swfupload.swf", 55 upload_url: url + "/admin/jsonserver.php", 56 // prevent_swf_caching: false,dbase.php http://tinyshow.googlecode.com/svn/trunk/ | PHP | 297 lines
1<?php 2class dbase{ 119 if($psiz==0) $psiz = 20; 120 $pcnt = ceil($size / $psiz); 121 if($page>$pcnt){ $page = $pcnt; }usuarios.php https://gestion001.svn.codeplex.com/svn | PHP | 110 lines
52<head> 53<?php include_once ("inc_head_adm.php"); ?> 54<title><?php echo $titulo_seccion;?></title> 62 <tr align="right"> 63 <td colspan="2" class="tr2" > <?php echo ($startRow_rs_usuarios_administrativos + 1) ?> a <?php echo min($startRow_rs_usuarios_administrativos + $maxRows_rs_usuarios_administrativos, $totalRows_rs_usuarios_administrativos) ?> de <?php echo $totalRows_rs_usuarios_administrativos ?> </td> 64 </tr> 71 <tr> 72 <td class="tr1"><?php echo $row_rs_usuarios_administrativos['nombre1']; ?> <?php echo $row_rs_usuarios_administrativos['nombre2']; ?> <?php echo $row_rs_usuarios_administrativos['apellido1']; ?> <?php echo $row_rs_usuarios_administrativos['apellido2']; ?> (<?php echo $row_rs_usuarios_administrativos['Usuario']; ?>)</td> 73 <td width="20%" class="tr1"><a href="usuarios_editar.php?idUsuario=<?php echo $row_rs_usuarios_administrativos['idUsuario']; ?>">Editar</a> - 73 <td width="20%" class="tr1"><a href="usuarios_editar.php?idUsuario=<?php echo $row_rs_usuarios_administrativos['idUsuario']; ?>">Editar</a> - 74 <a href="javascript:abrirlink('borrar','delete_main.php?tabla=Usuario&nombre_campo=idUsuario&idUsuario=<?php echo $row_rs_usuarios_administrativos['idUsuario']; ?>','<?php echo str_replace(" ",'',md5(microtime()))?>');">Borrar</a></td> 75 </tr> 106</table> 107<?php include_once ("inc_bottom_adm.php");?> 108</body>%%140^%%1406124233^result.tpl.php http://flaimo-php.googlecode.com/svn/trunk/ | PHP | 220 lines
1<?php /* Smarty version 2.6.2, created on 2004-09-24 12:57:23 2 compiled from networld_leute_single_fuer_eberharter/result.tpl */ ?> 6 <head> 7 <title>Umfrage - <?php echo $this->_tpl_vars['poll_title']; ?> 8</title> 12 @import url("generalstyles.css"); 13 @import url("<?php echo $this->_tpl_vars['path']; ?> 14eberharter.css"); 22 <div id="pollcontent"> 23 <h1><?php echo $this->_tpl_vars['poll_title']; ?> 24</h1> 24</h1> 25 <p><?php echo $this->_tpl_vars['poll_description']; ?> 26</p> 190 <?php if ($this->_tpl_vars['show_revote_link'] == TRUE): ?> 191 <a href="<?php echo $this->_tpl_vars['php_self']; ?> 192?poll=<?php echo $this->_tpl_vars['poll_id']; ?>function.html_table.php git://github.com/modxcms/revolution.git | PHP | 164 lines
1<?php 2/** 40 * @version 1.1 41 * @link http://www.smarty.net/manual/en/language.function.html.table.php {html_table} 42 * (Smarty online manual) 104 /* no rows specified */ 105 $rows = ceil($loop_count / $cols_count); 106 } elseif (empty($params[ 'cols' ])) { 108 /* no cols specified, but rows */ 109 $cols_count = ceil($loop_count / $rows); 110 }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){ 52ani.php http://lansuite.googlecode.com/svn/trunk/ | PHP | 735 lines
1<?php 2 70 71$Zbytek=(4-ceil(($Width/(8/$biBitCount)))%4)%4; 72 131//Maska 132$Zbytek=(4-ceil(($Width/(8)))%4)%4; 133for($y=$Height-1;$y>=0;$y--)index.php http://bitcero-modules.googlecode.com/svn/ | PHP | 168 lines
1<?php 2// $Id: index.php 896 2012-01-02 18:43:23Z i.bitcero $ 11define('RMCLOCATION','dashboard'); 12include 'header.php'; 13 45$daysnum = time() - $xoopsModule->getVar('last_update'); 46$daysnum = ceil($daysnum/86400); 47 163 164include RMTemplate::get()->get_template("admin/forums_index.php", 'module', 'bxpress'); 165edits.php http://bitcero-modules.googlecode.com/svn/ | PHP | 396 lines
1<?php 2// $Id: edits.php 821 2011-12-08 23:46:19Z i.bitcero $ 11define('RMCLOCATION', 'waiting'); 12include 'header.php'; 13 24 25 $tpages = ceil($num/$limit); 26 $page = $page > $tpages ? $tpages : $page; 30 $nav = new RMPageNav($num, $limit, $page, 5); 31 $nav->target_url('edits.php?page={PAGE_NUM}'); 32 61 62 include RMEvents::get()->run_event("docs.waiting.template", RMTemplate::get()->get_template("admin/rd_waiting.php",'module','docs')); 63 75 if ($id<=0){ 76 redirectMsg('edits.php', __('You have not specified any section!','docs'), 1); 77 die();