PageRenderTime 2127ms queryTime 956ms sortTime 55ms getByIdsTime 718ms findMatchingLines 240ms

100+ results results for 'php ceil repo:StasPiv/playzone' (2127 ms)

Not the results you expected?
index.php https://gitlab.com/Nilufarjahan/LabExam8 | PHP | 455 lines
                    
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);
                    
201
                    
                
create.php https://gitlab.com/faisal08/atomic_project_faisal_141176 | PHP | 276 lines
                    
1<?php
                    
2require_once("../../../vendor/autoload.php");
                    
21
                    
22$pages = ceil($recordCount/$itemsPerPage);
                    
23$someData = $objBOOKtitle->indexPaginator($page,$itemsPerPage);
                    
72            }
                    
73            xmlhttp.open('GET','searching.php?search_text='+document.search.search_text.value,true);
                    
74            xmlhttp.send();
                    
100    <div class="page-header" id="Mmessage">
                    
101<?php echo Message::message(); ?>
                    
102    </div></div>
                    
106                <ul class="nav nav-pills nav-stacked" role="tablist" >
                    
107                    <li class="active"><a href="create.php">Book Title</a></li>
                    
108                    <li><a href="../Birthdate/create.php">Birthday</a></li>
                    
108                    <li><a href="../Birthdate/create.php">Birthday</a></li>
                    
109                    <li><a href="../City/create.php">City</a></li>
                    
110                    <li><a href="../Email/create.php">Email</a></li>
                    
                
PropelPager.php https://github.com/mootools/mootools-forge.git | PHP | 597 lines
                    
1<?php
                    
2
                    
15 *
                    
16 *  require_once 'propel/util/PropelPager.php';
                    
17 *  require_once 'PEACH/Propel/Poem/poemPeer.php';
                    
342			if ($this->max > 0) {
                    
343					$this->pages = ceil($recordCount/$this->max);
                    
344			} else {
                    
                
released_patient.php https://gitlab.com/sharadmohajan/xyz | PHP | 288 lines
                    
100            <li><a href="add_patient.php">Add Patient</a></li>
                    
101            <li><a href="patient_info.php">Patient Info</a></li>
                    
102            <li><a href="doctor_info.php">Doctors</a></li>
                    
115
                    
116            <li> <form role="form" action="released_patient.php" style="margin-top: 13px;padding-left: 50px" >
                    
117                    <div class="form-group">
                    
159    <form role="form" action="patient_info.php" method="post">
                    
160        <?php /*if(isset($_POST['filterByName'])) {
                    
161            $catchName = $_POST['filterByName'];
                    
208                    <td><?php echo $info->room_id ?></td>
                    
209                    <td><a href="release_patient_view.php?patient_id=<?php echo $info->patient_id ?>" class="btn btn-info" role="button">View</a>
                    
210                        <a href="released_delete.php?patient_id=<?php echo $info->patient_id ?>" class="btn btn-danger" role="button">Delete</a>
                    
210                        <a href="released_delete.php?patient_id=<?php echo $info->patient_id ?>" class="btn btn-danger" role="button">Delete</a>
                    
211                        <a href="prescribe.php?patient_id=<?php echo $info->patient_id ?>" class="btn btn-success" role="button">Prescription</a>
                    
212                    </td>
                    
                
Misc.php https://gitlab.com/saalmanhussain/scayle_repo | PHP | 388 lines
                    
30        if (!empty($_GET['langCode']) && preg_match("/^[a-z\-]+$/", $_GET['langCode'])) {
                    
31            if (file_exists(CKFINDER_CONNECTOR_LANG_PATH . "/" . $_GET['langCode'] . ".php"))
                    
32                $langCode = $_GET['langCode'];
                    
33        }
                    
34        include CKFINDER_CONNECTOR_LANG_PATH . "/" . $langCode . ".php";
                    
35        if ($number) {
                    
64    /**
                    
65     * @link http://pl.php.net/manual/en/function.imagecopyresampled.php
                    
66     * replacement to imagecopyresampled that will deliver results that are almost identical except MUCH faster (very typically 30 times faster)
                    
110    /**
                    
111     * @link http://pl.php.net/manual/pl/function.imagecreatefromjpeg.php
                    
112     * function posted by e dot a dot schultz at gmail dot com
                    
171     * convert shorthand php.ini notation into bytes, much like how the PHP source does it
                    
172     * @link http://pl.php.net/manual/en/function.ini-get.php
                    
173     *
                    
                
SimpleFontData.cpp https://gitlab.com/x33n/phantomjs | C++ | 304 lines
                    
91{
                    
92    GlyphPage* glyphPageZero = GlyphPageTreeNode::getRootChild(this, 0)->page();
                    
93
                    
111{
                    
112    GlyphPage* glyphPageZero = GlyphPageTreeNode::getRootChild(this, 0)->page();
                    
113    if (!glyphPageZero) {
                    
136    determinePitch();
                    
137    m_adjustedSpaceWidth = m_treatAsFixedPitch ? ceilf(width) : roundf(width);
                    
138
                    
160    else
                    
161        GlyphPageTreeNode::pruneTreeFontData(this);
                    
162}
                    
170{
                    
171    GlyphPageTreeNode* node = GlyphPageTreeNode::getRootChild(this, character / GlyphPage::size);
                    
172    return node->page() ? node->page()->glyphAt(character % GlyphPage::size) : 0;
                    
                
takeeditcp.php https://github.com/Bigjoos/U-232-V1.git | PHP | 302 lines
                    
1<?php
                    
2/**
                    
18*/
                    
19require_once(dirname(__FILE__).DIRECTORY_SEPARATOR.'include'.DIRECTORY_SEPARATOR.'bittorrent.php');
                    
20require_once(INCL_DIR.'user_functions.php');
                    
20require_once(INCL_DIR.'user_functions.php');
                    
21require_once(INCL_DIR.'page_verify.php');
                    
22require_once(INCL_DIR.'password_functions.php');
                    
37    $out['img_width']  = $in['max_width'];
                    
38    $out['img_height'] = ceil( ( $in['cur_height'] * ( ( $in['max_width'] * 100 ) / $in['cur_width'] ) ) / 100 );
                    
39    $in['cur_height'] = $out['img_height'];
                    
44    $out['img_height']  = $in['max_height'];
                    
45    $out['img_width']   = ceil( ( $in['cur_width'] * ( ( $in['max_height'] * 100 ) / $in['cur_height'] ) ) / 100 );
                    
46    }
                    
203    $body = str_replace(array('<#USERNAME#>', '<#SITENAME#>', '<#USEREMAIL#>', '<#IP_ADDRESS#>', '<#CHANGE_LINK#>'),
                    
204    array($CURUSER['username'], $TBDEV['site_name'], $email, $_SERVER['REMOTE_ADDR'], "{$TBDEV['baseurl']}/confirmemail.php?uid={$CURUSER['id']}&key=$hash&email=$obemail"),
                    
205    $lang['takeeditcp_email_body']);
                    
                
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);
                    
189
                    
                
functions.php https://bitbucket.org/zachisit/zachis.it-m.git | PHP | 367 lines
                    
122	$installerRescue = duplicator_safe_path(DUPLICATOR_PLUGIN_PATH  . 'files/installer.rescue.php');
                    
123	$installerCore	 = duplicator_safe_path(DUPLICATOR_SSDIR_PATH)  . "/{$uniquename}_installer.php";
                    
124
                    
294	@chmod($path_plugin . 'files', 0755);
                    
295	@chmod(duplicator_safe_path($path_plugin . 'files/installer.rescue.php'), 0644);
                    
296	
                    
300	$ssfile = @fopen($path_ssdir .'/index.php', 'w');
                    
301	@fwrite($ssfile, '<?php error_reporting(0);  if (stristr(php_sapi_name(), "fcgi")) { $url  =  "http://" . $_SERVER["HTTP_HOST"]; header("Location: {$url}/404.html");} else { header("HTML/1.1 404 Not Found", true, 404);} exit(); ?>');
                    
302	@fclose($ssfile);
                    
305	$tokenfile = @fopen($path_ssdir .'/dtoken.php', 'w');
                    
306	@fwrite($tokenfile, '<?php error_reporting(0);  if (stristr(php_sapi_name(), "fcgi")) { $url  =  "http://" . $_SERVER["HTTP_HOST"]; header("Location: {$url}/404.html");} else { header("HTML/1.1 404 Not Found", true, 404);} exit(); ?>');
                    
307	@fclose($tokenfile);
                    
320	$tokenfile2 = @fopen($path_plugin .'files/dtoken.php', 'w');
                    
321	@fwrite($tokenfile2, '<?php @error_reporting(0); @require_once("../../../../wp-admin/admin.php"); global $wp_query; $wp_query->set_404(); header("HTML/1.1 404 Not Found", true, 404); header("Status: 404 Not Found"); @include(get_template_directory () . "/404.php"); ?>');
                    
322	@fclose($tokenfile2);
                    
                
MineBlock.php https://gitlab.com/Skull3x/MineBlock | PHP | 275 lines
                    
