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


PHP printSubtabs函数代码示例

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


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

示例1: array

    $admins = $_zp_authority->getAdministrators();
    $zenphoto_tabs['overview']['subtabs'] = array(gettext('Mailing') => '');
    printAdminHeader('overview', 'Mailing');
    ?>
	</head>
	<body>
		<?php 
    printLogoAndLinks();
    ?>
		<div id="main">
			<?php 
    printTabs();
    ?>
			<div id="content">
				<?php 
    printSubtabs('Mailing');
    ?>
				<div class="tabbox">
					<?php 
    zp_apply_filter('admin_note', 'user_mailing', '');
    ?>
					<h1><?php 
    echo gettext('User mailing list');
    ?>
</h1>
					<p><?php 
    echo gettext("A tool to send e-mails to all registered users who have provided an e-mail address. There is always a copy sent to the current admin and all e-mails are sent as <em>blind copies</em>.");
    ?>
</p>
					<?php 
    if (!zp_has_filter('sendmail')) {
开发者ID:ariep,项目名称:ZenPhoto20-DEV,代码行数:31,代码来源:user_mailing_list.php

示例2: setOption

            break;
    }
    echo '</div>';
}
if (isset($_GET['cookiepath']) && @$_COOKIE['zenphoto_cookie_path'] != getOption('zenphoto_cookie_path')) {
    setOption('zenphoto_cookie_path', NULL);
    ?>
					<div class="errorbox">
						<h2><?php 
    echo gettext('The path you selected resulted in cookies not being retrievable. It has been reset.');
    ?>
</h2>
					</div>
					<?php 
}
printSubtabs();
if ($subtab == 'general' && zp_loggedin(OPTIONS_RIGHTS)) {
    ?>
					<div id="tab_gallery" class="tabbox">
						<?php 
    if (isset($_GET['local_failed'])) {
        $languages = array_flip(generateLanguageList('all'));
        $locale = sanitize($_GET['local_failed']);
        echo '<div class="errorbox">';
        echo "<h2>" . sprintf(gettext("<em>%s</em> is not available."), html_encode($languages[$locale])) . ' ' . sprintf(gettext("The locale %s is not supported on your server."), html_encode($locale)) . '<br />' . gettext('See the troubleshooting guide on zenphoto.org for details.') . "</h2>";
        echo '</div>';
    }
    ?>
						<?php 
    zp_apply_filter('admin_note', 'options', $subtab);
    ?>
开发者ID:JoniWeiss,项目名称:JoniWebGirl,代码行数:31,代码来源:admin-options.php

示例3: printLogoAndLinks

echo "\n</head>";
?>

<body>

<?php 
printLogoAndLinks();
?>
<div id="main">
	<?php 
printTabs();
?>
	<div id="content">
		<div id="container">
			<?php 
$subtab = printSubtabs();
?>
			<div class="tabbox">
				<?php 
zp_apply_filter('admin_note', 'upload', $subtab);
?>
				<h1><?php 
echo gettext('File Manager');
?>
</h1>
				<?php 
$locale = substr(getOption("locale"), 0, 2);
if (empty($locale)) {
    $locale = 'en';
}
?>
开发者ID:hatone,项目名称:zenphoto-1.4.1.4,代码行数:31,代码来源:admin-filemanager.php

示例4: printLogoAndLinks

		.import-error {
			color: red;
		}
	</style>
	</head>
	<body>
		<?php 
    printLogoAndLinks();
    ?>
		<div id="main">
			<?php 
    printTabs();
    ?>
			<div id="content">
				<?php 
    printSubtabs('Wordpress');
    ?>
				<div class="tabbox">
					<?php 
    zp_apply_filter('admin_note', 'wordpress', '');
    ?>
					<h1><?php 
    echo gettext('Wordpress Importer');
    ?>
</h1>
					<?php 
    if (!isset($_REQUEST['dbname']) && !isset($_REQUEST['dbuser']) && !isset($_REQUEST['dbpass']) && !isset($_REQUEST['dbhost']) && !isset($_GET['refresh'])) {
        ?>
						<p><?php 
        echo gettext("An importer for <strong>Wordpress 3.x or newer</strong> to the Zenpage CMS plugin that imports the following:");
        ?>
开发者ID:ariep,项目名称:ZenPhoto20-DEV,代码行数:31,代码来源:wordpress_import.php

示例5: define

// force UTF-8 Ø
define('OFFSET_PATH', 3);
require_once "../../admin-globals.php";
require_once SERVERPATH . '/' . ZENFOLDER . '/template-functions.php';
require_once SERVERPATH . '/' . ZENFOLDER . '/' . PLUGIN_FOLDER . '/cacheManager/functions.php';
admin_securityChecks(NULL, $return = currentRelativeURL());
XSRFdefender('cacheDBImages');
$zenphoto_tabs['overview']['subtabs'] = array(gettext('Cache images') => PLUGIN_FOLDER . '/cacheManager/cacheImages.php?page=overview&tab=images', gettext('Cache stored images') => PLUGIN_FOLDER . '/cacheManager/cacheDBImages.php?page=overview&tab=DB&XSRFToken=' . getXSRFToken('cacheDBImages'));
printAdminHeader('overview', 'DB');
echo "\n</head>";
echo "\n<body>";
printLogoAndLinks();
echo "\n" . '<div id="main">';
printTabs();
echo "\n" . '<div id="content">';
printSubtabs('Cache');
?>
<div class="tabbox">
	<?php 
zp_apply_filter('admin_note', 'cache', '');
?>
	<p class="notebox">
		<?php 
echo gettext('This utility scans the database for images references that have been stored there.') . ' ';
echo gettext('If an image processor URI is discovered it will be converted to a cache file URI.') . ' ';
echo gettext('If the cache file for the image does not exist, a caching image reference will be made for the image.');
?>
	</p>
	<?php 
$tables = array('albums' => array('desc'), 'images' => array('desc'), 'pages' => array('content', 'extracontent'), 'news' => array('content', 'extracontent'));
?>
开发者ID:ariep,项目名称:ZenPhoto20-DEV,代码行数:31,代码来源:cacheDBImages.php

示例6: gettext

echo "\n" . '<div id="content">';
if ($_zp_null_account) {
    echo "<div class=\"errorbox space\">";
    echo "<h2>" . gettext("Password reset request.<br/>You may now set admin usernames and passwords.") . "</h2>";
    echo "</div>";
}
/* Page code */
?>
<div id="container">
<?php 
if (isset($_GET['saved'])) {
    echo '<div class="messagebox" id="fade-message">';
    echo "<h2>" . gettext("Saved") . "</h2>";
    echo '</div>';
}
printSubtabs($tabs);
if ($subtab == 'admin') {
    ?>
<div id="tab_admin" class="box" style="padding: 15px;">
<?php 
    if ($_zp_loggedin & ADMIN_RIGHTS) {
        $alterrights = '';
        $admins = getAdministrators();
        if (!$_zp_null_account || count($admins) == 0) {
            $admins[''] = array('id' => -1, 'user' => '', 'pass' => '', 'name' => '', 'email' => '', 'rights' => ALL_RIGHTS ^ ALL_ALBUMS_RIGHTS);
        }
    } else {
        $alterrights = ' DISABLED';
        global $_zp_current_admin;
        $admins = array($_zp_current_admin['user'] => $_zp_current_admin);
        echo "<input type=\"hidden\" name=\"alter_enabled\" value=\"no\" />";
开发者ID:ItsHaden,项目名称:epicLanBootstrap,代码行数:31,代码来源:admin-options.php

示例7: gettext

        echo '</div>';
    }
    if (isset($_GET['cleared'])) {
        echo '<div class="messagebox" id="fade-message">';
        echo "<h2>" . gettext("Album cache purged") . "</h2>";
        echo '</div>';
    }
    $albumlink = '?page=edit&album=' . urlencode($album->name);
    $tabs = array(gettext('Album') => 'admin-edit.php' . $albumlink . '&tab=albuminfo');
    if (count($subalbums) > 0) {
        $tabs[gettext('Subalbums')] = 'admin-edit.php' . $albumlink . '&tab=subalbuminfo';
    }
    if ($allimagecount) {
        $tabs[gettext('Images')] = 'admin-edit.php' . $albumlink . '&tab=imageinfo';
    }
    $subtab = printSubtabs($tabs);
    ?>
	<?php 
    if ($subtab == 'albuminfo') {
        ?>
		<!-- Album info box -->
		<div id="tab_albuminfo" class="box" style="padding: 15px;">
		<div class="innerbox" style="padding: 15px;">
		<form name="albumedit1" AUTOCOMPLETE=OFF
			action="?page=edit&action=save<?php 
        echo "&album=" . urlencode($album->name);
        ?>
"	method="post">
			<input type="hidden" name="album"	value="<?php 
        echo $album->name;
        ?>
开发者ID:ItsHaden,项目名称:epicLanBootstrap,代码行数:31,代码来源:admin-edit.php

示例8: printTabs

?>
<div id="main">
	<?php 
printTabs();
?>
	<div id="content">
	<?php 
if (count($filelist) > 0) {
    ?>
		<h1><?php 
    echo gettext("View logs:");
    ?>
</h1>

		<?php 
    $subtab = printSubtabs($default);
    ?>
			<!-- A log -->
			<div id="theme-editor" class="tabbox">
				<?php 
    zp_apply_filter('admin_note', 'logs', $subtab);
    ?>
				<form name="delete_log" action="?action=delete_log&amp;page=logs&amp;tab=<?php 
    echo $subtab;
    ?>
" method="post" style="float: left">
					<?php 
    XSRFToken('delete_log');
    ?>
					<input type="hidden" name="action" value="delete" />
					<input type="hidden" name="filename" value="<?php 
开发者ID:hatone,项目名称:zenphoto-1.4.1.4,代码行数:31,代码来源:admin-logs.php


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