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


PHP Gallery::getNumImages方法代碼示例

本文整理匯總了PHP中Gallery::getNumImages方法的典型用法代碼示例。如果您正苦於以下問題:PHP Gallery::getNumImages方法的具體用法?PHP Gallery::getNumImages怎麽用?PHP Gallery::getNumImages使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Gallery的用法示例。


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

示例1: gettext

}
echo '</head>';
?>

<body>
<?php 
printLogoAndLinks();
?>
<div id="main">
<a name="top"></a>
<?php 
printTabs();
// getting the counts
$albumcount = $gallery->getNumAlbums(true);
$albumscount_unpub = $albumcount - $gallery->getNumAlbums(true, true);
$imagecount = $gallery->getNumImages();
$imagecount_unpub = $imagecount - $gallery->getNumImages(true);
?>
<div id="content">
<?php 
zp_apply_filter('admin_note', 'statistics', '');
?>
<h1><?php 
echo gettext("Gallery Statistics");
?>
</h1>
<p><?php 
echo gettext("This page shows more detailed statistics of your gallery. For album statistics the bar graph always shows the total number of images in that album. For image statistics always the album the image is in is shown.<br />Un-published items are marked in dark red. Images are marked un-published if their (direct) album is, too.");
?>
</p>
開發者ID:hatone,項目名稱:zenphoto-1.4.1.4,代碼行數:30,代碼來源:gallery_statistics.php

示例2: gettext

    }
    ?>
<div id="overview-leftcolumn">
<?php 
    if (zp_loggedin(OVERVIEW_RIGHTS)) {
        ?>
	<div class="boxouter">
		<div class="box" id="overview-gallerystats">
			<h2 class="h2_bordered"><?php 
        echo gettext("Gallery Stats");
        ?>
</h2>
			<ul>
				<li>
				<?php 
        $t = $gallery->getNumImages();
        $c = $t - $gallery->getNumImages(true);
        if ($c > 0) {
            printf(ngettext('<strong>%1$u</strong> Image (%2$u un-published)', '<strong>%1$u</strong> Images (%2$u un-published)', $t), $t, $c);
        } else {
            printf(ngettext('<strong>%u</strong> Image', '<strong>%u</strong> Images', $t), $t);
        }
        ?>
				</li>
				<li>
				<?php 
        $t = $gallery->getNumAlbums(true);
        $c = $t - $gallery->getNumAlbums(true, true);
        if ($c > 0) {
            printf(ngettext('<strong>%1$u</strong> Album (%2$u un-published)', '<strong>%1$u</strong> Albums (%2$u un-published)', $t), $t, $c);
        } else {
開發者ID:hatone,項目名稱:zenphoto-1.4.1.4,代碼行數:31,代碼來源:admin.php


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