1<?php
                    
2// This Plugin is Made by DeBe (hu6677@naver.com)
                    
158							if(isset($sub[2]) && is_numeric($sub[2])) $page = round($sub[2]);
                    
159							$list = ceil(count($drop) / 5);
                    
160							if($page >= $list) $page = $list;
                    
                
class-gsc-table.php https://gitlab.com/bhargavi_dcw/dflocal | PHP | 385 lines
                    
1<?php
                    
2/**
                    
6if ( ! class_exists( 'WP_List_Table' ) ) {
                    
7	require_once( ABSPATH . 'wp-admin/includes/class-wp-list-table.php' );
                    
8}
                    
243			'total_items' => $total_items,
                    
244			'total_pages' => ceil( ( $total_items / $posts_per_page ) ),
                    
245			'per_page'    => $posts_per_page,
                    
342
                    
343		require WPSEO_PATH . '/admin/google_search_console/views/gsc-create-redirect.php';
                    
344
                    
                
index.php https://gitlab.com/istiyakaminsanto/Atomic_project_IstiyakAmin_142691_B35 | PHP | 368 lines
                    
1
                    
2<?php
                    
3require_once("../../../vendor/autoload.php");
                    
20if(!$status) {
                    
21    Utility::redirect('../login.php');
                    
22    return;
                    
60
                    
61$pages = ceil($recordCount/$itemsPerPage);
                    
62$someData = $objBookTitle->indexPaginator($page,$itemsPerPage);
                    
145                    <ul class="nav">
                    
146                        <li class="active"><a href="../BookTitle/index.php">BOOKTITLE</a></li>
                    
147                        <li><a href="../Birthday/index.php">BIRTHDAY</a></li>
                    
147                        <li><a href="../Birthday/index.php">BIRTHDAY</a></li>
                    
148                        <li><a href="../Gender/index.php">GENDER</a></li>
                    
149                        <li><a href="../Email/index.php">EMAIL</a></li>
                    
                
HtmlView.php https://github.com/Kunena/Kunena-Forum.git | PHP | 432 lines
                    
1<?php
                    
2/**
                    
142		{
                    
143			$this->moreUri = 'index.php?option=com_kunena&view=topics&layout=default&mode=' . $this->state->get('list.mode');
                    
144			$userid        = $this->state->get('user');
                    
189		{
                    
190			$this->moreUri = 'index.php?option=com_kunena&view=topics&layout=user&mode=' . $this->state->get('list.mode');
                    
191			$userid        = $this->state->get('user');
                    
227		{
                    
228			$this->moreUri = 'index.php?option=com_kunena&view=topics&layout=posts&mode=' . $this->state->get('list.mode');
                    
229			$userid        = $this->state->get('user');
                    
305				$this->message_position = $this->topic->posts - ($this->topic->unread ? $this->topic->unread - 1 : 0);
                    
306				$this->pages            = ceil($this->topic->getTotal() / $this->config->messagesPerPage);
                    
307
                    
378				$this->message_position = $this->topic->posts - ($this->topic->unread ? $this->topic->unread - 1 : 0);
                    
379				$this->pages            = ceil($this->topic->getTotal() / $this->config->messagesPerPage);
                    
380
                    
                
CreationMinerais.php https://github.com/Canop/braldahim.git | PHP | 340 lines
                    
1<?php
                    
2
                    
232						$tmp = "";
                    
233						$nbCreation = ceil($t["nb_creation_type_minerai"] * ($superficieZones[$z["id_zone"]] / $superficieTotale[$c["id_fk_type_minerai_creation_minerais"]]));
                    
234						$nbActuel = $filonTable->countVue($z["x_min_zone"], $z["y_min_zone"], $z["x_max_zone"], $z["y_max_zone"], $zposition, $t["id_type_minerai"]);
                    
                
FSMMaze.js https://github.com/Wkasel/qooxdoo.git | JavaScript | 477 lines
                    
12     LGPL: http://www.gnu.org/licenses/lgpl.html
                    
13     EPL: http://www.eclipse.org/org/documents/epl-v10.php
                    
14     See the LICENSE file in the project's top-level directory for details.
                    
462    {
                    
463      var size = Math.ceil(this.cellSize / 5);
                    
464      var o = new qx.ui.basic.Label("&bull;", null, "html");
                    
                
chapterMinutes.php https://github.com/parkeroth/kansasdelts.git | PHP | 405 lines
                    
220
                    
221<?php include_once($_SERVER['DOCUMENT_ROOT']."/includes/headerLast.php"); ?>
                    
222
                    
225<?php if($action == 'edit'){ ?>
                    
226<form id="minutes" action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" onsubmit="submitted()">
                    
227<?php } ?>
                    
231	<th>Attendance:</th>
                    
232	<td>Present: <strong><?php echo $number_present; ?></strong> Absent: <strong><?php echo $number_absent; ?></strong> Excused: <strong><?php echo $number_excused; ?></strong> 
                    
233		| <a href="attendanceRecords.php">View Records</a></td>
                    
236	<th>Voting Members:</th>
                    
237	<td>Present: <strong><?php echo $voting_present; ?></strong> Total: <strong><?php echo $voting_total; ?></strong></td>
                    
238</tr>
                    
404
                    
405<?php include_once($_SERVER['DOCUMENT_ROOT']."/includes/footer.php"); ?>
                    
406
                    
                
actions.class.php https://github.com/appflower/appflower_engine.git | PHP | 558 lines
                    
1<?php
                    
2
                    
8 * @author     Your name here
                    
9 * @version    SVN: $Id: actions.class.php 2692 2006-11-15 21:03:55Z fabien $
                    
10 */
                    
414		$limit = $this->request->getParameterHolder()->has('limit')?$this->request->getParameterHolder()->get('limit'):20;
                    
415		$page=($start==0)?1:(ceil($start/$limit)+1);
                    
416
                    
444				$id = call_user_func(array($object,"getId"));
                    
445				$tmp = call_user_func(array($object,"get".$column["phpname"]));
                    
446				if(in_array($column["phpname"],$parser["foreign_keys"])) {
                    
479
                    
480		$page=($start==0)?1:(ceil($start/$limit)+1);
                    
481
                    
521					
                    
522				if(method_exists($object,"get".$column["phpname"])) {
                    
523					$tmp = call_user_func(array($object,"get".$column["phpname"]));
                    
                
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.
                    
282
                    
                
weight_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')));
                    
254
                    
                
index.php https://gitlab.com/nz_moon/Nazmun_nahar_SEIP_ID_142969_B35_Atomic_Project | PHP | 307 lines
                    
1<?php
                    
2require_once ("../../../vendor/autoload.php");
                    
3use App\Email\Email;
                    
77                        <div class="">
                    
78                               <?php include"menu.php" ?>
                    
79                        </div>
                    
106                        <div class="leftSideButton">
                    
107                            <a href="create.php" class="btn btn-info" role="button">Add New</a>
                    
108                            <a href="trashed.php" class="btn btn-primary" role="button">Trash List</a>
                    
158                       
                    
159<?php
                    
160echo "<table border='2px'>";
                    
224            }
                    
225            if($page<$pages) echo "<li><a href='index.php?Page=$pagePlusOne'>" . "Next" . '</a></li>';
                    
226            ?>
                    
                
index.php https://gitlab.com/nz_moon/Nazmun_nahar_SEIP_ID_142969_B35_Atomic_Project | PHP | 307 lines
                    
1<?php
                    
2require_once ("../../../vendor/autoload.php");
                    
3use App\Hobbies\Hobbies;
                    
81                        <div class="">
                    
82                               <?php include"menu.php" ?>
                    
83                        </div>
                    
110                        <div class="leftSideButton">
                    
111                            <a href="create.php" class="btn btn-info" role="button">Add New</a>
                    
112                            <a href="trashed.php" class="btn btn-primary" role="button">Trash List</a>
                    
162                        
                    
163<?php
                    
164
                    
225            }
                    
226            if($page<$pages) echo "<li><a href='index.php?Page=$pagePlusOne'>" . "Next" . '</a></li>';
                    
227            ?>
                    
                
table.php https://github.com/PorteroGCooper/zoop-helios.git | PHP | 643 lines
                    
1<?php
                    
