100+ results results for 'php ceil repo:thepurpleblob/gumoodle' (849 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); 201released_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); 189MineBlock.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'; 344blog-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'))); 254SearchHelper.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; 19empty-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" 18attribute.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) imageclass-wp-walker.php https://gitlab.com/juanito.abelo/nlmobile | 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://gitlab.com/Zinnurain/destination_finder_beta | 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) 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); 170daily_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>MoradorController.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'); 255class_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();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 }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"; 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');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'))); 251IndexAction.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;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) {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);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));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>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 /*##################################################################*/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> 187materials.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 );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;?>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/rsilveira1987/Expresso | 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 }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 */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-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 *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 );pagination.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>marketing.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'))); 145trashed.php https://gitlab.com/Princy008/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();index.php https://gitlab.com/Sajibcse/ATOMIC_PROJECT_SEIP143979_SAJIB_B37 | 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 }?> 219paginator.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 {Furnace.php https://gitlab.com/Skull3x/ClearSky | PHP | 287 lines
1<?php 2namespace pocketmine\tile; 207 $this->namedtag->BurnTime = new Short("BurnTime", $this->namedtag["BurnTime"] - 1); 208 $this->namedtag->BurnTicks = new Short("BurnTicks", ceil(($this->namedtag["BurnTime"] / $this->namedtag["MaxTime"] * 200))); 209TestBasetypes.hx https://gitlab.com/ezeql/haxe | Haxe | 510 lines
33 unspec(function() String.fromCharCode(256)); 34#if php 35 eq( Std.string(null) + "x", "nullx" ); 120 121 // I don't think this should throw an exception on PHP. 122 try { 149 eq( Math.floor(1.2), 1 ); 150 eq( Math.ceil(-1.7), -1 ); 151 eq( Math.ceil(-1.5), -1 ); 151 eq( Math.ceil(-1.5), -1 ); 152 eq( Math.ceil(-1.2), -1 ); 153 eq( Math.ceil(1.7), 2 ); 153 eq( Math.ceil(1.7), 2 ); 154 eq( Math.ceil(1.5), 2 ); 155 eq( Math.ceil(1.2), 2 );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)); 60indexcopy.php https://gitlab.com/Aharna/Library | 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> 288ProgressFormatter.php https://gitlab.com/judielsm/Handora | 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);users.php https://gitlab.com/kidaa/quantum.git | PHP | 200 lines
1<?php 2namespace A; 37 } 38 return ceil($all_vals / $limit) > 1 ? ceil($all_vals / $limit) : 1; 39 } 88 $_SESSION['msg'] = 'success'; 89 $this->engine->url->redirect(PRTCL . "://" . $this->engine->host . ADM_PATH . "index.php?page=users&view=tiny&id=" . 90 $this->engine->db->getLastId()); 172 'caption' => $this->language['users'], 173 'link' => 'index.php?page=users' 174 );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 }customer_ban_ip.php https://gitlab.com/hazelnuts23/unitedfoodstuff | PHP | 356 lines
1<?php 2class ControllerSaleCustomerBanIp extends Controller { 249 250 $data['results'] = sprintf($this->language->get('text_pagination'), ($customer_ban_ip_total) ? (($page - 1) * $this->config->get('config_limit_admin')) + 1 : 0, ((($page - 1) * $this->config->get('config_limit_admin')) > ($customer_ban_ip_total - $this->config->get('config_limit_admin'))) ? $customer_ban_ip_total : ((($page - 1) * $this->config->get('config_limit_admin')) + $this->config->get('config_limit_admin')), $customer_ban_ip_total, ceil($customer_ban_ip_total / $this->config->get('config_limit_admin'))); 251date.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 ) {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); 86matches.php https://gitlab.com/Etern4l/CSBETCENTER | PHP | 188 lines
1<?php require_once 'templates/site/header.php'; ?> 2 14 15 <?php 16 $conn = new mysqli($servername, $username, $password, $dbname); 85 $team1Percent = floor($betOnTeam1users / $betTotal * 100); 86 $team2Percent = ceil($betOnTeam2users / $betTotal * 100); 87 } 109 110 <?php 111 $sql2 = "SELECT * FROM matches WHERE winner!='' ORDER BY date DESC LIMIT 6"; 171 $team1Percent = floor($betOnTeam1users / $betTotal * 100); 172 $team2Percent = ceil($betOnTeam2users / $betTotal * 100); 173 } 187 188<?php require_once 'templates/site/footer.php'; ?> 189f84b2289875ae4afe6b68312e1911038b2844fdd.file.productcomments-extra.tpl.php https://gitlab.com/A.Julien/sendstockbymail-module-prestashop | PHP | 105 lines
31),false); /*/%%SmartyHeaderCode%%*/?> 32<?php if ($_valid && !is_callable('content_57c495df480095_97520032')) {function content_57c495df480095_97520032($_smarty_tpl) {?> 33<?php if ((!$_smarty_tpl->tpl_vars['content_only']->value&&(($_smarty_tpl->tpl_vars['nbComments']->value==0&&$_smarty_tpl->tpl_vars['too_early']->value==false&&($_smarty_tpl->tpl_vars['is_logged']->value||$_smarty_tpl->tpl_vars['allow_guests']->value))||($_smarty_tpl->tpl_vars['nbComments']->value!=0)))) {?> 36 <div class="comments_note clearfix"> 37 <span><?php echo smartyTranslate(array('s'=>'Rating','mod'=>'productcomments'),$_smarty_tpl);?> 38 </span> 39 <div class="star_content clearfix"> 40 <?php if (isset($_smarty_tpl->tpl_vars['smarty']->value['section']["i"])) unset($_smarty_tpl->tpl_vars['smarty']->value['section']["i"]); 41$_smarty_tpl->tpl_vars['smarty']->value['section']["i"]['name'] = "i"; 74 <meta itemprop="worstRating" content = "0" /> 75 <meta itemprop="ratingValue" content = "<?php if (isset($_smarty_tpl->tpl_vars['ratings']->value['avg'])) {?><?php echo htmlspecialchars(round($_smarty_tpl->tpl_vars['ratings']->value['avg'],1), ENT_QUOTES, 'UTF-8', true);?> 76<?php } else { ?><?php echo htmlspecialchars(round($_smarty_tpl->tpl_vars['averageTotal']->value,1), ENT_QUOTES, 'UTF-8', true);?> 104<!-- /Module ProductComments --> 105<?php }} ?> 106Imagine.php https://gitlab.com/RonLab1987/YupePlusClear | PHP | 283 lines
1<?php 2/** 167 if ($size->getWidth() < $width) { 168 $startX = ceil($width - $size->getWidth()) / 2; 169 } 170 if ($size->getHeight() < $height) { 171 $startY = ceil($height - $size->getHeight()) / 2; 172 } 252 253 $box = new Box($size->getWidth() + ceil($margin * 2), $size->getHeight() + ceil($margin * 2)); 254Paginator.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 }jqplot.enhancedLegendRenderer.js https://gitlab.com/bruce.ng/Professional-Ajax | JavaScript | 305 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 }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>'); 187smarty_internal_compile_section.php https://gitlab.com/piotr-zuralski/demo-zuralski-trojmiastopl-articles | PHP | 173 lines
1<?php 2/** 37 38 $output = "<?php "; 39 97 } else { 98 $output .= " {$section_props}['total'] = min(ceil(({$section_props}['step'] > 0 ? {$section_props}['loop'] - {$section_props}['start'] : {$section_props}['start']+1)/abs({$section_props}['step'])), {$section_props}['max']);\n"; 99 } 137 138 return "<?php endfor; else: ?>"; 139 } 166 if ($_open_tag == 'sectionelse') 167 return "<?php endif; ?>"; 168 else 168 else 169 return "<?php endfor; endif; ?>"; 170 }base_sound_manager.cpp git://github.com/scummvm/scummvm.git | C++ | 298 lines
24 * This file is based on WME Lite. 25 * http://dead-code.org/redir.php?target=wmelite 26 * Copyright (c) 2011 Jan Nedoma 243 _volumeMasterPercent = percent; 244 setMasterVolume((int)ceil(percent * 255.0 / 100.0)); 245 return STATUS_OK;handlers.dev.js http://buddypress-media.googlecode.com/svn/bp_media/trunk/ | JavaScript | 452 lines
39 jQuery('.bar', item).width( w * bytesDone / bytesTotal ); 40 jQuery('.percent', item).html( Math.ceil(bytesDone / bytesTotal * 100) + '%' ); 41 111 else { 112 item.load('async-upload.php', {attachment_id:serverData, fetch:f}, function(){prepareMediaItemInit(fileObj);updateMediaForm()}); 113 } 146 jQuery.ajax({ 147 url: 'admin-ajax.php', 148 type: 'post', 164 jQuery.ajax({ 165 url: 'admin-ajax.php', 166 type: 'post',sale_coupon.php https://gitlab.com/shapcy/opencart | PHP | 126 lines
1<?php 2class ControllerReportSaleCoupon extends Controller { 114 115 $data['results'] = sprintf($this->language->get('text_pagination'), ($coupon_total) ? (($page - 1) * $this->config->get('config_limit_admin')) + 1 : 0, ((($page - 1) * $this->config->get('config_limit_admin')) > ($coupon_total - $this->config->get('config_limit_admin'))) ? $coupon_total : ((($page - 1) * $this->config->get('config_limit_admin')) + $this->config->get('config_limit_admin')), $coupon_total, ceil($coupon_total / $this->config->get('config_limit_admin'))); 116logarithmic.php https://gitlab.com/quyse/crashfix | PHP | 341 lines
1<?php 2/** 219 { 220 $this->properties['max'] = ceil( log( $this->properties['maxValue'], $this->properties['base'] ) ); 221 } 225 { 226 $this->properties['majorStep'] = $modifier = ceil( $modifier ); 227 $this->properties['min'] = floor( $this->properties['min'] / $modifier ) * $modifier;Egw14.php https://gitlab.com/rsilveira1987/Expresso | PHP | 213 lines
1<?php 2/** 71 $pageSize = 100; 72 $numPages = ceil($estimate/$pageSize); 73index.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>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' ?> 150index.php https://gitlab.com/Jannatul_Huraon/Atomic_ProjectCRUD | PHP | 150 lines
67 <h2>All Book List</h2> 68 <a href="create.php" class="btn btn-primary" role="button">Create again</a> <a href="trashed.php" class="btn btn-primary" role="button">View Trashed list</a> 69 </div> 104 <td><?php echo $book->title?></td> 105 <td><a href="view.php?id=<?php echo $book-> id ?>" class="btn btn-danger" role="button">View</a> 106 <a href="edit.php?id=<?php echo $book-> id ?>" class="btn btn-info" role="button">Edit</a> 107 <a href="delete.php?id=<?php echo $book->id?>" class="btn btn-danger" role="button" id="delete" Onclick="return ConfirmDelete()">Delete</a> 108 <a href="trash.php?id=<?php echo $book->id ?>" class="btn btn-info" role="button">Trash</a> 109 </td> 119 <?php if($pageNumber>1):?> 120 <li><a href="index.php?pageNumber=<?php echo $pageNumber-1?>">Prev</a></li><?php endif;?> 121 <?php echo $pagination?> 122 <?php if($pageNumber<$totalPage):?> 123 <li><a href="index.php?pageNumber=<?php echo $pageNumber+1?>">next</a></li><?php endif;?> 124RetryMiddleware.php https://gitlab.com/github-cloud-corp/aws-sdk-php | PHP | 209 lines
1<?php 2namespace Aws; 91 * 92 * Exponential backoff with jitter, 100ms base, 20 sec ceiling 93 *voucher_theme.php https://gitlab.com/shapcy/opencart | PHP | 402 lines
1<?php 2class ControllerSaleVoucherTheme extends Controller { 246 247 $data['results'] = sprintf($this->language->get('text_pagination'), ($voucher_theme_total) ? (($page - 1) * $this->config->get('config_limit_admin')) + 1 : 0, ((($page - 1) * $this->config->get('config_limit_admin')) > ($voucher_theme_total - $this->config->get('config_limit_admin'))) ? $voucher_theme_total : ((($page - 1) * $this->config->get('config_limit_admin')) + $this->config->get('config_limit_admin')), $voucher_theme_total, ceil($voucher_theme_total / $this->config->get('config_limit_admin'))); 248index.php https://gitlab.com/Jannatul_Huraon/Atomic_ProjectCRUD | PHP | 155 lines
93 <option <?php if($itemPerPage==15):?>selected<?php endif ?>>15</option> 94 <option <?php if($itemPerPage==20):?>selected<?php endif ?>>20</option> 95 <option <?php if($itemPerPage==25):?>selected<?php endif ?>>25</option> 122 <a href="view.php?id=<?php echo $item->id?>" class="btn btn-danger" role="button">View</a> 123 <a href="edit.php?id=<?php echo $item->id?>" class="btn btn-info" role="button">Update</a> 124 <a href="trash.php?id=<?php echo $item->id?>" class="btn btn-warning" role="button">Trash</a> 124 <a href="trash.php?id=<?php echo $item->id?>" class="btn btn-warning" role="button">Trash</a> 125 <a href="delete.php?id=<?php echo $item->id?>" class="btn btn-danger" role="button" id="delete" Onclick="return ConfirmDelete()">Delete</a> 126 </td> 133 <?php if($pageNumber>1):?> 134 <li><a href="index.php?pageNumber=<?php echo $pageNumber-1 ?>">Previous</a></li><?php endif;?> 135 <?php echo $pagination?> 136 <?php if($pageNumber<$totalPage):?> 137 <li><a href="index.php?pageNumber=<?php echo $pageNumber+1 ?>">Next</a></li><?php endif;?> 138</ul>generate_pairs.php http://lansuite.googlecode.com/svn/trunk/ | PHP | 311 lines
1<?php 2 2 3include_once("modules/mail/class_mail.php"); 4$mail = new mail(); 18if ($team_anz < 4) { 19 $func->information(t('Es müssen mindestens 4 Teams angemeldet sein!'), "index.php?mod=tournament2&action=details&tournamentid={$_GET["tournamentid"]}&headermenuitem=2"); 20 22} elseif ($tournament['mode'] == "groups" and $team_anz < 6) { 23 $func->information(t('Es müssen mindestens 6 Teams angemeldet sein!'), "index.php?mod=tournament2&action=details&tournamentid={$_GET["tournamentid"]}&headermenuitem=2"); 24 75 if (($tournament['teamplayer'] == 1) || ($waiting_teams == 0)) $_GET["step"] = 3; 76 else $func->question(t('Zu diesem Turnier haben sich Teams angemeldet, welche noch nicht komplett sind. Möchtest du diese beim Generieren aus dem Turnier entfernen?'), "index.php?mod=tournament2&action=generate_pairs&step=4&tournamentid={$_GET["tournamentid"]}", "index.php?mod=tournament2&action=generate_pairs&step=3&tournamentid={$_GET["tournamentid"]}"); 77 } 97 98 $func->question(t('Alle unvollständigen Teams im Turnier %1 wurden erfolgreich gelöscht. Möchtest du das Turnier nun generieren?', $tournament["name"]), "index.php?mod=tournament2&action=generate_pairs&step=3&tournamentid={$_GET["tournamentid"]}", "index.php?mod=tournament2&action=details&tournamentid={$_GET["tournamentid"]}&headermenuitem=2"); 99 }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); 112