示例#1
0
                    $message = gettext('Tags added for images of selected items');
                    break;
                case 'clearalltags':
                    $message = gettext('Tags cleared for images of selected items');
                    break;
            }
            echo '<div class="messagebox fade-message">';
            echo "<h2>" . $message . "</h2>";
            echo '</div>';
        }
        $albums = getNestedAlbumList(NULL, $gallery_nesting);
        if (count($albums) > 0) {
            if (zp_loggedin(ADMIN_RIGHTS) && count($albums) > 1) {
                $sorttype = strtolower($gallery->getSortType());
                if ($sorttype != 'manual') {
                    if ($gallery->getSortDirection()) {
                        $dir = gettext(' descending');
                    } else {
                        $dir = '';
                    }
                    $sortNames = array_flip($sortby);
                    $sorttype = $sortNames[$sorttype];
                } else {
                    $dir = '';
                }
                ?>
			<p>
			<?php 
                printf(gettext('Current sort: <em>%1$s%2$s</em>.'), $sorttype, $dir);
                ?>
			</p>
示例#2
0
									<?php 
    if (array_search($cv, $sort) === false) {
        $cv = 'custom';
    }
    generateListFromArray(array($cv), $sort, false, true);
    ?>
									</select>
								</td>
								<td>
									<span id="gallery_sortdirection" style="display:<?php 
    echo $dspd;
    ?>
">
										<label>
											<input type="checkbox" name="gallery_sortdirection"	value="1" <?php 
    echo checked('1', $gallery->getSortDirection());
    ?>
 />
											<?php 
    echo gettext("Descending");
    ?>
										</label>
									</span>
								</td>
							</tr>
							<tr>
								<td colspan="2">
									<span id="customTextBox2" class="customText" style="display:<?php 
    echo $dspc;
    ?>
">