2/**
                    
335		if (is_numeric($this->limit))
                    
336			$this->pages = ceil($this->total / $this->limit);
                    
337		else
                    
                
sajax.php https://bitbucket.org/dgough/annamaria-daneswood-25102012.git | PHP | 416 lines
                    
1<?php
                    
2// ensure this file is being included by a parent file - Joomla! 1.0.x and 1.5 compatible
                    
30
                    
31	// Since str_split used in sajax_get_my_uri is only available on PHP 5, we have
                    
32	// to provide an alternative for those using PHP 4.x
                    
40	       } else {
                    
41	           $num = (int)ceil($count/$split_length);
                    
42	           $ret = array();
                    
58		if ($myURI == "") {
                    
59			$myURI = $mosConfig_live_site . "/administrator/index2.php";
                    
60		}
                    
74	//global $mosConfig_live_site;
                    
75	// $sajax_remote_uri = $mosConfig_live_site . "/administrator/index2.php?option=$option&no_html=1&act=ajax";
                    
76	$sajax_remote_uri = sajax_get_my_uri();
                    
189		// (c) copyright 2005 modernmethod, inc
                    
190		var sajax_debug_mode = <?php echo $sajax_debug_mode ? "true" : "false"; ?>;
                    
191		var sajax_request_type = "<?php echo $t; ?>";
                    
                
index.php https://gitlab.com/nz_moon/Nazmun_nahar_SEIP_ID_142969_B35_Atomic_Project | PHP | 319 lines
                    
1<?php
                    
2require_once ("../../../vendor/autoload.php");
                    
3use App\Gender\Gender;
                    
86                        <div class="">
                    
87                               <?php include"menu.php" ?>
                    
88                        </div>
                    
115                        <div class="leftSideButton">
                    
116                            <a href="create.php" class="btn btn-info" role="button">Add New</a>
                    
117                            <a href="trashed.php" class="btn btn-primary" role="button">Trash List</a>
                    
168                    <div class="col-lg-6 col-xm-1">
                    
169                        <?php
                    
170
                    
233            }
                    
234            if($page<$pages) echo "<li><a href='index.php?Page=$pagePlusOne'>" . "Next" . '</a></li>';
                    
235            ?>
                    
                
trashed.php https://gitlab.com/Mishu_ctg69/Princy_143467_B37_Atomic_project | PHP | 260 lines
                    
1<?php
                    
2require_once("../../../vendor/autoload.php");
                    
83    <div style="margin-top: 40px ;float: left;"> <a href="xl.php" class="btn  btn-danger btn-lg" role="button">Download As Xl</a></br></br>&nbsp;&nbsp;&nbsp;</div>
                    
84    <div style="margin-top: 40px ;float: left;"> <a href="email.php?list=1" class="btn  btn-success btn-lg" role="button">Email To A Friend</a></br></br></div>
                    
85    <div style="margin-top: 40px ;float: right;"> <a href="../index.php" class="btn btn-info btn-info btn-lg" role="button">Go Atomic Project List</a></br></br></div>
                    
130                                <td><?php echo $result['id']?></td>
                    
131                                <td><?php echo $result['organization_name']?></td>
                    
132                                <td><?php echo $result['organization_summary']?></td>
                    
132                                <td><?php echo $result['organization_summary']?></td>
                    
133                                <td><a href="recover.php?id=<?php echo $result['id']  ?>" class="btn btn-primary" role="button">Recover</a>
                    
134
                    
134
                    
135                                    <a href="delete.php?id=<?php echo $result['id'] ?>" class="btn btn-danger" role="button" id="delete"  Onclick="return ConfirmDelete()">Delete</a>
                    
136
                    
226    $('#delete').on('click',function(){
                    
227        document.forms[0].action="deletemultiple.php";
                    
228        $('#multiple').submit();
                    
                
SearchHelper.php git://github.com/thorsten/phpMyFAQ.git | PHP | 382 lines
                    
1<?php
                    
2
                    
3/**
                    
4 * Helper class for phpMyFAQ search.
                    
5 *
                    
9 *
                    
10 * @package   phpMyFAQ\Helper
                    
11 * @author    Thorsten Rinne <thorsten@phpmyfaq.de>
                    
11 * @author    Thorsten Rinne <thorsten@phpmyfaq.de>
                    
12 * @copyright 2009-2021 phpMyFAQ Team
                    
13 * @license   http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
                    
13 * @license   http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
                    
14 * @link      https://www.phpmyfaq.de
                    
15 * @since     2009-09-07
                    
17
                    
18namespace phpMyFAQ\Helper;
                    
19
                    
                
view.php https://bitbucket.org/johnroyer/phpwind8.7.git | PHP | 277 lines
                    
1<?php
                    
2!defined('A_P') && exit('Forbidden');
                    
2!defined('A_P') && exit('Forbidden');
                    
3$basename = 'apps.php?q='.$q.'&uid='.$uid.'&';
                    
4
                    
5empty($space) && Showmsg('您訪問的空間不存在!');
                    
6//* include_once pwCache::getPath(D_P . 'data/bbscache/o_config.php');
                    
7pwCache::getData(D_P . 'data/bbscache/o_config.php');
                    
26	list($count,$albumdb) = $photoService->getAlbumBrowseList();
                    
27	$pageCount = ceil($count / $perpage);
                    
28	$page = validatePage($page,$pageCount);
                    
69	} else {
                    
70		require_once(R_P.'require/postfunc.php');
                    
71		S::gp(array('aname','aintro','pwd','repwd'),'P');
                    
91		}
                    
92		require_once(R_P.'require/bbscode.php');
                    
93		$wordsfb = L::loadClass('FilterUtil', 'filter');
                    
                
index.php https://gitlab.com/Sajibcse/ATOMIC_PROJECT_SEIP143979_SAJIB_B37 | PHP | 339 lines
                    
36
                    
37$pages = ceil($recordCount/$itemsPerPage);
                    
38$someData = $obj->indexPaginator($page,$itemsPerPage);
                    
133
                    
134            <form id="searchForm" action="index.php"  method="get" style="color:darkblue">
                    
135                <input type="text" value="" id="searchID" name="search" placeholder="Search" width="60" >
                    
150<div class="container ">
                    
151    <div style="margin-top: 40px ;float: right;"> <a href="../index.php" class="btn btn-danger custom btn-lg" role="button">Atomic Project List</a></br></br></div>
                    
152
                    
195                            <td><?php echo $oneData->city_name?></td>
                    
196                            <td><a href="view.php?id=<?php echo $oneData->id  ?>" class="btn btn-primary" role="button">View</a>
                    
197                                <a href="edit.php?id=<?php echo$oneData->id   ?>"  class="btn btn-info" role="button">Edit</a>
                    
198                                <a href="delete.php?id=<?php echo$oneData->id ?>" class="btn btn-danger" role="button" id="delete"  Onclick="return ConfirmDelete()">Delete</a>
                    
199                                <a href="trash.php?id=<?php echo $oneData->id ?>"  class="btn btn-info" role="button">Trash</a>
                    
200                            </td>
                    
                
empty-array.cpp https://gitlab.com/Blueprint-Marketing/hhvm | C++ | 362 lines
                    
2   +----------------------------------------------------------------------+
                    
3   | HipHop for PHP                                                       |
                    
4   +----------------------------------------------------------------------+
                    
6   +----------------------------------------------------------------------+
                    
7   | This source file is subject to version 3.01 of the PHP license,      |
                    
8   | that is bundled with this package in the file LICENSE, and is        |
                    
9   | available through the world-wide-web at the following url:           |
                    
10   | http://www.php.net/license/3_01.txt                                  |
                    
11   | If you did not receive a copy of the PHP license and are unable to   |
                    
12   | obtain it through the world-wide-web, please send a note to          |
                    
13   | license@php.net so we can mail you a copy immediately.               |
                    
14   +----------------------------------------------------------------------+
                    
16
                    
17#include "hphp/runtime/base/empty-array.h"
                    
18
                    
                
aes.py https://github.com/xbmcspain/addons.git | Python | 258 lines
                    
1#/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  */
                    
2#/*  AES implementation in Python, based on the PHP implementation by                              */
                    
3#/*    (c) Chris Veness 2005-2011 www.movable-type.co.uk/scripts                                   */
                    
7#/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  */
                    
8from math import floor,ceil
                    
9from random import randint
                    
141#/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  */
                    
142#/*  AES counter (CTR) mode implementation in Python, based on the PHP implementation by           */
                    
143#/*    (c) Chris Veness 2005-2011 www.movable-type.co.uk/scripts                                   */
                    
194        
                    
195        blockCount = int(ceil(float(len(plaintext))/blockSize))
                    
196        ciphertxt = [0]*blockCount
                    
238#        
                    
239#        nBlocks = int(ceil(float(len(ciphertext)-8)/blockSize))
                    
240#        
                    
                
helpers.php https://bitbucket.org/bayrock/gw2spidy.git | PHP | 326 lines
                    
1<?php
                    
2
                    
