本文整理汇总了PHP中Globals::hasParam方法的典型用法代码示例。如果您正苦于以下问题:PHP Globals::hasParam方法的具体用法?PHP Globals::hasParam怎么用?PHP Globals::hasParam使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Globals
的用法示例。
在下文中一共展示了Globals::hasParam方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
<td>
<table border="0" width="100%" cellspacing="0" cellpadding="2" height="40">
<tr>
<td class="pageHeading"><?php
echo RATEPAY_ADMIN_LOGGING;
?>
</td>
</tr>
<tr>
<td><img width="100%" height="1" border="0" alt="" src="images/pixel_black.gif"></td>
</tr>
</table>
</td>
</tr>
<?php
if (Globals::hasParam('success')) {
?>
<tr>
<td class="messageStackSuccess">
<img border="0" title="" alt="" src="images/icons/success.gif">
<?php
echo RATEPAY_ADMIN_LOGGING_DELETE_SUCCESS;
?>
</td>
</tr>
<?php
}
?>
<tr>
<td>
<form method="post" action="delete_logging.php">
示例2: die
* @category PayIntelligent
* @package ratepay
* @copyright (C) 2012 PayIntelligent GmbH <http://www.payintelligent.de/>
* @license GPLv2
*/
/**
* RatePAY order template, displays the deliver/cancel, refund, credit and histroy panel
*/
require_once 'includes/application_top.php';
require_once '../includes/languages/' . $_SESSION['language'] . '/admin/modules/payment/ratepay.php';
require_once '../includes/classes/ratepay/helpers/Data.php';
require_once '../includes/classes/ratepay/helpers/Db.php';
require_once '../includes/classes/ratepay/helpers/Session.php';
require_once '../includes/classes/ratepay/helpers/Globals.php';
require_once 'includes/classes/order.php';
$orderId = Globals::hasParam('oID') ? Globals::getParam('oID') : die('Missing param: "oID"');
$order = new order($orderId);
$lang = $_SESSION['language'];
$basketAmount = Data::getBasketAmount($order, $orderId);
require DIR_WS_INCLUDES . 'template_top.php';
?>
<script language="javascript" src="<?php
echo DIR_WS_CATALOG . 'templates/javascript/ratepay_order.js';
?>
"></script>
<style>
.piRpRight
{
text-align:right;
}
</style>
示例3: die
* GNU General Public License for more details.
*
* @category PayIntelligent
* @package ratepay
* @copyright (C) 2012 PayIntelligent GmbH <http://www.payintelligent.de/>
* @license GPLv2
*/
/**
* RatePAY logging template, displays the XML
*/
require_once 'includes/application_top.php';
require_once '../includes/languages/' . $_SESSION['language'] . '/admin/modules/payment/ratepay.php';
require_once '../includes/classes/ratepay/helpers/Data.php';
require_once '../includes/classes/ratepay/helpers/Db.php';
require_once '../includes/classes/ratepay/helpers/Globals.php';
Globals::hasParam('id') ? $log = Db::getLogEntry(Globals::getParam('id')) : die('Page not allowed!');
require DIR_WS_INCLUDES . 'header.php';
?>
<link rel="stylesheet" type="text/css" href="includes/stylesheet.css">
<script language="javascript" src="includes/general.js"></script>
<table border="0" width="100%" cellspacing="2" cellpadding="2">
<tr>
<td width="<?php
echo BOX_WIDTH;
?>
" valign="top">
<table border="0" width="<?php
echo BOX_WIDTH;
?>
" cellspacing="1"
cellpadding="1" class="columnLeft">
示例4: getLoggingLogical
/**
* Retrieve the logging logical
*
* @return string
*/
public static function getLoggingLogical()
{
$logicals = array('desc' => 'asc', 'asc' => 'desc');
$logical = 'desc';
if (Globals::hasParam('logical')) {
$logical = $logicals[Globals::getParam('logical')];
}
return $logical;
}