本文整理汇总了PHP中GetPage函数的典型用法代码示例。如果您正苦于以下问题:PHP GetPage函数的具体用法?PHP GetPage怎么用?PHP GetPage使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了GetPage函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: popup
function popup()
{
include_once 'kas-tabs.php';
$page = GetPage();
if ($page != null) {
echo $page;
exit;
}
$page = PageKas3MTAClientsSettings();
$html = "<H1>{antispam_engine}</H1>\n\t<div id='global_kas_pages' style='width:100%;height:400px;overflow:auto'>{$page}</div>";
$tpl = new templates();
echo $tpl->_ENGINE_parse_body($html);
}
示例2: _GeneratePages
function _GeneratePages($amount, $amount_on_page)
{
$current_page = GetPage() + 1;
$newsOnPage = $amount_on_page;
$pagesAmount = $newsOnPage != 0 ? ceil($amount / $newsOnPage) : 0;
if ($pagesAmount > 7) {
if ($current_page <= 4) {
$result = array_merge(range(1, $current_page + 2), array('...', $pagesAmount));
} elseif ($current_page > 4 and $pagesAmount - $current_page > 4) {
$result = array_merge(array(1, '...'), range($current_page - 2, $current_page + 2), array('...', $pagesAmount));
} elseif ($pagesAmount - $current_page <= 4) {
$result = array_merge(array(1, '...'), range($current_page - 2, $pagesAmount));
}
} elseif ($pagesAmount == 0) {
$result = [1];
} else {
$result = range(1, $pagesAmount);
}
return [$current_page - 1, ['amount' => $pagesAmount, 'num' => $result]];
}
示例3: switch
$quest_detail_id = $_REQUEST['quest_detail_id'];
$add_id = $_REQUEST['add_id'];
$name = $_REQUEST['name'];
$note = $_REQUEST['note'];
$answer = $_REQUEST['answer'];
$quest_type_id = $_REQUEST['quest_type_id'];
$quest_id1 = $_REQUEST['quest_id1'];
$cat = $_REQUEST['cat'];
$le_cat = $_REQUEST['le_cat'];
switch ($action) {
case 'get_add_page':
$page = GetPage(GetList($add_id));
$data = array('page' => $page);
break;
case 'get_edit_page':
$page = GetPage(GetList($quest_id, $quest_detail_id));
$data = array('page' => $page);
break;
case 'get_list':
$count = $_REQUEST['count'];
$hidden = $_REQUEST['hidden'];
$rResult = mysql_query("SELECT \t`scenario`.`id`,\r\n \t\t\t\t`scenario`.`name`,\r\n \t\t\t\t`cat`.`name`,\r\n \t\t\t\t`le_cat`.`name`\r\n FROM \t`scenario`\r\n JOIN `scenario_category` AS `cat` ON `scenario`.`scenario_cat_id` = `cat`.`id`\r\n JOIN `scenario_category` AS `le_cat` ON `scenario`.`scenario_le_cat_id` = `le_cat`.`id`\r\n WHERE \t`scenario`.`actived` = 1");
$data = array("aaData" => array());
while ($aRow = mysql_fetch_array($rResult)) {
$row = array();
for ($i = 0; $i < $count; $i++) {
/* General output */
$row[] = $aRow[$i];
if ($i == $count - 1) {
$row[] = '<input type="checkbox" name="check_' . $aRow[$hidden] . '" class="check" value="' . $aRow[$hidden] . '" />';
}
示例4: switch
<?php
require_once '../../includes/classes/core.php';
$action = $_REQUEST['act'];
$error = '';
$data = '';
switch ($action) {
case 'get_add_page':
$page = GetPage();
$data = array('page' => $page);
break;
case 'get_edit_page':
$departmetn_id = $_REQUEST['id'];
$page = GetPage(Getdepartment($departmetn_id));
$data = array('page' => $page);
break;
case 'get_list':
$count = $_REQUEST['count'];
$hidden = $_REQUEST['hidden'];
$rResult = mysql_query("SELECT \tdepartment.id,\r\n\t\t department.id,\r\n\t\t\t\t\t\t\t\t\t\tdepartment.`name`\r\n\t\t\t\t\t\t\t FROM \tdepartment\r\n\t\t\t\t\t\t\t WHERE \tdepartment.actived=1");
$data = array("aaData" => array());
while ($aRow = mysql_fetch_array($rResult)) {
$row = array();
for ($i = 0; $i < $count; $i++) {
/* General output */
$row[] = $aRow[$i];
if ($i == $count - 1) {
$row[] = '<div class="callapp_checkbox">
<input type="checkbox" id="callapp_checkbox_' . $aRow[$hidden] . '" name="check_' . $aRow[$hidden] . '" value="' . $aRow[$hidden] . '" class="check" />
<label for="callapp_checkbox_' . $aRow[$hidden] . '"></label>
</div>';
示例5: log
<?php
require_once '../../includes/classes/core.php';
include '../../includes/classes/log.class.php';
$log = new log();
$action = $_REQUEST['act'];
$error = '';
$data = '';
switch ($action) {
case 'get_add_page':
$page = GetPage();
$data = array('page' => $page);
break;
case 'get_edit_page':
$source_id = $_REQUEST['id'];
$page = GetPage(Getsource($source_id));
$data = array('page' => $page);
break;
case 'get_list':
$count = $_REQUEST['count'];
$hidden = $_REQUEST['hidden'];
$rResult = mysql_query("SELECT \tsource.id,\r\n\t\t\t\t\t\t\t\t\t\tsource.`name`\r\n\t\t\t\t\t\t\t FROM \tsource\r\n\t\t\t\t\t\t\t WHERE \tsource.actived=1");
$data = array("aaData" => array());
while ($aRow = mysql_fetch_array($rResult)) {
$row = array();
for ($i = 0; $i < $count; $i++) {
/* General output */
$row[] = $aRow[$i];
if ($i == $count - 1) {
$row[] = '<input type="checkbox" name="check_' . $aRow[$hidden] . '" class="check" value="' . $aRow[$hidden] . '" />';
}
示例6: switch
$template_id = $_REQUEST['template_id'];
$priority_id = $_REQUEST['priority_id'];
$comment = $_REQUEST['comment'];
$hidden_inc = $_REQUEST['hidden_inc'];
$edit_id = $_REQUEST['edit_id'];
$delete_id = $_REQUEST['delete_id'];
// file
$rand_file = $_REQUEST['rand_file'];
$file = $_REQUEST['file_name'];
switch ($action) {
case 'get_add_page':
$page = GetPage();
$data = array('page' => $page);
break;
case 'get_edit_page':
$page = GetPage(Getincomming($task_id));
$data = array('page' => $page);
break;
case 'get_list':
$count = $_REQUEST['count'];
$hidden = $_REQUEST['hidden'];
$user_id = $_REQUEST['user_id'];
$user = $_SESSION['USERID'];
$group = checkgroup($user);
$filter = '';
if ($group != 2) {
$filter = 'AND outgoing_call.responsible_user_id =' . $user;
}
$rResult = mysql_query("SELECT \t \t`task`.id,\r\n\t\t\t\t\t\t\t\t\t\t\t`task`.id,\r\n\t\t\t\t\t\t\t\t\t\t\t`site_user`.`name`,\r\n\t\t\t\t\t\t\t\t\t\t\t`site_user`.`pin`,\r\n\t\t\t\t\t\t\t\t\t\t\t`person1`.`name` ,\r\n\t\t\t\t\t\t\t\t\t\t\t`person2`.`name` ,\r\n\t\t\t\t\t\t\t\t\t\t\t`incomming_call`.date,\r\n\t\t\t\t\t\t\t\t\t\t\t`status`.`call_status`\r\n\t\t\t\t\t\t\t\tFROM \t\ttask\t\t\t\r\n\t\t\t\t\t\t\t\tLEFT JOIN \t\tincomming_call ON task.incomming_call_id=incomming_call.id\r\n\t\t\t\t\t\t\t\tLEFT JOIN \tsite_user\t\tON incomming_call.id=site_user.incomming_call_id\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tJOIN \t\tusers AS `user1`\t\t\tON task.responsible_user_id=user1.id\r\n\t\t\t\t\t\t\t\tJOIN \t\tpersons AS `person1`\t\tON user1.person_id=person1.id\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tJOIN \t\tusers AS `user2`\t\t\tON task.user_id=user2.id\r\n\t\t\t\t\t\t\t\tJOIN \t\tpersons AS `person2`\t\tON user2.person_id=person2.id\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tLEFT JOIN `status` \tON\ttask.`status`= `status`.id\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tWHERE \t\ttask.task_type_id=1 AND task.`status`=1");
$data = array("aaData" => array());
while ($aRow = mysql_fetch_array($rResult)) {
示例7: switch
require_once '../../includes/classes/core.php';
$action = $_REQUEST['act'];
$error = '';
$data = '';
$status_id = $_REQUEST['id'];
$status_name = $_REQUEST['name'];
$call_status = $_REQUEST['call_status'];
switch ($action) {
case 'get_add_page':
$page = GetPage();
$data = array('page' => $page);
break;
case 'get_edit_page':
$template_id = $_REQUEST['id'];
$page = GetPage(Getstatus($status_id));
$data = array('page' => $page);
break;
case 'get_list':
$count = $_REQUEST['count'];
$hidden = $_REQUEST['hidden'];
$rResult = mysql_query("SELECT \tinfo_base.id,\r\n\t\t\t\t\t\t\t\t\t\tinfo_base.`name`\r\n\t\t\t\t\t\t\t\tFROM \tinfo_base\r\n\t\t\t\t\t\t\t WHERE \tinfo_base.actived=1");
$data = array("aaData" => array());
while ($aRow = mysql_fetch_array($rResult)) {
$row = array();
for ($i = 0; $i < $count; $i++) {
/* General output */
$row[] = $aRow[$i];
}
$data['aaData'][] = $row;
}
示例8: switch
<?php
require_once '../../includes/classes/core.php';
$action = $_REQUEST['act'];
$error = '';
$data = '';
switch ($action) {
case 'get_add_page':
$page = GetPage();
$data = array('page' => $page);
break;
case 'get_edit_page':
$call_id = $_REQUEST['id'];
$page = GetPage(GetcallType($call_id));
$data = array('page' => $page);
break;
case 'get_list':
$count = $_REQUEST['count'];
$hidden = $_REQUEST['hidden'];
$rResult = mysql_query("SELECT \tcall_status.id,\n\t\t\t\t\t\t\t\t\t\tcall_status.`name`\n\t\t\t\t\t\t\t FROM \tcall_status\n\t\t\t\t\t\t\t WHERE \tcall_status.actived=1");
$data = array("aaData" => array());
while ($aRow = mysql_fetch_array($rResult)) {
$row = array();
for ($i = 0; $i < $count; $i++) {
$row[] = $aRow[$i];
if ($i == $count - 1) {
$row[] = '<input style="margin-left: 5px;" type="checkbox" name="check_' . $aRow[$hidden] . '" class="check" value="' . $aRow[$hidden] . '" />';
}
}
$data['aaData'][] = $row;
}
示例9: log
<?php
require_once '../../includes/classes/core.php';
include '../../includes/classes/log.class.php';
$log = new log();
$action = $_REQUEST['act'];
$error = '';
$data = '';
switch ($action) {
case 'get_add_page':
$page = GetPage();
$data = array('page' => $page);
break;
case 'get_edit_page':
$paytype_id = $_REQUEST['id'];
$page = GetPage(Getpay_type($paytype_id));
$data = array('page' => $page);
break;
case 'get_list':
$count = $_REQUEST['count'];
$hidden = $_REQUEST['hidden'];
$rResult = mysql_query("SELECT \tpay_type.id,\r\n\t\t\t\t\t\t\t\t\t\tpay_type.`name`\r\n\t\t\t\t\t\t\t FROM \tpay_type\r\n\t\t\t\t\t\t\t WHERE \tpay_type.actived=1");
$data = array("aaData" => array());
while ($aRow = mysql_fetch_array($rResult)) {
$row = array();
for ($i = 0; $i < $count; $i++) {
/* General output */
$row[] = $aRow[$i];
if ($i == $count - 1) {
$row[] = '<input type="checkbox" name="check_' . $aRow[$hidden] . '" class="check" value="' . $aRow[$hidden] . '" />';
}
示例10: log
<?php
require_once '../../includes/classes/core.php';
include '../../includes/classes/log.class.php';
$log = new log();
$action = $_REQUEST['act'];
$error = '';
$data = '';
switch ($action) {
case 'get_add_page':
$page = GetPage();
$data = array('page' => $page);
break;
case 'get_edit_page':
$object_id = $_REQUEST['id'];
$page = GetPage(Getobject($object_id));
$data = array('page' => $page);
break;
case 'get_list':
$count = $_REQUEST['count'];
$hidden = $_REQUEST['hidden'];
$rResult = mysql_query("SELECT \tobject.id,\r\n\t\t\t\t\t\t\t\t\t\tobject.`name`\r\n\t\t\t\t\t\t\t FROM \tobject\r\n\t\t\t\t\t\t\t WHERE \tobject.actived=1");
$data = array("aaData" => array());
while ($aRow = mysql_fetch_array($rResult)) {
$row = array();
for ($i = 0; $i < $count; $i++) {
/* General output */
$row[] = $aRow[$i];
if ($i == $count - 1) {
$row[] = '<input type="checkbox" name="check_' . $aRow[$hidden] . '" class="check" value="' . $aRow[$hidden] . '" />';
}
示例11: log
*/
include '../../includes/classes/core.php';
include '../../includes/classes/category.tree.class.php';
include '../../includes/classes/log.class.php';
$log = new log();
$action = $_REQUEST['act'];
$error = '';
$data = '';
switch ($action) {
case 'get_add_page':
$page = GetPage();
$data = array('page' => $page);
break;
case 'get_edit_page':
$rec_id = $_REQUEST['id'];
$page = GetPage(GetRecipie($rec_id));
$data = array('page' => $page);
break;
case 'get_local_id':
$data = array('local_id' => GetLocalID());
break;
case 'get_list':
$count = $_REQUEST['count'];
$hidden = $_REQUEST['hidden'];
$rResult = mysql_query("SELECT production.`id`, \r\n\t\t\t\t\t\t\t\t\t\t`production`.`name`,\r\n\t\t\t\t\t\t\t\t\t\tROUND(SUM((SELECT DISTINCT reserve.price FROM reserve WHERE reserve.production_id = rec.ingredient_id ) * rec.quantity * rec.default_amount),4) AS `self_price` \r\n\t\t\t\t\t\t\t\t\t\tFROM `recipie` AS rec \r\n\t\t\t\t\t\t\t\t\t\tLEFT JOIN `production` ON `production`.`id` = `rec`.`recipie_id`\r\n\t\t\t\t\t\t\t\t\t\tWHERE `production`.`id` IN (SELECT `recipie_id` FROM `recipie`) AND `production`.`actived` = 1\r\n\t\t\t\t\t\t\t\t\t\tGROUP BY rec.recipie_id");
$data = array("aaData" => array());
if (!$rResult) {
$error = 'Invalid query: ' . mysql_error();
} else {
while ($aRow = mysql_fetch_array($rResult)) {
$row = array();
示例12: switch
<?php
require_once '../../includes/classes/core.php';
$action = $_REQUEST['act'];
$error = '';
$data = '';
switch ($action) {
case 'get_add_page':
$page = GetPage();
$data = array('page' => $page);
break;
case 'get_edit_page':
$callstatus_id = $_REQUEST['id'];
$page = GetPage(Getcall_status($callstatus_id));
$data = array('page' => $page);
break;
case 'get_list':
$count = $_REQUEST['count'];
$hidden = $_REQUEST['hidden'];
$rResult = mysql_query("SELECT \tid,\r\n\t\t\t\t\t\t\t\t\t\t`name`\r\n\t\t\t\t\t\t\t FROM \tsource\r\n\t\t\t\t\t\t\t WHERE \tactived=1");
$data = array("aaData" => array());
while ($aRow = mysql_fetch_array($rResult)) {
$row = array();
for ($i = 0; $i < $count; $i++) {
/* General output */
$row[] = $aRow[$i];
if ($i == $count - 1) {
$row[] = '<input type="checkbox" name="check_' . $aRow[$hidden] . '" class="check" value="' . $aRow[$hidden] . '" />';
}
}
$data['aaData'][] = $row;
示例13: log
<?php
require_once '../../includes/classes/core.php';
include '../../includes/classes/log.class.php';
$log = new log();
$action = $_REQUEST['act'];
$error = '';
$data = '';
switch ($action) {
case 'get_add_page':
$page = GetPage();
$data = array('page' => $page);
break;
case 'get_edit_page':
$position_id = $_REQUEST['id'];
$page = GetPage(Getposition($position_id));
$data = array('page' => $page);
break;
case 'get_list':
$count = $_REQUEST['count'];
$hidden = $_REQUEST['hidden'];
$rResult = mysql_query("SELECT \t position.id,\r\n\t\t\t\t\t\t\t\t\t\t position.`person_position`\r\n\t\t\t\t\t\t\t FROM \t\tposition\r\n\t\t\t\t\t\t\t WHERE \t\tposition.actived=1");
$data = array("aaData" => array());
while ($aRow = mysql_fetch_array($rResult)) {
$row = array();
for ($i = 0; $i < $count; $i++) {
/* General output */
$row[] = $aRow[$i];
if ($i == $count - 1) {
$row[] = '<input type="checkbox" name="check_' . $aRow[$hidden] . '" class="check" value="' . $aRow[$hidden] . '" />';
}
示例14: switch
*/
include '../../includes/classes/core.php';
include '../../includes/classes/logger.class.php';
$action = $_REQUEST['act'];
$user_id = $_COOKIE['USERID'];
$error = '';
$data = '';
//$_log = Logger::instance('../../log/operations/transfer/', Logger::OFF);
switch ($action) {
case 'get_add_page':
$page = GetPage();
$data = array('page' => $page);
break;
case 'get_edit_page':
$rec_id = $_REQUEST['id'];
$page = GetPage(GetDescribe($rec_id));
$data = array('page' => $page);
break;
case 'get_list':
$count = $_REQUEST['count'];
$hidden = $_REQUEST['hidden'];
$rResult = mysql_query("SELECT \t\t`describe`.`id`,\n\t\t\t\t\t\t\t\t\t\t\t`describe`.`date`,\n\t \t\t\t\t\t\t\t\t\t`object`.`name`,\n\t\t\t\t\t\t\t\t\t\t\t`persons`.`name`,\n \t\t\t\t\t\t\t\t\t\tif( `describe`.`status` = 0 , 'აქტიური', 'დასრულებული') as `status`\n\t\t\t\t\t\t\t\tFROM \t\t`describe`\n\t\t\t\t\t\t\t\tLEFT JOIN \t`persons` ON `describe`.`person_id` = `persons`.`id`\n\t \t\t\t\t\t\tLEFT JOIN\t`object` ON `object`.`id` = `describe`.`object_id`");
$data = array("aaData" => array());
if (!$rResult) {
$error = 'Invalid query: ' . mysql_error();
} else {
while ($aRow = mysql_fetch_array($rResult)) {
$row = array();
for ($i = 0; $i < $count; $i++) {
/* General output */
$row[] = $aRow[$i];
示例15: switch
include '../../includes/classes/core.php';
include '../../includes/classes/logger.class.php';
$action = $_REQUEST['act'];
$error = '';
$data = '';
$user_id = $_COOKIE['USERID'];
$_log = Logger::instance('../../log/documents/overhead/', Logger::OFF);
switch ($action) {
case 'get_add_page':
$o_type = $_REQUEST['ot'];
$page = GetPage('', $o_type);
$data = array('page' => $page);
break;
case 'get_edit_page':
$overhead_id = $_REQUEST['id'];
$page = GetPage(GetOverhead($overhead_id));
$data = array('page' => $page);
break;
case 'get_list':
$count = $_REQUEST['count'];
$hidden = $_REQUEST['hidden'];
$type = $_REQUEST['type'];
$confirm = $_REQUEST['confirm'];
//Out
if ($type == 0 || $type == 0) {
$rResult = mysql_query("SELECT `O`.`id` AS `id`,\n\t\t\t\t\t\t\t\t\t\t `O`.`waybill_number`,\n\t\t\t\t\t\t\t\t\t\t `OT`.`name` AS `type`,\n\t\t\t\t\t\t\t\t\t\t IFNULL(CONCAT('(',`O`.`buyer_tin`,') ', `O`.`buyer_name`),'()') AS `partner`,\n\t\t\t\t\t\t\t\t\t\t `O`.`full_amount`,\n\t\t\t\t\t\t\t\t\t\t `O`.`activate_date`\n\t\t\t\t\t\t\t\t\tFROM `overhead` AS `O` LEFT JOIN `overhead_types` AS `OT`\n\t\t\t\t\t\t\t\t\t\tON `O`.`type` = `OT`.`id`\n\t\t\t\t\t\t\t\t\tWHERE `O`.`stream` = {$type}");
//In UnConfirmed
} else {
if ($type == 1 && $confirm == 1) {
$rResult = mysql_query("SELECT `O`.`id` AS `id`,\n\t\t\t\t\t\t\t\t\t\t\t `O`.`waybill_number`,\n\t\t\t\t\t\t\t\t\t\t\t `OT`.`name` AS `type`,\n\t\t\t\t\t\t\t\t\t\t\t IFNULL(CONCAT('(',`O`.`seller_tin`,') ', `O`.`seller_name`),'()') AS `partner`,\n\t\t\t\t\t\t\t\t\t\t\t `O`.`full_amount`,\n\t\t\t\t\t\t\t\t\t\t\t `O`.`activate_date`\n\t\t\t\t\t\t\t\t\t\tFROM `overhead` AS `O` LEFT JOIN `overhead_types` AS `OT`\n\t\t\t\t\t\t\t\t\t\t\tON `O`.`type` = `OT`.`id`\n\t\t\t\t\t\t\t\t\t\tWHERE `O`.`stream` = {$type} AND O.is_confirmed != 2");
//In Confirmed