Beispiel #1
0
/**
 * albumselect()
 *
 * return the HTML code for a listbox with name $id that contains the list
 * of all albums
 *
 * @param string $id the name of the listbox
 * @return the HTML code
 */
function albumselect($id = "album")
{
    global $lang_common;
    $options = album_selection_options();
    return <<<EOT
        <select id="aid" name="{$id}" class="listbox">
            <option value="0" selected="selected">{$lang_common['select_album']}</option>
            {$options}
        </select>
EOT;
}
/**
 * albumselect()
 *
 * return the HTML code for a listbox with name $id that contains the list
 * of all albums
 *
 * @param string $id the name of the listbox
 * @return the HTML code
 */
function albumselect($id = "album")
{
    global $lang_common;
    $options = album_selection_options();
    if (function_exists('hidden_features_only_empty_albums_button')) {
        $only_empty_albums = hidden_features_only_empty_albums_button();
    } else {
        $only_empty_albums = '';
    }
    return <<<EOT
        <select id="aid" name="{$id}" class="listbox">
            <option value="0" selected="selected">{$lang_common['select_album']}</option>
            {$options}
        </select>
        {$only_empty_albums}
EOT;
}
 function util_filloptions()
 {
     global $lang_util_php, $CONFIG;
     echo '&nbsp;&nbsp;&nbsp;&nbsp;<select size="1" name="albumid" class="listbox"><option value="0">' . $lang_util_php['all_albums'] . '</option>';
     echo album_selection_options();
     echo '</select> (3)';
     echo '&nbsp;&nbsp;&nbsp;&nbsp;';
     echo '<button type="submit" class="button" name="submit" id="submit" value="' . $lang_util_php['submit_form'] . '">' . $lang_util_php['submit_form'] . ' ' . cpg_fetch_icon('ok', 2) . '</button> (4)';
 }
Beispiel #4
0
        <tr class="noscript">
            <td colspan="2" class="tableh2">
                <noscript>
                    {$lang_common['javascript_needed']}
                </noscript>
            </td>
        </tr>
    <tr>
        <td class="tableh2" valign="top" >
           <input type="hidden" name="album_id" value="{$aid}" />
           <input type="hidden" id="sort_order" name="sort_order" value="{$sort_order}" />
           <input type="hidden" id="picture_order" name="picture_order" value="" />

EOT;
if (GALLERY_ADMIN_MODE || USER_ADMIN_MODE) {
    $options = album_selection_options($aid);
    echo <<<EOT
            <select name="aid" class="listbox">
                <option value="0">{$lang_common['select_album']}</option>
                {$options}
            </select>
            <button type="button" id="thumbnail_view1" name="thumbnail_view1" class="button thumbnail_view" style="float:right;{$button_hidden}" value="{$lang_common['thumbnail_view']}">{$icon_array['thumbnail']}{$lang_common['thumbnail_view']}</button>
        </td>
    </tr>
    <tr>
        <td>

EOT;
}
/** create a table to sort the picture*/
echo <<<EOT
function form_alb_list_box($text, $name)
{
    global $CURRENT_PIC;
    global $row_style_class, $icon_array;
    $options = album_selection_options($CURRENT_PIC['aid']);
    $name .= $CURRENT_PIC['pid'];
    echo <<<EOT
        <tr>
            <td class="{$row_style_class}" style="white-space: nowrap;">
                        {$text}
            </td>
            <td class="{$row_style_class}" valign="top">
                {$icon_array['move']}
                <select name="{$name}" class="listbox">
                {$options}
                </select>
            </td>
        </tr>

EOT;
}
Beispiel #6
0
function form_alb_list_box($text, $name)
{
    global $lang_common;
    $superCage = Inspekt::makeSuperCage();
    if ($superCage->get->keyExists('album')) {
        $sel_album = $superCage->get->getInt('album');
    } elseif ($superCage->post->keyExists('album')) {
        $sel_album = $superCage->post->getInt('album');
    } else {
        $sel_album = 0;
    }
    $options = album_selection_options($sel_album);
    $only_empty_albums = only_empty_albums_button();
    echo <<<EOT
    <tr>
        <td class="tableb tableb_alternate" width="50">
            {$text}
        </td>
        <td class="tableb tableb_alternate" valign="top">
            <select name="{$name}" class="listbox">
            <option value="">{$lang_common['select_album']}</option>
            {$options}
            </select>
            {$only_empty_albums}
        </td>
    </tr>

EOT;
}
function form_alb_list_box()
{
    global $CURRENT_PIC;
    global $lang_common, $icon_array;
    $options = album_selection_options($CURRENT_PIC['aid']);
    $icon_warning = cpg_fetch_icon('warning');
    echo <<<EOT

    <tr>
        <td class="tableb" style="white-space: nowrap;" valign="top">
            {$icon_array['album']}{$lang_common['album']}
        </td>
        <td class="tableb" valign="top">
            {$icon_array['move']}
            <select name="aid" id="album" class="listbox">
            {$options}
            </select>
            <table id="wrapper_permissions" style="display:none; padding-top:6px;" cellspacing="0" cellpadding="0" border="0">
                <tr>
                    <td>{$icon_warning}</td>
                    <td style="padding-left:10px;">
                        <div id="note_permissions"></div>
                    </td>
                </tr>
            </table>
        </td>
    </tr>

EOT;
}