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


PHP BeginHtml函数代码示例

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


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

示例1: after_action

 /**
  *
  */
 protected function after_action($result)
 {
     BeginHtml(NETCAT_MODULE_ROUTING_TITLE, '', '');
     echo $result;
     EndHtml();
     return '';
 }
开发者ID:Blu2z,项目名称:implsk,代码行数:10,代码来源:controller.php

示例2: after_action

 protected function after_action($result)
 {
     if ($this->is_naked) {
         return $result;
     }
     return BeginHtml() . $result . EndHtml();
 }
开发者ID:Blu2z,项目名称:implsk,代码行数:7,代码来源:nc_widget_block_controller.class.php

示例3: after_action

 protected function after_action($result)
 {
     // JSON
     if (is_array($result)) {
         return json_safe_encode($result);
     }
     // With template
     if (!$this->is_naked) {
         return BeginHtml() . $result . EndHtml();
     }
     return $result;
 }
开发者ID:Blu2z,项目名称:implsk,代码行数:12,代码来源:nc_backup_controller.class.php

示例4: print_header

 /**
  *
  * @param string $help_page
  */
 protected function print_header($help_page = '')
 {
     BeginHtml($this->get_input('.page_title', NETCAT_MODULE_SEARCH), NETCAT_MODULES, '');
     // it's a dirty hack
     // уберите это, когда в конце концов перепишете админку
     $path = nc_search::get_module_url();
     $content = ob_get_clean();
     print str_replace("</head>", "\n<link type='text/css' rel='Stylesheet' href='{$path}/admin.css'>\n" . "<script type='text/javascript' src='{$path}/admin.js'></script>\n" . "</head>", $content);
 }
开发者ID:Blu2z,项目名称:implsk,代码行数:13,代码来源:controller.php

示例5: BeginHtml

    // Это ошибочная ситуация POST c одним классом , а предросмотр с другим.
    BeginHtml(NETCAT_PREVIEW_ERROR_WRONGDATA);
    nc_print_status(NETCAT_PREVIEW_ERROR_WRONGDATA, "error");
    EndHtml();
    die;
}
// В предпросмотре admin_mode=0;
$admin_mode = 0;
// Первый вызов предпросмотра идет без $sub - мы рисуем карту сайта чтобы пользователь выбрал раздел.
if (!isset($sub) || !$sub) {
    require_once $INCLUDE_FOLDER . "s_common.inc.php";
    require_once $INCLUDE_FOLDER . "s_browse.inc.php";
    $sbrowse_mapsub['prefix'] = "<ul style='list-style: disc inside'>";
    $sbrowse_mapsub['suffix'] = "</ul>";
    $sbrowse_mapsub['unactive'] = "<li><a \".(\$data[\$i][Checked]==0?\"style='color:gray'\":\"\").\"href='%URL?template={$template}&templatePreview={$templatePreview}'>\".\$data[\$i][Subdivision_ID].\". %NAME</a>\".s_browse_sub(\$data[\$i][Subdivision_ID],\$GLOBALS[sbrowse_mapsub]).\"</li>";
    $sbrowse_mapsub['active'] = $sbrowse_mapsub['unactive'];
    if (!isset($catalogue) || !$catalogue) {
        $catalogue = $nc_core->catalogue->get_by_host_name($HTTP_HOST);
        $catalogue = $catalogue["Catalogue_ID"];
    } else {
        $catalogue += 0;
    }
    BeginHtml(NETCAT_PREVIEW_INFO_CHOOSESUB);
    nc_print_status(NETCAT_PREVIEW_INFO_CHOOSESUB, "info");
    $current_sub['Subdivision_ID'] = 100000;
    $current_sub['Catalogue_ID'] = $catalogue;
    $admin_mode = 0;
    echo s_browse_sub(0, $sbrowse_mapsub, 1);
    EndHtml();
    die;
}
开发者ID:Blu2z,项目名称:implsk,代码行数:31,代码来源:templatePreview.php

