Esempio n. 1
0
    function handleOption($option, $currentValue)
    {
        $list = get_AnyFile_suffixes();
        ?>
		<ul class="customchecklist">
			<?php 
        generateUnorderedListFromArray($list, $list, 'AnyFile_file_', false, false, false, NULL, NULL, true);
        ?>
		</ul>
		<?php 
    }
Esempio n. 2
0
																					maxWidth: 350,
																									minWidth: 350, minHeight: 120,
																									resize: function(event, ui) {
																									$('#searchchecklist').height($('#resizable').height());
																									}
																					});
																					});</script>
								<td>
									<?php 
    echo gettext('Fields list:');
    ?>
									<div id="resizable">
										<ul class="searchchecklist" id="searchchecklist">
											<?php 
    generateUnorderedListFromArray($set_fields, $set_fields, 'SEARCH_', false, true, true, 'search_fields');
    generateUnorderedListFromArray(array(), $fields, 'SEARCH_', false, true, true, 'search_fields');
    ?>
										</ul>
										<div class="floatright">
											<label id="autocheck">
												<input type="checkbox" name="checkAllAuto" id="checkAllAuto" onclick="$('.search_fields').prop('checked', checked);" />
												<span id="autotext"><?php 
    echo gettext('all');
    ?>
</span>
											</label>
										</div>
									</div>
									<br />
									<p>
										<?php 
		<td><?php 
echo gettext("Search fields:");
?>
</td>
		<td>
		<?php 
echo '<ul class="searchchecklist">' . "\n";
$selected_fields = array();
$engine = new SearchEngine();
$available_fields = $engine->allowedSearchFields();
foreach ($available_fields as $key => $value) {
    if ($value & $fields) {
        $selected_fields[$key] = $value;
    }
}
generateUnorderedListFromArray($selected_fields, $available_fields, '_SEARCH_', false, true, true);
echo '</ul>';
?>
		
		</td>
	</tr>

</table>

<input type="submit" value="<?php 
echo gettext('Create the album');
?>
"
	class="button" /></form>

<?php 
Esempio n. 4
0
/**
 * Creates the managed album table for Admin
 *
 * @param string $type the kind of list
 * @param array $objlist list of objects
 * @param string $alterrights are the items changable
 * @param object $userobj the user
 * @param int $prefix the admin row
 * @param string $kind user, group, or template
 * @param array $flat items to be flagged with an asterix
 */
