Ejemplo n.º 1
0
    printExpired($article);
    ?>
									</td>
									<td class="page-list_icon">
										<?php 
    if ($article->inProtectedCategory()) {
        echo '<img src="../../images/lock.png" style="border: 0px;" alt="' . gettext('Password protected') . '" title="' . gettext('Password protected') . '" />';
    }
    ?>
									</td>
									<td><?php 
    echo linkPickerIcon($article);
    ?>
</td>
									<?php 
    $option = getNewsAdminOptionPath(getNewsAdminOption(NULL));
    if (empty($option)) {
        $divider = '?';
    } else {
        $divider = '&amp;';
    }
    if (checkIfLocked($article)) {
        ?>
										<td class="page-list_icon">
											<?php 
        printPublishIconLink($article, $option);
        ?>
										</td>
										<td class="page-list_icon">
											<?php 
        if ($article->getCommentsAllowed()) {
Ejemplo n.º 2
0
								</td>
								<td>
									<?php 
    printExpired($article);
    ?>
								</td>
								<td class="page-list_icon">
									<?php 
    if ($article->inProtectedCategory()) {
        echo '<img src="../../images/lock.png" style="border: 0px;" alt="' . gettext('Password protected') . '" title="' . gettext('Password protected') . '" />';
    }
    ?>
								</td>

								<?php 
    $option = getNewsAdminOptionPath(getNewsAdminOption(array('category' => 0, 'date' => 0, 'published' => 0, 'sortorder' => 0, 'articles_page' => 1, 'subpage' => 1)));
    if (empty($option)) {
        $divider = '?';
    } else {
        $divider = '&amp;';
    }
    if (checkIfLockedNews($article)) {
        ?>
									<td class="page-list_icon">
										<?php 
        printPublishIconLink($article, 'news');
        ?>
									</td>
									<td class="page-list_icon">
										<?php 
        if ($article->getCommentsAllowed()) {
/**
 * Prints the dropdown menu for the articles per page selector for the news articles list
 *
 */
function printArticlesPerPageDropdown()
{
    global $_zp_zenpage, $subpage, $articles_page;
    ?>
	<form name="AutoListBox5" id="articlesperpagedropdown" method="POST" style="float: left; margin-left: 10px;"	action="#">
		<select name="ListBoxURL" size="1"	onchange="gotoLink(this.form)">
			<?php 
    $option = getNewsAdminOption(array('category' => 0, 'date' => 0, 'published' => 0, 'sortorder' => 0));
    $list = array_unique(array(15, 30, 60, max(1, getOption('articles_per_page'))));
    sort($list);
    foreach ($list as $count) {
        ?>
				<option <?php 
        if ($articles_page == $count) {
            echo 'selected="selected"';
        }
        ?>
 value="admin-news-articles.php<?php 
        echo getNewsAdminOptionPath(array_merge(array('articles_page' => $count, 'subpage' => (int) ($subpage * $articles_page / $count)), $option));
        ?>
"><?php 
        printf(gettext('%u per page'), $count);
        ?>
</option>
				<?php 
    }
    ?>
			<option <?php 
    if ($articles_page == 0) {
        echo 'selected="selected"';
    }
    ?>
 value="admin-news-articles.php<?php 
    echo getNewsAdminOptionPath(array_merge(array('articles_page' => 'all'), $option));
    ?>
"><?php 
    echo gettext("All");
    ?>
</option>

		</select>
		<script type="text/javascript">
			// <!-- <![CDATA[
			function gotoLink(form) {
				var OptionIndex = form.ListBoxURL.selectedIndex;
				parent.location = form.ListBoxURL.options[OptionIndex].value;
			}
			// ]]> -->
		</script>
		&nbsp;&nbsp;
	</form>
	<?php 
}
Ejemplo n.º 4
0
/**
 * Prints the dropdown menu for the articles per page selector for the news articles list
 *
 */
function printArticlesPerPageDropdown($subpage)
{
    global $_zp_CMS, $articles_page;
    $option = getNewsAdminOption('articles_page');
    ?>
	<form name="AutoListBox5" id="articlesperpagedropdown" method="POST" style="float:left; margin:5px;"	action="#">
		<select name="ListBoxURL" size="1"	onchange="gotoLink(this.form)">
			<?php 
    $list = array_unique(array(15, 30, 60, max(1, getOption('articles_per_page'))));
    sort($list);
    foreach ($list as $count) {
        ?>
				<option <?php 
        if ($articles_page == $count) {
            echo 'selected="selected"';
        }
        ?>
 value="admin-news.php<?php 
        echo getNewsAdminOptionPath(array_merge(array('articles_page' => $count, 'subpage' => (int) ($subpage * $articles_page / $count)), $option));
        ?>
"><?php 
        printf(gettext('%u per page'), $count);
        ?>
</option>
				<?php 
    }
    ?>
			<option <?php 
    if ($articles_page == 0) {
        echo 'selected="selected"';
    }
    ?>
 value="admin-news.php<?php 
    echo getNewsAdminOptionPath(array_merge(array('articles_page' => 'all'), $option));
    ?>
"><?php 
    echo gettext("All");
    ?>
</option>
		</select>

	</form>
	<?php 
}