示例6: BeginHtml

    case 1:
        # форма для добавления / изменения
        BeginHtml($Title4, $Title3 . $Delimeter . $Title4, "http://" . $DOC_DOMAIN . "/settings/redirect/");
        $perm->ExitIfNotAccess(NC_PERM_REDIRECT, 0, 0, 0, 0);
        if ($RedirectID) {
            $UI_CONFIG = new ui_config_tool(REDIRECT_TAB_LIST, REDIRECT_TAB_EDIT, 'i_settings_big.gif', 'redirect.edit(' . $RedirectID . ')');
        } else {
            $UI_CONFIG = new ui_config_tool(REDIRECT_TAB_LIST, REDIRECT_TAB_ADD, 'i_settings_big.gif', 'redirect.add');
        }
        RedirectForm($RedirectID);
        break;
    case 2:
        # собственно добавление / изменение
        BeginHtml($Title2, $Title2, "http://" . $DOC_DOMAIN . "/settings/redirect/");
        $perm->ExitIfNotAccess(NC_PERM_REDIRECT, 0, 0, 0, 1);
        RedirectCompleted();
        RedirectList();
        break;
    case 3:
        # удаление
        BeginHtml($Title2, $Title2, "http://" . $DOC_DOMAIN . "/settings/redirect/");
        $perm->ExitIfNotAccess(NC_PERM_REDIRECT, 0, 0, 0, 1);
        while (list($key, $val) = each($_POST)) {
            if (strcmp(substr($key, 0, 6), "Delete") == 0) {
                DeleteRedirect($val);
            }
        }
        RedirectList();
        break;
}
EndHtml();
开发者ID:Blu2z,项目名称:implsk,代码行数:31,代码来源:redirect.php

示例7: switch