function printManagedObjects($type, $objlist, $alterrights, $userobj, $prefix_id, $kind, $flag)
{
    $rest = $extra = $extra2 = array();
    $rights = $userobj->getRights();
    $full = $userobj->getObjects();
    $legend = '';
    $icon_edit = '<img src="' . WEBPATH . '/' . ZENFOLDER . '/images/options.png" class="icon-position-top3" alt="" title="' . gettext('edit rights') . '" />';
    $icon_view = '<img src="' . WEBPATH . '/' . ZENFOLDER . '/images/action.png" class="icon-position-top3" alt="" title="' . gettext('view unpublished items') . '" />';
    $icon_upload = '<img src="' . WEBPATH . '/' . ZENFOLDER . '/images/arrow_up.png" class="icon-position-top3"  alt="" title="' . gettext('upload rights') . '"/>';
    $icon_upload_disabled = '<img src="' . WEBPATH . '/' . ZENFOLDER . '/images/arrow_up.png" class="icon-position-top3"  alt="" title="' . gettext('the album is dynamic') . '"/>';
    switch ($type) {
        case 'albums':
            if ($rights & (MANAGE_ALL_ALBUM_RIGHTS | ADMIN_RIGHTS)) {
                $cv = $objlist;
                $alterrights = ' disabled="disabled"';
            } else {
                $cv = $extra = $extra2 = array();
                if (!empty($flag)) {
                    $legend .= '* ' . gettext('Primary album') . ' ';
                }
                $legend .= $icon_edit . ' ' . gettext('edit') . ' ';
                if ($rights & UPLOAD_RIGHTS) {
                    $legend .= $icon_upload . ' ' . gettext('upload') . ' ';
                }
                if (!($rights & VIEW_UNPUBLISHED_RIGHTS)) {
                    $legend .= $icon_view . ' ' . gettext('view unpublished');
                }
                foreach ($full as $item) {
                    if ($item['type'] == 'album') {
                        if (in_array($item['data'], $flag)) {
                            $note = '*';
                        } else {
                            $note = '';
                        }
                        $cv[$item['name'] . $note] = $item['data'];
                        $extra[$item['data']][] = array('name' => 'name', 'value' => $item['name'], 'display' => '', 'checked' => 0);
                        $extra[$item['data']][] = array('name' => 'edit', 'value' => MANAGED_OBJECT_RIGHTS_EDIT, 'display' => $icon_edit, 'checked' => $item['edit'] & MANAGED_OBJECT_RIGHTS_EDIT);
                        if ($rights & UPLOAD_RIGHTS) {
                            if (hasDynamicAlbumSuffix($item['data']) && !is_dir(ALBUM_FOLDER_SERVERPATH . $item['data'])) {
                                $extra[$item['data']][] = array('name' => 'upload', 'value' => MANAGED_OBJECT_RIGHTS_UPLOAD, 'display' => $icon_upload_disabled, 'checked' => 0, 'disable' => true);
                            } else {
                                $extra[$item['data']][] = array('name' => 'upload', 'value' => MANAGED_OBJECT_RIGHTS_UPLOAD, 'display' => $icon_upload, 'checked' => $item['edit'] & MANAGED_OBJECT_RIGHTS_UPLOAD);
                            }
                        }
                        if (!($rights & VIEW_UNPUBLISHED_RIGHTS)) {
                            $extra[$item['data']][] = array('name' => 'view', 'value' => MANAGED_OBJECT_RIGHTS_VIEW, 'display' => $icon_view, 'checked' => $item['edit'] & MANAGED_OBJECT_RIGHTS_VIEW);
                        }
                    }
                }
                $rest = array_diff($objlist, $cv);
                foreach ($rest as $unmanaged) {
                    $extra2[$unmanaged][] = array('name' => 'name', 'value' => $unmanaged, 'display' => '', 'checked' => 0);
                    $extra2[$unmanaged][] = array('name' => 'edit', 'value' => MANAGED_OBJECT_RIGHTS_EDIT, 'display' => $icon_edit, 'checked' => 1);
                    if ($rights & UPLOAD_RIGHTS) {
                        if (hasDynamicAlbumSuffix($unmanaged) && !is_dir(ALBUM_FOLDER_SERVERPATH . $unmanaged)) {
                            $extra2[$unmanaged][] = array('name' => 'upload', 'value' => MANAGED_OBJECT_RIGHTS_UPLOAD, 'display' => $icon_upload_disabled, 'checked' => 0, 'disable' => true);
                        } else {
                            $extra2[$unmanaged][] = array('name' => 'upload', 'value' => MANAGED_OBJECT_RIGHTS_UPLOAD, 'display' => $icon_upload, 'checked' => 1);
                        }
                    }
                    if (!($rights & VIEW_UNPUBLISHED_RIGHTS)) {
                        $extra2[$unmanaged][] = array('name' => 'view', 'value' => MANAGED_OBJECT_RIGHTS_VIEW, 'display' => $icon_view, 'checked' => 1);
                    }
                }
            }
            $text = gettext("Managed albums:");
            $simplename = $objectname = gettext('Albums');
            $prefix = 'managed_albums_list_' . $prefix_id . '_';
            break;
        case 'news':
            if ($rights & (MANAGE_ALL_NEWS_RIGHTS | ADMIN_RIGHTS)) {
                $cv = $objlist;
                $rest = array();
                $alterrights = ' disabled="disabled"';
            } else {
                $cv = $extra = $extra2 = array();
                $rest = array_diff($objlist, $cv);
                $legend = $icon_edit . ' ' . gettext('edit') . ' ' . $icon_view . ' ' . gettext('view unpublished');
                foreach ($full as $item) {
                    if ($item['type'] == 'news') {
                        $cv[$item['name']] = $item['data'];
                        $extra[$item['data']][] = array('name' => 'name', 'value' => $item['name'], 'display' => '', 'checked' => 0);
                        $extra[$item['data']][] = array('name' => 'edit', 'value' => MANAGED_OBJECT_RIGHTS_EDIT, 'display' => $icon_edit, 'checked' => $item['edit'] & MANAGED_OBJECT_RIGHTS_EDIT);
                        $extra[$item['data']][] = array('name' => 'view', 'value' => MANAGED_OBJECT_RIGHTS_VIEW, 'display' => $icon_view, 'checked' => $item['edit'] & MANAGED_OBJECT_RIGHTS_VIEW);
                    }
                }
                $rest = array_diff($objlist, $cv);
                foreach ($rest as $unmanaged) {
                    $extra2[$unmanaged][] = array('name' => 'name', 'value' => $unmanaged, 'display' => '', 'checked' => 0);
                    $extra2[$unmanaged][] = array('name' => 'edit', 'value' => MANAGED_OBJECT_RIGHTS_EDIT, 'display' => $icon_edit, 'checked' => 1);
                    $extra2[$unmanaged][] = array('name' => 'view', 'value' => MANAGED_OBJECT_RIGHTS_VIEW, 'display' => $icon_view, 'checked' => 1);
                }
            }
            $text = gettext("Managed news categories:");
            $simplename = gettext('News');
            $objectname = gettext('News categories');
            $prefix = 'managed_news_list_' . $prefix_id . '_';
            break;
        case 'pages':
            if ($rights & (MANAGE_ALL_PAGES_RIGHTS | ADMIN_RIGHTS)) {
                $cv = $objlist;
                $rest = array();
                $alterrights = ' disabled="disabled"';
            } else {
                $cv = $extra = $extra2 = array();
                $rest = array_diff($objlist, $cv);
                $legend = $icon_edit . ' ' . gettext('edit') . ' ' . $icon_view . ' ' . gettext('view unpublished');
                foreach ($full as $item) {
                    if ($item['type'] == 'pages') {
                        $cv[$item['name']] = $item['data'];
                        $extra[$item['data']][] = array('name' => 'name', 'value' => $item['name'], 'display' => '', 'checked' => 0);
                        $extra[$item['data']][] = array('name' => 'edit', 'value' => MANAGED_OBJECT_RIGHTS_EDIT, 'display' => $icon_edit, 'checked' => $item['edit'] & MANAGED_OBJECT_RIGHTS_EDIT);
                        $extra[$item['data']][] = array('name' => 'view', 'value' => MANAGED_OBJECT_RIGHTS_VIEW, 'display' => $icon_view, 'checked' => $item['edit'] & MANAGED_OBJECT_RIGHTS_VIEW);
                    }
                }
                $rest = array_diff($objlist, $cv);
                foreach ($rest as $unmanaged) {
                    $extra2[$unmanaged][] = array('name' => 'name', 'value' => $unmanaged, 'display' => '', 'checked' => 0);
                    $extra2[$unmanaged][] = array('name' => 'edit', 'value' => MANAGED_OBJECT_RIGHTS_EDIT, 'display' => $icon_edit, 'checked' => 1);
                    $extra2[$unmanaged][] = array('name' => 'view', 'value' => MANAGED_OBJECT_RIGHTS_VIEW, 'display' => $icon_view, 'checked' => 1);
                }
            }
            $text = gettext("Managed pages:");
            $simplename = $objectname = gettext('Pages');
            $prefix = 'managed_pages_list_' . $prefix_id . '_';
            break;
    }
    if (empty($alterrights)) {
        $hint = sprintf(gettext('Select one or more %1$s for the %2$s to manage.'), $simplename, $kind) . ' ';
        if ($kind == gettext('user')) {
            $hint .= sprintf(gettext('Users with "Admin" or "Manage all %1$s" rights can manage all %2$s. All others may manage only those that are selected.'), $type, $objectname);
        }
    } else {
        $hint = sprintf(gettext('You may manage these %s subject to the above rights.'), $simplename);
    }
    if (count($cv) > 0) {
        $itemcount = ' (' . count($cv) . ')';
    } else {
        $itemcount = '';
    }
    ?>
	<div class="box-albums-unpadded">
		<h2 class="h2_bordered_albums">
			<a onclick="toggle('<?php 
    echo $prefix;
    ?>
');" title="<?php 
    echo html_encode($hint);
    ?>
" ><?php 
    echo $text . $itemcount;
    ?>
</a>
		</h2>
		<div id="<?php 
    echo $prefix;
    ?>
" style="display:none;">
			<ul class="albumchecklist">
				<?php 
    generateUnorderedListFromArray($cv, $cv, $prefix, $alterrights, true, true, 'user-' . $prefix_id, $extra);
    generateUnorderedListFromArray(array(), $rest, $prefix, $alterrights, true, true, 'user-' . $prefix_id, $extra2);
    ?>
			</ul>
			<span class="floatright"><?php 
    echo $legend;
    ?>
&nbsp;&nbsp;&nbsp;&nbsp;</span>
			<br class="clearall" />
		</div>
	</div>
	<?php 
}
				      checked = false;
			      } else {
				      checked = 'checked';
			      }
			      $('.albumcheck').attr('checked', checked);
			   }
			)
			// ]]> -->
		</script>
		<?php 
        XSRFToken('schedule_content');
        ?>
		<input type="hidden" name="publish_albums" value="true" />
		<ul class="schedulealbumchecklist">
		<?php 
        generateUnorderedListFromArray(array(), $publish_albums_list, 'sched_', false, true, true, 'albumcheck');
        ?>
		</ul>
		<br clear="all" />

		<div class="buttons pad_button" id="publishalbums">
		<button class="tooltip" type="submit" title="<?php 
        echo gettext("Publish waiting albums.");
        ?>
