PageRenderTime 6748ms queryFilters 49ms Sphinxql 267ms GetByIds 728ms meta 0ms repositoryFilters 19ms languageFilters 0ms sourceFilters 1ms

84,884 results for 'php ceil repo:openpne/OpenPNE2' (6748 ms)

Source

Language

Repository

SQLFunctionTest.class.php git://github.com/xp-framework/xp-framework.git | PHP | 395 lines
164      '(\'aa\' || str(getdate()) || \'cc\') as "concatTest"',
165      '\'aa\' || php(\'strval\', php(\'date\', \'Y-m-d H:i:s\', php(\'time\'))) || \'cc\' as \'concatTest\'',
166      create(new \rdbms\Criteria())->setProjection(SQLFunctions::concat('aa', SQLFunctions::str(SQLFunctions::getdate()), 'cc'), 'concatTest')
201      'datename(hour, getdate())',
202      'php(\'strval\', php(\'idate\', "H", php(\'strtotime\', php(\'date\', \'Y-m-d H:i:s\', php(\'time\')))))',
203      create(new \rdbms\Criteria())->setProjection(SQLFunctions::datename('hour', SQLFunctions::getdate()))
261      'round(1.5, 0) as "roundtest1", round(1.49, 0) as "roundtest2", round(1.49, 1) as "roundtest3"',
262      'php(\'round\', 1.5, 0) as \'roundtest1\', php(\'round\', 1.49, 0) as \'roundtest2\', php(\'round\', 1.49, 1) as \'roundtest3\'',
263      create(new \rdbms\Criteria())->setProjection(\rdbms\criterion\Projections::ProjectionList()
383      'where job_id = ceil(asin(sin(0.125)))',
384      'where job_id = php(\'ceil\', php(\'asin\', php(\'sin\', 0.125)))',
385      create(new \rdbms\Criteria())->add(Restrictions::equal('job_id', SQLFunctions::ceil(SQLFunctions::asin(SQLFunctions::sin(0.125)))))
390      'where job_id = ceil(asin(sin(0.125)))',
391      'where job_id = php(\'ceil\', php(\'asin\', php(\'sin\', 0.125)))',
392      create(new \rdbms\Criteria())->add(Restrictions::equal(Job::column('job_id'), SQLFunctions::ceil(SQLFunctions::asin(SQLFunctions::sin(0.125)))))
php-math.el git://github.com/ejmr/php-mode.git | Lisp | 350 lines
21;; To install php-ext.el:
22;; You can add (load "path/php-ext/php-ext.el") to your .emacs
23
24;; Description:
25;; Php ext is some skeleton templates for extend php-mode
26
27;; Math functions
28;; http://php.net/manual/en/ref.math.php
29;; file:///usr/share/doc/php-doc/html/ref.math.html
30
31(define-skeleton php-abs
32  "Insert an abs statement"
102
103(define-skeleton php-ceil
104  "Insert a ceil statement"
phpToJS.php git://github.com/phpnode/YiiJS.git | PHP | 1,640 lines
3 * A woefully naive, context unaware PHP to JavaScript token transformer.
4 * Relies on php.js for a lot of the built in PHP functions.
5 * HERE BE DRAGONS!
192		'base_convert' => 'php.base_convert',
193		'ceil' => 'php.ceil',
194		'floor' => 'php.floor',
1414 */
1415class phpClass extends phpBase {
1416	
1512 */
1513class phpProperty extends phpBase {
1514	/**
1547 */
1548class phpMethod extends phpBase {
1549	/**
ceil.html git://github.com/kvz/phpjs.git | HTML | 37 lines
14layout: function
15title: PHP's ceil in JavaScript
16description: >-
17  Here’s what our current JavaScript equivalent to <a
18  href="https://php.net/manual/en/function.ceil.php">PHP's ceil</a> looks like.
19function: ceil
23alias:
24  - /functions/php/ceil/
25  - /functions/math/ceil/
25  - /functions/math/ceil/
26  - /php/ceil/
27  - /functions/ceil/
29{% codeblock lang:javascript %}module.exports = function ceil (value) {
30  //  discuss at: https://locutus.io/php/ceil/
31  // original by: Onno Marsman (https://twitter.com/onnomarsman)
ceil.html https://github.com/andriuspetrauskis/phpjs.git | HTML | 37 lines
14layout: function
15title: PHP's ceil in JavaScript
16description: >-
17  Here’s what our current JavaScript equivalent to <a
18  href="http://php.net/manual/en/function.ceil.php">PHP's ceil</a> looks like.
19function: ceil
23alias:
24  - /functions/php/ceil/
25  - /functions/math/ceil/
25  - /functions/math/ceil/
26  - /php/ceil/
27  - /functions/ceil/
29{% codeblock lang:javascript %}module.exports = function ceil (value) {
30  //  discuss at: http://locutus.io/php/ceil/
31  // original by: Onno Marsman (https://twitter.com/onnomarsman)
CeilExtension.php https://github.com/diimpp/platform.git | PHP | 36 lines
1<?php
2
4
5class CeilExtension extends \Twig_Extension
6{
12        return array(
13            'ceil' => new \Twig_Filter_Method($this, 'ceil'),
14        );
17    /**
18     * PHP ceil wrapper
19     *
22     */
23    public function ceil($number)
24    {
24    {
25        return ceil($number);
26    }
php-math.el https://github.com/andreaja/dotemacs.git | Lisp | 350 lines
21;; To install php-ext.el:
22;; You can add (load "path/php-ext/php-ext.el") to your .emacs
23
24;; Description:
25;; Php ext is some skeleton templates for extend php-mode
26
27;; Math functions
28;; http://php.net/manual/en/ref.math.php
29;; file:///usr/share/doc/php-doc/html/ref.math.html
30
31(define-skeleton php-abs
32  "Insert an abs statement"
102
103(define-skeleton php-ceil
104  "Insert a ceil statement"
SQLiteDialect.class.php git://github.com/xp-framework/xp-framework.git | PHP | 243 lines
44        'cast_2'       => 'cast(%s as %e)',
45        'ceil_1'       => 'php("ceil", %d)',
46        'char_1'       => 'php("chr", %d)',
50        'datediff_3'   => 'datediff_not_implemented',
51        'datename_2'   => 'php("strval", php("idate", %t, php("strtotime", %s)))',
52        'datepart_2'   => 'php("idate", %t, php("strtotime", %s))',
57        'getdate_0'    => 'php("date", "Y-m-d H:i:s", php("time"))',
58        'hour_1'       => 'php("idate", "H", php("strtotime", %s))',
59        'len_1'        => 'php("strlen", %s)',
68        'minute_1'     => 'php("idate", "i", php("strtotime", %s))',
69        'month_1'      => 'php("idate", "m", php("strtotime", %s))',
70        'nullif_2'     => 'nullif(%s, %s)',
78        'rtrim_2'      => 'php("rtrim", %s, %s)',
79        'second_1'     => 'php("idate", "s", php("strtotime", %s))',
80        'sign_1'       => 'sign(%d)',
CeilExtension.php https://github.com/ama3ing/OroPlatform.git | PHP | 35 lines
1<?php
2
4
5class CeilExtension extends \Twig_Extension
6{
12        return array(
13            'ceil' => new \Twig_Filter_Method($this, 'ceil'),
14        );
17    /**
18     * PHP ceil wrapper
19     *
22     */
23    public function ceil($number)
24    {
24    {
25        return ceil($number);
26    }
encyclopedialib.php https://github.com/BenMakesGames/PsyPets.git | PHP | 636 lines
1<?php
2require_once 'commons/museumlib.php';
54    $command = 'SELECT COUNT(*) FROM monster_inventory WHERE itemname=' . quote_smart($item['itemname']);
55    $data = fetch_single($command, 'encyclopedia2.php');
56    $number_in_game = (int)$data['COUNT(*)'];
58    $command = 'SELECT SUM(quantity) FROM psypets_basement WHERE itemname=' . quote_smart($item['itemname']) . ' GROUP BY itemname';
59    $data = fetch_single($command, 'encyclopedia2.php');
60    $number_in_basements = (int)$data['SUM(quantity)'];
323    ?>
324    <tr><th valign="top"><nobr>Gamesell Value<a href="/help/gamesell.php" class="help">?</a></nobr></th><td><?= ($item['nosellback'] == 'yes' ? 'may not be sold to the game' : ceil($item['value'] * sellback_rate()) . '<span class="money">m</span>') ?></td></tr>
325    <tr><th valign="top"><nobr><a href="/pawnshop.php">Pawn Shop</a> Availability</nobr></th><td><?= $pawn_avail ?></td></tr>
363            else
364                echo '<tr><th><a href="/grocerystore_gamesold.php">Farmer\'s Market</a> Inventory</th><td><a href="/grocerystore_gamesold.php">' . ceil($item['value'] / 5.0 * 4) . '<span class="money">m</span></a> (' . $count . ' available)</td></tr>';
365        }
375            else
376                echo '<tr><th><a href="/recycling_gamesell.php?letter=' . $item['itemname'][0] . '">Refuse Store</a> Inventory</th><td><a href="/recycling_gamesell.php?letter=' . $item['itemname'][0] . '">' . $item['value'] . '<span class="money">m</span></a> (' . $count . ' available)</td></tr>';
377        }
ceil.js git://github.com/kvz/phpjs.git | JavaScript | 8 lines
1module.exports = function ceil (value) {
2  //  discuss at: https://locutus.io/php/ceil/
3  // original by: Onno Marsman (https://twitter.com/onnomarsman)
3  // original by: Onno Marsman (https://twitter.com/onnomarsman)
4  //   example 1: ceil(8723321.4)
5  //   returns 1: 8723322
6
7  return Math.ceil(value)
8}
ceil.js https://github.com/andriuspetrauskis/phpjs.git | JavaScript | 8 lines
1module.exports = function ceil (value) {
2  //  discuss at: http://locutus.io/php/ceil/
3  // original by: Onno Marsman (https://twitter.com/onnomarsman)
3  // original by: Onno Marsman (https://twitter.com/onnomarsman)
4  //   example 1: ceil(8723321.4)
5  //   returns 1: 8723322
6
7  return Math.ceil(value)
8}
geneHTML.php https://github.com/BlackZhang/Magic.git | PHP | 124 lines
1<?php
2/**
24	date_default_timezone_set('PRC');
25	$url = (isset ($_SERVER['HTTP_HOST']) ? $_SERVER['HTTP_HOST'] : '') . $_SERVER['PHP_SELF'];
26	$html = "<!DOCTYPE><html><head><meta http-equiv='Content-Type' content='text/html; charset=utf-8' />
41function _srcOnlyList(){
42	require 'case.class.php';
43	$list = Kiss::listSrcOnly(false);
86	$trCase = '';
87	require_once 'config.php';
88	$numBro = count(Config::$BROWSERS);
91		$cnurl = implode('.', explode('_', $casename));
92		$trCase .= "<tr><td><a href='http://{$_SERVER['HTTP_HOST']}/{$_SERVER['PHP_SELF']}/../run.php?case=$cnurl'>运行</a>$casename</td>";
93		$totalCov = calTotalCov($caseDetail,$numBro);
119	}
120	$aveCov = ceil($totalCov/$brcount);/*php默认原函数ceil,小数取整*/
121	return $aveCov.'%';
getid3.putid3.php http://nukeviet-music.googlecode.com/svn/trunk/ | PHP | 1,647 lines
1<?php
2////////////////////////////////////////////////////////////
6//                                                        //
7// putid3.php - part of getID3()                          //
8// See getid3.readme.txt for more details                 //
83			case 'TXX':
84				$error .= $frame_name.' not yet supported in putid3.php<BR>';
85				break;
86			case 'WXX':
87				$error .= $frame_name.' not yet supported in putid3.php<BR>';
88				break;
89			case 'IPL':
90				$error .= $frame_name.' not yet supported in putid3.php<BR>';
91				break;
92			case 'MCI':
93				$error .= $frame_name.' not yet supported in putid3.php<BR>';
94				break;
my.php https://bitbucket.org/johnroyer/phpwind8.7.git | PHP | 462 lines
1<?php
2!defined('R_P') && exit('Forbidden');
9
10$basename = "u.php?";
11$type = empty($type) ? 'attention' : $type;
23	}
24	$page > ceil($count/$db_perpage) && $page = ceil($count/$db_perpage);
25	$attentions = $count ? $attentionSerivce->getFollowListInPage($winduid, $page, $db_perpage) : array();
39	}
40	$pages = numofpage($count,$page,ceil($count/$db_perpage),"{$thisbase}&");
41
57	}
58	$page > ceil($count/$db_perpage) && $page = ceil($count/$db_perpage);
59	$attentions = $count ? $attentionSerivce->getFansListInPage($winduid, $page, $db_perpage) : array();
94	$count = (int)$friendsService->countUserFriends($u,$ftype);
95	$page > ceil($count/$db_perpage) && $page = ceil($count/$db_perpage);
96	$friends = $count ? $friendsService->findUserFriendsInPage($u, $page, $db_perpage, $ftype) : array();
PDFWand.php https://bitbucket.org/Sinfin/pawtucket.git | PHP | 744 lines
1<?php
2/** ---------------------------------------------------------------------
40
41include_once(__CA_LIB_DIR__."/core/Plugins/WLPlug.php");
42include_once(__CA_LIB_DIR__."/core/Plugins/IWLPlugMedia.php");
42include_once(__CA_LIB_DIR__."/core/Plugins/IWLPlugMedia.php");
43include_once(__CA_LIB_DIR__."/core/Configuration.php");
44include_once(__CA_LIB_DIR__."/core/Media.php");
44include_once(__CA_LIB_DIR__."/core/Media.php");
45include_once(__CA_APP_DIR__."/helpers/mediaPluginHelpers.php");
46
181			try {
182				include_once(__CA_LIB_DIR__."/core/Zend/Pdf.php");
183				$o_pdf = Zend_Pdf::load($ps_filepath);
443					if ($vn_scaling_correction) { $vn_res *= 2; }
444					$vs_res = ceil($vn_res)."x".ceil($vn_res);
445				}
mailbox_display.php https://squirrelmail.svn.sourceforge.net/svnroot/squirrelmail | PHP | 1,341 lines
1<?php
2
17require_once(SM_PATH . 'functions/strings.php');
18require_once(SM_PATH . 'functions/html.php');
19require_once(SM_PATH . 'class/html.class.php');
19require_once(SM_PATH . 'class/html.class.php');
20require_once(SM_PATH . 'functions/imap_mailbox.php');
21require_once(SM_PATH . 'functions/imap_messages.php');
21require_once(SM_PATH . 'functions/imap_messages.php');
22require_once(SM_PATH . 'functions/mime.php');
23
707
708    $php_self = $PHP_SELF;
709    /* fix for incorrect $PHP_SELF */
710    if (strpos($php_self, 'move_messages.php')) {
711        $php_self = str_replace('move_messages.php', 'right_main.php', $php_self);
712    }
mailbox_display.php https://squirrelmail.svn.sourceforge.net/svnroot/squirrelmail | PHP | 1,298 lines
1<?php
2
17require_once(SM_PATH . 'functions/strings.php');
18require_once(SM_PATH . 'functions/html.php');
19require_once(SM_PATH . 'class/html.class.php');
19require_once(SM_PATH . 'class/html.class.php');
20require_once(SM_PATH . 'functions/imap_mailbox.php');
21
223                }
224                $td_str .= '<a href="read_body.php?mailbox='.$urlMailbox
225                        .  '&amp;passed_id='. $msg["ID"]
660
661    $php_self = $PHP_SELF;
662    /* fix for incorrect $PHP_SELF */
663    if (strpos($php_self, 'move_messages.php')) {
664        $php_self = str_replace('move_messages.php', 'right_main.php', $php_self);
665    }
mailbox_display.php https://squirrelmail.svn.sourceforge.net/svnroot/squirrelmail | PHP | 1,320 lines
1<?php
2
15/** The standard includes.. */
16require_once(SM_PATH . 'functions/strings.php');
17require_once(SM_PATH . 'functions/html.php');
17require_once(SM_PATH . 'functions/html.php');
18require_once(SM_PATH . 'class/html.class.php');
19require_once(SM_PATH . 'functions/imap_mailbox.php');
238                }
239                $td_str .= '<a href="read_body.php?mailbox='.$urlMailbox
240                        .  '&amp;passed_id='. $msg["ID"]
679
680    $php_self = $PHP_SELF;
681    /* fix for incorrect $PHP_SELF */
682    if (strpos($php_self, 'move_messages.php')) {
683        $php_self = str_replace('move_messages.php', 'right_main.php', $php_self);
684    }
mailbox_display.php https://squirrelmail.svn.sourceforge.net/svnroot/squirrelmail | PHP | 1,361 lines
1<?php
2
15/** The standard includes.. */
16require_once(SM_PATH . 'functions/strings.php');
17require_once(SM_PATH . 'functions/html.php');
17require_once(SM_PATH . 'functions/html.php');
18require_once(SM_PATH . 'class/html.class.php');
19require_once(SM_PATH . 'functions/imap_mailbox.php');
259                }
260                $td_str .= '<a href="read_body.php?mailbox='.$urlMailbox
261                        .  '&amp;passed_id='. $msg["ID"]
724
725    $php_self = $PHP_SELF;
726    /* fix for incorrect $PHP_SELF */
727    if (strpos($php_self, 'move_messages.php')) {
728        $php_self = str_replace('move_messages.php', 'right_main.php', $php_self);
729    }
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21