71    if ($count > 0) {
                    
72        $lastpage = ceil($count / $itemsperpage);
                    
73        if ($page > $lastpage) {
                    
171    if ($count > 0) {
                    
172        $lastpage = ceil($count / $itemsperpage);
                    
173        if ($page > $lastpage) {
                    
                
index.php https://github.com/cbulock/Band-CMS.git | PHP | 268 lines
                    
1<?php
                    
2/*/////////////////////////////////////////////////
                    
26
                    
27include('../../includes/header.php');
                    
28
                    
60				$numberOfAlbums = db_count("albums");
                    
61				$numberOfPages = ceil($numberOfAlbums / MUSIC_PER_PAGE);
                    
62			} else {
                    
164    <div class="item_body">
                    
165    <form name="modify" action="index.php?act=postalbum&amp;page=<?php echo $page + 1; ?>" method="post" enctype="multipart/form-data">
                    
166      <table>
                    
176        	$timestamp = time();
                    
177        	include('when.php');
                    
178        ?>
                    
217  	echo " - released " . date(MUSIC_DATE, $item['date']);
                    
218    if($auth['loggedIn']) echo " - <a href='modify.php?act=modifyalbum&amp;page=" . intval($page + 1) . "&amp;index=" . $item['index'] . "'>Modify Album</a> - <a href='modify.php?act=posttrack&amp;page=" . intval($page + 1) . "&amp;index=" . $item['index'] . "'>Add Track</a>";
                    
219  	echo "</div>";
                    
                
attribute.php https://gitlab.com/hazelnuts23/unitedfoodstuff | PHP | 432 lines
                    
1<?php
                    
2class ControllerCatalogAttribute extends Controller {
                    
252
                    
253		$data['results'] = sprintf($this->language->get('text_pagination'), ($attribute_total) ? (($page - 1) * $this->config->get('config_limit_admin')) + 1 : 0, ((($page - 1) * $this->config->get('config_limit_admin')) > ($attribute_total - $this->config->get('config_limit_admin'))) ? $attribute_total : ((($page - 1) * $this->config->get('config_limit_admin')) + $this->config->get('config_limit_admin')), $attribute_total, ceil($attribute_total / $this->config->get('config_limit_admin')));
                    
254
                    
                
Drawing.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) image
                    
                
BaseDrawing.php https://gitlab.com/Japang-Jawara/jawara-penilaian | PHP | 532 lines
                    
2
                    
3namespace PhpOffice\PhpSpreadsheet\Worksheet;
                    
4
                    
5use PhpOffice\PhpSpreadsheet\Cell\Hyperlink;
                    
6use PhpOffice\PhpSpreadsheet\Exception as PhpSpreadsheetException;
                    
7use PhpOffice\PhpSpreadsheet\IComparable;
                    
210        if ($this->worksheet === null) {
                    
211            // Add drawing to \PhpOffice\PhpSpreadsheet\Worksheet\Worksheet
                    
212            $this->worksheet = $pValue;
                    
216            if ($pOverrideOld) {
                    
217                // Remove drawing from old \PhpOffice\PhpSpreadsheet\Worksheet\Worksheet
                    
218                $iterator = $this->worksheet->getDrawingCollection()->getIterator();
                    
231            } else {
                    
232                throw new PhpSpreadsheetException('A Worksheet has already been assigned. Drawings can only exist on one \\PhpOffice\\PhpSpreadsheet\\Worksheet.');
                    
233            }
                    
                
class-wp-walker.php https://gitlab.com/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		else
                    
                
php.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) image
                    
                
paging.class.php https://github.com/pijulius/jcore.git | PHP | 447 lines
                    
1<?php
                    
2
                    
3/***************************************************************************
                    
4 *            paging.class.php
                    
5 *
                    
281
                    
282		$totalpagenum = ceil($this->items/$limit['Limit']);
                    
283		$currentpagenum = round($limit['End']/$limit['Limit']);
                    
                
Drawing.php https://bitbucket.org/tschope/codeigniter_basic.git | PHP | 272 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * PHPExcel
                    
4 *
                    
4 *
                    
5 * Copyright (c) 2006 - 2010 PHPExcel
                    
6 *
                    
22 * @package    Shared
                    
23 * @copyright  Copyright (c) 2006 - 2010 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
24 * @license    http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt	LGPL
                    
33 * @package    Shared
                    
34 * @copyright  Copyright (c) 2006 - 2010 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
35 */
                    
174	 *
                    
175	 * @link http://www.php.net/manual/en/function.imagecreatefromwbmp.php#86214
                    
176	 * @param string $filename Path to Windows DIB (BMP) image
                    
                
DB.php http://phpfor.googlecode.com/svn/trunk/ | PHP | 488 lines
                    
1<?php
                    
2/**
                    
33        else{
                    
34            showError(__T('Config\'s argument error,or miss adapter,please check conf.php!'));
                    
35        }
                    
39
                    
40        require_once(SYSBASE.'Database/DB/'.$DB_config['adapter'].'.php');
                    
41
                    
168
                    
169        $totalpage=ceil($total/$title_rows);
                    
170
                    
                
notice_list.php https://gitlab.com/dev.essetel/sjnuri | PHP | 242 lines
                    
113          <tbody>
                    
114            <?php
                    
115            for ($i = 0; $row = sql_fetch_array($result); $i++) {
                    
120                <td headers="mb_list_chk" class="td_chk">
                    
121                  <input type="hidden" name="me_id[<?php echo $i ?>]" value="<?php echo $row['n_id'] ?>" id="me_id_<?php echo $i ?>">
                    
122                  <label for="chk_<?php echo $i; ?>" class="sound_only"><?php echo get_text($row['mb_name']); ?> </label>
                    
122                  <label for="chk_<?php echo $i; ?>" class="sound_only"><?php echo get_text($row['mb_name']); ?> </label>
                    
123                  <input type="checkbox" name="chk[]" value="<?php echo $i ?>" id="chk_<?php echo $i ?>" <?php echo $ch_checkbox ?>>
                    
124                </td>
                    
179                <td>
                    
180                  <a href="./notice_write.php?me_id=<?php echo $row['n_id'] ?>&sfl=<?php echo $sfl ?>&stx=<?php echo $stx ?>&page=<?php echo $page ?>">
                    
181                    <button type="button" class="btn btn_02"> 수정 </button>
                    
197        <input type="submit" name="act_button" value="선택삭제" onclick="document.pressed=this.value" class="btn btn_03">
                    
198        <a href="notice_write.php?me_id=&sfl=<?php echo $sfl ?>&stx=<?php echo $stx ?>&page=<?php echo $page ?>">
                    
199          <input type="button" name="act_button" value="등록" onclick="document.pressed=this.value" class="btn btn_01">
                    
                
Drawing.php https://gitlab.com/khairulcse76/userLogins | PHP | 272 lines
                    
22 * @package    PHPExcel_Shared
                    
23 * @copyright  Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
24 * @license    http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt	LGPL
                    
33 * @package    PHPExcel_Shared
                    
34 * @copyright  Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
35 */
                    
70	 */
                    
71	public static function pixelsToCellDimension($pValue = 0, PHPExcel_Style_Font $pDefaultFont) {
                    
72		// Font name and size
                    
78			$colWidth = $pValue
                    
79				* PHPExcel_Shared_Font::$defaultColumnWidths[$name][$size]['width']
                    
80				/ PHPExcel_Shared_Font::$defaultColumnWidths[$name][$size]['px'];
                    
174	 *
                    
175	 * @link http://www.php.net/manual/en/function.imagecreatefromwbmp.php#86214
                    
176	 * @param string $filename Path to Windows DIB (BMP) image
                    
                
daily_investigation_report.php https://gitlab.com/0sajib0/NECI | PHP | 207 lines
                    
88                <ol class="breadcrumb">
                    
89                    <li><a href="./dashboard.php">Dashboard</a></li>
                    
90                    <li><a href="javascript:;">Investigation</a></li>
                    
124                                            <option <?php if($_SESSION['itemPerPage']==15) {echo "selected";}?>>15</option>
                    
125                                            <option <?php if($_SESSION['itemPerPage']==20) {echo "selected";}?>>20</option>
                    
126                                            <option <?php if($_SESSION['itemPerPage']==25) {echo "selected";}?>>25</option>
                    
132                                        <div class="input-group date ui-datepicker" data-date-format="yyyy-mm-dd">
                    
133                                            <input id="date-2" name="input_date" class="form-control" value="<?php echo $_GET['input_date']?>" type="text" data-required="true">
                    
134                                            <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                    
184                        <ul class="pagination">
                    
185                            <?php if($pageNo>1) {echo "<li><a href='../User/daily_investigation.php?pageNumber=$prev'>Prev</a></li>";}else{echo "";}?>
                    
186                            <?php echo $pagination?>
                    
186                            <?php echo $pagination?>
                    
187                            <?php if($pageNo<$noOfPage){echo "<li><a href='../User/daily_investigation.php?pageNumber=$next'>Next</a></li>";}else{echo "";}?>
                    
188                        </ul>
                    
                
jpgraph_gradient.php https://github.com/Rambutan/hamsterpaj.git | PHP | 376 lines
                    
1<?php
                    
2/*=======================================================================
                    
2/*=======================================================================
                    
3// File:	JPGRAPH_GRADIENT.PHP
                    
4// Description:	Create a color gradient
                    
6// Author:	Johan Persson (johanp@aditus.nu)
                    
7// Ver:		$Id: jpgraph_gradient.php 21 2005-05-30 20:35:34Z ljp $
                    
8//
                    
232	    case GRAD_CENTER: 
                    
233		$steps = ceil(min(($yb-$yt)+1,($xr-$xl)+1)/2);	
                    
234		$this->GetColArray($from_color,$to_color,$steps,$colors,$this->numcolors);
                    
                
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	 *
                    
                
index.php https://gitlab.com/sumonaliza12/ATOMIC_PROJECT_SEIP143203_SUMONA_SEIP143203 | PHP | 359 lines
                    
144
                    
145            <form id="searchForm" action="index.php"  method="get">
                    
146                <input type="text" value="" id="searchID" name="search" placeholder="Search" width="60" >
                    
162<div class="container ">
                    
163    <div style="margin-top: 40px ;float: right;"> <a href="../index.php" class="btn btn-danger custom btn-lg" role="button">Atomic Project List</a></br></br></div>
                    
164
                    
210
                    
211                            <td><a href="view.php?id=<?php echo $oneData->id  ?>" class="btn btn-primary" role="button">View</a>
                    
212                                <a href="edit.php?id=<?php echo $oneData->id ?>"  class="btn btn-info" role="button">Edit</a>
                    
213                                <a href="delete.php?id=<?php echo $oneData->id ?>" class="btn btn-danger" role="button" id="delete"  Onclick="return ConfirmDelete()">Delete</a>
                    
214                                <a href="trash.php?id=<?php echo $oneData->id ?>"  class="btn btn-info" role="button">Trash</a>
                    
215                            </td>
                    
217                        </tr>
                    
218                        <?php }?>
                    
219
                    
                
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');
                    
255
                    
                
m_groups.php https://github.com/bluelovers/phpwind.git | PHP | 402 lines
                    
1<?php
                    
2!defined('A_P') && exit('Forbidden');
                    
12
                    
13require_once(R_P . 'u/lib/space.class.php');
                    
14$newSpace = new PwSpace($uid ? $uid : $winduid);
                    
21	$USCR = 'space_groups';
                    
22	require_once S::escapePath($appEntryBasePath . 'action/view.php');
                    
23}
                    
28
                    
29require_once(R_P.'require/showimg.php');
                    
30$current_tab_id = empty($a) ? 'index' : ($a == 'create' ? 'index' : $a);
                    
64		$count = $weiboService->getConloysWeibosCount($colonyids);
                    
65		$pageCount = ceil($count / $perpage);
                    
66		$page = validatePage($page,$pageCount);
                    
66		$page = validatePage($page,$pageCount);
                    
67		$navPages = numofpage($count,$page,$pageCount,'apps.php?q=groups&');
                    
68		$weiboList = $weiboService->getConloysWeibos($colonyids,$page,$perpage);
                    
                
index.php https://gitlab.com/Princy008/Princy_143467_B_37_Atomic_project | PHP | 326 lines
                    
1<?php
                    
2require_once("../../../vendor/autoload.php");
                    
3use App\BITM\SEIP143467\Message\Message;
                    
157                            <tr>
                    
158                                <?php
                    
159                                $serial=0;
                    
162                                $serial++; ?>
                    
163                                <td><input type="checkbox" class="checkbox" name="mark[]" value="<?php echo $result['id']?>"></td>
                    
164                                <td><?php echo $serial?></td>
                    
167                                <td><?php echo $result['email']?></td>
                    
168                                <td><a href="view.php?id=<?php echo $result['id']  ?>" class="btn btn-primary" role="button">View</a>
                    
169                                    <a href="edit.php?id=<?php echo $result['id'] ?>"  class="btn btn-success" role="button">Edit</a>
                    
170                                    <a href="delete.php?id=<?php echo $result['id'] ?>" class="btn btn-danger" role="button" id="delete"  Onclick="return ConfirmDelete()">Delete</a>
                    
171                                    <a href="trash.php?id=<?php echo $result['id'] ?>"  class="btn btn-info" role="button">Trash</a>
                    
172                                </td>
                    
                
List.php https://bitbucket.org/thomashii/vtigercrm-6-for-postgresql.git | PHP | 256 lines
                    
1<?php
                    
2/*+**********************************************************************************
                    
51
                    
52	//Note : To get the right hook for immediate parent in PHP,
                    
53	// specially in case of deep hierarchy
                    
247		$pageLimit = $pagingModel->getPageLimit();
                    
248		$pageCount = ceil((int) $listViewCount / (int) $pageLimit);
                    
249
                    
                
event.php https://github.com/schumi-chu/zm_nvr.git | PHP | 221 lines
                    
94        <div id="replayControl"><label for="replayMode"><?= $SLANG['Replay'] ?></label><?= buildSelect( "replayMode", $replayModes, "changeReplayMode();" ); ?></div>
                    
95        <div id="nameControl"><input type="text" id="eventName" name="eventName" value="<?= validHtmlStr($event['Name']) ?>" size="16"/><input type="button" value="<?= $SLANG['Rename'] ?>" onclick="renameEvent()"<?php if ( !canEdit( 'Events' ) ) { ?> disabled="disabled"<?php } ?>/></div>
                    
96      </div>
                    
104        <div id="editEvent"><a href="#" onclick="editEvent()"><?= $SLANG['Edit'] ?></a></div>
                    
105<?php
                    
106}
                    
110        <div id="exportEvent"><a href="#" onclick="exportEvent()"><?= $SLANG['Export'] ?></a></div>
                    
111<?php
                    
112}
                    
117        <div id="unarchiveEvent" class="hidden"><a href="#" onclick="unarchiveEvent()"><?= $SLANG['Unarchive'] ?></a></div>
                    
118<?php
                    
119}
                    
121        <div id="framesEvent"><a href="#" onclick="showEventFrames()"><?= $SLANG['Frames'] ?></a></div>
                    
122        <div id="streamEvent"<?php if ( $streamMode == 'stream' ) { ?> class="hidden"<?php } ?>><a href="#" onclick="showStream()"><?= $SLANG['Stream'] ?></a></div>
                    
123        <div id="stillsEvent"<?php if ( $streamMode == 'still' ) { ?> class="hidden"<?php } ?>><a href="#" onclick="showStills()"><?= $SLANG['Stills'] ?></a></div>
                    
                
item.php https://github.com/lysender/simplestore.git | PHP | 418 lines
                    
1<?php defined('SYSPATH') or die('No direct script access.');
                    
2
                    
29	 * 
                    
30	 * (non-PHPdoc)
                    
31	 * @see modules/sprig/classes/sprig/Sprig_Core::_init()
                    
79	 *  
                    
80	 * (non-PHPdoc)
                    
81	 * @see modules/sprig/classes/sprig/Sprig_Core::create()
                    
102	 *  
                    
103	 * (non-PHPdoc)
                    
104	 * @see modules/sprig/classes/sprig/Sprig_Core::update()
                    
245	{
                    
246		$ret = ceil($total_rec / self::ITEMS_PER_PAGE);
                    
247		
                    
                
class_graph.php https://gitlab.com/Conors99/ppm-1.8 | PHP | 337 lines
                    
1<?php
                    
2/**
                    
261		// Get our scale for finding our points of reference to place our x axis labels
                    
262		$x_label_scale = ceil(count($this->points)/20);
                    
263		$x_label_points = array();
                    
                
libindri.php https://github.com/oroszgy/sefh.git | PHP | 380 lines
                    
1<?php 
                    
2include( "config.php" );
                    
2include( "config.php" );
                    
3include( "libindri_php.php" ); 
                    
4?>
                    
5
                    
6<?php
                    
7
                    
13<head>
                    
14<title>Indri PHP test not ready</title>
                    
15</head>
                    
19</html>
                    
20<?php
                    
21  return;
                    
177	
                    
178	$begin = $matchBegin - (int) ceil($matchWidth / 2);
                    
179	$end = $matchEnd + (int) floor($matchWidth / 2);            
                    
                
jquery.date.js https://github.com/lenix/EventCalendar.git | JavaScript | 420 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
                    
198	add("getWeekOfYear", function() {
                    
199		return Math.ceil(this.getDayOfYear() / 7);
                    
200	});
                    
                
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	}
                    
                
Image.php https://github.com/chaikk/core.git | PHP | 378 lines
                    
1<?php
                    
2// vim: set ts=4 sw=4 sts=4 et:
                    
11 * It is also available through the world-wide-web at this URL:
                    
12 * http://opensource.org/licenses/osl-3.0.php
                    
13 * If you did not receive a copy of the license and are unable to
                    
16 *
                    
17 * PHP version 5.3.0
                    
18 *
                    
21 * @copyright Copyright (c) 2011 Creative Development LLC <info@cdev.ru>. All rights reserved
                    
22 * @license   http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
                    
23 * @link      http://www.litecommerce.com/
                    
279
                    
280        $left   = max(0, ceil($horizontal));
                    
281        $right  = max(0, floor($horizontal));
                    
296            default:
                    
297                $top    = max(0, ceil($vertical));
                    
298                $bottom = max(0, floor($vertical));
                    
                
helpers.php https://gitlab.com/ahmad.jamal/sally | PHP | 174 lines
                    
1<?php // Code within app\Helpers\Helper.php
                    
2
                    
44
                    
45        // if any key missing of array from custom.php file it will be merge and set a default value from dataDefault array and store in data variable
                    
46        $data = array_merge($DefaultData, $data);
                    
69
                    
70        //if mainLayoutType value empty or not match with default options in custom.php config file then set a default value
                    
71        foreach ($allOptions as $key => $value) {
                    
167        $fullStarCount = (int)$rating;
                    
168        $halfStarCount = ceil($rating) - $fullStarCount;
                    
169        $emptyStarCount = $maxRating - $fullStarCount - $halfStarCount;
                    
                
image.php https://github.com/patadejaguar/S.A.F.E.-Open-Source-Microfinance-Suite.git | PHP | 616 lines
                    
1<?php
                    
2
                    
369		$dim=$blocks*floor($size/$blocks)*2/$blocks;
                    
370		for ($j=0,$y=ceil($blocks/2);$j<$y;$j++)
                    
371			for ($i=$j,$x=$blocks-1-$j;$i<$x;$i++) {
                    
480		$format=$args?array_shift($args):'png';
                    
481		if (PHP_SAPI!='cli') {
                    
482			header('Content-Type: image/'.$format);
                    
                
category.tpl https://github.com/justinmarsan/opencart-blank-theme.git | Smarty Template | 227 lines
                    
7    	<?php foreach ($breadcrumbs as $breadcrumb) { ?>
                    
8    		<?php echo $breadcrumb['separator']; ?><a href="<?php echo $breadcrumb['href']; ?>"><?php echo $breadcrumb['text']; ?></a>
                    
9    	<?php } ?>
                    
101        						<br />
                    
102        						<span class="price-tax"><?php echo $text_tax; ?> <?php echo $product['tax']; ?></span>
                    
103        					<?php } ?>
                    
111      				<div class="cart">
                    
112						<a onclick="addToCart('<?php echo $product['product_id']; ?>');" class="button"><?php echo $button_cart; ?></a>
                    
113					</div>
                    
175		
                    
176		$('.display').html('<b><?php echo $text_display; ?></b> <?php echo $text_list; ?> <b>/</b> <a onclick="display(\'grid\');"><?php echo $text_grid; ?></a>');
                    
177		
                    
212					
                    
213		$('.display').html('<b><?php echo $text_display; ?></b> <a onclick="display(\'list\');"><?php echo $text_list; ?></a> <b>/</b> <?php echo $text_grid; ?>');
                    
214		
                    
                
browse_foreigners.php https://github.com/edmondscommerce/XAMPP-Magento-Demo-Site.git | PHP | 289 lines
                    
15
                    
16require_once './libraries/ob.lib.php';
                    
17PMA_outBufferPre();
                    
24$per_page = 200;
                    
25require_once './libraries/relation.lib.php'; // foreign keys
                    
26require_once './libraries/transformations.lib.php'; // Transformations
                    
96    <link rel="stylesheet" type="text/css"
                    
97        href="phpmyadmin.css.php?<?php echo PMA_generate_common_url('', ''); ?>&amp;js_frame=right&amp;nocache=<?php echo $_SESSION['PMA_Config']->getThemeUniqueValue(); ?>" />
                    
98    <script src="./js/functions.js" type="text/javascript"></script>
                    
112            <?php if (isset($fieldkey) && is_numeric($fieldkey)) { ?>
                    
113            var element_name_alt = field + '[<?php echo $fieldkey; ?>]';
                    
114            <?php } else { ?>
                    
272        <td nowrap="nowrap">
                    
273        <?php
                    
274        echo ($val_ordered_current_equals_data ? '<strong>' : '') . '<a href="#" title="'
                    
                
EquipFactory.inc.php https://gitlab.com/Goutte/Nacridan | PHP | 301 lines
                    
1<?php
                    
2require_once (HOMEPATH . "/economy/edef.inc.php");
                    
2require_once (HOMEPATH . "/economy/edef.inc.php");
                    
3require_once (HOMEPATH . "/factory/PNJFactory.inc.php");
                    
4
                    
157        $usure = $durmax - $dbbe->get("durability");
                    
158        return ceil(($basePrice / 200) * $usure * (60 / $durmax));
                    
159    }
                    
229        $param["ERROR"] = 0;
                    
230        require_once (HOMEPATH . "/factory/BasicActionFactory.inc.php");
                    
231        BasicActionFactory::globalInfo($playerSrc, $param);
                    
255        $param["OBJECT"] = $equip->get("name") . " niveau " . $equip->get("level") . " " . $equip->get("extraname");
                    
256        require_once (HOMEPATH . "/factory/PlayerFactory.inc.php");
                    
257        $good = 0;
                    
                
return_status.php https://gitlab.com/reclamare/mao | PHP | 375 lines
                    
1<?php
                    
2class ControllerLocalisationReturnStatus extends Controller {
                    
246
                    
247		$data['results'] = sprintf($this->language->get('text_pagination'), ($return_status_total) ? (($page - 1) * $this->config->get('config_limit_admin')) + 1 : 0, ((($page - 1) * $this->config->get('config_limit_admin')) > ($return_status_total - $this->config->get('config_limit_admin'))) ? $return_status_total : ((($page - 1) * $this->config->get('config_limit_admin')) + $this->config->get('config_limit_admin')), $return_status_total, ceil($return_status_total / $this->config->get('config_limit_admin')));
                    
248
                    
                
memcache.php https://github.com/purplexcite/Purpled-Blog-Engine.git | PHP | 268 lines
                    
1<?php defined('SYSPATH') or die('No direct script access.');
                    
2/**
                    
6 * 
                    
7 * *  [Memcache](http://www.php.net/manual/en/book.memcache.php)
                    
8 * *  [Memcached-tags](http://code.google.com/p/memcached-tags/)
                    
65 * status           | __NO__   | (_boolean_) Controls if the server should be flagged as online. Default __TRUE__
                    
66 * failure_callback | __NO__   | (_[callback](http://www.php.net/manual/en/language.pseudo-types.php#language.types.callback)_) Allows the user to specify a callback function to run upon encountering an error. The callback is run before failover is attempted. The function takes two parameters, the hostname and port of the failed server. Default __NULL__
                    
67 * 
                    
70 * *  Kohana 3.0.x
                    
71 * *  PHP 5.2.4 or greater
                    
72 * *  Memcache (plus Memcached-tags for native tagging support)
                    
79 * @copyright  (c) 2009-2010 Kohana Team
                    
80 * @license    http://kohanaphp.com/license
                    
81 */
                    
262		// We must sleep after flushing, or overwriting will not work!
                    
263		// @see http://php.net/manual/en/function.memcache-flush.php#81420
                    
264		sleep(1);
                    
                
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;
                    
                
split_page_results.php https://github.com/yama/zencart13x-ja.git | PHP | 158 lines
                    
1<?php
                    
2/**
                    
8 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
                    
9 * @version $Id: split_page_results.php 3041 2006-02-15 21:56:45Z wilt $
                    
10 */
                    
75
                    
76    $this->number_of_pages = ceil($this->number_of_rows / $this->number_of_rows_per_page);
                    
77
                    
                
js.php https://github.com/sarriaroman/PuntoUBP.git | PHP | 423 lines
                    
32
                    
33	var basesec = <?php echo $basesec;?>;
                    
34	var maxsecs = <?php echo $maxsecs;?>;
                    
46		tick();
                    
47		<?php if($flash == "yes"){?>
                    
48		blink_new();
                    
118			}
                    
119			$.post("<?php echo $CONFIG->wwwroot; ?>action/elggchat/leave?chatsession=" + sessionid, function(){
                    
120				$("#" + sessionid).remove();
                    
143			eraseCookie("elggchat_toolbar_minimized");
                    
144			$('#toggle_elggchat_toolbar').attr("title", "<?php echo elgg_echo("elggchat:toolbar:minimize");?>");
                    
145		}
                    
339				
                    
340				$("#elggchat_friends_picker").append("<h3 class='settings'><?php echo elgg_echo('elggchat:friendspicker:online');?> (" + numOnline + ")</h3><table>"  + tableDataOnline + "</table><h3 class='settings'><?php echo elgg_echo('elggchat:friendspicker:offline');?> (" + numOffline + ")</h3><table>" + tableDataOffline + "</table>");
                    
341				
                    
                
IntlAttribute.cs https://github.com/ServiceStack/ServiceStack.git | C# | 216 lines
                    
131public enum SignDisplay { Undefined=0, Always, Auto, ExceptZero, Negative, Never, }
                    
132public enum RoundingMode { Undefined=0, Ceil, Floor, Expand, Trunc, HalfCeil, HalfFloor, HalfExpand, HalfTrunc, HalfEven, }
                    
133
                    
164    public const string CLP = nameof(CLP);
                    
165    public const string PHP = nameof(PHP);
                    
166    public const string AED = nameof(AED);
                    
                
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',
                    
                
BaseDrawing.php https://github.com/konscript/roskilde-el-old.git | PHP | 502 lines
                    
37/** PHPExcel_IComparable */
                    
38require_once PHPEXCEL_ROOT . 'PHPExcel/IComparable.php';
                    
39
                    
40/** PHPExcel_Worksheet */
                    
41require_once PHPEXCEL_ROOT . 'PHPExcel/Worksheet.php';
                    
42
                    
43/** PHPExcel_Worksheet_Drawing_Shadow */
                    
44require_once PHPEXCEL_ROOT . 'PHPExcel/Worksheet/Drawing/Shadow.php';
                    
45
                    
52 */
                    
53class PHPExcel_Worksheet_BaseDrawing implements PHPExcel_IComparable
                    
54{		
                    
256    		} else {
                    
257    			throw new Exception("A PHPExcel_Worksheet has already been assigned. Drawings can only exist on one PHPExcel_Worksheet.");
                    
258    		}
                    
                
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";
                    
65
                    
                
index.php https://gitlab.com/Princy008/Princy_143467_B_37_Atomic_project | PHP | 337 lines
                    
1<?php
                    
2require_once("../../../vendor/autoload.php");
                    
3
                    
165                            <tr>
                    
166                                <?php
                    
167                                $serial=0;
                    
170                                $serial++; ?>
                    
171                                <td><input type="checkbox" class="checkbox" name="mark[]" value="<?php echo $result['id']?>"></td>
                    
172                                <td><?php echo $serial?></td>
                    
175                                <td><?php echo $result['birthday']?></td>
                    
176                                <td><a href="view.php?id=<?php echo $result['id']  ?>" class="btn btn-primary" role="button">View</a>
                    
177                                    <a href="edit.php?id=<?php echo $result['id'] ?>"  class="btn btn-info" role="button">Edit</a>
                    
178                                    <a href="delete.php?id=<?php echo $result['id'] ?>" class="btn btn-danger" role="button" id="delete"  Onclick="return ConfirmDelete()">Delete</a>
                    
179                                    <a href="trash.php?id=<?php echo $result['id'] ?>"  class="btn btn-info" role="button">Trash</a>
                    
180                                </td>
                    
                
BigFloatTest.class.php https://github.com/ghiata/xp-framework.git | PHP | 325 lines
                    
1<?php namespace net\xp_framework\unittest\math;
                    
2
                    
221  #[@test]
                    
222  public function ceil() {
                    
223    $this->assertEquals(new BigFloat(5.0), create(new BigFloat(4.5))->ceil());
                    
226  #[@test]
                    
227  public function ceilInt() {
                    
228    $this->assertEquals(new BigFloat(4.0), create(new BigFloat(4.0))->ceil());
                    
231  #[@test]
                    
232  public function ceilClose() {
                    
233    $this->assertEquals(new BigFloat(10.0), create(new BigFloat(9.999))->ceil());
                    
236  #[@test]
                    
237  public function ceilNegative() {
                    
238    $this->assertEquals(new BigFloat(-4.0), create(new BigFloat(-4.5))->ceil());
                    
311  #[@test]
                    
312  public function ceilLotsOfZeros() {
                    
313    $this->assertEquals(new BigFloat(4.0), create(new BigFloat('4.00000000000000000'))->ceil());
                    
                
admin_frm_sanpham.php https://gitlab.com/Johnxim/ptdapm | PHP | 147 lines
                    
1<?php
                    
2require_once("server.php");
                    
99        $jsonData['total'] =(int)$row['total'];
                    
100        $jsonData['totalpage'] =ceil($row['total']/$record);
                    
101        $jsonData['page'] =(int)$page;
                    
                
tags.php http://bitcero-modules.googlecode.com/svn/ | PHP | 371 lines
                    
1<?php
                    
2// $Id: tags.php 900 2012-01-03 07:07:52Z i.bitcero $
                    
11define('RMCLOCATION','tags');
                    
12include 'header.php';
                    
13
                    
50	$start = $num<=0 ? 0 : ($page - 1) * $limit;
                    
51    $tpages = ceil($num / $limit);	
                    
52    $nav = new RMPageNav($num, $limit, $page, 5);
                    
52    $nav = new RMPageNav($num, $limit, $page, 5);
                    
53    $nav->target_url("tags.php?search=".urlencode($search)."&amp;page={PAGE_NUM}");
                    
54    
                    
87	
                    
88	include RMTemplate::get()->get_template("admin/gs_tags.php",'module','galleries');
                    
89	RMTemplate::get()->add_script(RMCURL.'/include/js/jquery.checkboxes.js');
                    
89	RMTemplate::get()->add_script(RMCURL.'/include/js/jquery.checkboxes.js');
                    
90	RMTemplate::get()->add_script('../include/js/gsscripts.php?file=sets&form=frm-tags');
                    
91	RMTemplate::get()->add_script('../include/js/gsscripts.php?file=tags');
                    
                
modellist.php https://github.com/joomleiros/tpl_joomleiros.git | PHP | 358 lines
                    
1<?php
                    
2/**
                    
259		if ($start > $total - $limit) {
                    
260			$start = max(0, (int)(ceil($total / $limit) - 1) * $limit);
                    
261		}
                    
                
Core.php https://gitlab.com/billyprice1/bdApi | PHP | 181 lines
                    
1<?php
                    
2
                    
77
                    
78        $pageNav['pages'] = ceil($totalItems / $perPage);
                    
79
                    
                
class.CrawlerTwitterAPIAccessorOAuth.php https://github.com/suth/ThinkUp.git | PHP | 154 lines
                    
1<?php
                    
2/**
                    
3 *
                    
4 * ThinkUp/webapp/plugins/twitter/model/class.CrawlerTwitterAPIAccessorOAuth.php
                    
5 *
                    
42     */
                    
43    var $percent_use_ceiling = 90;
                    
44    /**
                    
100
                    
101        if ($is_rate_limit_check || $endpoint->isAvailable($this->percent_use_ceiling)) {
                    
102            while ($attempts <= $this->num_retries && $continue) {
                    
                
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;
                    
                
func.php http://snowcms.googlecode.com/svn/trunk/ | PHP | 272 lines
                    
1<?php
                    
2////////////////////////////////////////////////////////////////////////////
                    
66			'stripos' => create_function('$haystack, $needle, $offset = 0', '
                    
67										 // This function doesn\'t exist until PHP 5.2.0 >=
                    
68										 if(function_exists(\'mb_stripos\'))
                    
191		// So how many pages total..?
                    
192		$total_pages = ceil((int)($num_items == 0 ? 1 : $num_items) / (int)$per_page);
                    
193
                    
                
LokaliseProvider.php https://github.com/FabienD/symfony.git | PHP | 357 lines
                    
1<?php
                    
2
                    
294
                    
295        $pages = ceil($keysTotalCount / self::LOKALISE_GET_KEYS_LIMIT);
                    
296        if ($page < $pages) {
                    
                
AzureStorage.php https://code.google.com/p/celebrio/ | PHP | 252 lines
                    
1<?php
                    
2
                    
107            AzureStorageBLOB::connection()->createContainerIfNotExists($container);
                    
108            $numOfBlocks = ceil (\strlen($dataFile->getData()) / self::MAX_BLOCK_SIZE);
                    
109            $indexes = $this->getIndexes($numOfBlocks);
                    
                
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')));
                    
251
                    
                
montage.c https://github.com/trevor/ImageMagick.git | C | 139 lines
                    
25%                                                                             %
                    
26%    http://www.imagemagick.org/script/license.php                            %
                    
27%                                                                             %
                    
133        iterations,1.0*iterations/elapsed_time,user_time,(long)
                    
134        (elapsed_time/60.0+0.5),(long) ceil(fmod(elapsed_time,60.0)));
                    
135    }
                    
                
IndexAction.class.php https://gitlab.com/llwhois/woaimm | PHP | 227 lines
                    
1<?php
                    
2class IndexAction extends Action {
                    
64			 $DataCount = $db->where($where)->count();
                    
65			 $maxPage = ceil($DataCount/$pageSize);
                    
66			 $page = $page>$maxPage?1:$page;
                    
111		 if($DataCount){
                    
112		     $maxPage = ceil($DataCount/$pageSize);
                    
113		     $page = $page>$maxPage?1:$page;
                    
155				 $DataCount = $db->where($where)->count();
                    
156				 $maxPage = ceil($DataCount/$pageSize);
                    
157			     $page = $page>$maxPage?1:$page;
                    
                
Version.php https://github.com/JeCat/framework.git | PHP | 399 lines
                    
1<?php
                    
2////////////////////////////////////////////////////////////////////////////////////////////////////////////
                    
2////////////////////////////////////////////////////////////////////////////////////////////////////////////
                    
3//  这个文件是 JeCat PHP框架的一部分,该项目和此文件 均遵循 GNU 自由软件协议
                    
4// 
                    
7//
                    
8//  JeCat PHP框架 的正式全名是:Jellicle Cat PHP Framework。
                    
9//  “Jellicle Cat”出自 Andrew Lloyd Webber的音乐剧《猫》(《Prologue:Jellicle Songs for Jellicle Cats》)。
                    
9//  “Jellicle Cat”出自 Andrew Lloyd Webber的音乐剧《猫》(《Prologue:Jellicle Songs for Jellicle Cats》)。
                    
10//  JeCat 是一个开源项目,它像音乐剧中的猫一样自由,你可以毫无顾忌地使用JCAT PHP框架。JCAT 由中国团队开发维护。
                    
11//  正在使用的这个版本是:0.7.1
                    
253	 */
                    
254	public function toCeil32Integer()
                    
255	{		
                    
                
themes.php https://bitbucket.org/zenoalbisser/webkit.git | PHP | 302 lines
                    
35if ( current_user_can('install_themes') ) {
                    
36	$help .= '<p>' . sprintf(__('You can find additional themes for your site by using the new <a href="%1$s">Theme Browser/Installer</a> functionality or by browsing the <a href="http://wordpress.org/extend/themes/">WordPress Theme Directory</a> directly and installing manually.  To install a theme <em>manually</em>, <a href="%2$s">upload its ZIP archive with the new uploader</a> or copy its folder via FTP into your <code>wp-content/themes</code> directory.'), 'theme-install.php', 'theme-install.php?tab=upload' ) . '</p>';
                    
37	$help .= '<p>' . __('Once a theme is uploaded, you should see it on this page.') . '</p>' ;
                    
51		if ( isset($wp_registered_sidebars) && count( (array) $wp_registered_sidebars ) ) { ?>
                    
52<div id="message2" class="updated fade"><p><?php printf(__('New theme activated. This theme supports widgets, please visit the <a href="%s">widgets settings page</a> to configure them.'), admin_url('widgets.php') ); ?></p></div><?php
                    
53		} else { ?>
                    
53		} else { ?>
                    
54<div id="message2" class="updated fade"><p><?php printf(__('New theme activated. <a href="%s">Visit site</a>'), get_bloginfo('url') . '/'); ?></p></div><?php
                    
55		}
                    
134<?php if ( $ct->screenshot ) : ?>
                    
135<img src="<?php echo content_url($ct->stylesheet_dir . '/' . $ct->screenshot); ?>" alt="<?php _e('Current theme preview'); ?>" />
                    
136<?php endif; ?>
                    
146<?php if ( $ct->tags ) : ?>
                    
147<p><?php _e('Tags:'); ?> <?php echo join(', ', $ct->tags); ?></p>
                    
148<?php endif; ?>
                    
                
work_his.php https://gitlab.com/dev.essetel/sjnuri | PHP | 505 lines
                    
124          <dv class="his_top_data">
                    
125            <p><?php echo $row_va['vme_time'] ?><span>시간</span></p>
                    
126          </dv>
                    
164					<div class="search_bt">
                    
165					  <button type=""><a href="./work_his.php?stx_y=<?php echo $prev_year;?>&stx_m=<?php echo $prev_month ;?>">이전달</a></button>
                    
166					</div>
                    
185					<div class="search_bt">
                    
186					  <button type=""><a href="./work_his.php?stx_y=<?php echo $next_year;?>&stx_m=<?php echo $next_month;?>">다음달</a></button>
                    
187					</div>
                    
231
                    
232              <tr class="edit_work" wk_idx="<?php echo $row['wk_idx'] ?>">
                    
233                <td><?php echo $row['wk_date'] ?></td>
                    
233                <td><?php echo $row['wk_date'] ?></td>
                    
234                <td><?php echo $row['mk_chdate'] ?></td>
                    
235                <td>
                    
                
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);
                    
                
class-wc-admin-log-table-list.php https://gitlab.com/campus-academy/krowkaramel | PHP | 395 lines
                    
1<?php
                    
2/**
                    
15if ( ! class_exists( 'WP_List_Table' ) ) {
                    
16	require_once ABSPATH . 'wp-admin/includes/class-wp-list-table.php';
                    
17}
                    
77		?>
                    
78			<label for="filter-by-level" class="screen-reader-text"><?php esc_html_e( 'Filter by level', 'woocommerce' ); ?></label>
                    
79			<select name="level" id="filter-by-level">
                    
79			<select name="level" id="filter-by-level">
                    
80				<option<?php selected( $selected_level, '' ); ?> value=""><?php esc_html_e( 'All levels', 'woocommerce' ); ?></option>
                    
81				<?php
                    
91			</select>
                    
92		<?php
                    
93	}
                    
241				<select name="source" id="filter-by-source">
                    
242					<option<?php selected( $selected_source, '' ); ?> value=""><?php esc_html_e( 'All sources', 'woocommerce' ); ?></option>
                    
243					<?php
                    
                
media-upload.php https://github.com/santi93/Andes.git | PHP | 234 lines
                    
181					<td class="label"><label for="image[<?php echo $picid; ?>][alttext]"><?php esc_attr( _e('Alt/Title text', "flag") ); ?></label></td>
                    
182					<td class="field"><input id="image[<?php echo $picid; ?>][alttext]" name="image[<?php echo $picid; ?>][alttext]" value="<?php echo esc_attr( stripslashes($picture->alttext) ); ?>" type="text"/></td>
                    
183				  </tr>	
                    
185					<td class="label"><label for="image[<?php echo $picid; ?>][description]"><?php esc_attr( _e("Description","flag") ); ?></label></td>
                    
186						<td class="field"><textarea name="image[<?php echo $picid; ?>][description]" id="image[<?php echo $picid; ?>][description]"><?php echo esc_attr( stripslashes($picture->description) ); ?></textarea></td>
                    
187				  </tr>
                    
188					<tr class="align">
                    
189						<td class="label"><label for="image[<?php echo $picid; ?>][align]"><?php esc_attr( _e("Alignment") ); ?></label></td>
                    
190						<td class="field">
                    
191							<input name="image[<?php echo $picid; ?>][align]" id="image-align-none-<?php echo $picid; ?>" checked="checked" value="none" type="radio" />
                    
192							<label for="image-align-none-<?php echo $picid; ?>" class="align image-align-none-label"><?php esc_attr( _e("None") ); ?></label>
                    
193							<input name="image[<?php echo $picid; ?>][align]" id="image-align-left-<?php echo $picid; ?>" value="left" type="radio" />
                    
197							<input name="image[<?php echo $picid; ?>][align]" id="image-align-right-<?php echo $picid; ?>" value="right" type="radio" />
                    
198							<label for="image-align-right-<?php echo $picid; ?>" class="align image-align-right-label"><?php esc_attr( _e("Right") ); ?></label>
                    
199						</td>
                    
                
Changelog.php https://gitlab.com/e0/X2CRM | PHP | 154 lines
                    
1<?php
                    
2/***********************************************************************************
                    
129
                    
130		$parameters = array('limit'=>ceil(Profile::getResultsPerPage()));
                    
131		$criteria->scopes = array('findAll'=>array($parameters));
                    
                
jquery.pajinate.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 328 lines
                    
7	// Licensed under the MIT License (MIT-LICENSE.txt)
                    
8	// http://www.opensource.org/licenses/mit-license.php
                    
9	// Created: 2010-04-16 | Updated: 2010-04-26
                    
69			// Calculate the number of pages needed
                    
70			var number_of_pages = Math.ceil(total_items / options.items_per_page);
                    
71
                    
237	            	// Calculate the number of pages needed
                    
238	            	var $number_of_pages = Math.ceil(total_items / options.items_per_page);
                    
239            		/*##################################################################*/
                    
                
ext.tag_sync.php https://github.com/amphibian/ext.tag_sync.ee_addon.git | PHP | 425 lines
                    
1<?php
                    
2
                    
50			{
                    
51				$batches = ceil($count->row['count'] / $this->batch_size);
                    
52				$offset = ($current_batch - 1) * $this->batch_size;
                    
84					// Build and run our update statement
                    
85					$sql = "UPDATE exp_weblog_data SET `field_id_".ceil($custom_field)."` = CASE entry_id ";
                    
86					foreach($tags as $entry_id => $tag)
                    
336					// Update the field with our list of tags
                    
337					$sql = "UPDATE exp_weblog_data SET `field_id_".ceil($custom_field)."` = '".$DB->escape_str(implode(',', $tags))."' WHERE entry_id = $entry_id";
                    
338				}
                    
341					// We don't have any tags, or just removed them all, so zero out the field
                    
342					$sql = "UPDATE exp_weblog_data SET `field_id_".ceil($custom_field)."` = '' WHERE entry_id = $entry_id";
                    
343				}
                    
                
threads.inc.php https://github.com/AlexChien/EY_BBS.git | PHP | 399 lines
                    
1<?php
                    
2
                    
6
                    
7$Id: threads.inc.php 16886 2008-11-26 05:08:30Z cnteacher $
                    
8*/
                    
106			$total = $db->result_first("SELECT count(*) FROM {$tablepre}threads WHERE fid='$fid' AND displayorder>=0");
                    
107			$tpage = ceil($total / $tpp);
                    
108			$page = min($tpage, $page);
                    
121				$total = $result['count'];
                    
122				$tpage = ceil($total / $tpp);
                    
123				$page = min($tpage, $page);
                    
133		if($query) {
                    
134			require_once DISCUZ_ROOT.'./include/misc.func.php';
                    
135			while ($thread = $db->fetch_array($query)) {
                    
199		if($pidsdelete) {
                    
200			require_once DISCUZ_ROOT.'./include/post.func.php';
                    
201
                    
                
 

Source

Language