switch ($act) {
    case "save":
        $Enabled += 0;
        $nc_core->set_settings('Enabled', $Enabled, 'cheetah');
        $db->query("UPDATE `Module` SET `Inside_Admin`={$Enabled} WHERE `Keyword`='cheetah'");
        cheetah_cache();
        //create index SessionTime USING BTREE ON `Session` (SessionTime);
        //create index User_IP USING BTREE ON `Session` (User_IP);
        ob_end_clean();
        header('Location: admin.php');
        exit;
    default:
        //		if(!$db->get_var("SELECT `Inside_Admin` FROM `Module` WHERE `Keyword`='cheetah'")){
        //			$db->query("UPDATE `Module` SET `Inside_Admin`=1 WHERE `Keyword`='cheetah'");
        //		}
        BeginHtml($Title2, $Title1);
        $UI_CONFIG->actionButtons[] = array("id" => "submit", "caption" => "Сохранить настройки", "action" => "mainView.submitIframeForm('mainForm')");
        $settings = $nc_core->get_settings('', 'cheetah');
        ?>
		<form method='post' id='mainForm' action='admin.php'>
			<input type="hidden" name="act" value="save">
			<div class="nc_admin_settings_info_checked">
				<div>
					<input id="cheetah_enabled" type="checkbox" name="Enabled" value="1" <?php 
        echo $settings['Enabled'] ? ' checked="checked"' : '';
        ?>
>
					<label for="cheetah_enabled">Разрешить работу модуля</label>
				</div>
			</div>
		</form>
开发者ID:pzotov,项目名称:cheetah,代码行数:31,代码来源:admin.php

示例8: join

<?php

/* $Id: ExportToFile.php 7983 2012-08-17 09:34:36Z lemonade $ */
$NETCAT_FOLDER = join(strstr(__FILE__, "/") ? "/" : "\\", array_slice(preg_split("/[\\/\\\\]+/", __FILE__), 0, -4)) . (strstr(__FILE__, "/") ? "/" : "\\");
include_once $NETCAT_FOLDER . "vars.inc.php";
$template_id = intval($_GET['TemplateID']);
require $ADMIN_FOLDER . "function.inc.php";
if (!$nc_core->token->verify()) {
    BeginHtml("", "");
    nc_print_status(NETCAT_TOKEN_INVALID, 'error');
    EndHtml();
    exit;
}
// Выдача файла с шаблоном при экспорте
header("Content-type: text/xml");
header("Content-Disposition: attachment; filename=NetCat_" . $template_id . "_template.xml");
header("Expires: 0");
header("Cache-Control: must-revalidate, post-check=0,pre-check=0");
header("Pragma: public");
require $ADMIN_FOLDER . "template/function.inc.php";
echo CascadeExportTemplate($TemplateID);
function CascadeExportTemplate($TemplateID)
{
    // system superior object
    $nc_core = nc_Core::get_object();
    include $nc_core->DOCUMENT_ROOT . $nc_core->ADMIN_PATH . "tar.inc.php";
    $db =& $nc_core->db;
    $VersionNumber = $nc_core->get_settings("VersionNumber");
    $SystemID = $nc_core->get_settings("SystemID");
    $LastPatch = $nc_core->get_settings("LastPatch");
    $TemplateID = intval($TemplateID);
开发者ID:Blu2z,项目名称:implsk,代码行数:31,代码来源:export.php

示例9: error_reporting

<?php

/* $Id: header.inc.php 7307 2012-06-26 13:40:15Z alive $ */
$main_section = "settings";
$item_id = 12;
error_reporting(E_ALL ^ E_NOTICE);
$NETCAT_FOLDER = join(strstr(__FILE__, "/") ? "/" : "\\", array_slice(preg_split("/[\\/\\\\]+/", __FILE__), 0, -4)) . (strstr(__FILE__, "/") ? "/" : "\\");
include_once $NETCAT_FOLDER . "vars.inc.php";
require $ADMIN_FOLDER . "function.inc.php";
require_once $ADMIN_FOLDER . "catalogue/function.inc.php";
require_once $ADMIN_FOLDER . "siteinfo/function.inc.php";
$UI_CONFIG = new ui_config_catalogue('seo', +$CatalogueID);
$Delimeter = " &gt ";
$Title1 = SECTION_SECTIONS_INSTRUMENTS_SITEINFO;
$Title2 = NETCAT_MODULE_AUDITOR_TITLE;
BeginHtml($Title2, $Title1, "http://" . $DOC_DOMAIN . "/settings/siteinfo/");
$perm->ExitIfNotAccess(NC_PERM_SEO, NC_PERM_ACTION_VIEW, 0, 0, 1);
//LoadModuleEnv();
//$MODULE_VARS = $nc_core->modules->get_module_vars();
开发者ID:Blu2z,项目名称:implsk,代码行数:19,代码来源:header.inc.php

示例10: ui_config_module_stats

require_once $MODULE_FOLDER . "stats/ui_config.php";
$UI_CONFIG = new ui_config_module_stats('settings', '', '');
if (is_file($MODULE_FOLDER . "stats/" . MAIN_LANG . ".lang.php")) {
    require_once $MODULE_FOLDER . "stats/" . MAIN_LANG . ".lang.php";
} else {
    require_once $MODULE_FOLDER . "stats/en.lang.php";
}
$Delimeter = " &gt ";
$Title1 = NETCAT_MODULE_STATS;
$Title2 = "<a href=" . $ADMIN_PATH . "modules/>" . NETCAT_MODULES . "</a>";
// check permission
$perm->ExitIfNotAccess(NC_PERM_MODULE, 0, 0, 0, 1);
//LoadModuleEnv();
$MODULE_VARS = $nc_core->modules->get_module_vars();
$phase += 0;
BeginHtml($Title1, $Title2 . $Delimeter . $Title1, "http://" . $DOC_DOMAIN . "/settings/modules/stats/tools");
// check permission
$perm->ExitIfNotAccess(NC_PERM_MODULE, 0, 0, 0, 1);
if (isset($DoAction)) {
    if ($nc_stat_enable == 1) {
        $nc_core->set_settings('NC_Stat_Enabled', "1", 'stats');
    } else {
        $nc_core->set_settings('NC_Stat_Enabled', "0", 'stats');
    }
    if ($openstat_enable == 1) {
        $nc_core->set_settings('Openstat_Enabled', "1", 'stats');
    } else {
        $nc_core->set_settings('Openstat_Enabled', "0", 'stats');
    }
    nc_print_status(NETCAT_MODULE_STATS_CHANGES_SAVED, "ok");
} else {
开发者ID:Blu2z,项目名称:implsk,代码行数:31,代码来源:settings.php

示例11: ShowCataloguesForFavorites

        print "\n}\n\n\t\t  </script>\n\t\t </head>\n\t\t <body style='overflow-y: visible;'>";
        echo "<div id='menu_left' style='padding: 15px;'>\n            <div class='menu_left_block' style='overflow: visible;'>";
        ShowCataloguesForFavorites($catid, $phase);
        ShowSubsForFavorites($structure, 0, $catid, $phase);
        echo "</div></div>";
        echo "</body></html>";
        break;
    case 3:
        //Добавление в избранное
        if ($perm->isSubdivisionAdmin($subid)) {
            AddFavorites($subid);
        }
        header("Location: http://" . $HTTP_HOST . "" . $ADMIN_PATH . "");
        break;
    case 5:
        //Добавление в избранное
        if ($perm->isSubdivisionAdmin($subid)) {
            AddFavorites($subid);
        }
        header("Location: http://" . $HTTP_HOST . "" . $ADMIN_PATH . "subdivision/favorites.php");
        break;
    case 6:
        BeginHtml($Title2, $Title2, "http://" . $DOC_DOMAIN . "/management/favorites/");
        $UI_CONFIG = new ui_config_favorite('list');
        nc_delete_from_favorite($Delete);
        ShowFavorites();
        break;
}
if ($phase != 2 && $phase != 4) {
    EndHtml();
}
开发者ID:Blu2z,项目名称:implsk,代码行数:31,代码来源:favorites.php

示例12: BeginHtml

}
if (in_array($phase, array(1))) {
    if (!$nc_core->token->verify()) {
        BeginHtml($Title1, $Title1, "");
        nc_print_status(NETCAT_TOKEN_INVALID, 'error');
        EndHtml();
        exit;
    }
}
switch ($phase) {
    case 0:
        BeginHtml($Title1, $Title1, "");
        print nc_copy_form();
        break;
    case 1:
        BeginHtml($Title1, $Title1, "");
        try {
            nc_copy_completed();
            nc_print_status(TOOLS_COPYSUB_COPY_SUCCESS, 'ok');
        } catch (Exception $e) {
            nc_print_status($e->getMessage(), 'error');
        }
        // перезагрузка левого фрейма
        print "<script>top.frames['treeIframe'].window.location.reload(); </script>";
        print nc_copy_form();
        break;
}
EndHtml();
function nc_copy_form()
{
    global $UI_CONFIG, $db;
开发者ID:Blu2z,项目名称:implsk,代码行数:31,代码来源:copy.php

示例13: BeginHtml

    BeginHtml($Title2, $Title1, "http://" . $DOC_DOMAIN . "/settings/modules/");
    nc_print_status(NETCAT_MODULE_INSTALLCOMPLIED, 'ok');
    EndHtml();
    exit;
} else {
    $module_data = $res;
}
// load modules env
$lang = $nc_core->lang->detect_lang(1);
$MODULE_VARS = $nc_core->modules->load_env($lang);
if (!isset($phase)) {
    $phase = 2;
}
switch ($phase) {
    case 1:
        BeginHtml($Title2, $Title1, "http://" . $DOC_DOMAIN . "/settings/modules/");
        break;
    case 2:
        BeginHtml($Title2, $Title1, "http://" . $DOC_DOMAIN . "/settings/modules/");
        SelectParentSub();
        break;
    case 3:
        BeginHtml($Title2, $Title1, "http://" . $DOC_DOMAIN . "/settings/modules/");
        InsertSub(NETCAT_MODULE_SEARCH_ADMIN_EXTENSION_ACTION_SEARCHING, "search", "", 0, 0, 0, 0, 0, $nc_core->get_settings('ComponentID', 'search'), $SubdivisionID, $CatalogueID, "index", 1);
        UpdateHiddenURL("/", 0, $CatalogueID);
        $db->query("UPDATE `Module` SET `Installed` = 1 WHERE `Module_ID` = '" . intval($module_data["Module_ID"]) . "'");
        echo "<br/><br/>";
        nc_print_status(NETCAT_MODULE_INSTALLCOMPLIED, 'ok');
        break;
}
EndHtml();
开发者ID:Blu2z,项目名称:implsk,代码行数:31,代码来源:setup.php

示例14: ReadBackUP

            }
            if (checkBox($what, "netcat_files")) {
                $netcat_files = 1;
            }
            if (checkBox($what, "images")) {
                $images = 1;
            }
            if (checkBox($what, "modules")) {
                $modules = 1;
            }
            $err = ReadBackUP($file, $images, $netcat_files, $database, $modules, 1, $netcat_template);
            if (!$err) {
                nc_print_status(TOOLS_DUMP_MSG_RESTORED, "ok");
                showUploadForm();
                print "<br>";
                ShowBackUps();
            } else {
                nc_print_status($err, "error");
                showUploadForm();
                print "<br>";
                ShowBackUps();
            }
            break;
    }
} else {
    BeginHtml($Title5, $Title2, "http://" . $DOC_DOMAIN . "/settings/dump/");
    showUploadForm();
    print "<br>";
    ShowBackUps();
}
EndHtml();
开发者ID:Blu2z,项目名称:implsk,代码行数:31,代码来源:dump.php

