當前位置: 首頁>>代碼示例>>PHP>>正文


PHP loadtemplate函數代碼示例

本文整理匯總了PHP中loadtemplate函數的典型用法代碼示例。如果您正苦於以下問題:PHP loadtemplate函數的具體用法?PHP loadtemplate怎麽用?PHP loadtemplate使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


在下文中一共展示了loadtemplate函數的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: TPCredits

function TPCredits()
{
    tp_hidebars();
    $context['TPortal']['not_forum'] = false;
    if (loadLanguage('TPhelp') == false) {
        loadLanguage('TPhelp', 'english');
    }
    loadtemplate('TPhelp');
}
開發者ID:DiegoCortes,項目名稱:TinyPortal,代碼行數:9,代碼來源:TPhelp.php

示例2: Staff

function Staff()
{
    global $context, $mbname, $txt;
    //Check if the current user can view the staff list
    isAllowedTo('view_stafflist');
    loadtemplate('Staff');
    //Load the main staff template
    $context['sub_template'] = 'main';
    //Set the page title
    $context['page_title'] = $mbname . ' - ' . $txt['smfstaff_stafflist'];
}
開發者ID:VBGAMER45,項目名稱:SMFMods,代碼行數:11,代碼來源:Staff.php

示例3: TagsMain

function TagsMain()
{
    loadtemplate('Tagging');
    loadLanguage('Tagging');
    $subActions = array('addtag' => 'TaggingSystem_Add', 'submittag' => 'TaggingSystem_Submit', 'deletetag' => 'TaggingSystem_Delete', 'admin' => 'TagsSettings', 'admin2' => 'TagsSettings2', 'cleanup' => 'TagCleanUp');
    if (!empty($subActions[@$_GET['sa']])) {
        $subActions[$_GET['sa']]();
    } else {
        ViewTags();
    }
}
開發者ID:norv,項目名稱:EosAlpha,代碼行數:11,代碼來源:Tagging.php

示例4: template_main

function template_main()
{
    global $settings;
    // modulebased?
    if (!empty($settings['module_display'])) {
        loadtemplate('/modules/display/' . $settings['module_display']);
        call_user_func($settings['module_display']);
    } else {
        my_display();
    }
}
開發者ID:Bloc67,項目名稱:ShelfLife,代碼行數:11,代碼來源:Display.template.php

示例5: UPInternalPageMain

function UPInternalPageMain()
{
    global $sourcedir, $context, $ultimateportalSettings;
    //load template and language
    loadtemplate('UPInternalPage');
    loadLanguage('UPInternalPage');
    //Is active the Internal Page module?
    if (empty($ultimateportalSettings['ipage_enable'])) {
        fatal_lang_error('ultport_error_no_active', false);
    }
    $subActions = array('main' => 'IPMain', 'view' => 'View', 'add' => 'Add', 'edit' => 'Edit', 'delete' => 'Delete', 'inactive' => 'Inactive', 'view-inactive' => 'ViewInactive');
    $_REQUEST['sa'] = !empty($_REQUEST['sa']) && !empty($subActions[$_REQUEST['sa']]) ? $_REQUEST['sa'] : 'main';
    $subActions[$_REQUEST['sa']]();
}
開發者ID:4kstore,項目名稱:UltimatePortal-0.4,代碼行數:14,代碼來源:UPInternalPage.php

示例6: globalhf

function globalhf()
{
    //Check if the current user can change headers footers
    isAllowedTo('admin_forum');
    loadtemplate('globalhf');
    //Global Headers Footers Actions
    $subActions = array('view' => 'view', 'save' => 'save');
    // Follow the sa or just go to View function
    if (!empty($subActions[@$_GET['sa']])) {
        $subActions[@$_GET['sa']]();
    } else {
        $subActions['view']();
    }
}
開發者ID:VBGAMER45,項目名稱:SMFMods,代碼行數:14,代碼來源:globalhf.php

示例7: refferalsMain

function refferalsMain()
{
    loadtemplate('refferals');
    $subActions = array('settings' => 'refferalsSettings', 'settings2' => 'refferalsSettings2', 'copyright' => 'Referrals_CopyrightRemoval');
    if (isset($_REQUEST['sa'])) {
        $sa = $_GET['sa'];
    } else {
        $sa = '';
    }
    if (!empty($subActions[$sa])) {
        $subActions[$sa]();
    } else {
        RefferalsLinkClick();
    }
}
開發者ID:VBGAMER45,項目名稱:SMFMods,代碼行數:15,代碼來源:refferals.php