">
			<img src="<?php 
        echo WEBPATH . '/' . ZENFOLDER;
        ?>
/images/cache1.png" alt="" /> <?php 
        echo gettext("Publish albums");
        ?>
            $exact = '<input type="radio" id="exact_tags" name="tag_match" value="1" ';
            $partial = '<input type="radio" id="exact_tags" name="tag_match" value="0" ';
            if (getOption('exact_tag_match')) {
                $exact .= ' CHECKED ';
            } else {
                $partial .= ' CHECKED ';
            }
            $exact .= '/>' . gettext('exact');
            $partial .= '/>' . gettext('partial');
            $engine = new SearchEngine();
            $fields = array_flip($engine->zp_search_fields);
            $fields[SEARCH_TAGS] .= $exact . $partial;
            $fields = array_flip($fields);
            $set_fields = $engine->allowedSearchFields();
            echo '<ul class="searchchecklist">' . "\n";
            generateUnorderedListFromArray($set_fields, $fields, '_SEARCH_', false, true, true);
            echo '</ul>';
            ?>
			</td>
			<td>
			<?php 
            echo gettext("The set of fields on which searches may be performed.");
            ?>
			<br /><br />
			<?php 
            echo gettext("Search does partial matches on all fields with the possible exception of <em>Tags</em>. This means that if the field contains the search criteria anywhere within it a result will be returned. If <em>exact</em> is selected for <em>Tags</em> then the search criteria must exactly match the tag for a result to be returned.");
            ?>
			</td>
		</tr>
		<tr>
			<td><?php 
            ?>
