100+ results results for 'php ceil repo:younggive/WordPress' (1731 ms)
135 <li> 136 <a href="../Birthday/create.php"> 137 <span class="title">Add New</span> 140 <li> 141 <a href="../Birthday/index.php"> 142 <span class="title">View List</span> 248 <li> 249 <a href="../SummaryOfOrganization/index.php"> 250 <span class="title">View List</span> 328 <td><?php echo $oneData->birthday?></td> 329 <?php echo "<td> <a href=\"edits.php?id=$oneData->id\"class=\"btn btn-info\" role=\"button\">Edit</a> ";?> 330 <?php echo " <a href=\"delete.php?id=$oneData->id\"class=\"btn btn-danger\" role=\"button\">Delete</a> ";?> 331 332 <?php echo " <a href=\"trash.php?id=$oneData->id\"class=\"btn btn-danger\" role=\"button\">Trash</a> </td> ";?> 333 </tr>CheckOut.php https://gitlab.com/vanthanhhoh/devlovebook | PHP | 319 lines
1<?php 2/** 2/** 3 * Created by PhpStorm. 4 * User: THANH 198 $discountCupon = $moneySend*$_SESSION['cupon']['discount']/100; 199 $discountCupon = ceil($discountCupon); 200 }index.php https://gitlab.com/tanvir/Library-Management-System | PHP | 322 lines
196 <select class="form-control" id="sel1" name="itemPerPage" onchange='this.form.submit()'> 197 <option<?php if($itemPerPage==5){?> selected <?php }?>>5</option> 198 <option<?php if($itemPerPage==10){?> selected <?php }?>>10</option> 200 <option<?php if($itemPerPage==20){?> selected <?php }?>>20</option> 201 <option<?php if($itemPerPage==25){?> selected <?php }?>>25</option> 202 </select><noscript><input type="submit" value="Submit"></noscript> 241 <a href="edit.php?book_id=<?php echo $book->book_id ?>" ><i class="fa fa-edit"></i></a> 242 <a href="delete.php?book_id=<?php echo $book->book_id ?>"><i class="fa fa-trash"></i></a> 243 </td> 252 <?php if( $pageNo > 1 ): ?> 253 <li><a href="index.php?pageNo=<?php $prev = $pageNo-1; echo $prev; ?>">Prev</a></li> 254 <?php endif; ?> 258 <?php if( $pageNo < $noOfPage ): ?> 259 <li><a href="index.php?pageNo=<?php $next = $pageNo+1; echo $next;?>">Next</a></li> 260 <?php endif; ?>functions.inc.php https://gitlab.com/boxnia/NFU_MOVIL | PHP | 346 lines
1<?php 2 186 187 $days_between = ceil(abs($newDate - $newDate1) / 84600); 188 199 200 $days_between = ceil(abs($newDate - $newDate1) / 86400); 201create.php https://gitlab.com/faisal08/atomic_project_faisal_141176 | PHP | 276 lines
1<?php 2require_once("../../../vendor/autoload.php"); 21 22$pages = ceil($recordCount/$itemsPerPage); 23$someData = $objBOOKtitle->indexPaginator($page,$itemsPerPage); 72 } 73 xmlhttp.open('GET','searching.php?search_text='+document.search.search_text.value,true); 74 xmlhttp.send(); 100 <div class="page-header" id="Mmessage"> 101<?php echo Message::message(); ?> 102 </div></div> 106 <ul class="nav nav-pills nav-stacked" role="tablist" > 107 <li class="active"><a href="create.php">Book Title</a></li> 108 <li><a href="../Birthdate/create.php">Birthday</a></li> 108 <li><a href="../Birthdate/create.php">Birthday</a></li> 109 <li><a href="../City/create.php">City</a></li> 110 <li><a href="../Email/create.php">Email</a></li>released_patient.php https://gitlab.com/sharadmohajan/xyz | PHP | 288 lines
100 <li><a href="add_patient.php">Add Patient</a></li> 101 <li><a href="patient_info.php">Patient Info</a></li> 102 <li><a href="doctor_info.php">Doctors</a></li> 115 116 <li> <form role="form" action="released_patient.php" style="margin-top: 13px;padding-left: 50px" > 117 <div class="form-group"> 159 <form role="form" action="patient_info.php" method="post"> 160 <?php /*if(isset($_POST['filterByName'])) { 161 $catchName = $_POST['filterByName']; 208 <td><?php echo $info->room_id ?></td> 209 <td><a href="release_patient_view.php?patient_id=<?php echo $info->patient_id ?>" class="btn btn-info" role="button">View</a> 210 <a href="released_delete.php?patient_id=<?php echo $info->patient_id ?>" class="btn btn-danger" role="button">Delete</a> 210 <a href="released_delete.php?patient_id=<?php echo $info->patient_id ?>" class="btn btn-danger" role="button">Delete</a> 211 <a href="prescribe.php?patient_id=<?php echo $info->patient_id ?>" class="btn btn-success" role="button">Prescription</a> 212 </td>Misc.php https://gitlab.com/saalmanhussain/scayle_repo | PHP | 388 lines
30 if (!empty($_GET['langCode']) && preg_match("/^[a-z\-]+$/", $_GET['langCode'])) { 31 if (file_exists(CKFINDER_CONNECTOR_LANG_PATH . "/" . $_GET['langCode'] . ".php")) 32 $langCode = $_GET['langCode']; 33 } 34 include CKFINDER_CONNECTOR_LANG_PATH . "/" . $langCode . ".php"; 35 if ($number) { 64 /** 65 * @link http://pl.php.net/manual/en/function.imagecopyresampled.php 66 * replacement to imagecopyresampled that will deliver results that are almost identical except MUCH faster (very typically 30 times faster) 110 /** 111 * @link http://pl.php.net/manual/pl/function.imagecreatefromjpeg.php 112 * function posted by e dot a dot schultz at gmail dot com 171 * convert shorthand php.ini notation into bytes, much like how the PHP source does it 172 * @link http://pl.php.net/manual/en/function.ini-get.php 173 *SimpleFontData.cpp https://gitlab.com/x33n/phantomjs | C++ | 304 lines
91{ 92 GlyphPage* glyphPageZero = GlyphPageTreeNode::getRootChild(this, 0)->page(); 93 111{ 112 GlyphPage* glyphPageZero = GlyphPageTreeNode::getRootChild(this, 0)->page(); 113 if (!glyphPageZero) { 136 determinePitch(); 137 m_adjustedSpaceWidth = m_treatAsFixedPitch ? ceilf(width) : roundf(width); 138 160 else 161 GlyphPageTreeNode::pruneTreeFontData(this); 162} 170{ 171 GlyphPageTreeNode* node = GlyphPageTreeNode::getRootChild(this, character / GlyphPage::size); 172 return node->page() ? node->page()->glyphAt(character % GlyphPage::size) : 0;Pagination.class.php https://gitlab.com/webbroteam/satisfaction-mvc | PHP | 447 lines
1<?php 2 4 * Pagination 5 * @link https://github.com/onassar/PHP-Pagination/blob/master/Pagination.class.php 6 * Supplies an API for setting pagination details, and renders the resulting 6 * Supplies an API for setting pagination details, and renders the resulting 7 * pagination markup (html) through the included render.inc.php file. 8 * 18 * // source inclusion 19 * require_once APP . '/vendors/PHP-Pagination/Pagination.class.php'; 20 * 30 * // source inclusion 31 * require_once APP . '/vendors/PHP-Pagination/Pagination.class.php'; 32 * 151 if (empty($target)) { 152 $target = $_SERVER['PHP_SELF']; 153 }Explosion.php https://gitlab.com/wesleyvanneck/ImagicalMine | PHP | 277 lines
1<?php 2/** 2/** 3 * src/pocketmine/level/Explosion.php 4 * 183 $minX = Math::floorFloat($this->source->x - $explosionSize - 1); 184 $maxX = Math::ceilFloat($this->source->x + $explosionSize + 1); 185 $minY = Math::floorFloat($this->source->y - $explosionSize - 1); 185 $minY = Math::floorFloat($this->source->y - $explosionSize - 1); 186 $maxY = Math::ceilFloat($this->source->y + $explosionSize + 1); 187 $minZ = Math::floorFloat($this->source->z - $explosionSize - 1); 187 $minZ = Math::floorFloat($this->source->z - $explosionSize - 1); 188 $maxZ = Math::ceilFloat($this->source->z + $explosionSize + 1); 189functions.php https://bitbucket.org/zachisit/zachis.it-m.git | PHP | 367 lines
122 $installerRescue = duplicator_safe_path(DUPLICATOR_PLUGIN_PATH . 'files/installer.rescue.php'); 123 $installerCore = duplicator_safe_path(DUPLICATOR_SSDIR_PATH) . "/{$uniquename}_installer.php"; 124 294 @chmod($path_plugin . 'files', 0755); 295 @chmod(duplicator_safe_path($path_plugin . 'files/installer.rescue.php'), 0644); 296 300 $ssfile = @fopen($path_ssdir .'/index.php', 'w'); 301 @fwrite($ssfile, '<?php error_reporting(0); if (stristr(php_sapi_name(), "fcgi")) { $url = "http://" . $_SERVER["HTTP_HOST"]; header("Location: {$url}/404.html");} else { header("HTML/1.1 404 Not Found", true, 404);} exit(); ?>'); 302 @fclose($ssfile); 305 $tokenfile = @fopen($path_ssdir .'/dtoken.php', 'w'); 306 @fwrite($tokenfile, '<?php error_reporting(0); if (stristr(php_sapi_name(), "fcgi")) { $url = "http://" . $_SERVER["HTTP_HOST"]; header("Location: {$url}/404.html");} else { header("HTML/1.1 404 Not Found", true, 404);} exit(); ?>'); 307 @fclose($tokenfile); 320 $tokenfile2 = @fopen($path_plugin .'files/dtoken.php', 'w'); 321 @fwrite($tokenfile2, '<?php @error_reporting(0); @require_once("../../../../wp-admin/admin.php"); global $wp_query; $wp_query->set_404(); header("HTML/1.1 404 Not Found", true, 404); header("Status: 404 Not Found"); @include(get_template_directory () . "/404.php"); ?>'); 322 @fclose($tokenfile2);MineBlock.php https://gitlab.com/Skull3x/MineBlock | PHP | 275 lines
1<?php 2// This Plugin is Made by DeBe (hu6677@naver.com) 158 if(isset($sub[2]) && is_numeric($sub[2])) $page = round($sub[2]); 159 $list = ceil(count($drop) / 5); 160 if($page >= $list) $page = $list;class-gsc-table.php https://gitlab.com/bhargavi_dcw/dflocal | 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'; 344index.php https://gitlab.com/istiyakaminsanto/Atomic_project_IstiyakAmin_142691_B35 | PHP | 368 lines
1 2<?php 3require_once("../../../vendor/autoload.php"); 20if(!$status) { 21 Utility::redirect('../login.php'); 22 return; 60 61$pages = ceil($recordCount/$itemsPerPage); 62$someData = $objBookTitle->indexPaginator($page,$itemsPerPage); 145 <ul class="nav"> 146 <li class="active"><a href="../BookTitle/index.php">BOOKTITLE</a></li> 147 <li><a href="../Birthday/index.php">BIRTHDAY</a></li> 147 <li><a href="../Birthday/index.php">BIRTHDAY</a></li> 148 <li><a href="../Gender/index.php">GENDER</a></li> 149 <li><a href="../Email/index.php">EMAIL</a></li>blog-layout.php https://gitlab.com/hop23typhu/list-theme | PHP | 281 lines
1<?php 2/** 44) { 45 $number_of_pages = ceil( $wp_query->found_posts / Avada()->settings->get( 'search_results_per_page' ) ); 46} else { 280 281// Omit closing PHP tag to avoid "Headers already sent" issues. 282weight_class.php https://gitlab.com/dadangnh/sb1-bon | 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'))); 254index.php https://gitlab.com/nz_moon/Nazmun_nahar_SEIP_ID_142969_B35_Atomic_Project | PHP | 307 lines
1<?php 2require_once ("../../../vendor/autoload.php"); 3use App\Email\Email; 77 <div class=""> 78 <?php include"menu.php" ?> 79 </div> 106 <div class="leftSideButton"> 107 <a href="create.php" class="btn btn-info" role="button">Add New</a> 108 <a href="trashed.php" class="btn btn-primary" role="button">Trash List</a> 158 159<?php 160echo "<table border='2px'>"; 224 } 225 if($page<$pages) echo "<li><a href='index.php?Page=$pagePlusOne'>" . "Next" . '</a></li>'; 226 ?>index.php https://gitlab.com/nz_moon/Nazmun_nahar_SEIP_ID_142969_B35_Atomic_Project | PHP | 307 lines
1<?php 2require_once ("../../../vendor/autoload.php"); 3use App\Hobbies\Hobbies; 81 <div class=""> 82 <?php include"menu.php" ?> 83 </div> 110 <div class="leftSideButton"> 111 <a href="create.php" class="btn btn-info" role="button">Add New</a> 112 <a href="trashed.php" class="btn btn-primary" role="button">Trash List</a> 162 163<?php 164 225 } 226 if($page<$pages) echo "<li><a href='index.php?Page=$pagePlusOne'>" . "Next" . '</a></li>'; 227 ?>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 elsesajax.php https://bitbucket.org/dgough/annamaria-daneswood-25102012.git | PHP | 416 lines
1<?php 2// ensure this file is being included by a parent file - Joomla! 1.0.x and 1.5 compatible 30 31 // Since str_split used in sajax_get_my_uri is only available on PHP 5, we have 32 // to provide an alternative for those using PHP 4.x 40 } else { 41 $num = (int)ceil($count/$split_length); 42 $ret = array(); 58 if ($myURI == "") { 59 $myURI = $mosConfig_live_site . "/administrator/index2.php"; 60 } 74 //global $mosConfig_live_site; 75 // $sajax_remote_uri = $mosConfig_live_site . "/administrator/index2.php?option=$option&no_html=1&act=ajax"; 76 $sajax_remote_uri = sajax_get_my_uri(); 189 // (c) copyright 2005 modernmethod, inc 190 var sajax_debug_mode = <?php echo $sajax_debug_mode ? "true" : "false"; ?>; 191 var sajax_request_type = "<?php echo $t; ?>";index.php https://gitlab.com/nz_moon/Nazmun_nahar_SEIP_ID_142969_B35_Atomic_Project | PHP | 319 lines
1<?php 2require_once ("../../../vendor/autoload.php"); 3use App\Gender\Gender; 86 <div class=""> 87 <?php include"menu.php" ?> 88 </div> 115 <div class="leftSideButton"> 116 <a href="create.php" class="btn btn-info" role="button">Add New</a> 117 <a href="trashed.php" class="btn btn-primary" role="button">Trash List</a> 168 <div class="col-lg-6 col-xm-1"> 169 <?php 170 233 } 234 if($page<$pages) echo "<li><a href='index.php?Page=$pagePlusOne'>" . "Next" . '</a></li>'; 235 ?>trashed.php https://gitlab.com/Mishu_ctg69/Princy_143467_B37_Atomic_project | PHP | 260 lines
1<?php 2require_once("../../../vendor/autoload.php"); 83 <div style="margin-top: 40px ;float: left;"> <a href="xl.php" class="btn btn-danger btn-lg" role="button">Download As Xl</a></br></br> </div> 84 <div style="margin-top: 40px ;float: left;"> <a href="email.php?list=1" class="btn btn-success btn-lg" role="button">Email To A Friend</a></br></br></div> 85 <div style="margin-top: 40px ;float: right;"> <a href="../index.php" class="btn btn-info btn-info btn-lg" role="button">Go Atomic Project List</a></br></br></div> 130 <td><?php echo $result['id']?></td> 131 <td><?php echo $result['organization_name']?></td> 132 <td><?php echo $result['organization_summary']?></td> 132 <td><?php echo $result['organization_summary']?></td> 133 <td><a href="recover.php?id=<?php echo $result['id'] ?>" class="btn btn-primary" role="button">Recover</a> 134 134 135 <a href="delete.php?id=<?php echo $result['id'] ?>" class="btn btn-danger" role="button" id="delete" Onclick="return ConfirmDelete()">Delete</a> 136 226 $('#delete').on('click',function(){ 227 document.forms[0].action="deletemultiple.php"; 228 $('#multiple').submit();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; 19view.php https://bitbucket.org/johnroyer/phpwind8.7.git | PHP | 277 lines
1<?php 2!defined('A_P') && exit('Forbidden'); 2!defined('A_P') && exit('Forbidden'); 3$basename = 'apps.php?q='.$q.'&uid='.$uid.'&'; 4 5empty($space) && Showmsg('您訪問的空間不存在!'); 6//* include_once pwCache::getPath(D_P . 'data/bbscache/o_config.php'); 7pwCache::getData(D_P . 'data/bbscache/o_config.php'); 26 list($count,$albumdb) = $photoService->getAlbumBrowseList(); 27 $pageCount = ceil($count / $perpage); 28 $page = validatePage($page,$pageCount); 69 } else { 70 require_once(R_P.'require/postfunc.php'); 71 S::gp(array('aname','aintro','pwd','repwd'),'P'); 91 } 92 require_once(R_P.'require/bbscode.php'); 93 $wordsfb = L::loadClass('FilterUtil', 'filter');index.php https://gitlab.com/Sajibcse/ATOMIC_PROJECT_SEIP143979_SAJIB_B37 | PHP | 339 lines
36 37$pages = ceil($recordCount/$itemsPerPage); 38$someData = $obj->indexPaginator($page,$itemsPerPage); 133 134 <form id="searchForm" action="index.php" method="get" style="color:darkblue"> 135 <input type="text" value="" id="searchID" name="search" placeholder="Search" width="60" > 150<div class="container "> 151 <div style="margin-top: 40px ;float: right;"> <a href="../index.php" class="btn btn-danger custom btn-lg" role="button">Atomic Project List</a></br></br></div> 152 195 <td><?php echo $oneData->city_name?></td> 196 <td><a href="view.php?id=<?php echo $oneData->id ?>" class="btn btn-primary" role="button">View</a> 197 <a href="edit.php?id=<?php echo$oneData->id ?>" class="btn btn-info" role="button">Edit</a> 198 <a href="delete.php?id=<?php echo$oneData->id ?>" class="btn btn-danger" role="button" id="delete" Onclick="return ConfirmDelete()">Delete</a> 199 <a href="trash.php?id=<?php echo $oneData->id ?>" class="btn btn-info" role="button">Trash</a> 200 </td>empty-array.cpp https://gitlab.com/Blueprint-Marketing/hhvm | C++ | 362 lines
2 +----------------------------------------------------------------------+ 3 | HipHop for PHP | 4 +----------------------------------------------------------------------+ 6 +----------------------------------------------------------------------+ 7 | This source file is subject to version 3.01 of the PHP license, | 8 | that is bundled with this package in the file LICENSE, and is | 9 | available through the world-wide-web at the following url: | 10 | http://www.php.net/license/3_01.txt | 11 | If you did not receive a copy of the PHP license and are unable to | 12 | obtain it through the world-wide-web, please send a note to | 13 | license@php.net so we can mail you a copy immediately. | 14 +----------------------------------------------------------------------+ 16 17#include "hphp/runtime/base/empty-array.h" 18helpers.php https://bitbucket.org/bayrock/gw2spidy.git | PHP | 326 lines
1<?php 2 71 if ($count > 0) { 72 $lastpage = ceil($count / $itemsperpage); 73 if ($page > $lastpage) { 171 if ($count > 0) { 172 $lastpage = ceil($count / $itemsperpage); 173 if ($page > $lastpage) {attribute.php https://gitlab.com/hazelnuts23/unitedfoodstuff | PHP | 432 lines
1<?php 2class ControllerCatalogAttribute extends Controller { 252 253 $data['results'] = sprintf($this->language->get('text_pagination'), ($attribute_total) ? (($page - 1) * $this->config->get('config_limit_admin')) + 1 : 0, ((($page - 1) * $this->config->get('config_limit_admin')) > ($attribute_total - $this->config->get('config_limit_admin'))) ? $attribute_total : ((($page - 1) * $this->config->get('config_limit_admin')) + $this->config->get('config_limit_admin')), $attribute_total, ceil($attribute_total / $this->config->get('config_limit_admin'))); 254Drawing.php https://gitlab.com/adamlwalker/generatedata | PHP | 272 lines
22 * @package PHPExcel_Shared 23 * @copyright Copyright (c) 2006 - 2012 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 - 2012 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) imageBaseDrawing.php https://gitlab.com/Japang-Jawara/jawara-penilaian | PHP | 532 lines
2 3namespace PhpOffice\PhpSpreadsheet\Worksheet; 4 5use PhpOffice\PhpSpreadsheet\Cell\Hyperlink; 6use PhpOffice\PhpSpreadsheet\Exception as PhpSpreadsheetException; 7use PhpOffice\PhpSpreadsheet\IComparable; 210 if ($this->worksheet === null) { 211 // Add drawing to \PhpOffice\PhpSpreadsheet\Worksheet\Worksheet 212 $this->worksheet = $pValue; 216 if ($pOverrideOld) { 217 // Remove drawing from old \PhpOffice\PhpSpreadsheet\Worksheet\Worksheet 218 $iterator = $this->worksheet->getDrawingCollection()->getIterator(); 231 } else { 232 throw new PhpSpreadsheetException('A Worksheet has already been assigned. Drawings can only exist on one \\PhpOffice\\PhpSpreadsheet\\Worksheet.'); 233 }class-wp-walker.php https://gitlab.com/hop23typhu/bryepoxy | PHP | 425 lines
1<?php 2/** 302 if ( -1 == $max_depth ) 303 $this->max_pages = ceil($total_top / $per_page); 304 } 342 if ( $paging ) 343 $this->max_pages = ceil($total_top / $per_page); 344 elsephp.js https://gitlab.com/juanito.abelo/nlmobile | JavaScript | 132 lines
23 atoms: keywords("true false null TRUE FALSE NULL __CLASS__ __DIR__ __FILE__ __LINE__ __METHOD__ __FUNCTION__ __NAMESPACE__"), 24 builtin: keywords("func_num_args func_get_arg func_get_args strlen strcmp strncmp strcasecmp strncasecmp each error_reporting define defined trigger_error user_error set_error_handler restore_error_handler get_declared_classes get_loaded_extensions extension_loaded get_extension_funcs debug_backtrace constant bin2hex sleep usleep time mktime gmmktime strftime gmstrftime strtotime date gmdate getdate localtime checkdate flush wordwrap htmlspecialchars htmlentities html_entity_decode md5 md5_file crc32 getimagesize image_type_to_mime_type phpinfo phpversion phpcredits strnatcmp strnatcasecmp substr_count strspn strcspn strtok strtoupper strtolower strpos strrpos strrev hebrev hebrevc nl2br basename dirname pathinfo stripslashes stripcslashes strstr stristr strrchr str_shuffle str_word_count strcoll substr substr_replace quotemeta ucfirst ucwords strtr addslashes addcslashes rtrim str_replace str_repeat count_chars chunk_split trim ltrim strip_tags similar_text explode implode setlocale localeconv parse_str str_pad chop strchr sprintf printf vprintf vsprintf sscanf fscanf parse_url urlencode urldecode rawurlencode rawurldecode readlink linkinfo link unlink exec system escapeshellcmd escapeshellarg passthru shell_exec proc_open proc_close rand srand getrandmax mt_rand mt_srand mt_getrandmax base64_decode base64_encode abs ceil floor round is_finite is_nan is_infinite bindec hexdec octdec decbin decoct dechex base_convert number_format fmod ip2long long2ip getenv putenv getopt microtime gettimeofday getrusage uniqid quoted_printable_decode set_time_limit get_cfg_var magic_quotes_runtime set_magic_quotes_runtime get_magic_quotes_gpc get_magic_quotes_runtime import_request_variables error_log serialize unserialize memory_get_usage var_dump var_export debug_zval_dump print_r highlight_file show_source highlight_string ini_get ini_get_all ini_set ini_alter ini_restore get_include_path set_include_path restore_include_path setcookie header headers_sent connection_aborted connection_status ignore_user_abort parse_ini_file is_uploaded_file move_uploaded_file intval floatval doubleval strval gettype settype is_null is_resource is_bool is_long is_float is_int is_integer is_double is_real is_numeric is_string is_array is_object is_scalar ereg ereg_replace eregi eregi_replace split spliti join sql_regcase dl pclose popen readfile rewind rmdir umask fclose feof fgetc fgets fgetss fread fopen fpassthru ftruncate fstat fseek ftell fflush fwrite fputs mkdir rename copy tempnam tmpfile file file_get_contents stream_select stream_context_create stream_context_set_params stream_context_set_option stream_context_get_options stream_filter_prepend stream_filter_append fgetcsv flock get_meta_tags stream_set_write_buffer set_file_buffer set_socket_blocking stream_set_blocking socket_set_blocking stream_get_meta_data stream_register_wrapper stream_wrapper_register stream_set_timeout socket_set_timeout socket_get_status realpath fnmatch fsockopen pfsockopen pack unpack get_browser crypt opendir closedir chdir getcwd rewinddir readdir dir glob fileatime filectime filegroup fileinode filemtime fileowner fileperms filesize filetype file_exists is_writable is_writeable is_readable is_executable is_file is_dir is_link stat lstat chown touch clearstatcache mail ob_start ob_flush ob_clean ob_end_flush ob_end_clean ob_get_flush ob_get_clean ob_get_length ob_get_level ob_get_status ob_get_contents ob_implicit_flush ob_list_handlers ksort krsort natsort natcasesort asort arsort sort rsort usort uasort uksort shuffle array_walk count end prev next reset current key min max in_array array_search extract compact array_fill range array_multisort array_push array_pop array_shift array_unshift array_splice array_slice array_merge array_merge_recursive array_keys array_values array_count_values array_reverse array_reduce array_pad array_flip array_change_key_case array_rand array_unique array_intersect array_intersect_assoc array_diff array_diff_assoc array_sum array_filter array_map array_chunk array_key_exists pos sizeof key_exists assert assert_options version_compare ftok str_rot13 aggregate session_name session_module_name session_save_path session_id session_regenerate_id session_decode session_register session_unregister session_is_registered session_encode session_start session_destroy session_unset session_set_save_handler session_cache_limiter session_cache_expire session_set_cookie_params session_get_cookie_params session_write_close preg_match preg_match_all preg_replace preg_replace_callback preg_split preg_quote preg_grep overload ctype_alnum ctype_alpha ctype_cntrl ctype_digit ctype_lower ctype_graph ctype_print ctype_punct ctype_space ctype_upper ctype_xdigit virtual apache_request_headers apache_note apache_lookup_uri apache_child_terminate apache_setenv apache_response_headers apache_get_version getallheaders mysql_connect mysql_pconnect mysql_close mysql_select_db mysql_create_db mysql_drop_db mysql_query mysql_unbuffered_query mysql_db_query mysql_list_dbs mysql_list_tables mysql_list_fields mysql_list_processes mysql_error mysql_errno mysql_affected_rows mysql_insert_id mysql_result mysql_num_rows mysql_num_fields mysql_fetch_row mysql_fetch_array mysql_fetch_assoc mysql_fetch_object mysql_data_seek mysql_fetch_lengths mysql_fetch_field mysql_field_seek mysql_free_result mysql_field_name mysql_field_table mysql_field_len mysql_field_type mysql_field_flags mysql_escape_string mysql_real_escape_string mysql_stat mysql_thread_id mysql_client_encoding mysql_get_client_info mysql_get_host_info mysql_get_proto_info mysql_get_server_info mysql_info mysql mysql_fieldname mysql_fieldtable mysql_fieldlen mysql_fieldtype mysql_fieldflags mysql_selectdb mysql_createdb mysql_dropdb mysql_freeresult mysql_numfields mysql_numrows mysql_listdbs mysql_listtables mysql_listfields mysql_db_name mysql_dbname mysql_tablename mysql_table_name pg_connect pg_pconnect pg_close pg_connection_status pg_connection_busy pg_connection_reset pg_host pg_dbname pg_port pg_tty pg_options pg_ping pg_query pg_send_query pg_cancel_query pg_fetch_result pg_fetch_row pg_fetch_assoc pg_fetch_array pg_fetch_object pg_fetch_all pg_affected_rows pg_get_result pg_result_seek pg_result_status pg_free_result pg_last_oid pg_num_rows pg_num_fields pg_field_name pg_field_num pg_field_size pg_field_type pg_field_prtlen pg_field_is_null pg_get_notify pg_get_pid pg_result_error pg_last_error pg_last_notice pg_put_line pg_end_copy pg_copy_to pg_copy_from pg_trace pg_untrace pg_lo_create pg_lo_unlink pg_lo_open pg_lo_close pg_lo_read pg_lo_write pg_lo_read_all pg_lo_import pg_lo_export pg_lo_seek pg_lo_tell pg_escape_string pg_escape_bytea pg_unescape_bytea pg_client_encoding pg_set_client_encoding pg_meta_data pg_convert pg_insert pg_update pg_delete pg_select pg_exec pg_getlastoid pg_cmdtuples pg_errormessage pg_numrows pg_numfields pg_fieldname pg_fieldsize pg_fieldtype pg_fieldnum pg_fieldprtlen pg_fieldisnull pg_freeresult pg_result pg_loreadall pg_locreate pg_lounlink pg_loopen pg_loclose pg_loread pg_lowrite pg_loimport pg_loexport echo print global static exit array empty eval isset unset die include require include_once require_once"), 25 multiLineStrings: true, 54 var htmlMode = CodeMirror.getMode(config, "text/html"); 55 var phpMode = CodeMirror.getMode(config, phpConfig); 56 82 return style; 83 } else if (isPHP && state.php.tokenize == null && stream.match("?>")) { 84 state.curMode = htmlMode; 103 var html = state.html, htmlNew = CodeMirror.copyState(htmlMode, html), 104 php = state.php, phpNew = CodeMirror.copyState(phpMode, php), cur; 105 if (state.curMode == htmlMode) cur = htmlNew; 130 CodeMirror.defineMIME("application/x-httpd-php-open", {name: "php", startOpen: true}); 131 CodeMirror.defineMIME("text/x-php", phpConfig); 132})();Drawing.php https://gitlab.com/ptisky/API_prestashop | 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) imageDrawing.php https://bitbucket.org/tschope/codeigniter_basic.git | PHP | 272 lines
1<?php 2/** 2/** 3 * PHPExcel 4 * 4 * 5 * Copyright (c) 2006 - 2010 PHPExcel 6 * 22 * @package 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 33 * @package Shared 34 * @copyright Copyright (c) 2006 - 2010 PHPExcel (http://www.codeplex.com/PHPExcel) 35 */ 174 * 175 * @link http://www.php.net/manual/en/function.imagecreatefromwbmp.php#86214 176 * @param string $filename Path to Windows DIB (BMP) imageDB.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); 170notice_list.php https://gitlab.com/dev.essetel/sjnuri | PHP | 242 lines
113 <tbody> 114 <?php 115 for ($i = 0; $row = sql_fetch_array($result); $i++) { 120 <td headers="mb_list_chk" class="td_chk"> 121 <input type="hidden" name="me_id[<?php echo $i ?>]" value="<?php echo $row['n_id'] ?>" id="me_id_<?php echo $i ?>"> 122 <label for="chk_<?php echo $i; ?>" class="sound_only"><?php echo get_text($row['mb_name']); ?> </label> 122 <label for="chk_<?php echo $i; ?>" class="sound_only"><?php echo get_text($row['mb_name']); ?> </label> 123 <input type="checkbox" name="chk[]" value="<?php echo $i ?>" id="chk_<?php echo $i ?>" <?php echo $ch_checkbox ?>> 124 </td> 179 <td> 180 <a href="./notice_write.php?me_id=<?php echo $row['n_id'] ?>&sfl=<?php echo $sfl ?>&stx=<?php echo $stx ?>&page=<?php echo $page ?>"> 181 <button type="button" class="btn btn_02"> 수정 </button> 197 <input type="submit" name="act_button" value="선택삭제" onclick="document.pressed=this.value" class="btn btn_03"> 198 <a href="notice_write.php?me_id=&sfl=<?php echo $sfl ?>&stx=<?php echo $stx ?>&page=<?php echo $page ?>"> 199 <input type="button" name="act_button" value="등록" onclick="document.pressed=this.value" class="btn btn_01">daily_investigation_report.php https://gitlab.com/partha1227/NECI | PHP | 207 lines
88 <ol class="breadcrumb"> 89 <li><a href="./dashboard.php">Dashboard</a></li> 90 <li><a href="javascript:;">Investigation</a></li> 124 <option <?php if($_SESSION['itemPerPage']==15) {echo "selected";}?>>15</option> 125 <option <?php if($_SESSION['itemPerPage']==20) {echo "selected";}?>>20</option> 126 <option <?php if($_SESSION['itemPerPage']==25) {echo "selected";}?>>25</option> 132 <div class="input-group date ui-datepicker" data-date-format="yyyy-mm-dd"> 133 <input id="date-2" name="input_date" class="form-control" value="<?php echo $_GET['input_date']?>" type="text" data-required="true"> 134 <span class="input-group-addon"><i class="fa fa-calendar"></i></span> 184 <ul class="pagination"> 185 <?php if($pageNo>1) {echo "<li><a href='../User/daily_investigation.php?pageNumber=$prev'>Prev</a></li>";}else{echo "";}?> 186 <?php echo $pagination?> 186 <?php echo $pagination?> 187 <?php if($pageNo<$noOfPage){echo "<li><a href='../User/daily_investigation.php?pageNumber=$next'>Next</a></li>";}else{echo "";}?> 188 </ul>jpgraph_gradient.php https://github.com/Rambutan/hamsterpaj.git | PHP | 376 lines
1<?php 2/*======================================================================= 2/*======================================================================= 3// File: JPGRAPH_GRADIENT.PHP 4// Description: Create a color gradient 6// Author: Johan Persson (johanp@aditus.nu) 7// Ver: $Id: jpgraph_gradient.php 21 2005-05-30 20:35:34Z ljp $ 8// 232 case GRAD_CENTER: 233 $steps = ceil(min(($yb-$yt)+1,($xr-$xl)+1)/2); 234 $this->GetColArray($from_color,$to_color,$steps,$colors,$this->numcolors);Drawing.php https://gitlab.com/mehedi-xion/web_apps_php_26 | 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) imageclass-wp-rest-search-controller.php https://gitlab.com/campus-academy/krowkaramel | PHP | 387 lines
1<?php 2/** 72 __METHOD__, 73 /* translators: %s: PHP class name. */ 74 sprintf( __( 'REST search handlers must extend the %s class.' ), 'WP_REST_Search_Handler' ), 154 $per_page = (int) $request['per_page']; 155 $max_pages = ceil( $total / $per_page ); 156 188 * @since 5.6.0 The `$id` parameter can accept a string. 189 * @since 5.9.0 Renamed `$id` to `$item` to match parent class for PHP 8 named parameter support. 190 *index.php https://gitlab.com/sumonaliza12/ATOMIC_PROJECT_SEIP143203_SUMONA_SEIP143203 | PHP | 359 lines
144 145 <form id="searchForm" action="index.php" method="get"> 146 <input type="text" value="" id="searchID" name="search" placeholder="Search" width="60" > 162<div class="container "> 163 <div style="margin-top: 40px ;float: right;"> <a href="../index.php" class="btn btn-danger custom btn-lg" role="button">Atomic Project List</a></br></br></div> 164 210 211 <td><a href="view.php?id=<?php echo $oneData->id ?>" class="btn btn-primary" role="button">View</a> 212 <a href="edit.php?id=<?php echo $oneData->id ?>" class="btn btn-info" role="button">Edit</a> 213 <a href="delete.php?id=<?php echo $oneData->id ?>" class="btn btn-danger" role="button" id="delete" Onclick="return ConfirmDelete()">Delete</a> 214 <a href="trash.php?id=<?php echo $oneData->id ?>" class="btn btn-info" role="button">Trash</a> 215 </td> 217 </tr> 218 <?php }?> 219MoradorController.php https://gitlab.com/fabiorf/reclameimovel | PHP | 308 lines
1<?php 2 43 44 $numPages = ceil($total / $limit); 45 $currentPage = $page; 253 // Read RAW data 254 $data = file_get_contents('php://input'); 255m_groups.php https://github.com/bluelovers/phpwind.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);index.php https://gitlab.com/Princy008/Princy_143467_B_37_Atomic_project | PHP | 326 lines
1<?php 2require_once("../../../vendor/autoload.php"); 3use App\BITM\SEIP143467\Message\Message; 157 <tr> 158 <?php 159 $serial=0; 162 $serial++; ?> 163 <td><input type="checkbox" class="checkbox" name="mark[]" value="<?php echo $result['id']?>"></td> 164 <td><?php echo $serial?></td> 167 <td><?php echo $result['email']?></td> 168 <td><a href="view.php?id=<?php echo $result['id'] ?>" class="btn btn-primary" role="button">View</a> 169 <a href="edit.php?id=<?php echo $result['id'] ?>" class="btn btn-success" role="button">Edit</a> 170 <a href="delete.php?id=<?php echo $result['id'] ?>" class="btn btn-danger" role="button" id="delete" Onclick="return ConfirmDelete()">Delete</a> 171 <a href="trash.php?id=<?php echo $result['id'] ?>" class="btn btn-info" role="button">Trash</a> 172 </td>List.php https://bitbucket.org/thomashii/vtigercrm-6-for-postgresql.git | PHP | 256 lines
1<?php 2/*+********************************************************************************** 51 52 //Note : To get the right hook for immediate parent in PHP, 53 // specially in case of deep hierarchy 247 $pageLimit = $pagingModel->getPageLimit(); 248 $pageCount = ceil((int) $listViewCount / (int) $pageLimit); 249class_graph.php https://gitlab.com/Conors99/ppm-1.8 | PHP | 337 lines
1<?php 2/** 261 // Get our scale for finding our points of reference to place our x axis labels 262 $x_label_scale = ceil(count($this->points)/20); 263 $x_label_points = array();libindri.php https://github.com/oroszgy/sefh.git | PHP | 380 lines
1<?php 2include( "config.php" ); 2include( "config.php" ); 3include( "libindri_php.php" ); 4?> 5 6<?php 7 13<head> 14<title>Indri PHP test not ready</title> 15</head> 19</html> 20<?php 21 return; 177 178 $begin = $matchBegin - (int) ceil($matchWidth / 2); 179 $end = $matchEnd + (int) floor($matchWidth / 2);handlers.js https://gitlab.com/Blueprint-Marketing/interoccupy.net | JavaScript | 370 lines
39 jQuery('.bar', item).width( w * bytesDone / bytesTotal ); 40 jQuery('.percent', item).html( Math.ceil(bytesDone / bytesTotal * 100) + '%' ); 41 63 else { 64 item.load('async-upload.php', {attachment_id:serverData, fetch:f}, function(){prepareMediaItemInit(fileObj);updateMediaForm()}); 65 }helpers.php https://gitlab.com/ahmad.jamal/sally | PHP | 174 lines
1<?php // Code within app\Helpers\Helper.php 2 44 45 // if any key missing of array from custom.php file it will be merge and set a default value from dataDefault array and store in data variable 46 $data = array_merge($DefaultData, $data); 69 70 //if mainLayoutType value empty or not match with default options in custom.php config file then set a default value 71 foreach ($allOptions as $key => $value) { 167 $fullStarCount = (int)$rating; 168 $halfStarCount = ceil($rating) - $fullStarCount; 169 $emptyStarCount = $maxRating - $fullStarCount - $halfStarCount;browse_foreigners.php https://github.com/edmondscommerce/XAMPP-Magento-Demo-Site.git | PHP | 289 lines
15 16require_once './libraries/ob.lib.php'; 17PMA_outBufferPre(); 24$per_page = 200; 25require_once './libraries/relation.lib.php'; // foreign keys 26require_once './libraries/transformations.lib.php'; // Transformations 96 <link rel="stylesheet" type="text/css" 97 href="phpmyadmin.css.php?<?php echo PMA_generate_common_url('', ''); ?>&js_frame=right&nocache=<?php echo $_SESSION['PMA_Config']->getThemeUniqueValue(); ?>" /> 98 <script src="./js/functions.js" type="text/javascript"></script> 112 <?php if (isset($fieldkey) && is_numeric($fieldkey)) { ?> 113 var element_name_alt = field + '[<?php echo $fieldkey; ?>]'; 114 <?php } else { ?> 272 <td nowrap="nowrap"> 273 <?php 274 echo ($val_ordered_current_equals_data ? '<strong>' : '') . '<a href="#" title="'EquipFactory.inc.php https://gitlab.com/Goutte/Nacridan | PHP | 301 lines
1<?php 2require_once (HOMEPATH . "/economy/edef.inc.php"); 2require_once (HOMEPATH . "/economy/edef.inc.php"); 3require_once (HOMEPATH . "/factory/PNJFactory.inc.php"); 4 157 $usure = $durmax - $dbbe->get("durability"); 158 return ceil(($basePrice / 200) * $usure * (60 / $durmax)); 159 } 229 $param["ERROR"] = 0; 230 require_once (HOMEPATH . "/factory/BasicActionFactory.inc.php"); 231 BasicActionFactory::globalInfo($playerSrc, $param); 255 $param["OBJECT"] = $equip->get("name") . " niveau " . $equip->get("level") . " " . $equip->get("extraname"); 256 require_once (HOMEPATH . "/factory/PlayerFactory.inc.php"); 257 $good = 0;return_status.php https://gitlab.com/reclamare/mao | PHP | 375 lines
1<?php 2class ControllerLocalisationReturnStatus extends Controller { 246 247 $data['results'] = sprintf($this->language->get('text_pagination'), ($return_status_total) ? (($page - 1) * $this->config->get('config_limit_admin')) + 1 : 0, ((($page - 1) * $this->config->get('config_limit_admin')) > ($return_status_total - $this->config->get('config_limit_admin'))) ? $return_status_total : ((($page - 1) * $this->config->get('config_limit_admin')) + $this->config->get('config_limit_admin')), $return_status_total, ceil($return_status_total / $this->config->get('config_limit_admin'))); 248NumberToLocalizedStringTransformer.php https://gitlab.com/luchoman08/personal_collection_mv | PHP | 272 lines
1<?php 2 30 */ 31 const ROUND_CEILING = \NumberFormatter::ROUND_CEILING; 32 168 } else { 169 $type = PHP_INT_SIZE === 8 170 ? \NumberFormatter::TYPE_INT64 179 180 if ($result >= PHP_INT_MAX || $result <= -PHP_INT_MAX) { 181 throw new TransformationFailedException('I don\'t have a clear idea what infinity looks like'); 243 switch ($this->roundingMode) { 244 case self::ROUND_CEILING: 245 $number = ceil($number); 250 case self::ROUND_UP: 251 $number = $number > 0 ? ceil($number) : floor($number); 252 break;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',form3tickets.php https://gitlab.com/cesardemora/neaticketwebapphomeEs | PHP | 187 lines
1<?php 2 11 12$url = basename($_SERVER ["PHP_SELF"]); 13$limit_end = 15; 28 29 <?php 30 $funcion = $campo = $valor = ""; 39 $valor = $_GET['mailCliente']; 40 $volver = "index_usersNew.php"; 41 51 $valor = $_GET['emailCliente']; 52 $volver = "index2TicketsEmp.php"; 53 63 $valor = $_GET['num_ticket']; 64 $volver = "index2TicketsEmp.php"; 65index.php https://gitlab.com/Princy008/Princy_143467_B_37_Atomic_project | PHP | 337 lines
1<?php 2require_once("../../../vendor/autoload.php"); 3 165 <tr> 166 <?php 167 $serial=0; 170 $serial++; ?> 171 <td><input type="checkbox" class="checkbox" name="mark[]" value="<?php echo $result['id']?>"></td> 172 <td><?php echo $serial?></td> 175 <td><?php echo $result['birthday']?></td> 176 <td><a href="view.php?id=<?php echo $result['id'] ?>" class="btn btn-primary" role="button">View</a> 177 <a href="edit.php?id=<?php echo $result['id'] ?>" class="btn btn-info" role="button">Edit</a> 178 <a href="delete.php?id=<?php echo $result['id'] ?>" class="btn btn-danger" role="button" id="delete" Onclick="return ConfirmDelete()">Delete</a> 179 <a href="trash.php?id=<?php echo $result['id'] ?>" class="btn btn-info" role="button">Trash</a> 180 </td>admin_frm_sanpham.php https://gitlab.com/Johnxim/ptdapm | PHP | 147 lines
1<?php 2require_once("server.php"); 99 $jsonData['total'] =(int)$row['total']; 100 $jsonData['totalpage'] =ceil($row['total']/$record); 101 $jsonData['page'] =(int)$page;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');Core.php https://gitlab.com/billyprice1/bdApi | PHP | 181 lines
1<?php 2 77 78 $pageNav['pages'] = ceil($totalItems / $perPage); 79search.php https://gitlab.com/ashish21590/live-rigalio | PHP | 330 lines
31 { ?> 32 <div class="container loading-sectn" style="text-align: center"><button class="btn" id="load_more" data-val = "0"><img class="img-responsive" style="display: none" id="loader" src="<?php echo str_replace('index.php','',base_url()) ?>content/images/search-pg/load-more.png"> </button></div> 33 56 { ?> 57 <div class="container loading-sectn" style="text-align: center"><button class="btn" id="load_more2" data-val = "0"><img class="img-responsive" style="display: none" id="loader2" src="<?php echo str_replace('index.php','',base_url()) ?>content/images/search-pg/load-more.png"> </button></div> 58 90 { ?> 91 <div class="container loading-sectn" style="text-align: center"><button class="btn" id="load_more1" data-val = "0"><img class="img-responsive" style="display: none" id="loader1" src="<?php echo str_replace('index.php','',base_url()) ?>content/images/search-pg/load-more.png"> </button></div> 92 104 105<script src="<?php echo base_url(); ?>content/js/hover.js"></script> 106<script src="content/js/jaliswall.js"></script> 261 var total_people_count="<?php echo $people_count[0]['no']; ?>"; 262 var people_text="<?php print_r($people); ?>"; 263 var per_page=4;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);customer_group.php https://gitlab.com/hazelnuts23/unitedfoodstuff | PHP | 406 lines
1<?php 2class ControllerSaleCustomerGroup extends Controller { 249 250 $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'))); 251memcache.php https://github.com/peetucket/ImpactProbe.git | PHP | 268 lines
1<?php defined('SYSPATH') or die('No direct script access.'); 2/** 6 * 7 * * [Memcache](http://www.php.net/manual/en/book.memcache.php) 8 * * [Memcached-tags](http://code.google.com/p/memcached-tags/) 65 * status | __NO__ | (_boolean_) Controls if the server should be flagged as online. Default __TRUE__ 66 * failure_callback | __NO__ | (_[callback](http://www.php.net/manual/en/language.pseudo-types.php#language.types.callback)_) Allows the user to specify a callback function to run upon encountering an error. The callback is run before failover is attempted. The function takes two parameters, the hostname and port of the failed server. Default __NULL__ 67 * 70 * * Kohana 3.0.x 71 * * PHP 5.2.4 or greater 72 * * Memcache (plus Memcached-tags for native tagging support) 79 * @copyright (c) 2009-2010 Kohana Team 80 * @license http://kohanaphp.com/license 81 */ 262 // We must sleep after flushing, or overwriting will not work! 263 // @see http://php.net/manual/en/function.memcache-flush.php#81420 264 sleep(1);IndexAction.class.php https://gitlab.com/llwhois/woaimm | PHP | 227 lines
1<?php 2class IndexAction extends Action { 64 $DataCount = $db->where($where)->count(); 65 $maxPage = ceil($DataCount/$pageSize); 66 $page = $page>$maxPage?1:$page; 111 if($DataCount){ 112 $maxPage = ceil($DataCount/$pageSize); 113 $page = $page>$maxPage?1:$page; 155 $DataCount = $db->where($where)->count(); 156 $maxPage = ceil($DataCount/$pageSize); 157 $page = $page>$maxPage?1:$page;work_his.php https://gitlab.com/dev.essetel/sjnuri | PHP | 505 lines
124 <dv class="his_top_data"> 125 <p><?php echo $row_va['vme_time'] ?><span>시간</span></p> 126 </dv> 164 <div class="search_bt"> 165 <button type=""><a href="./work_his.php?stx_y=<?php echo $prev_year;?>&stx_m=<?php echo $prev_month ;?>">이전달</a></button> 166 </div> 185 <div class="search_bt"> 186 <button type=""><a href="./work_his.php?stx_y=<?php echo $next_year;?>&stx_m=<?php echo $next_month;?>">다음달</a></button> 187 </div> 231 232 <tr class="edit_work" wk_idx="<?php echo $row['wk_idx'] ?>"> 233 <td><?php echo $row['wk_date'] ?></td> 233 <td><?php echo $row['wk_date'] ?></td> 234 <td><?php echo $row['mk_chdate'] ?></td> 235 <td>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);image.php https://github.com/patadejaguar/S.A.F.E.-Open-Source-Microfinance-Suite.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);Pager.php https://gitlab.com/crazybutterfly815/magento2 | PHP | 279 lines
1<?php 2/** 154 * @return bool 155 * @SuppressWarnings(PHPMD.BooleanGetMethodName) 156 */ 159 if (null === $this->_lastPage) { 160 $this->_lastPage = ceil($this->getCollectionSize() / $this->getLimit()); 161 if ($this->_lastPage <= 0) { 198 } else { 199 $half = ceil($this->_displayPages / 2); 200 if ($this->getCurrentPage() >= $half && $this->getCurrentPage() <= $this->getLastPageNum() - $half) { 259 } else { 260 $half = ceil($this->getFrameLength() / 2); 261 if ($this->getCurrentPage() >= $half && $this->getCurrentPage() <= $this->getLastPageNum() - $half) {class-wc-admin-log-table-list.php https://gitlab.com/campus-academy/krowkaramel | PHP | 395 lines
1<?php 2/** 15if ( ! class_exists( 'WP_List_Table' ) ) { 16 require_once ABSPATH . 'wp-admin/includes/class-wp-list-table.php'; 17} 77 ?> 78 <label for="filter-by-level" class="screen-reader-text"><?php esc_html_e( 'Filter by level', 'woocommerce' ); ?></label> 79 <select name="level" id="filter-by-level"> 79 <select name="level" id="filter-by-level"> 80 <option<?php selected( $selected_level, '' ); ?> value=""><?php esc_html_e( 'All levels', 'woocommerce' ); ?></option> 81 <?php 91 </select> 92 <?php 93 } 241 <select name="source" id="filter-by-source"> 242 <option<?php selected( $selected_source, '' ); ?> value=""><?php esc_html_e( 'All sources', 'woocommerce' ); ?></option> 243 <?phpthemes.php https://github.com/enoex/artisanchairs.git | PHP | 302 lines
35if ( current_user_can('install_themes') ) { 36 $help .= '<p>' . sprintf(__('You can find additional themes for your site by using the new <a href="%1$s">Theme Browser/Installer</a> functionality or by browsing the <a href="http://wordpress.org/extend/themes/">WordPress Theme Directory</a> directly and installing manually. To install a theme <em>manually</em>, <a href="%2$s">upload its ZIP archive with the new uploader</a> or copy its folder via FTP into your <code>wp-content/themes</code> directory.'), 'theme-install.php', 'theme-install.php?tab=upload' ) . '</p>'; 37 $help .= '<p>' . __('Once a theme is uploaded, you should see it on this page.') . '</p>' ; 51 if ( isset($wp_registered_sidebars) && count( (array) $wp_registered_sidebars ) ) { ?> 52<div id="message2" class="updated fade"><p><?php printf(__('New theme activated. This theme supports widgets, please visit the <a href="%s">widgets settings page</a> to configure them.'), admin_url('widgets.php') ); ?></p></div><?php 53 } else { ?> 53 } else { ?> 54<div id="message2" class="updated fade"><p><?php printf(__('New theme activated. <a href="%s">Visit site</a>'), get_bloginfo('url') . '/'); ?></p></div><?php 55 } 134<?php if ( $ct->screenshot ) : ?> 135<img src="<?php echo content_url($ct->stylesheet_dir . '/' . $ct->screenshot); ?>" alt="<?php _e('Current theme preview'); ?>" /> 136<?php endif; ?> 146<?php if ( $ct->tags ) : ?> 147<p><?php _e('Tags:'); ?> <?php echo join(', ', $ct->tags); ?></p> 148<?php endif; ?>Changelog.php https://gitlab.com/e0/X2CRM | PHP | 154 lines
1<?php 2/*********************************************************************************** 129 130 $parameters = array('limit'=>ceil(Profile::getResultsPerPage())); 131 $criteria->scopes = array('findAll'=>array($parameters));jquery.pajinate.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 328 lines
7 // Licensed under the MIT License (MIT-LICENSE.txt) 8 // http://www.opensource.org/licenses/mit-license.php 9 // Created: 2010-04-16 | Updated: 2010-04-26 69 // Calculate the number of pages needed 70 var number_of_pages = Math.ceil(total_items / options.items_per_page); 71 237 // Calculate the number of pages needed 238 var $number_of_pages = Math.ceil(total_items / options.items_per_page); 239 /*##################################################################*/ext.tag_sync.php https://github.com/amphibian/ext.tag_sync.ee_addon.git | PHP | 425 lines
1<?php 2 50 { 51 $batches = ceil($count->row['count'] / $this->batch_size); 52 $offset = ($current_batch - 1) * $this->batch_size; 84 // Build and run our update statement 85 $sql = "UPDATE exp_weblog_data SET `field_id_".ceil($custom_field)."` = CASE entry_id "; 86 foreach($tags as $entry_id => $tag) 336 // Update the field with our list of tags 337 $sql = "UPDATE exp_weblog_data SET `field_id_".ceil($custom_field)."` = '".$DB->escape_str(implode(',', $tags))."' WHERE entry_id = $entry_id"; 338 } 341 // We don't have any tags, or just removed them all, so zero out the field 342 $sql = "UPDATE exp_weblog_data SET `field_id_".ceil($custom_field)."` = '' WHERE entry_id = $entry_id"; 343 }threads.inc.php https://github.com/AlexChien/EY_BBS.git | PHP | 399 lines
1<?php 2 6 7$Id: threads.inc.php 16886 2008-11-26 05:08:30Z cnteacher $ 8*/ 106 $total = $db->result_first("SELECT count(*) FROM {$tablepre}threads WHERE fid='$fid' AND displayorder>=0"); 107 $tpage = ceil($total / $tpp); 108 $page = min($tpage, $page); 121 $total = $result['count']; 122 $tpage = ceil($total / $tpp); 123 $page = min($tpage, $page); 133 if($query) { 134 require_once DISCUZ_ROOT.'./include/misc.func.php'; 135 while ($thread = $db->fetch_array($query)) { 199 if($pidsdelete) { 200 require_once DISCUZ_ROOT.'./include/post.func.php'; 201all_doctor.php https://gitlab.com/sharadmohajan/xyz | PHP | 264 lines
99 <li><a href="all_patient.php">All Patient</a></li> 100 <li><a href="all_released.php">All Released</a></li> 101 <li><a href="room_list.php">All Room</a></li> 104 <li><form style="margin-top: 13px" role="form" action="doctor_info.php" method="get"> 105 <?php if(isset($_GET['search'])){ 106 $catchSearch=$_GET['search']; 153 <label>Filter by Name:</label> 154 <input type="text" name="filterByName" value="<?php //if(isset($_POST['filterByName'])) {echo $catchName;}?>" id="title"> 155 <label>Filter by Department:</label> 182 <td><?php $Dept['dept_id']=$info->dept_id;$Info=$doctor->prepare($Dept)->single_dept();echo $Info->dept_name;?></td> 183 <td><a href="doctor_view.php?doctor_id=<?php echo $info->doctor_id ?>" class="btn btn-info" role="button">View</a> 184 <a href="doctor_edit.php?doctor_id=<?php echo $info->doctor_id ?>" class="btn btn-primary" role="button">Edit</a> 185 <a href="doctor_delete.php?doctor_id=<?php echo $info->doctor_id ?>" class="btn btn-danger" role="button">Delete</a> 186 <a href="patient_list.php?doctor_id=<?php echo $info->doctor_id ?>" class="btn btn-primary" role="button">Patient List</a> 187BaseDrawing.php https://gitlab.com/adamlwalker/generatedata | PHP | 485 lines
22 * @package PHPExcel_Worksheet 23 * @copyright Copyright (c) 2006 - 2012 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 - 2012 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 }materials.php https://gitlab.com/kidaa/quantum.git | PHP | 193 lines
1<?php 2 150 } 151 return ceil($all_vals / $limit); 152 }category.php https://gitlab.com/nezam.technovista/news-project-php | PHP | 103 lines
1<?php include 'header.php'; ?> 2<div id="main-content"> 41 <div class="col-md-4"> 42 <a class="post-img" href="single.php?id=<?php echo $row["post_id"]; ?>"><img src="admin/upload/<?php echo $row["post_img"]; ?>" alt="" /></a> 43 </div> 45 <div class="inner-content clearfix"> 46 <h3><a href='single.php?id=<?php echo $row["post_id"]; ?>'><?php echo $row["title"]; ?></a></h3> 47 <div class="post-information"> 53 <i class="fa fa-user" aria-hidden="true"></i> 54 <a href='author.php?aid=<?php echo $row["author"]; ?>'><?php echo $row["user_name"]; ?></a> 55 </span> 98 </div> 99 <?php include 'sidebar.php'; ?> 100 </div> 102</div> 103<?php include 'footer.php'; ?>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 );index.php https://gitlab.com/avijit_kar/avijit_kar_149551_B35_atomic_project | PHP | 230 lines
15 16<?php 17require_once("../../../vendor/autoload.php"); 50 51$pages = ceil($recordCount/$itemsPerPage); 52$someData = $objcity->indexPaginator($page,$itemsPerPage); 82 <td width="450"> 83 <a href="pdf.php" class="btn btn-primary" role="button">Download as PDF</a> 84 <a href="xl.php" class="btn btn-primary" role="button">Download as XL</a> 84 <a href="xl.php" class="btn btn-primary" role="button">Download as XL</a> 85 <a href="email.php?list=1" class="btn btn-primary" role="button">Email to friend</a> 86 </td> 92 93 <form id="searchForm" action="index.php" method="get"> 94 <input type="text" value="" id="searchID" name="search" placeholder="Search" width="60" >listmhs.php https://gitlab.com/nova0893/androidevelop | PHP | 161 lines
2 3include('../config/koneksi.php'); 4 24 25<?php include('header.php');?> 26 75 76 <?php 77 $no = 1; 135 if($i == 1):?> 136 <li class='active' id="<?php echo $i;?>"><a href='vpagination/pagination.php?page=<?php echo $i;?>'><?php echo $i;?></a></li> 137 <?php else:?> 137 <?php else:?> 138 <li id="<?php echo $i;?>"><a href='vpagination/pagination.php?page=<?php echo $i;?>'><?php echo $i;?></a></li> 139 <?php endif;?>index.php https://bitbucket.org/Jubic/racetrack.git | PHP | 201 lines
1<?php 2include '../dbFunctions.php'; 8$rowperpage = 4; // Maximum icon(row) in one page 9$maxpage = ceil($total / $rowperpage); 10$pageno = 1; //Default page number 25// Doing paging navigation of Prev, and Next button, and showing the page number of current page 26$self = $_SERVER['PHP_SELF']; 27$nav = "<p>Showing page <b>" . $pageno . "</b> of <b>" . $maxpage . "</b> pages</p>"; 149 callBack: function() { 150 $(window.location).attr('href','../index.php'); 151 } 161 <div class="performance_button"> 162 <?php 163 if(count($data) <3){ 168 <div class="span-24"> 169 <a class="button white" href="show_slide.php?id=<?php echo $performance['performance_id']; ?>"><?php echo $performance['performance_name']; ?></a> 170 </div>2011-12-05-big-graph.html https://gitlab.com/nemote95/avita | HTML | 196 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 }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');BaseDrawing.php https://gitlab.com/albert925/lading-ach | PHP | 485 lines
22 * @package PHPExcel_Worksheet 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 33 * @package PHPExcel_Worksheet 34 * @copyright Copyright (c) 2006 - 2010 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 }queue.php https://gitlab.com/alexprowars/bitrix | PHP | 397 lines
1<?php 2/** 325 $deleteCount = count($list); 326 $portionCount = ceil($deleteCount / self::PORTION_QUANTITY); 327 $deleteNum = 0;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 */montage.c https://github.com/sza/TS6234-P47922.git | C | 139 lines
25% % 26% http://www.imagemagick.org/script/license.php % 27% % 133 iterations,1.0*iterations/elapsed_time,user_time,(long) 134 (elapsed_time/60.0+0.5),(long) ceil(fmod(elapsed_time,60.0))); 135 }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)smarty_internal_compile_for.php https://gitlab.com/fiesta-framework/Documentation | PHP | 145 lines
1<?php 2/** 46 47 $output = "<?php "; 48 if ($parameter == 1) { 62 if (isset($_attr['max'])) { 63 $output .= "\$_smarty_tpl->tpl_vars[$_statement[var]]->total = (int) min(ceil((\$_smarty_tpl->tpl_vars[$_statement[var]]->step > 0 ? $_attr[to]+1 - ($_statement[value]) : $_statement[value]-($_attr[to])+1)/abs(\$_smarty_tpl->tpl_vars[$_statement[var]]->step)),$_attr[max]);\n"; 64 } else { 64 } else { 65 $output .= "\$_smarty_tpl->tpl_vars[$_statement[var]]->total = (int) ceil((\$_smarty_tpl->tpl_vars[$_statement[var]]->step > 0 ? $_attr[to]+1 - ($_statement[value]) : $_statement[value]-($_attr[to])+1)/abs(\$_smarty_tpl->tpl_vars[$_statement[var]]->step));\n"; 66 } 106 107 return "<?php }} else { ?>"; 108 } 139 if ($openTag == 'forelse') { 140 return "<?php } ?>"; 141 } else {TranslateEditForm.php https://gitlab.com/reasonat/test8 | PHP | 239 lines
1<?php 2 108 // Approximate the number of rows to use in the default textarea. 109 $rows = min(ceil(str_word_count($source_array[0]) / 12), 10); 110 if (!$plural) {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); 210tracking.php https://gitlab.com/x33n/platform-application | PHP | 163 lines
1<?php 2/** 87 88 require_once __DIR__ . '/../app/bootstrap.php.cache'; 89 require_once __DIR__ . '/../app/AppKernel.php'; 128 $passingMinute = (int)(date('i')) + 1; 129 $currentPart = ceil($passingMinute / $rotateInterval); 130 } 138 $rawData['loggedAt'] = getLoggedAt(); 139 $data = json_encode($rawData) . PHP_EOL; 140 $fh = fopen($trackingFolder . DIRECTORY_SEPARATOR . $fileName, 'a'); 150if ($settings['piwik_host']) { 151 $piwikTrackingUrl = $settings['piwik_host'] . '/piwik.php'; 152 if ($settings['piwik_token_auth']) {class-wp-http-curl.php https://gitlab.com/webkod3r/tripolis | PHP | 385 lines
1<?php 2/** 116 if ( $is_local ) { 117 /** This filter is documented in wp-includes/class-wp-http-streams.php */ 118 $ssl_verify = apply_filters( 'https_local_ssl_verify', $ssl_verify ); 119 } elseif ( ! $is_local ) { 120 /** This filter is documented in wp-includes/class-wp-http-streams.php */ 121 $ssl_verify = apply_filters( 'https_ssl_verify', $ssl_verify ); 124 /* 125 * CURLOPT_TIMEOUT and CURLOPT_CONNECTTIMEOUT expect integers. Have to use ceil since. 126 * a value of 0 will allow an unlimited timeout. 127 */ 128 $timeout = (int) ceil( $r['timeout'] ); 129 curl_setopt( $handle, CURLOPT_CONNECTTIMEOUT, $timeout ); 147 curl_setopt( $handle, CURLOPT_FOLLOWLOCATION, false ); 148 if ( defined( 'CURLOPT_PROTOCOLS' ) ) // PHP 5.2.10 / cURL 7.19.4 149 curl_setopt( $handle, CURLOPT_PROTOCOLS, CURLPROTO_HTTP | CURLPROTO_HTTPS );js.php https://github.com/sarriaroman/PuntoUBP.git | PHP | 423 lines
32 33 var basesec = <?php echo $basesec;?>; 34 var maxsecs = <?php echo $maxsecs;?>; 46 tick(); 47 <?php if($flash == "yes"){?> 48 blink_new(); 118 } 119 $.post("<?php echo $CONFIG->wwwroot; ?>action/elggchat/leave?chatsession=" + sessionid, function(){ 120 $("#" + sessionid).remove(); 143 eraseCookie("elggchat_toolbar_minimized"); 144 $('#toggle_elggchat_toolbar').attr("title", "<?php echo elgg_echo("elggchat:toolbar:minimize");?>"); 145 } 339 340 $("#elggchat_friends_picker").append("<h3 class='settings'><?php echo elgg_echo('elggchat:friendspicker:online');?> (" + numOnline + ")</h3><table>" + tableDataOnline + "</table><h3 class='settings'><?php echo elgg_echo('elggchat:friendspicker:offline');?> (" + numOffline + ")</h3><table>" + tableDataOffline + "</table>"); 341pagination.php https://gitlab.com/ricardosanchez/prueba | PHP | 229 lines
1<?php 2/** 106 { 107 $range = ceil($currentPage / $step) + 1; 108 } 110 { 111 $range = ceil($currentPage / $step); 112 }BaseDrawing.php https://gitlab.com/FellowsDevel/delicto | PHP | 485 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 }SkyBlock.php https://gitlab.com/Skull3x/WorkingInProgress-Plugins-Sourcecode-For-Dev | PHP | 413 lines
1<?php 2 181 else{ 182 $X = ceil(($x - $chunks + 1) / $totalSize); 183 $difX = abs(($x - $chunks + 1) % $totalSize); 190 else{ 191 $Z = ceil(($z - $chunks + 1) / $totalSize); 192 $difZ = abs(($z - $chunks + 1) % $totalSize);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 }autoscaling_example.yaml https://gitlab.com/cgaikwad/heat-templates | YAML | 216 lines
90 sed -i "s/Require local/Require all granted/" /etc/httpd/conf.d/wordpress.conf 91 sed -i s/database_name_here/$db_name/ /etc/wordpress/wp-config.php 92 sed -i s/username_here/$db_user/ /etc/wordpress/wp-config.php 92 sed -i s/username_here/$db_user/ /etc/wordpress/wp-config.php 93 sed -i s/password_here/$db_password/ /etc/wordpress/wp-config.php 94 sed -i s/localhost/$db_host/ /etc/wordpress/wp-config.php 116 cpu_alarm_high: 117 type: OS::Ceilometer::Alarm 118 properties: 129 cpu_alarm_low: 130 type: OS::Ceilometer::Alarm 131 properties: 196 Wordpress site. 197 ceilometer_query: 198 value:class-wp-walker.php https://gitlab.com/VTTE/sitios-vtte | 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 {AbTestHelper.php https://gitlab.com/mautic-master/mautic | PHP | 119 lines
1<?php 2/** 92 $top = max($maxes); 93 $support['step_width'] = (ceil($top / 10) * 10); 94 107 'basedOn' => 'form.submissions', 108 'supportTemplate' => 'MauticPageBundle:SubscribedEvents\AbTest:bargraph.html.php' 109 );index.php https://gitlab.com/shaon2016/day13 | PHP | 208 lines
82 83 <?php 84 } 161 <td> 162 <a href="view.php?id=<?php echo $summery['id']?>" class="btn btn-info" role="button">View</a> 163 <a href="edit.php?id=<?php echo $summery['id']?>" class="btn btn-primary" role="button">Edit</a> 164 <a href="delete.php?id=<?php echo $summery['id']?>" class="btn btn-danger" role="button">Delete</a> 165 <a href="trash.php?id=<?php echo $summery['id']?>" class="btn btn-warning" role="button">Trash</a> 166 </td> 184 ?> 185 ><a href="index.php?pageNumber= <?php echo($pageNumber - 1) ?>>">Prev</a></li> 186 <?php echo $pagination ?> 196 ?> 197 ><a href="index.php?pageNumber= <?php echo($pageNumber + 1) ?>>">Next</a></li> 198 </ul>index.php https://gitlab.com/shaon2016/day13 | PHP | 213 lines
89 90 <?php 91 } 166 <td> 167 <a href="view.php?id=<?php echo $hobby['id']?>" class="btn btn-info" role="button">View</a> 168 <a href="edit.php?id=<?php echo $hobby['id']?>" class="btn btn-primary" role="button">Edit</a> 169 <a href="delete.php?id=<?php echo $hobby['id']?>" class="btn btn-danger" role="button">Delete</a> 170 <a href="trash.php?id=<?php echo $hobby['id']?>" class="btn btn-warning" role="button">Trash</a> 171 </td> 189 ?> 190 ><a href="index.php?pageNumber= <?php echo($pageNumber - 1) ?>>">Prev</a></li> 191 <?php echo $pagination ?> 201 ?> 202 ><a href="index.php?pageNumber= <?php echo($pageNumber + 1) ?>>">Next</a></li> 203 </ul>indexcopy.php https://gitlab.com/ehfahad/Library_Management_System | PHP | 356 lines
269 <option>Select any</option> 270 <option <?php if($singleItem->location=="Shelf 1"):?>selected<?php endif ?>>Shelf 1</option> 271 <option <?php if($singleItem->location=="Shelf 2"):?>selected<?php endif ?>>Shelf 2</option> 272 <option <?php if($singleItem->location=="Shelf 3"):?>selected<?php endif ?>>Shelf 3</option> 273 <option <?php if($singleItem->location=="Shelf 4"):?>selected<?php endif ?>>Shelf 4</option> 274 282 <option>Select any</option> 283 <option <?php if($singleItem->category=="Science Fiction"):?>selected<?php endif ?>>Science Fiction</option> 284 <option <?php if($singleItem->category=="Novel"):?>selected<?php endif ?>>Novel</option> 284 <option <?php if($singleItem->category=="Novel"):?>selected<?php endif ?>>Novel</option> 285 <option <?php if($singleItem->category=="Physics"):?>selected<?php endif ?>>Physics</option> 286 <option <?php if($singleItem->category=="Programming"):?>selected<?php endif ?>>Programming</option> 286 <option <?php if($singleItem->category=="Programming"):?>selected<?php endif ?>>Programming</option> 287 <option <?php if($singleItem->category=="Reference Book"):?>selected<?php endif ?>>Reference Book</option> 288marketing.php https://gitlab.com/reclamare/mao | PHP | 156 lines
1<?php 2class ControllerReportMarketing extends Controller { 143 144 $data['results'] = sprintf($this->language->get('text_pagination'), ($marketing_total) ? (($page - 1) * $this->config->get('config_limit_admin')) + 1 : 0, ((($page - 1) * $this->config->get('config_limit_admin')) > ($marketing_total - $this->config->get('config_limit_admin'))) ? $marketing_total : ((($page - 1) * $this->config->get('config_limit_admin')) + $this->config->get('config_limit_admin')), $marketing_total, ceil($marketing_total / $this->config->get('config_limit_admin'))); 145