示例8: Staff

function Staff()
{
    //Load the main staff template
    loadtemplate('Staff');
    //Load the language files
    if (loadlanguage('Staff') == false) {
        loadLanguage('Staff', 'english');
    }
    //Staff page actions
    $subActions = array('admin' => 'StaffSettings', 'admin2' => 'StaffSettings2', 'add' => 'AddGroup', 'delete' => 'DeleteGroup', 'catup' => 'CatUp', 'catdown' => 'CatDown');
    // Follow the sa or just go to main staff page.
    if (!empty($subActions[@$_GET['sa']])) {
        $subActions[$_GET['sa']]();
    } else {
        ViewStaffPage();
    }
}
開發者ID:VBGAMER45,項目名稱:SMFMods,代碼行數:17,代碼來源:Staff.php

示例9: LinksMain

function LinksMain()
{
    // Load the main links template
    loadtemplate('Links');
    // Load the language files
    if (loadlanguage('Links') == false) {
        loadLanguage('Links', 'english');
    }
    // Link actions
    $subActions = array('addlink' => 'AddLink', 'addlink2' => 'AddLink2', 'editlink' => 'EditLink', 'editlink2' => 'EditLink2', 'visit' => 'VisitLink', 'deletelink' => 'DeleteLink', 'deletelink2' => 'DeleteLink2', 'catup' => 'CatUp', 'catdown' => 'CatDown', 'addcat' => 'AddCat', 'addcat2' => 'AddCat2', 'editcat' => 'EditCat', 'editcat2' => 'EditCat2', 'deletecat' => 'DeleteCat', 'deletecat2' => 'DeleteCat2', 'rate' => 'RateLink', 'approve' => 'Approve', 'noapprove' => 'NoApprove', 'alist' => 'ApproveList', 'admin' => 'LinksAdmin', 'admin2' => 'LinksAdmin2', 'admincat' => 'LinksAdminCats', 'adminperm' => 'LinksAdminPerm', 'catperm' => 'CatPerm', 'catperm2' => 'CatPerm2', 'catpermdelete' => 'CatPermDelete');
    // Follow the sa or just go to main links index.
    if (!empty($_GET['sa']) && array_key_exists($_GET['sa'], $subActions)) {
        call_user_func($subActions[$_GET['sa']]);
    } else {
        view();
    }
}
開發者ID:VBGAMER45,項目名稱:SMFMods,代碼行數:17,代碼來源:Links.php

示例10: tradermain

function tradermain()
{
    loadtemplate('Trader');
    // Load the language files
    if (loadlanguage('Trader') == false) {
        loadLanguage('Trader', 'english');
    }
    // Trader actions
    $subActions = array('main' => 'main', 'report' => 'Report', 'report2' => 'Report2', 'submit' => 'Submit', 'detail' => 'ViewDetail', 'delete' => 'Delete', 'delete2' => 'Delete2', 'submit2' => 'Submit2', 'admin' => 'AdminSettings', 'admin2' => 'AdminSettings2', 'approve' => 'ApproveRating', 'bulkactions' => 'BulkActions');
    @($sa = $_GET['sa']);
    // Follow the sa or just go to administration.
    if (!empty($subActions[$sa])) {
        $subActions[$sa]();
    } else {
        $subActions['main']();
    }
}
開發者ID:VBGAMER45,項目名稱:SMFMods,代碼行數:17,代碼來源:Trader.php

示例11: TagsMain

function TagsMain()
{
    // Load the main Tags template
    loadtemplate('Tags2');
    // Load the language files
    if (loadlanguage('Tags') == false) {
        loadLanguage('Tags', 'english');
    }
    // Tags actions
    $subActions = array('suggest' => 'SuggestTag', 'suggest2' => 'SuggestTag2', 'addtag' => 'AddTag', 'addtag2' => 'AddTag2', 'deletetag' => 'DeleteTag', 'admin' => 'TagsSettings', 'admin2' => 'TagsSettings2', 'cleanup' => 'TagCleanUp');
    // Follow the sa or just go to main links index.
    if (!empty($subActions[@$_GET['sa']])) {
        $subActions[$_GET['sa']]();
    } else {
        ViewTags();
    }
}
開發者ID:VBGAMER45,項目名稱:SMFMods,代碼行數:17,代碼來源:Tags2.php

示例12: pmx_eclnonemodal

