100+ results results for 'php ceil repo:symfony/symfony' (798 ms)
1<?php 2 186 187 $days_between = ceil(abs($newDate - $newDate1) / 84600); 188 199 200 $days_between = ceil(abs($newDate - $newDate1) / 86400); 201SimpleFontData.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); 189CheckOut.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 }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. 282index.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; ?>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; 19released_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>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" 18Drawing.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) 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); 170Drawing.php https://gitlab.com/Iftekhar_ramim/AtomicProjects_127301_B21 | 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) imagehandlers.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 }class-gsc-table.php https://gitlab.com/memuller.web/wp_site | 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'; 344class_graph.php https://gitlab.com/mybbpl/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();NumberToLocalizedStringTransformer.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"; 65tags.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);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})();search.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;Pager.php https://gitlab.com/yousafsyed/easternglamor | 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) {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) imageimage.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);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 /*##################################################################*/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>BaseDrawing.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 }Pager.php https://github.com/ninjapenguin/kohana-Doctrine-module.git | PHP | 576 lines
1<?php 2/* 18 * and is licensed under the LGPL. For more information, see 19 * <http://www.phpdoctrine.org>. 20 */ 27 * @subpackage Pager 28 * @license http://www.opensource.org/licenses/lgpl-license.php LGPL 29 * @version $Revision$ 29 * @version $Revision$ 30 * @link www.phpdoctrine.org 31 * @since 0.9 128 $this->_setLastPage( 129 max(1, ceil($this->getNumResults() / $this->getMaxPerPage())) 130 );category.php https://bitbucket.org/zirrow/ecoelka.com.git | PHP | 412 lines
1<?php 2class ControllerProductCategory extends Controller { 332 333 $data['results'] = sprintf($this->language->get('text_pagination'), ($product_total) ? (($page - 1) * $limit) + 1 : 0, ((($page - 1) * $limit) > ($product_total - $limit)) ? $product_total : ((($page - 1) * $limit) + $limit), $product_total, ceil($product_total / $limit)); 334 345 346 if ($limit && ceil($product_total / $limit) > $page) { 347 $this->document->addLink($this->url->link('product/category', 'path=' . $category_info['category_id'] . '&page='. ($page + 1)), 'next');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 */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/staging06/myproject | 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 {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 );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 }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 {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>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 {UploadQueue.cpp https://github.com/epitech-labfree/FireBreath.git | C++ | 380 lines
6 New BSD License 7 http://www.opensource.org/licenses/bsd-license.php 8 - or - 58 d["current_queue_files_remaining"] = files_waiting; 59 d["batches_remaining"] = ceil(static_cast<float>(files_waiting) / static_cast<float>(batch_size)); 60Core.php https://gitlab.com/billyprice1/bdApi | PHP | 181 lines
1<?php 2 77 78 $pageNav['pages'] = ceil($totalItems / $perPage); 79users.php https://gitlab.com/kidaa/quantum.git | PHP | 200 lines
1<?php 2namespace A; 37 } 38 return ceil($all_vals / $limit) > 1 ? ceil($all_vals / $limit) : 1; 39 } 88 $_SESSION['msg'] = 'success'; 89 $this->engine->url->redirect(PRTCL . "://" . $this->engine->host . ADM_PATH . "index.php?page=users&view=tiny&id=" . 90 $this->engine->db->getLastId()); 172 'caption' => $this->language['users'], 173 'link' => 'index.php?page=users' 174 );cat_discount_convert.php https://gitlab.com/alexprowars/bitrix | PHP | 216 lines
1<? 2require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_before.php"); 3require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/catalog/prolog.php"); 14 15 require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_js.php"); 16 39 $aboutMinute = ($maxMessage-CCatalogDiscountConvert::$intConverted)/CCatalogDiscountConvert::$intConvertPerStep*$max_execution_time/60; 40 $strAbout = ($aboutMinute >= 1 ? str_replace('#MIN#', ceil($aboutMinute), GetMessage('CAT_DISC_CONVERT_TOTAL_MIN')) : str_replace('#SEC#', ceil($aboutMinute*60), GetMessage('CAT_DISC_CONVERT_TOTAL_SEC'))); 41 43 "MESSAGE"=>GetMessage("CAT_DISC_CONVERT_IN_PROGRESS"), 44 "DETAILS" => str_replace(array('#COUNT#', '#PERCENT#', '#TIME#'), array($converted, ceil(CCatalogDiscountConvert::$intConverted/$maxMessage*100), $strAbout), GetMessage('CAT_DISC_CONVERT_TOTAL')), 45 "HTML"=>true, 66 array( 67 '/bitrix/admin/cat_discount_edit.php?lang='.LANGUAGE_ID.'&ID='.$arOneError['ID'], 68 htmlspecialcharsbx($arOneError['NAME']),cocktail.html.erb https://gitlab.com/coderbcn/online.catering | Ruby HTML | 259 lines
38 <div class="menu_inclusions_title_div"> 39 <span>Cocktail Php 190.00</span> 40 </div> 99 <div class="menu_inclusions_title_div"> 100 <span>Cocktail Php 170.00</span> 101 </div> 214 <li>Additional Tents</li> 215 <li>Ceiling Decors</li> 216 <li>Floral Arrangements</li>interp-builtin.cpp https://gitlab.com/Blueprint-Marketing/hhvm | C++ | 324 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 +----------------------------------------------------------------------+ 15*/ 16#include "hphp/hhbbc/interp.h" 17jquery.window.js https://gitlab.com/deesoft/yii2-biz3distro | JavaScript | 376 lines
5 * 6 * Licensed under the freeware license: http://www.jeasyui.com/license_freeware.php 7 * To use it on other terms please contact us: info@jeasyui.com 43 var parent = pp.parent(); 44 opts.left = Math.ceil((parent.width() - width) / 2 + parent.scrollLeft()); 45 } else { 45 } else { 46 opts.left = Math.ceil(($(window)._outerWidth() - width) / 2 + $(document).scrollLeft()); 47 } 59 var parent = pp.parent(); 60 opts.top = Math.ceil((parent.height() - height) / 2 + parent.scrollTop()); 61 } else { 61 } else { 62 opts.top = Math.ceil(($(window)._outerHeight() - height) / 2 + $(document).scrollTop()); 63 }date.js https://gitlab.com/Blueprint-Marketing/interoccupy.net | 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 });class.jetpack-sync-module-posts.php https://bitbucket.org/ericstrom/ballmerpeak.git | PHP | 410 lines
1<?php 2 2 3require_once dirname( __FILE__ ) . '/class.jetpack-sync-settings.php'; 4 94 95 return (int) ceil( $count / self::ARRAY_CHUNK_SIZE ); 96 } 221 222 /** This filter is already documented in core. wp-includes/post-template.php */ 223 if ( Jetpack_Sync_Settings::get_setting( 'render_filtered_content' ) && $post_type->public ) {BaseDrawing.php https://gitlab.com/Lidbary/PHPRunner | 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 }Paginator.php https://gitlab.com/oytunistrator/92five | PHP | 460 lines
1<?php namespace Illuminate\Pagination; 2 113 { 114 $this->lastPage = ceil($this->total / $this->perPage); 115 253 { 254 return min($this->currentPage, ceil($total / $this->perPage)); 255 }ico.php http://lansuite.googlecode.com/svn/trunk/ | PHP | 729 lines
1<?php 2/* 226 227$Zbytek=(4-ceil(($Width/(8/$biBitCount)))%4)%4; 228 287//Maska 288$Zbytek=(4-ceil(($Width/(8)))%4)%4; 289for($y=$Height-1;$y>=0;$y--)gallery.php git://github.com/imagecms/ImageCMS.git | PHP | 307 lines
1<?php 2 217 $paginationConfig['base_url'] = site_url('gallery/thumbnails/' . $id); 218 $paginationConfig['total_rows'] = ceil($album[count] / 15); 219 $paginationConfig['last_link'] = ceil($album[count] / 15); 224 $paginationConfig['num_links'] = 3; 225 include_once "./templates/{$this->config->item('template')}/paginations.php"; 226 306 307/* End of file gallery.php */category.tpl https://gitlab.com/12chakram/Bigkart | Smarty Template | 225 lines
107 <?php } ?> 108 <div class="col-xs-6 col-lg-<?php echo $span;?> col-sm-<?php echo $small;?> col-xs-<?php echo $mini;?>"> 109 <div class="product-block"> 113 <?php } ?> 114 <a class="img" href="<?php echo $product['href']; ?>"><img src="<?php echo $product['thumb']; ?>" title="<?php echo $product['name']; ?>" alt="<?php echo $product['name']; ?>" /></a> 115 <?php if( $categoryPzoom ) { $zimage = str_replace( "cache/","", preg_replace("#-\d+x\d+#", "", $product['thumb'] )); ?> 143 144 <div class="wishlist"><a class="icon-heart" onclick="addToWishList('<?php echo $product['product_id']; ?>');" data-placement="top" data-toggle="tooltip" data-original-title="<?php echo $button_wishlist; ?>"><span><?php echo $button_wishlist; ?></span></a></div> 145 <div class="compare"><a class="icon-retweet" onclick="addToCompare('<?php echo $product['product_id']; ?>');" data-placement="top" data-toggle="tooltip" data-original-title="<?php echo $button_compare; ?>"><span><?php echo $button_compare; ?></span></a></div> 175 176 $('.display').html('<span style="float: left;"><?php echo $text_display; ?></span><a class="list active"><em><?php echo $text_list; ?></em></a><a class="grid" onclick="display(\'grid\');"><em><?php echo $text_grid; ?></em></a>'); 177 185 186 $('.display').html('<span style="float: left;"><?php echo $text_display; ?></span><a class="list" onclick="display(\'list\');"></span><em><?php echo $text_list; ?></em></a><a class="grid active"><em><?php echo $text_grid; ?></em></a>'); 187base_sound_manager.cpp git://github.com/scummvm/scummvm.git | C++ | 298 lines
24 * This file is based on WME Lite. 25 * http://dead-code.org/redir.php?target=wmelite 26 * Copyright (c) 2011 Jan Nedoma 243 _volumeMasterPercent = percent; 244 setMasterVolume((int)ceil(percent * 255.0 / 100.0)); 245 return STATUS_OK;handlers.dev.js http://buddypress-media.googlecode.com/svn/bp_media/trunk/ | JavaScript | 452 lines
39 jQuery('.bar', item).width( w * bytesDone / bytesTotal ); 40 jQuery('.percent', item).html( Math.ceil(bytesDone / bytesTotal * 100) + '%' ); 41 111 else { 112 item.load('async-upload.php', {attachment_id:serverData, fetch:f}, function(){prepareMediaItemInit(fileObj);updateMediaForm()}); 113 } 146 jQuery.ajax({ 147 url: 'admin-ajax.php', 148 type: 'post', 164 jQuery.ajax({ 165 url: 'admin-ajax.php', 166 type: 'post',marketing.php https://gitlab.com/firstrate/firstrate | 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'))); 145ProgressFormatter.php https://gitlab.com/dzakiafif/cokelatklasik | PHP | 183 lines
1<?php 2 3/* 4 * This file is part of PhpSpec, A php toolset to drive emergent 5 * design by specification. 13 14namespace PhpSpec\Formatter; 15 15 16use PhpSpec\Console\IO; 17use PhpSpec\Event\SuiteEvent; 17use PhpSpec\Event\SuiteEvent; 18use PhpSpec\Event\ExampleEvent; 19use PhpSpec\Listener\StatisticsCollector; 96 $specProgress = ($totalSpecsCount == 0) ? 1 : ($stats->getTotalSpecs() / $totalSpecsCount); 97 $targetWidth = ceil($this->getIO()->getBlockWidth() * $specProgress); 98 asort($counts);index.php https://gitlab.com/Emran04/atomic_project | PHP | 155 lines
49 50<?php include_once '../../../includes/header.php' ?> 51 53 54 <?php include_once '../../../includes/sidebar.php' ?> 55 96 <tbody> 97 <?php 98 $sl = 0; 106 <a href="view.php?id=<?= $city['id'] ?>" class="btn btn-primary">View</a> 107 <a href="edit.php?id=<?= $city['id'] ?>" class="btn btn-primary">Edit</a> 108 <a href="delete.php?id=<?= $city['id'] ?>" class="btn btn-danger dl">Delete</a> 148 149<?php include_once '../../../includes/footer.php' ?> 150generate_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 }insertEmotions.js https://gitlab.com/wuhang2003/phpwind | JavaScript | 235 lines
1/** 2 * PHPWind PAGE JS 3 * @Copyright Copyright 2011, phpwind.com 10 /** 11 * PHPWind util Library 12 * @Copyright 愚人码头 110 var emotion_arr = [], 111 page_count = Math.ceil(o['emotion'].length/page_size); 112mapfile.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)); 29mnw-themepage-handler.php https://github.com/singpolyma/mnw.git | PHP | 242 lines
44 $actions = array( 45 'subscribe' => array('subscribe.php', 'mnw_parse_subscribe'), 46 'get_notice' => array('get_notice.php', 'mnw_get_notice'), 75 <ul> 76 <li><a href="<?php echo attribute_escape(get_option('mnw_themepage_url')); ?>" title="<?php _e('Go to the subscribe form', 'mnw'); ?>"><?php _e('Subscribe', 'mnw'); ?></a></li> 77 <li><a href="<?php echo attribute_escape(mnw_set_action('notices') . '&type=sent'); ?>" title="<?php _e('Display sent notices', 'mnw'); ?>"><?php _e('Sent notices', 'mnw'); ?></a></li> 77 <li><a href="<?php echo attribute_escape(mnw_set_action('notices') . '&type=sent'); ?>" title="<?php _e('Display sent notices', 'mnw'); ?>"><?php _e('Sent notices', 'mnw'); ?></a></li> 78 <li><a href="<?php echo attribute_escape(mnw_set_action('notices') . '&type=received'); ?>" title="<?php _e('Display received notices', 'mnw'); ?>"><?php _e('Received notices', 'mnw'); ?></a></li> 79 </ul> 141 <h3><?php _e('Notice', 'mnw'); ?></h3> 142 <p><?php _e('Notice not found.', 'mnw'); ?></p> 143<?php 234 </div> 235 <a href="<?php echo attribute_escape(mnw_set_action('notices') . "&type=$data[0]&format=atom"); ?>" title="<?php _e('Display Atom feed of notices', 'mnw');?>"><?php _e('Atom feed', 'mnw'); ?></a> 236 </div>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-27jqplot.enhancedLegendRenderer.js https://bitbucket.org/hybird/creme_crm | JavaScript | 306 lines
9 * jqPlot is currently available for use in all personal or commercial projects 10 * under both the MIT (http://www.opensource.org/licenses/mit-license.php) and GPL 11 * version 2.0 (http://www.gnu.org/licenses/gpl-2.0.html) licenses. This means that you can 15 * know of any substantial use of jqPlot. You can reach the author at: 16 * chris at jqplot dot com or see http://www.jqplot.com/info.php . 17 * 18 * If you are feeling kind and generous, consider supporting the project by 19 * making a donation at: http://www.jqplot.com/donate.php . 20 * 97 if (!this.numberColumns){ 98 nc = Math.ceil(series.length/nr); 99 } 105 nc = this.numberColumns; 106 nr = Math.ceil(series.length/this.numberColumns); 107 }template.php https://gitlab.com/Haithamgit/Project | PHP | 440 lines
1<?php 2 138 'format' => '', 139 'total' => ceil( (int) $bbp->search_query->found_posts / (int) $r['posts_per_page'] ), 140 'current' => (int) $bbp->search_query->paged,all_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> 187ImageHelper.php git://github.com/croogo/croogo.git | PHP | 188 lines
1<?php 2 73 if (($size[1]/$height) > ($size[0]/$width)) { 74 $width = ceil(($size[0]/$size[1]) * $height); 75 } else { 75 } else { 76 $height = ceil($width / ($size[0]/$size[1])); 77 }Page.class.php https://gitlab.com/xuebutayan/yshop | PHP | 154 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// +---------------------------------------------------------------------- 51 } 52 $this->totalPages = ceil($this->totalRows/$this->listRows); //总页数 53 $this->coolPages = ceil($this->totalPages/$this->rollPage); 76 $p = $this->varPage; 77 $nowCoolPage = ceil($this->nowPage/$this->rollPage); 78jpgraph_imgtrans.php https://gitlab.com/ablu/invertika-backup-web | PHP | 223 lines
1<?php 2//======================================================================= 2//======================================================================= 3// File: JPGRAPH_IMGTRANS.PHP 4// Description: Extension for JpGraph to do some simple img transformations 5// Created: 2003-09-06 6// Ver: $Id: jpgraph_imgtrans.php 1106 2009-02-22 20:16:35Z ljp $ 7// 41 if( $aMinSize ) 42 $hh = ceil($h * $aHorizon / ($aSkewDist+$h)); 43 else 116 if( $aMinSize ) 117 $ww = ceil($w * $aHorizon / ($aSkewDist+$w)); 118 elseindex.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); //????? 72thememove-blog.php https://bitbucket.org/super-firma/zdrojove_soubory.git | PHP | 248 lines
1<?php 2 51 52 $this->num_pages = intval( $atts['total_posts'] ) != - 1 ? ceil( $total_posts / $posts_per_page ) : $this->query->max_num_pages; 53 } 78 79 $format = $wp_rewrite->using_index_permalinks() && ! strpos( $pagenum_link, 'index.php' ) ? 'index.php/' : ''; 80 $format .= $wp_rewrite->using_permalinks() ? user_trailingslashit( $wp_rewrite->pagination_base . '/%#%', 'paged' ) : '?paged=%#%';AbTestHelper.php https://gitlab.com/randydanniswara/website | 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 );class-wpml-string-translation-table.php https://bitbucket.org/ed47/epfl-smart-move.git | PHP | 331 lines
1<?php 2 24 <table id="icl_string_translations" class="widefat" cellspacing="0"> 25 <?php 26 $this->render_table_header_or_footer( 'thead' ); 92 <div class="icl-st-original"<?php _icl_string_translation_rtl_div( $icl_string['string_language'] ) ?>> 93 <img src="<?php echo esc_url( $sitepress->get_flag_url( $icl_string['string_language'] ) ) ?>"> <?php echo esc_html( $icl_string['value'] ) ?> 94 </div> 166 data-lang="<?php echo $lang['code']; ?>" 167 <?php if ( isset( $icl_string['translations'][ $lang['code'] ] ) ): ?>id="icl_st_ta_<?php echo esc_attr( $icl_string['translations'][ $lang['code'] ]['id'] ) ?>"<?php endif; ?> 168 ><?php echo esc_html( $string_value ) ?></textarea> 184 <?php echo $tr_complete_checked ?> 185 <?php if ( isset( $icl_string['translations'][ $lang['code'] ] ) ): ?>id="icl_st_cb_<?php echo esc_attr( $icl_string['translations'][ $lang['code'] ]['id'] ) ?>"<?php endif; ?> 186 /> 216 </span> 217 <input type="hidden" id="icl_st_wc_<?php echo esc_attr( $string_id ) ?>" value="<?php 218 echo $WPML_String_Translation->estimate_word_count( $icl_string['value'], $icl_string['string_language'] ) ?>"/>pagination.php https://gitlab.com/lankerd/paGO---Testing-Site | PHP | 229 lines
1<?php 2/** 106 { 107 $range = ceil($currentPage / $step) + 1; 108 } 110 { 111 $range = ceil($currentPage / $step); 112 }user.php https://gitlab.com/lisit1003/TTPHPServer | PHP | 176 lines
1<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); 2 2 3include_once(APPPATH."core/TT_Controller.php"); 4 55 'page'=>$start, 56 'count'=>ceil($count/10), 57 'departs'=>$_departs 134 $filename = time().".".$ext; 135 $input = file_get_contents("php://input"); 136 file_put_contents('./download/'.$filename, $input);function.math.php https://gitlab.com/staging06/myproject | PHP | 91 lines
1<?php 2/** 15 * 16 * @link http://www.smarty.net/manual/en/language.function.math.php {math} 17 * (Smarty online manual) 27 static $_allowed_funcs = array( 28 'int' => true, 'abs' => true, 'ceil' => true, 'cos' => true, 'exp' => true, 'floor' => true, 29 'log' => true, 'log10' => true, 'max' => true, 'min' => true, 'pi' => true, 'pow' => true,class-wc-report-stock.php https://gitlab.com/webkod3r/tripolis | PHP | 194 lines
1<?php 2 7if ( ! class_exists( 'WP_List_Table' ) ) { 8 require_once( ABSPATH . 'wp-admin/includes/class-wp-list-table.php' ); 9} 126 ?><p> 127 <?php 128 $actions = array(); 131 $actions['edit'] = array( 132 'url' => admin_url( 'post.php?post=' . $action_id . '&action=edit' ), 133 'name' => __( 'Edit', 'woocommerce' ), 150 ?> 151 </p><?php 152 break; 190 'per_page' => $per_page, 191 'total_pages' => ceil( $this->max_items / $per_page ) 192 ) );AdminWindow.php http://mlepp.googlecode.com/svn/trunk/ | PHP | 259 lines
1<?php 2namespace ManiaLivePlugins\MLEPP\Admin\Gui\Windows; 179 $this->page_items = floor( ($this->table->getSizeY()-12) / $this->item_height); 180 $this->page_last = ceil(count($this->records) * $this->item_height / max(1, $this->table->getSizeY()-12)); 181 }EnvironmentWindow.php http://mlepp.googlecode.com/svn/trunk/ | PHP | 250 lines
1<?php 2 96 $count = $this->modList->countMods(); 97 $this->lastPage = ceil($count / $itemCount); 98ImageMagic.php https://bitbucket.org/kiruthiga208/expertplus_enc.git | PHP | 334 lines
1<?php 2/** 32 if (!(extension_loaded('imagick'))) { 33 throw new \RuntimeException('You need to install Imagick PHP Extension OR use http://github.com/Gregwar/Image library'); 34 } 301 foreach ($this->image as $frame) { 302 $this->image->cropImage(ceil($width * $geo['height'] / $height), $geo['height'], (($geo['width'] - ($width * $geo['height'] / $height)) / 2), 0); 303 $frame->setImagePage($width, $height, 0, 0); 305 } else { 306 $this->image->cropImage(ceil($width * $geo['height'] / $height), $geo['height'], (($geo['width'] - ($width * $geo['height'] / $height)) / 2), 0); 307 }user_permission.php https://bitbucket.org/Hibiki08/goodlack.git | PHP | 460 lines
1<?php 2class ControllerUserUserPermission extends Controller { 246 247 $data['results'] = sprintf($this->language->get('text_pagination'), ($user_group_total) ? (($page - 1) * $this->config->get('config_limit_admin')) + 1 : 0, ((($page - 1) * $this->config->get('config_limit_admin')) > ($user_group_total - $this->config->get('config_limit_admin'))) ? $user_group_total : ((($page - 1) * $this->config->get('config_limit_admin')) + $this->config->get('config_limit_admin')), $user_group_total, ceil($user_group_total / $this->config->get('config_limit_admin'))); 248printthread.php https://gitlab.com/mybbpl/ppm-1.8 | PHP | 258 lines
1<?php 2/** 11define("IN_MYBB", 1); 12define('THIS_SCRIPT', 'printthread.php'); 13 15 16require_once "./global.php"; 17require_once MYBB_ROOT."inc/functions_post.php"; 17require_once MYBB_ROOT."inc/functions_post.php"; 18require_once MYBB_ROOT."inc/class_parser.php"; 19$parser = new postParser; 98$postcount = (int)$thread['replies']+1; 99$pages = ceil($postcount/$perpage); 100 116{ 117 $multipage = printthread_multipage($postcount, $perpage, $page, "printthread.php?tid={$tid}"); 118}MY_Pagination.php http://toan-friendly-ch4n.googlecode.com/svn/trunk/ | PHP | 339 lines
1<?php 2class MY_Pagination extends CI_Pagination { 25 // Calculate the total number of pages 26 $num_pages = ceil($this->total_rows / $this->per_page); 27 186 // Calculate the total number of pages 187 $num_pages = ceil($this->total_rows / $this->per_page); 188strptime.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 355 lines
11 12 // tm_isdst is in other docs; why not PHP? 13 47 var jan1 = new Date(Date.UTC(d.getUTCFullYear(), 0, 1)); 48 o.tm_yday = Math.ceil((d - jan1) / (1000 * 60 * 60 * 24)); 49 }; 65 66/* Fix: Locale alternatives are supported though not documented in PHP; see http://linux.die.net/man/3/strptime 67Ec 89 // BEGIN REDUNDANT 90 this.php_js = this.php_js || {}; 91 this.setlocale('LC_ALL', 0); // ensure setup of localization variables takes place 93 94 var phpjs = this.php_js; 95 var locale = phpjs.localeCategories.LC_TIME;webcore.gallery.php https://webcore.svn.codeplex.com/svn | PHP | 374 lines
1<?php 2/** 36 $this->state->setTotalRecordCount($recordCount); 37 $pageCount = intval(ceil($recordCount / $this->pageSize)); 38 $this->state->setPageCount($pageCount);admin_insts_db.php https://github.com/azeckoski/az-php-sandbox.git | PHP | 326 lines
24// login if not autheticated 25require $ACCOUNTS_PATH.'include/auth_login_redirect.php'; 26 146 "<a href='admin_insts.php'>Institutions</a> - " . 147"<a href='admin_perms.php'>Permissions</a> - <a href='admin_roles.php'>Roles</a>" . 148 " <strong>** WARNING: This tool is deprecated! **</strong>" . 164 165<?php include $ACCOUNTS_PATH.'include/top_header.php'; ?> 166<script type="text/javascript"> 180<?php //INCLUDE THE HEADER 181include $ACCOUNTS_PATH.'include/header.php'; 182 ?> 323</div> 324<?php include $ACCOUNTS_PATH.'include/footer.php'; // Include the FOOTER ?> 325index.php https://gitlab.com/yameen15/AtomicProjectp5 | PHP | 161 lines
1<?php 2session_start(); 71 <a href="create.php" class="btn btn-success" role="button">Create again</a> 72 <a href="trashed.php" class="btn btn-primary" role="button">Trashed Data</a> 73 <div id="message"> 73 <div id="message"> 74 <?php 75 if (array_key_exists('message', $_SESSION) && !empty($_SESSION['message'])) { 114 <td><?php echo $data['name']?></td> 115 <td><?php echo $data['hobby']?></td> 116 <td> 116 <td> 117 <a href="view.php?id=<?php echo $data['id']?>" class="btn btn-info" role="button">View</a> 118 <a href="edit.php?id=<?php echo $data['id']?>" class="btn btn-success" role="button">Edit</a> 118 <a href="edit.php?id=<?php echo $data['id']?>" class="btn btn-success" role="button">Edit</a> 119 <a href="delete.php?id=<?php echo $data['id']?>" class="btn btn-danger" id="delete" role="button">Delete</a> 120scheme.js https://gitlab.com/haomaro1706/serprogreso | JavaScript | 248 lines
28 29 var keywords = makeKeywords("λ case-lambda call/cc class define-class exit-handler field import inherit init-field interface let*-values let-values let/ec mixin opt-lambda override protect provide public rename require require-for-syntax syntax syntax-case syntax-error unit/sig unless when with-syntax and begin call-with-current-continuation call-with-input-file call-with-output-file case cond define define-syntax delay do dynamic-wind else for-each if lambda let let* let-syntax letrec letrec-syntax map or syntax-rules abs acos angle append apply asin assoc assq assv atan boolean? caar cadr call-with-input-file call-with-output-file call-with-values car cdddar cddddr cdr ceiling char->integer char-alphabetic? char-ci<=? char-ci<?php char-ci=? char-ci>=? char-ci>? char-downcase char-lower-case? char-numeric? char-ready? char-upcase char-upper-case? char-whitespace? char<=? char<?php char=? char>=? char>? char? close-input-port close-output-port complex? cons cos current-input-port current-output-port denominator display eof-object? eq? equal? eqv? eval even? exact->inexact exact? exp expt #f floor force gcd imag-part inexact->exact inexact? input-port? integer->char integer? interaction-environment lcm length list list->string list->vector list-ref list-tail list? load log magnitude make-polar make-rectangular make-string make-vector max member memq memv min modulo negative? newline not null-environment null? number->string number? numerator odd? open-input-file open-output-file output-port? pair? peek-char port? positive? procedure? quasiquote quote quotient rational? rationalize read read-char real-part real? remainder reverse round scheme-report-environment set! set-car! set-cdr! sin sqrt string string->list string->number string->symbol string-append string-ci<=? string-ci<?php string-ci=? string-ci>=? string-ci>? string-copy string-fill! string-length string-ref string-set! string<=? string<?php string=? string>=? string>? string? substring symbol->string symbol? #t tan transcript-off transcript-on truncate values vector vector->list vector-fill! vector-length vector-ref vector-set! with-input-from-file with-output-to-file write write-char zero?"); 30 var indentKeys = makeKeywords("define let letrec let* lambda");pagination.php https://gitlab.com/talueses/SIPVE | PHP | 212 lines
1<?php 2/*******************************************************************************\ 37?> 38<?php 39/************************************************************\ 40 * 41 * PHP Array Pagination Copyright 2007 - Derek Harvey 42 * www.lotsofcode.com 43 * 44 * This file is part of PHP Array Pagination . 45 * 45 * 46 * PHP Array Pagination is free software; you can redistribute it and/or modify 47 * it under the terms of the GNU General Public License as published by 69 70 if ($_SESSION['PHP_SELF']!=$_SERVER["PHP_SELF"]){ 71 $_SESSION['PHP_SELF'] = $_SERVER["PHP_SELF"];FileStore.php https://gitlab.com/mika_22/EscuelaAnexa | PHP | 252 lines
1<?php 2 84 // operation that may be performed on the cache. We'll round this out. 85 $time = ceil(($expire - time()) / 60); 86merkleblock.h git://github.com/bitcoin/bitcoin.git | C Header | 173 lines
3// Distributed under the MIT software license, see the accompanying 4// file COPYING or http://www.opensource.org/licenses/mit-license.php. 5 33 * 34 * SIZE <= 10 + ceil(32.25*N) 35 *graph.vue https://gitlab.com/bugagazavr/gitlab-ce.git | Vue | 340 lines
10import GraphDeployment from './graph/deployment.vue'; 11import GraphPath from './graph/path.vue'; 12import MonitoringMixin from '../mixins/monitoring_mixins'; 25 GraphDeployment, 26 GraphPath, 27 GraphLegend, 101 return { 102 paddingBottom: `${Math.ceil(this.baseGraphHeight * 100) / this.baseGraphWidth || 0}%`, 103 };jquery.mb.YTPlayer.js https://gitlab.com/Blueprint-Marketing/cdnjs | JavaScript | 327 lines
7 Licences: MIT, GPL 8 http://www.opensource.org/licenses/mit-license.php 9 http://www.gnu.org/licenses/gpl.html 86 else 87 data.height= data.ratio=="16/9" ? Math.ceil((9*data.width)/16):Math.ceil((3*data.width)/4); 88ratings.php https://gitlab.com/Magi1053/Extra | PHP | 221 lines
1<?php 2// Prevent file from being loaded directly 100 101 $ceil = ceil( $num ); 102 102 103 $half = $ceil - 0.5; 104 105 if ( $num >= $half + 0.25 ) { 106 $rating_average = $ceil; 107 } else if ( $num < $half - 0.25 ) {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) {site-health.js https://gitlab.com/VTTE/sitios-vtte | JavaScript | 316 lines
94 var failedTests = ( parseInt( SiteHealth.site_status.issues.recommended, 0 ) * 0.5 ) + ( parseInt( SiteHealth.site_status.issues.critical, 0 ) * 1.5 ); 95 var val = 100 - Math.ceil( ( failedTests / totalTests ) * 100 ); 96 181 function( response ) { 182 /** This filter is documented in wp-admin/includes/class-wp-site-health.php */ 183 AppendIssue( wp.hooks.applyFilters( 'site_status_test_result', response.data ) );tax_class.php https://gitlab.com/m.mirsamie/opencart | PHP | 400 lines
1<?php 2class ControllerLocalisationTaxClass extends Controller { 245 246 $data['results'] = sprintf($this->language->get('text_pagination'), ($tax_class_total) ? (($page - 1) * $this->config->get('config_limit_admin')) + 1 : 0, ((($page - 1) * $this->config->get('config_limit_admin')) > ($tax_class_total - $this->config->get('config_limit_admin'))) ? $tax_class_total : ((($page - 1) * $this->config->get('config_limit_admin')) + $this->config->get('config_limit_admin')), $tax_class_total, ceil($tax_class_total / $this->config->get('config_limit_admin'))); 247sitemap.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.