示例15: BeginHtml

             }
             break;
             //            case 6:
             //
             //                # покажем меню операций для шаблона в разделе
             //                BeginHtml($Title5, $Title1.(($loc->SubdivisionID) ? $Delimeter.$Title3.$Delimeter.$Title5 : $Delimeter.$Title9.$Delimeter.$Title5), "http://".$DOC_DOMAIN."/management/sites/sections/class/info/");
             //                $perm->ExitIfNotAccess(NC_PERM_ITEM_CC, NC_PERM_ACTION_INFO, array($SubdivisionID, $SubClassID), 0, 0);
             //                ShowSubClassMenu($SubClassID, 9, "index.php", 3, "SubClass.php", 12, "index.php");
             //
             //                break;
     }
 } else {
     if (!$SubdivisionID) {
         BeginHtml($Title2_1, $Title1 . $Delimeter . $Title2_1, "http://" . $DOC_DOMAIN . "/management/sites/sections/class/");
     } else {
         BeginHtml($Title2, $Title1 . $Delimeter . $Title2, "http://" . $DOC_DOMAIN . "/management/sites/sections/class/");
     }
     $perm->ExitIfNotAccess(NC_PERM_ITEM_SUB, NC_PERM_ACTION_SUBCLASSLIST, $SubdivisionID, 0, 0);
     if (+$_REQUEST['isNaked']) {
         ob_clean();
         $SubClassID_list = ShowList_for_modal();
         if ($_REQUEST['sub_class_id']) {
             ob_clean();
             $sub_class_id = +$_REQUEST['sub_class_id'];
             foreach ($SubClassID_list as $SubClass) {
                 if ($SubClass['ID'] == $sub_class_id) {
                     $SubClassID_list = array(array('ID' => $SubClass['ID'], 'name' => $SubClass['name']));
                     break;
                 }
             }
         }
开发者ID:Blu2z,项目名称:implsk,代码行数:31,代码来源:SubClass.php


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