/**
* System none modal ECL init
*/
function pmx_eclnonemodal()
{
    global $context, $settings, $modSettings, $maintenance, $scripturl, $options, $txt;
    if (!empty($modSettings['pmx_eclmodal']) && !pmx_checkECL_Cookie()) {
        if (!empty($modSettings['pmxportal_disabled'])) {
            loadJavascriptFile(PortaMx_loadCompressed('PortaMx.js', array('dir' => $settings['default_theme_dir'] . '/PortaMx/Scripts/', 'url' => $settings['default_theme_url'] . '/PortaMx/Scripts/')), array('external' => true));
            addInlineJavascript('
	var pmxIsInit = true;');
            loadLanguage('PortaMx/PortaMx');
        }
        addInlineJavascript('
	var eclOverlay = true;
	function Setlang(elm){window.location.href = elm.options[elm.selectedIndex].value;}');
        loadCSSFile(PortaMx_loadCompressed('pmx_ecl.css', array('dir' => $settings['default_theme_dir'] . '/PortaMx/SysCss/', 'url' => $settings['default_theme_url'] . '/PortaMx/SysCss/')), array('external' => true));
        loadtemplate('PortaMx/EclMain');
        $context['template_layers'][] = 'eclmain';
    }
}
開發者ID:thunderamur,項目名稱:PortaMx-Virgo-2.0-Beta-2,代碼行數:21,代碼來源:SubsCompat.php

示例13: CommentsMain

function CommentsMain()
{
    loadtemplate('ProfileComments');
    loadlanguage('Post');
    // Load the language files
    if (loadlanguage('ProfileComments') == false) {
        loadLanguage('ProfileComments', 'english');
    }
    // Profile Comments actions
    $subActions = array('view' => 'ProfileCommentsview', 'admin' => 'CommentsAdmin', 'add' => 'ProfileCommentsAdd', 'add2' => 'ProfileCommentsAdd2', 'edit' => 'ProfileCommentsEdit', 'edit2' => 'ProfileCommentsEdit2', 'delete' => 'ProfileCommentsDelete', 'approve' => 'ProfileCommentsApproveComment');
    $sa = $_REQUEST['sa'];
    // Follow the sa or just go to administration.
    if (!empty($subActions[$sa])) {
        $subActions[$sa]();
    } else {
        ProfileCommentsview();
    }
}
開發者ID:VBGAMER45,項目名稱:SMFMods,代碼行數:18,代碼來源:ProfileComments.php

示例14: WelcomeTopic

function WelcomeTopic()
{
    // Check if they are allowed to admin the forum
    isAllowedTo('admin_forum');
    // Load the WelcomeTopic template
    loadtemplate('WelcomeTopic');
    // Load the language files
    if (loadlanguage('WelcomeTopic') == false) {
        loadLanguage('WelcomeTopic', 'english');
    }
    // Welcome Topic actions
    $subActions = array('admin' => 'WelcomeTopicSettings', 'admin2' => 'WelcomeTopicSettings2', 'add' => 'AddTopic', 'add2' => 'AddTopic2', 'edit' => 'EditTopic', 'edit2' => 'EditTopic2', 'delete' => 'DeleteTopic');
    // Follow the sa or main Welcome Topic Settings page.
    if (!empty($subActions[@$_GET['sa']])) {
        $subActions[$_GET['sa']]();
    } else {
        WelcomeTopicSettings();
    }
}
開發者ID:VBGAMER45,項目名稱:SMFMods,代碼行數:19,代碼來源:WelcomeTopic.php

示例15: PostSchedulerMain

function PostSchedulerMain()
{
    // Only Admins should see these options
    isAllowedTo('admin_forum');
    // Load the maintemplate
    loadtemplate('PostScheduler2');
    // Load the language files
    if (loadlanguage('PostScheduler') == false) {
        loadLanguage('PostScheduler', 'english');
    }
    // Post Scheduler actions
    $subActions = array('addpost' => 'AddPost', 'addpost2' => 'AddPost2', 'editpost' => 'EditPost', 'editpost2' => 'EditPost2', 'delpost' => 'DeletePost', 'admin' => 'PostSchedulerAdmin', 'saveset' => 'SaveSettings', 'bulkactions' => 'BulkActions');
    // Follow the sa or just go to admin
    if (!empty($subActions[@$_REQUEST['sa']])) {
        $subActions[$_REQUEST['sa']]();
    } else {
        PostSchedulerAdmin();
    }
}
開發者ID:VBGAMER45,項目名稱:SMFMods,代碼行數:19,代碼來源:PostScheduler2.php


注:本文中的loadtemplate函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。