</h2>
												<div class="box-tags-unpadded">
													<?php 
            $members = array();
            if (!empty($groupname)) {
                foreach ($adminlist as $user) {
                    if ($user['valid'] && $user['group'] == $groupname) {
                        $members[] = $user['user'];
                    }
                }
            }
            ?>
													<ul class="shortchecklist">
													<?php 
            generateUnorderedListFromArray($members, $users, 'user_' . $id . '-', false, true, false);
            ?>
													</ul>
												</div>
											</div>
										<?php 
            printManagedObjects('albums', $albumlist, '', $groupid, $id, $rights, $kind);
            if (getOption('zp_plugin_zenpage')) {
                $pagelist = array();
                $pages = $_zp_zenpage->getPages(false);
                foreach ($pages as $page) {
                    if (!$page['parentid']) {
                        $pagelist[get_language_string($page['title'])] = $page['titlelink'];
                    }
                }
                printManagedObjects('pages', $pagelist, '', $groupid, $id, $rights, $kind);
/**
 * Creates the managed album table for Admin
 *
 * @param string $type the kind of list
 * @param array $objlist list of objects
 * @param string $alterrights are the items changable
 * @param int $adminid ID of the admin
 * @param int $prefix the admin row
 * @param bit $rights the privileges  of the user
 */
function printManagedObjects($type, $objlist, $alterrights, $adminid, $prefix, $rights, $kind)
{
    $ledgend = '';
    switch ($type) {
        case 'albums':
            if ($rights & (MANAGE_ALL_ALBUM_RIGHTS | ADMIN_RIGHTS)) {
                $cv = $objlist;
                $rest = $extra = array();
                $alterrights = ' disabled="disabled"';
            } else {
                $full = populateManagedObjectsList('album', $adminid, true);
                $cv = $extra = array();
                $icon_edit_album = '<img src="' . WEBPATH . '/' . ZENFOLDER . '/images/edit-album.png" class="icon-position-top3" alt="" title="' . gettext('edit albums') . '" />';
                $icon_view_image = '<img src="' . WEBPATH . '/' . ZENFOLDER . '/images/action.png" class="icon-position-top3" alt="" title="' . gettext('view unpublished images') . '" />';
                $icon_upload = '<img src="' . WEBPATH . '/' . ZENFOLDER . '/images/arrow_up.png" class="icon-position-top3"  alt="" title="' . gettext('upload to album') . '"/>';
                if ($rights & ALBUM_RIGHTS) {
                    $ledgend .= $icon_edit_album . ' ' . gettext('edit album') . ' ';
                }
                if ($rights & UPLOAD_RIGHTS) {
                    $ledgend .= $icon_upload . ' ' . gettext('upload') . ' ';
                }
                if (!($rights & VIEW_ALBUMS_RIGHTS)) {
                    $ledgend .= $icon_view_image . ' ' . gettext('view unpublished images');
                }
                foreach ($full as $item) {
                    $cv[$item['name']] = $item['data'];
                    $extra[$item['data']][] = array('name' => 'default', 'value' => 0, 'display' => '', 'checked' => 1);
                    if ($rights & ALBUM_RIGHTS) {
                        $extra[$item['data']][] = array('name' => 'edit', 'value' => MANAGED_OBJECT_RIGHTS_EDIT, 'display' => $icon_edit_album, 'checked' => $item['edit'] & MANAGED_OBJECT_RIGHTS_EDIT);
                    }
                    if ($rights & UPLOAD_RIGHTS && !hasDynamicAlbumSuffix($item['data'])) {
                        $extra[$item['data']][] = array('name' => 'upload', 'value' => MANAGED_OBJECT_RIGHTS_UPLOAD, 'display' => $icon_upload, 'checked' => $item['edit'] & MANAGED_OBJECT_RIGHTS_UPLOAD);
                    }
                    if (!($rights & VIEW_ALBUMS_RIGHTS)) {
                        $extra[$item['data']][] = array('name' => 'view', 'value' => MANAGED_OBJECT_RIGHTS_VIEW_IMAGE, 'display' => $icon_view_image, 'checked' => $item['edit'] & MANAGED_OBJECT_RIGHTS_VIEW_IMAGE);
                    }
                }
                $rest = array_diff($objlist, $cv);
            }
            $text = gettext("Managed albums:");
            $simplename = $objectname = gettext('Albums');
            $prefix = 'managed_albums_list_' . $prefix . '_';
            break;
        case 'news':
            if ($rights & (MANAGE_ALL_NEWS_RIGHTS | ADMIN_RIGHTS)) {
                $cv = $objlist;
                $rest = array();
                $alterrights = ' disabled="disabled"';
            } else {
                $cv = populateManagedObjectsList('news', $adminid);
                $rest = array_diff($objlist, $cv);
            }
            $text = gettext("Managed news categories:");
            $simplename = gettext('News');
            $objectname = gettext('News categories');
            $prefix = 'managed_news_list_' . $prefix . '_';
            $extra = array();
            break;
        case 'pages':
            if ($rights & (MANAGE_ALL_PAGES_RIGHTS | ADMIN_RIGHTS)) {
                $cv = $objlist;
                $rest = array();
                $alterrights = ' disabled="disabled"';
            } else {
                $cv = populateManagedObjectsList('pages', $adminid);
                $rest = array_diff($objlist, $cv);
            }
            $text = gettext("Managed pages:");
            $simplename = $objectname = gettext('Pages');
            $prefix = 'managed_pages_list_' . $prefix . '_';
            $extra = array();
            break;
    }
    if (empty($alterrights)) {
        $hint = sprintf(gettext('Select one or more %1$s for the %2$s to manage.'), $simplename, $kind) . ' ';
        if ($kind == gettext('user')) {
            $hint .= sprintf(gettext('Users with "Admin" or "Manage all %1$s" rights can manage all %2$s. All others may manage only those that are selected.'), $type, $objectname);
        }
    } else {
        $hint = sprintf(gettext('You may manage these %s subject to the above rights.'), $simplename);
    }
    if (count($cv) > 0) {
        $itemcount = ' (' . count($cv) . ')';
    } else {
        $itemcount = '';
    }
    ?>

	<div class="box-albums-unpadded">
	<h2 class="h2_bordered_albums">
	<a href="javascript:toggle('<?php 
    echo $prefix;
    ?>
');" title="<?php 
    echo html_encode($hint);
    ?>
" ><?php 
    echo $text . $itemcount;
    ?>
</a>
	</h2>
		<div id="<?php 
    echo $prefix;
    ?>
" style="display:none;">
			<ul class="albumchecklist">
				<?php 
    generateUnorderedListFromArray($cv, $cv, $prefix, $alterrights, true, true, NULL, $extra);
    generateUnorderedListFromArray(array(), $rest, $prefix, $alterrights, true, true);
    ?>
			</ul>
			<?php 
    echo $ledgend;
    ?>
		</div>
	</div>
	<?php 
}
/**
 * Creates an unordered checklist of the tags
 *
 * @param object $that Object for which to get the tags
 * @param string $postit prefix to prepend for posting
 * @param bool $showCounts set to true to get tag count displayed
 */
function tagSelector($that, $postit, $showCounts = false, $mostused = false)
{
    global $_zp_loggedin, $_zp_admin_ordered_taglist, $_zp_admin_LC_taglist, $_zp_UTF8;
    if (is_null($_zp_admin_ordered_taglist)) {
        if ($mostused || $showCounts) {
            $counts = getAllTagsCount();
            if ($mostused) {
                arsort($counts, SORT_NUMERIC);
            }
            $them = array();
            foreach ($counts as $tag => $count) {
                $them[] = $tag;
            }
        } else {
            $them = getAllTagsUnique();
        }
        $_zp_admin_ordered_taglist = $them;
        $_zp_admin_LC_taglist = array();
        foreach ($them as $tag) {
            $_zp_admin_LC_taglist[] = $_zp_UTF8->strtolower($tag);
        }
    } else {
        $them = $_zp_admin_ordered_taglist;
    }
    if (is_null($that)) {
        $tags = array();
    } else {
        $tags = $that->getTags();
    }
    if (count($tags) > 0) {
        foreach ($tags as $tag) {
            $tagLC = $_zp_UTF8->strtolower($tag);
            $key = array_search($tagLC, $_zp_admin_LC_taglist);
            if ($key !== false) {
                unset($them[$key]);
            }
        }
    }
    echo '<ul class="tagchecklist">' . "\n";
    if ($showCounts) {
        $displaylist = array();
        foreach ($them as $tag) {
            $displaylist[$tag . ' [' . $counts[$tag] . ']'] = $tag;
        }
    } else {
        $displaylist = $them;
    }
    if (count($tags) > 0) {
        generateUnorderedListFromArray($tags, $tags, $postit, false, true, false);
        echo '<hr>';
    }
    generateUnorderedListFromArray(array(), $displaylist, $postit, false, true, false);
    echo '</ul>';
}
Esempio n. 10
0
														<?php 
            $members = array();
            if (!empty($groupname)) {
                foreach ($adminlist as $user) {
                    if ($user['valid'] && $user['group'] == $groupname) {
                        $members[] = $user['user'];
                    }
                }
            }
            ?>
														<ul class="shortchecklist">
															<?php 
            generateUnorderedListFromArray($members, $members, 'user_' . $id . '-', false, true, false);
            ?>
															<?php 
            generateUnorderedListFromArray(array(), array_diff($users, $members), 'user_' . $id . '-', false, true, false);
            ?>
														</ul>
													</div>
												</div>
												<?php 
            printManagedObjects('albums', $albumlist, '', $groupobj, $id, $kind, array());
            if (extensionEnabled('zenpage')) {
                $pagelist = array();
                $pages = $_zp_CMS->getPages(false);
                foreach ($pages as $page) {
                    if (!$page['parentid']) {
                        $pagelist[get_language_string($page['title'])] = $page['titlelink'];
                    }
                }
                printManagedObjects('pages', $pagelist, '', $groupobj, $id, $kind, NULL);
<br clear="all" />
<br clear="all" />
</form>

<?php 
    if (count($publish_images_list) > 0) {
        ?>
	<form name="publish" action="" method="post"><?php 
        echo gettext('Set visible:');
        ?>
	<input type="hidden" name="publish_images" value="true">
	<ul class="scheduleimagechecklist">
	<?php 
        foreach ($publish_images_list as $key => $imagelist) {
            echo '<strong>' . $key . '</strong>';
            generateUnorderedListFromArray($imagelist, $imagelist, '', false, true, true);
        }
        ?>
	</ul>
	<div class="buttons pad_button" id="setvisible">
	<button class="tooltip" type="submit" title="<?php 
        echo gettext("Set waiting images to visible.");
        ?>
">
		<img src="<?php 
        echo $webpath;
        ?>
images/cache1.png" alt="" /> <?php 
        echo gettext("Make images visible");
        ?>
	</button>
Esempio n. 12
0
    ?>
</td>
					<?php 
    $engine = new SearchEngine();
    $fields = $engine->getSearchFieldList();
    $extra = array('tags' => array(array('type' => 'radio', 'display' => gettext('partial'), 'name' => 'tag_match', 'value' => 0, 'checked' => 0), array('type' => 'radio', 'display' => gettext('exact'), 'name' => 'tag_match', 'value' => 1, 'checked' => 0)));
    $extra['tags'][(int) (getOption('exact_tag_match') && true)]['checked'] = 1;
    $set_fields = $engine->allowedSearchFields();
    ?>
					<td>
						<?php 
    echo gettext('Fields list:');
    ?>
						<ul class="searchchecklist">
							<?php 
    generateUnorderedListFromArray($set_fields, $fields, 'SEARCH_', false, true, true, NULL, $extra);
    ?>
						</ul>
						<br />
						<?php 
    echo gettext('Treat spaces as');
    ?>
						<?php 
    generateRadiobuttonsFromArray(getOption('search_space_is'), array(gettext('<em>space</em>') => '', gettext('<em>OR</em>') => 'OR', gettext('<em>AND</em>') => 'AND'), 'search_space_is', false, false);
    ?>

						<p>
							<label>
								<input type="checkbox" name="search_no_albums" value="1" <?php 
    echo checked('1', getOption('search_no_albums'));
    ?>