Example #1
0
    }
    $ALBUM_DATA = mysql_fetch_array($results);
    $CLEAN['album'] = $ALBUM_DATA['aid'];
} else {
    //$album = (int)$_GET['album'];
    $results = cpg_db_query("SELECT * FROM {$CONFIG['TABLE_ALBUMS']} WHERE aid='{$CLEAN['album']}'");
    if (!mysql_num_rows($results)) {
        cpg_die(CRITICAL_ERROR, $lang_errors['non_exist_ap'], __FILE__, __LINE__);
    }
    $ALBUM_DATA = mysql_fetch_array($results);
}
$cat = $ALBUM_DATA['category'];
$actual_cat = $cat;
//////////// main code start ///////////////////
pageheader(sprintf($lang_modifyalb_php['upd_alb_n'], $ALBUM_DATA['title']));
$album_lb = alb_list_box();
$help = ' ' . cpg_display_help('f=albums.htm&as=album_prop&ae=album_prop_end&top=1', '600', '400');
starttable("100%", $lang_modifyalb_php['update'] . $help, 2);
echo <<<EOT
        <tr>
            <td class="tableh2" align="center">
                <a href="editpics.php?album={$CLEAN['album']}" class="admin_menu">{$lang_modifyalb_php['edit_files']}</a>
                &nbsp;&nbsp;-&nbsp;&nbsp;
                <a href="index.php?cat={$ALBUM_DATA['category']}" class="admin_menu">{$lang_modifyalb_php['parent_category']}</a>
                &nbsp;&nbsp;-&nbsp;&nbsp;
                <a href="thumbnails.php?album={$CLEAN['album']}" class="admin_menu">{$lang_modifyalb_php['thumbnail_view']}</a>
            </td>
            <td class="tableh2" align="right">
            {$album_lb}
            </td>
        </tr>
Example #2
0
                            <table border="0" cellspacing="0" cellpadding="0" width="100%">
                                <tr>
                                    <td width="100%" align="center">
                                        <input type="submit" class="button" name="apply_modifs" value="{$lang_photoshop_config['save_cfg']}" />
                                        <input type="submit" class="button" name="new_item" value="{$lang_photoshop_config['new_item']}" />
                                    </td>
                                </tr>
                            </table>
                        </td>
                </tr>
EOT;
endtable();
echo '</form>';
//here we start the new addition per album settings
starttable('100%', $lang_photoshop_config['per_alb_settings'] . " - {$signature}", 2);
$alb_list = alb_list_box();
if (is_numeric($album)) {
    // display album on/ off
    //first see if there's an entry for disabled in shop_prices
    $results = cpg_db_query("SELECT * FROM {$CONFIG['TABLE_SHOP_PRICES']} WHERE aid={$album} AND gid=-1 LIMIT 1");
    $row = mysql_fetch_row($results);
    if ($row[2] == '-1') {
        $alb_enabled = "0";
        $checked = '';
    } else {
        $alb_enabled = "1";
        $checked = 'checked';
    }
    mysql_free_result($results);
    echo <<<EOT
                <tr>