当前位置: 首页>>代码示例>>PHP>>正文


PHP page_init函数代码示例

本文整理汇总了PHP中page_init函数的典型用法代码示例。如果您正苦于以下问题:PHP page_init函数的具体用法?PHP page_init怎么用?PHP page_init使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了page_init函数的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: CUR2_UPDATE

$_update = new CUR2_UPDATE();
/*
# ----------------------------------------------------------------------
# CURATED INFO
# ----------------------------------------------------------------------
*/
$curated = $_get->get_curated('2');
/*
# ----------------------------------------------------------------------
# SORTING
# ----------------------------------------------------------------------
*/
$equal_search = array('type_price');
//$null_search     = array('cur2_type_id');
$default_sort_by = 'product_order';
$pgdata = page_init($equal_search, $default_sort_by, $equal_search);
// static/general.php
$page = $pgdata['page'];
$query_per_page = $pgdata['query_per_page'];
$sort_by = $pgdata['sort_by'];
$first_record = $pgdata['first_record'];
$search_parameter = $pgdata['search_parameter'];
$search_value = $pgdata['search_value'];
$search_query = $pgdata['search_query'];
$search = $pgdata['search'];
//special for curated
if ($search_parameter == 'cur2_type_id' && $search_value == '1') {
    $search_query = $search_parameter . " != ''";
} else {
    if ($search_parameter == 'cur2_type_id' && $search_value == '0') {
        $search_query = '1';
开发者ID:nickyudha,项目名称:huntstreet-v3,代码行数:31,代码来源:control.php

示例2: NEWS_GET

*/

$_get    = new NEWS_GET();
$_update = new NEWS_UPDATE();


/*
# ----------------------------------------------------------------------
# SORTING
# ----------------------------------------------------------------------
*/

$equal_search     = array('news_visibility', 'news_created_date');
$default_sort_by  = "news_created_date";

$pgdata           = page_init($equal_search,$default_sort_by); // static/general.php

$page             = $pgdata['page'];
$query_per_page   = $pgdata['query_per_page'];
$sort_by          = $pgdata['sort_by'];
$first_record     = $pgdata['first_record'];
$search_parameter = $pgdata['search_parameter'];
$search_value     = $pgdata['search_value'];
$search_query     = $pgdata['search_query'];
$search           = $pgdata['search'];


if(isset($_REQUEST['src'])){
   $_REQUEST['src'] = $_REQUEST['src'];
}else{
   $_REQUEST['src'] = '';
开发者ID:nickyudha,项目名称:huntstreet-v3,代码行数:31,代码来源:control.php

示例3: getlang

//
$lang = getlang();
if (isset($lang)) {
    if (file_exists("{$configdir}/{$lang}/config.php")) {
        require "{$configdir}/{$lang}/config.php";
    }
}
//
//
$pageid = getpageid();
if (!isset($pageid)) {
    $pageid = $defaultpage;
}
$page_include = "include/" . $pageid;
$config_include = $configdir . "/" . $pageid;
if (file_exists($page_include)) {
    if (file_exists($config_include)) {
        require $config_include;
    }
    if (autherized(getuserid(), $pageauth)) {
        require $page_include;
        $page_var = page_init();
        page_html_header($page_var);
        page_main($page_var);
        page_html_footer($page_var);
        page_cleanup($page_var);
    } else {
        login();
    }
}
// That's all folks ...
开发者ID:BackupTheBerlios,项目名称:odp-svn,代码行数:31,代码来源:index.php

示例4: array_unshift

require_once 'sys/form.inc.php';
// Form system
require_once 'sys/table.inc.php';
// Table system
require_once 'sys/module.inc.php';
// Module system
require_once 'sys/page.inc.php';
// Page system
require_once 'sys/data.inc.php';
// DB-to-object system
require_once 'sys/init.inc.php';
// Pre-module initialization
// Include core content ////////////////////////////////////////////////////////
require_once 'form.inc.php';
require_once 'page.inc.php';
require_once 'reports.inc.php';
require_once 'theme.inc.php';
// Add core modules
array_unshift($config_modules, 'core');
// Optional Modules ////////////////////////////////////////////////////////////
foreach ($config_modules as $module) {
    require_once $crm_root . '/modules/' . $module . '/' . $module . '.inc.php';
}
// Initialize //////////////////////////////////////////////////////////////////
page_init();
foreach ($config_modules as $module) {
    $init = $module . '_init';
    if (function_exists($init)) {
        call_user_func($init);
    }
}
开发者ID:mehulsbhatt,项目名称:seltzer,代码行数:31,代码来源:crm.inc.php

示例5: init

 function init()
 {
     $def =& $this->db->def;
     tables_define($this);
     # Init user interface.
     $this->ui = new devcoin_admin_panel($this);
     # Initialise toolkits
     tk_range_edit_init($this);
     tk_autoform_init($this);
     tree_edit_register($this);
     # Initialise other modules.
     category_init($this);
     page_init($this);
     object_init($this);
     class_init($this);
     db_init($this);
     order_init($this);
 }
开发者ID:Geopay,项目名称:dev-coin-online-shop,代码行数:18,代码来源:index.php


注:本文中的page_init函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。