本文整理汇总了PHP中rex_title函数的典型用法代码示例。如果您正苦于以下问题:PHP rex_title函数的具体用法?PHP rex_title怎么用?PHP rex_title使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了rex_title函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: dirname
* MetaForm Addon
* @author markus[dot]staab[at]redaxo[dot]de Markus Staab
*
* @package redaxo4
* @version $Id: index.inc.php,v 1.5 2008/03/26 18:54:34 kills Exp $
*/
// Parameter
$Basedir = dirname(__FILE__);
$page = rex_request('page', 'string');
$subpage = rex_request('subpage', 'string');
$func = rex_request('func', 'string');
// Include Header and Navigation
require $REX['INCLUDE_PATH'] . '/layout/top.php';
// Build Subnavigation
$subpages = array(array('', 'Artikel'), array('categories', 'Kategorien'), array('media', 'Medien'));
rex_title('Metainformationen erweitern', $subpages);
// Include Current Page
switch ($subpage) {
case 'media':
$prefix = 'med_';
break;
case 'categories':
$prefix = 'cat_';
break;
default:
$prefix = 'art_';
}
$metaTable = a62_meta_table($prefix);
require $Basedir . '/field.inc.php';
// Include Footer
require $REX['INCLUDE_PATH'] . '/layout/bottom.php';
示例2: rex_request
<?php
$addon = 'be_utilities';
$subpage = rex_request('subpage', 'string', '');
$plugin = str_replace('plugin.', '', $subpage);
// layout top
include $REX['INCLUDE_PATH'] . '/layout/top.php';
// title and menu
rex_title($REX['ADDON']['name']['be_utilities'] . ' <span class="version">' . $REX['ADDON']['version'][$addon] . '</span>', $REX['ADDON'][$addon]['SUBPAGES']);
if ($subpage != '') {
// plugin headline
echo '<h2 class="main plugin">' . rex_plugin_factory::getPluginTitle('be_utilities', $plugin) . '</h2>';
// include plugin page
include $REX['INCLUDE_PATH'] . '/addons/' . $addon . '/plugins/' . $plugin . '/pages/index.inc.php';
} else {
// show plugin list
rex_plugin_factory::printPluginList($addon, $I18N->msg('be_utilities_available_plugins'), $I18N->msg('be_utilities_no_plugins_installed'));
}
// layout bottom
include $REX['INCLUDE_PATH'] . '/layout/bottom.php';
示例3: rex_setup_title
/**
* Ausgabe des Setup spezifischen Titels
*/
function rex_setup_title($title)
{
rex_title($title);
echo '<div id="rex-stp">';
}
示例4: title
function title($head, $subtitle = '', $styleclass = "grey", $width = '770px')
{
return rex_title($head, $subtitle, $styleclass, $width);
}
示例5: rex_register_extension
// BACKEND CSS
//////////////////////////////////////////////////////////////////////////////
if ($REX['REDAXO']) {
rex_register_extension('PAGE_HEADER', 'mysql_tools_header');
function mysql_tools_header($params)
{
$params['subject'] .= PHP_EOL . ' <!-- mysql_tools Addon -->' . PHP_EOL . ' <link rel="stylesheet" type="text/css" href="../files/addons/mysql_tools/backend.css" media="screen, projection, print" />' . PHP_EOL . ' <!-- /mysql_tools Addon -->' . PHP_EOL;
return $params['subject'];
}
}
// REX BACKEND LAYOUT TOP
//////////////////////////////////////////////////////////////////////////////
require $REX['INCLUDE_PATH'] . '/layout/top.php';
// TITLE & SUBPAGE NAVIGATION
//////////////////////////////////////////////////////////////////////////////
rex_title($REX['ADDON']['name'][$mypage] . ' <span class="addonversion">' . $REX['ADDON']['version'][$mypage] . '</span>', $REX['ADDON'][$mypage]['SUBPAGES']);
// INCLUDE REQUESTED SUBPAGE
//////////////////////////////////////////////////////////////////////////////
if (!$subpage) {
$subpage = 'settings';
/* DEFAULT SUBPAGE */
}
require $REX['INCLUDE_PATH'] . '/addons/' . $mypage . '/pages/' . $subpage . '.inc.php';
// JS SCRIPT FÜR LINKS IN NEUEN FENSTERN (per <a class="jsopenwin">)
////////////////////////////////////////////////////////////////////////////////
echo '
<script type="text/javascript">
// onload
window.onload = externalLinks;
// http://www.sitepoint.com/article/standards-compliant-world
示例6: rex_request
<?php
/**
*
* @package redaxo4
* @version $Id: specials.inc.php,v 1.1 2008/03/26 13:34:13 kills Exp $
*/
// -------------- Defaults
$message = rex_request('message', 'string');
$subpage = rex_request('subpage', 'string');
$func = rex_request('func', 'string');
// -------------- Header
$subline = array(array('', $I18N->msg('main_preferences')), array('lang', $I18N->msg('languages')));
rex_title($I18N->msg('specials'), $subline);
switch ($subpage) {
case 'lang':
$file = 'specials.clangs.inc.php';
break;
default:
$file = 'specials.settings.inc.php';
break;
}
require $REX['INCLUDE_PATH'] . '/pages/' . $file;
示例7: fputs
} else {
$filename .= $ext;
}
if (is_writable($dir_filename) && ($fp = fopen($filename, "w"))) {
fputs($fp, $content);
fclose($fp);
$msg = $I18N_IM_EXPORT->msg('file_generated_in') . ' ' . $filename;
} else {
$msg = $I18N_IM_EXPORT->msg('file_could_not_be_generated') . " " . $I18N->msg('check_rights_in_directory') . ' ' . $REX['INCLUDE_PATH'] . "/addons/{$page}/files";
}
// echo $content;
}
}
}
include $REX['INCLUDE_PATH'] . "/layout/top.php";
rex_title($I18N_IM_EXPORT->msg("importexport"), "");
if ($msg != '') {
echo "<table border=0 cellpadding=5 cellspacing=1 width=770><tr><td class=warning>{$msg}</td></tr></table><br>";
}
?>
<table width="770" cellspacing="1" border="0" cellpadding="5">
<tr>
<th width="50%" align="left"><?php
echo $I18N_IM_EXPORT->msg('import');
?>
</th>
<th align="left"><?php
echo $I18N_IM_EXPORT->msg('export');
?>
示例8: switch
<?php
$PREPOST[0] = "PRE";
$PREPOST[1] = "POST";
$ASTATUS[0] = "ADD";
$ASTATUS[1] = "EDIT";
$ASTATUS[2] = "DELETE";
if (!isset($subpage)) {
$subpage = '';
}
switch ($subpage) {
case 'actions':
$title = 'Module: Actions';
$file = 'module.action.inc.php';
break;
default:
$title = 'Module';
$file = 'module.modules.inc.php';
break;
}
rex_title($title, array(array('', 'Modules'), array('actions', 'Actions')));
include $REX['INCLUDE_PATH'] . '/pages/' . $file;
示例9: unset
} else {
unset($edit_id);
}
if (isset($article_id) and $article_id != '') {
$thisArt = new sql();
$thisArt->setQuery("select * from " . $REX['TABLE_PREFIX'] . "article where id='" . $article_id . "' and clang={$clang}");
if ($thisArt->getRows() != 1) {
unset($article_id);
}
} else {
unset($article_id);
}
// --------------------------------------------- KATEGORIE PFAD UND RECHTE WERDEN ÜBERPRÜFT
include $REX['INCLUDE_PATH'] . "/functions/function_rex_category.inc.php";
// --------------------------------------------- TITLE
rex_title($I18N->msg("title_structure"), "{$KATout}");
$sprachen_add = "&category_id={$category_id}";
include $REX['INCLUDE_PATH'] . "/functions/function_rex_languages.inc.php";
// --------------------------------------------- KATEGORIE FUNKTIONEN
if (isset($catedit_function) and $catedit_function != "" && $edit_id != "" && $KATPERM) {
// --------------------- KATEGORIE EDIT
$old_prio = $thisCat->getValue("catprior");
$new_prio = (int) $Position_Category;
if ($new_prio == 0) {
$new_prio = 1;
}
$re_id = $thisCat->getValue("re_id");
$EKAT = new sql();
$EKAT->setTable($REX['TABLE_PREFIX'] . "article");
$EKAT->where("id='{$edit_id}' and startpage=1 and clang={$clang}");
$EKAT->setValue("catname", "{$kat_name}");
示例10: rex_title
<?php
include $REX['INCLUDE_PATH'] . "/layout/top.php";
rex_title($I18N_STATS->msg("stats_title"), " <a href=index.php?page=stats&sub=stats>" . $I18N_STATS->msg("statistics_header") . "</a> | <a href=index.php?page=stats&sub=auswertung>" . $I18N_STATS->msg("evaluation_header") . "</a>");
//
// REACTING
//
if ($year == "") {
$year = date("Y");
}
if ($month == "") {
$month = date("m");
}
if ($funktion == 'evaluate') {
// no time limit
// set_time_limit(0); // doesnt work in safe_mode
$a = new stats();
if ($a->evaluate($year, $month)) {
$err_msg = $I18N_STATS->msg("eval_ok") . "<br>";
} else {
$err_msg = $I18N_STATS->msg("eval_error") . "<br>";
}
}
//
// suche monate und jahre für die wir logs haben
$pfad = $REX['INCLUDE_PATH'] . "/addons/stats/logs/";
$months = array();
$years = array();
if (is_dir($pfad)) {
if ($dh = opendir($pfad)) {
while (($file = readdir($dh)) !== false) {
示例11: rex_request
<?php
// post vars
$page = rex_request('page', 'string');
$subpage = rex_request('subpage', 'string');
// if no subpage specified, use this one
if ($subpage == '') {
$subpage = 'start';
}
// layout top
require $REX['INCLUDE_PATH'] . '/layout/top.php';
// title
rex_title($REX['ADDON']['name']['markdownplus'] . ' <span style="font-size:14px; color:silver;">' . $REX['ADDON']['version']['markdownplu'] . '</span>', $REX['ADDON']['markdownplus']['SUBPAGES']);
// include subpage
include $REX['INCLUDE_PATH'] . '/addons/markdownplus/pages/' . $subpage . '.inc.php';
?>
<style type="text/css">
a.extern,
#rex-page-markdown #subpage-help a[href^="http://"],
#rex-page-markdown #subpage-help a[href^="https://"] {
background: transparent url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAA8CAYAAACq76C9AAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAFFSURBVHjaYtTpO/CfAQcACCAmBjwAIIAY//9HaNTtP4hiCkAAMeGSAAGAAGJCl7hcaM8IYwMEEBMuCRAACCAmXBIgABBAKA5CBwABhNcrAAGEVxIggPBKAgQQXkmAAMIrCRBAeCUBAgivJEAA4ZUECCC8kgABhFcSIIDwSgIEEF5JgADCKwkQQHglAQIIryRAAOGVBAggvJIAAYRXEiCA8EoCBBBeSYAAwisJEEB4JQECiAVbNoABgADCqxMggPDmMoAAwpvLAAIIby4DCCC8uQwggPDmMoAAwpvLAAIIr1cAAgivJEAA4ZUECCC8kgABhFcSIIDwSgIEEF5JgADCKwkQQHglAQIIryRAAOGVBAggvJIAAYRXEiCA8EoCBBBeSYAAwisJEEB4JQECCK8kQADhlQQIILySAAGEVxIggPBKAgQYAARTLlfrU5G2AAAAAElFTkSuQmCC) no-repeat right 3px;
padding-right: 10px;
}
#rex-page-markdown div.rex-addon-content p.rex-code {
margin-bottom: 22px;
margin-top: 3px;
}
#rex-page-markdown .addon-template h1 {
示例12: rex_linkmap_url
$isRoot = $category_id === 0;
$category = OOCategory::getCategoryById($category_id);
$link = rex_linkmap_url(array('category_id' => 0), $GlobalParams);
$navi_path .= '<li>' . $I18N->msg('path') . ' </li>';
$navi_path .= '<li>: <a href="' . $link . '">Homepage</a> </li>';
$tree = array();
if ($category) {
foreach ($category->getParentTree() as $cat) {
$tree[] = $cat->getId();
$link = rex_linkmap_url(array('category_id' => $cat->getId()), $GlobalParams);
$navi_path .= '<li> : <a href="' . $link . '">' . htmlspecialchars($cat->getName()) . '</a></li>';
}
}
$navi_path .= '</ul>';
//rex_title($REX['SERVERNAME'], 'Linkmap');
rex_title('Linkmap', $navi_path);
?>
<div id="rex-linkmap">
<div class="rex-area-col-2">
<div class="rex-area-col-a">
<h3 class="rex-hl2"><?php
echo $I18N->msg('lmap_categories');
?>
</h3>
<div class="rex-area-content">
<?php
$roots = OOCategory::getRootCategories();
示例13: rex_request
<?php
// post vars
$page = rex_request('page', 'string');
$subpage = rex_request('subpage', 'string');
// if no subpage specified, use this one
if ($subpage == '') {
$subpage = 'settings';
}
// layout top
require $REX['INCLUDE_PATH'] . '/layout/top.php';
// title
rex_title($REX['ADDON']['name']['global_settings'] . ' <span style="font-size:14px; color:silver;">' . $REX['ADDON']['version']['global_settings'] . '</span>', $REX['ADDON']['global_settings']['SUBPAGES']);
// include subpage
include $REX['INCLUDE_PATH'] . '/addons/global_settings/pages/' . $subpage . '.inc.php';
// layout bottom
require $REX['INCLUDE_PATH'] . '/layout/bottom.php';
示例14: rex_title
<?php
$page = 'xmediapool_password';
include $REX["INCLUDE_PATH"] . "/layout/top.php";
rex_title($REX['ADDON']['name'][$page]);
$config_file = $REX['INCLUDE_PATH'] . '/addons/' . $page . '/config.inc.php';
$download_form_article_id = rex_request('download_form_article_id', 'int');
if (rex_request('func') == 'update') {
$REX['ADDON']['DOWNLOAD_FORM_ARTICLE_ID'][$myself] = $download_form_article_id;
$content = '
$REX[\'ADDON\'][\'DOWNLOAD_FORM_ARTICLE_ID\'][\'' . $myself . '\'] = ' . $download_form_article_id . ';
';
if (rex_replace_dynamic_contents($config_file, $content) !== false) {
echo rex_info($I18N->msg($page . '_config_saved'));
} else {
echo rex_warning($I18N->msg($page . '_config_not_saved'));
}
}
if (!is_writable($config_file)) {
echo rex_warning($I18N->msg($page . '_config_not_writable', $config_file));
}
$linkbutton = new rex_input_linkbutton();
$linkbutton->setAttribute('name', 'download_form_article_id');
$linkbutton->setButtonId('download_form_article_id');
$linkbutton->setCategoryId(0);
$linkbutton->setValue($REX['ADDON']['DOWNLOAD_FORM_ARTICLE_ID'][$myself]);
echo '
<div class="rex-addon-output">
示例15: switch
}
if ($ret) {
return $ret;
}
}
return false;
}
if (!deep_in_array($subpage, $REX['ADDON'][$page]['SUBPAGES'])) {
$subpage = '';
}
if ($subpage != '') {
switch ($subpage) {
case 'description':
include $REX['INCLUDE_PATH'] . "/addons/{$page}/pages/{$subpage}.inc.php";
break;
default:
include $REX['INCLUDE_PATH'] . "/addons/{$page}/plugins/{$subpage}/pages/index.inc.php";
break;
}
} else {
rex_title('XForm', $REX['ADDON'][$page]['SUBPAGES']);
echo '<div class="rex-addon-output">';
echo '<h2 class="rex-hl2">XFORM - ' . $I18N->msg('xform_overview') . '</h2>';
echo '<div class="rex-addon-content"><ul>';
foreach ($REX['ADDON'][$page]['SUBPAGES'] as $sp) {
echo '<li><a href="index.php?page=' . $page . '&subpage=' . $sp[0] . '">' . $sp[1] . '</a></li>';
}
echo '</ul></div>';
echo '</div>';
}
include $REX['INCLUDE_PATH'] . '/layout/bottom.php';