本文整理汇总了PHP中Content::pagination方法的典型用法代码示例。如果您正苦于以下问题:PHP Content::pagination方法的具体用法?PHP Content::pagination怎么用?PHP Content::pagination使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Content
的用法示例。
在下文中一共展示了Content::pagination方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: preg_replace
$order_by1 = !empty($_REQUEST['order_by']) ? preg_replace("/[^a-z]/", "", $_REQUEST['order_by']) : false;
$order_desc1 = !empty($_REQUEST['order_desc']) ? preg_replace("/[^0-9]/", "", $_REQUEST['order_desc']) : false;
$start_date1 = false;
$type1 = !empty($_REQUEST['type']) ? preg_replace("/[^0-9]/", "", $_REQUEST['type']) : false;
$page1 = !empty($_REQUEST['page']) ? preg_replace("/[^0-9]/", "", $_REQUEST['page']) : false;
$trans_realized1 = !empty($_REQUEST['transactions']) ? preg_replace("/[^0-9]/", "", $_REQUEST['transactions']) : false;
$bypass = !empty($_REQUEST['bypass']);
API::add('Transactions', 'get', array(1, $page1, 30, $currency1, 1, $start_date1, $type1, $order_by1, $order_desc1));
$query = API::send();
$total = $query['Transactions']['get']['results'][0];
API::add('Transactions', 'get', array(false, $page1, 30, $currency1, 1, $start_date1, $type1, $order_by1, $order_desc1));
API::add('Transactions', 'getTypes');
$query = API::send();
$transactions = $query['Transactions']['get']['results'][0];
$transaction_types = $query['Transactions']['getTypes']['results'][0];
$pagination = Content::pagination('transactions.php', $page1, $total, 30, 5, false);
$currency_info = $currency1 ? $CFG->currencies[strtoupper($currency1)] : array();
if ($trans_realized1 > 0) {
Messages::add(str_replace('[transactions]', $trans_realized1, Lang::string('transactions-done-message')));
}
$page_title = Lang::string('transactions');
if (!$bypass) {
include 'includes/head.php';
?>
<div class="page_title">
<div class="container">
<div class="title"><h1><?php
echo $page_title;
?>
</h1></div>
<div class="pagenation"> <a href="<?php
示例2: array
$currencies = Settings::sessionCurrency();
API::add('BitcoinAddresses', 'get', array(false, $currencies['c_currency'], false, 1, 1));
API::add('Requests', 'get', array(1));
API::add('Requests', 'get', array(false, $page1, 15));
API::add('Content', 'getRecord', array('deposit-bank-instructions'));
API::add('Content', 'getRecord', array('deposit-no-bank'));
API::add('Gateways', 'get');
API::add('Gateways', 'getCards');
API::add('User', 'getCountries');
$query = API::send();
$total = $query['Requests']['get']['results'][0];
$requests = $query['Requests']['get']['results'][1];
$gateways = $query['Gateways']['get']['results'][0];
$gateway_cards = $query['Gateways']['getCards']['results'][0];
$countries = $query['User']['getCountries']['results'][0];
$pagination = $pagination = Content::pagination('deposit.php', $page1, $total, 15, 5, false);
$gateway_types = array();
if ($gateways) {
foreach ($gateways as $gateway) {
$gateway_types[$gateway['gateway_type']] = array('key' => $gateway['type_key'], 'name' => $gateway['type_name']);
}
}
$ask_confirm = false;
$passed_uniq = false;
$confirmed = !empty($_REQUEST['confirmed']) ? $_REQUEST['confirmed'] : false;
$gateway_type1 = false;
$gateway_currency1 = $currencies['currency'];
$gateway_amount1 = false;
$card_type1 = false;
$card_name1 = false;
$card_number1 = false;
示例3: ereg_replace
<?php
include '../lib/common.php';
$page1 = !empty($_REQUEST['page']) ? ereg_replace("[^0-9]", "", $_REQUEST['page']) : false;
$bypass = !empty($_REQUEST['bypass']);
API::add('News', 'get', array(1));
API::add('News', 'get', array(false, $page1, 10, 1));
$query = API::send();
$total = $query['News']['get']['results'][0];
$news = $query['News']['get']['results'][1];
$pagination = Content::pagination('press-releases.php', $page1, $total, 10, 5, false);
$page_title = Lang::string('news');
if (!$bypass) {
include 'includes/head.php';
?>
<div class="page_title">
<div class="container">
<div class="title"><h1><?php
echo $page_title;
?>
</h1></div>
<div class="pagenation"> <a href="<?php
echo Lang::url('index.php');
?>
"><?php
echo Lang::string('home');
?>
</a> <i>/</i> <a href="<?php
echo Lang::url('press-releases.php');
?>
"><?php
示例4: foreach
if ($gateways) {
foreach ($gateways as $gateway) {
$gateway_types[$gateway['gateway_type']] = array('key' => $gateway['type_key'], 'name' => $gateway['type_name']);
}
}
if ($account1 > 0) {
$bank_account = $query['BankAccounts']['getRecord']['results'][0];
} elseif ($bank_accounts) {
$key = key($bank_accounts);
$bank_account = $bank_accounts[$key];
}
if ($bank_account) {
$currency_info = $CFG->currencies[$bank_account['currency']];
$currency1 = $currency_info['currency'];
}
$pagination = Content::pagination('withdraw.php', $page1, $total, 15, 5, false);
if ($CFG->withdrawals_status == 'suspended') {
Errors::add(Lang::string('withdrawal-suspended'));
}
if (!empty($_REQUEST['bitcoins'])) {
if ($btc_amount1 - $wallet['bitcoin_sending_fee'] < 1.0E-8) {
Errors::add(Lang::string('withdraw-amount-zero'));
}
if ($btc_amount1 > $user_available[$c_currency_info['currency']]) {
Errors::add(str_replace('[c_currency]', $c_currency_info['currency'], Lang::string('withdraw-too-much')));
}
if (!$query['BitcoinAddresses']['validateAddress']['results'][0]) {
Errors::add(str_replace('[c_currency]', $c_currency_info['currency'], Lang::string('withdraw-address-invalid')));
}
if (!is_array(Errors::$errors)) {
if (User::$info['confirm_withdrawal_email_btc'] == 'Y' && !$request_2fa && !$token1) {
示例5: get
$bypass = !empty($_REQUEST['bypass']);
/*
get($count=false,$page=false,$per_page=false,$c_currency=false,$currency=false,$user=false,$start_date=false,$type=false,$order_by=false,
$order_desc=false,
$public_api_all=false,$dont_paginate=false, $affiliates=false)
*/
$user = false;
API::add('Affiliates', 'get', array(1, $page1, 30, $c_currency1, $currency1, $user, $start_date1, $type1, $order_by1, 0, 0, 0, 1));
$query = API::send();
$total = $query['Affiliates']['get']['results'][0];
API::add('Affiliates', 'get', array(false, $page1, 30, $c_currency1, $currency1, $user, $start_date1, $type1, $order_by1, 0, 0, 0, 1));
API::add('Affiliates', 'getTypes');
$query = API::send();
$transactions = $query['Affiliates']['get']['results'][0];
$transaction_types = $query['Affiliates']['getTypes']['results'][0];
$pagination = Content::pagination('affiliate_info__transactions_detail.php', $page1, $total, 30, 5, false);
$currency_info = $currency1 ? $CFG->currencies[strtoupper($currency1)] : array();
if ($trans_realized1 > 0) {
Messages::add(str_replace('[transactions]', $trans_realized1, Lang::string('transactions-done-message')));
}
$page_title = Lang::string('transactions');
if (!$bypass) {
include 'includes/head.php';
?>
<div class="page_title">
<div class="container">
<div class="title"><h1><?php
echo $page_title;
?>
</h1></div>
<div class="pagenation"> <a href="index.php"><?php
示例6: elseif
if (User::$info['locked'] == 'Y' || User::$info['deactivated'] == 'Y') {
Link::redirect('settings.php');
} elseif (User::$awaiting_token) {
Link::redirect('verify-token.php');
} elseif (!User::isLoggedIn()) {
Link::redirect('login.php');
}
$page1 = !empty($_REQUEST['page']) ? preg_replace("/[^0-9]/", "", $_REQUEST['page']) : false;
$bypass = !empty($_REQUEST['bypass']);
API::add('History', 'get', array(1, $page1));
$query = API::send();
$total = $query['History']['get']['results'][0];
API::add('History', 'get', array(false, $page1, 30));
$query = API::send();
$history = $query['History']['get']['results'][0];
$pagination = Content::pagination('history.php', $page1, $total, 30, 5, false);
$page_title = Lang::string('history');
if (!$bypass) {
include 'includes/head.php';
?>
<div class="page_title">
<div class="container">
<div class="title"><h1><?php
echo $page_title;
?>
</h1></div>
<div class="pagenation"> <a href="index.php"><?php
echo Lang::string('home');
?>
</a> <i>/</i> <a href="account.php"><?php
echo Lang::string('account');
示例7: preg_replace
$page1 = !empty($_REQUEST['page']) ? preg_replace("/[^0-9]/", "", $_REQUEST['page']) : false;
/*
getAffilliateTransactionsTotal(
$count=false, $page=false, $per_page=false, $c_currency=false, $currency=false,
$user=false, $type=false, $order_by=false, $order_desc=false,
$public_api_all=false, $dont_paginate=false, $affiliates=false)
*/
// getAffiliatesTotal30Days($count=false,$paginated=false,$page=0,$results_per_page=30)
API::add('Affiliates', 'getAffiliatesTotal30Days', array(1, 1, $page1, 30));
$query = API::send();
$total = getItemsByKey($query, 'total');
API::add('Affiliates', 'getAffiliatesTotal30Days', array(0, 1, $page1, 30));
$query = API::send();
$transactions = current(getItemsByKey($query, 'results'));
$pagination = Content::pagination('affiliate_info.php', $page1, $total, 30, 5, false);
$currency_info = $currency1 ? $CFG->currencies[strtoupper($currency1)] : array();
if ($trans_realized1 > 0) {
Messages::add(str_replace('[transactions]', $trans_realized1, Lang::string('transactions-done-message')));
}
$page_title = Lang::string('transactions');
if (!$bypass) {
include 'includes/head.php';
?>
<div class="page_title">
<div class="container">
<div class="title"><h1><?php
echo Lang::string('title_my_subordinates');
?>
</h1></div>
<div class="pagenation"> <a href="index.php"><?php