示例#1
0
function gallery_admin_showcats($id, $stufe)
{
    global $menu;
    $q = "SELECT * FROM `prefix_gallery_cats` WHERE `cat` = " . $id . " ORDER BY `pos`";
    $erg = db_query($q);
    if (db_num_rows($erg) > 0) {
        while ($row = db_fetch_object($erg)) {
            if ($menu->getE('S') == $row->id) {
                $row->name = '<strong>' . $row->name . '</strong>';
            }
            echo '<tr class="Cmite"><td>' . $stufe . '- <a href="admin.php?gallery-S' . $row->id . '">' . $row->name . '</a></td>';
            echo '<td><a href="javascript:uploadImages(' . $row->id . ')"><img src="include/images/icons/upload.png" title="Bilder in diese Kategorie hochladen" alt="Bilder in diese Kategorie hochladen" border="0"></td>';
            echo '<td><a href="javascript:reloadImages(' . $row->id . ')"><img src="include/images/icons/reload.png" title="Bilder in diese Kategorie erneuern / einlesen" alt="Bilder in diese Kategorie erneuern / einlesen" border="0"></a></td>';
            echo '<td><a href="admin.php?gallery-E' . $row->id . '#edit"><img src="include/images/icons/edit.png" border="0" alt="&auml;ndern" title="&auml;ndern"></a></td>';
            echo '<td><a href="javascript:Kdel(' . $row->id . ')"><img src="include/images/icons/del.png" border="0" alt="l&ouml;schen" title="l&ouml;schen"></a></td>';
            echo '<td><a href="admin.php?gallery-M' . $row->id . '-o' . $row->pos . '"><img src="include/images/icons/pfeilo.png" border="0" title="hoch" alt="hoch"></a></td>';
            echo '<td><a href="admin.php?gallery-M' . $row->id . '-u' . $row->pos . '"><img src="include/images/icons/pfeilu.png" border="0" title="runter" alt="runter"></a></td></tr>';
            gallery_admin_showcats($row->id, $stufe . ' &nbsp; &nbsp;');
        }
    }
}
示例#2
0
function gallery_admin_showcats($id, $stufe)
{
    $q = "SELECT * FROM prefix_gallery_cats WHERE cat = " . $id . " ORDER BY pos";
    $erg = db_query($q);
    if (db_num_rows($erg) > 0) {
        while ($row = db_fetch_object($erg)) {
            echo '<tr class="Cmite"><td>' . $stufe . '- <a href="admin.php?selfbp-imagebrowser-' . $row->id . '">' . $row->name . '</a></td></tr>';
            gallery_admin_showcats($row->id, $stufe . ' &nbsp;');
        }
    }
}
示例#3
0
 * @license http://opensource.org/licenses/gpl-2.0.php The GNU General Public License (GPL)
 * @copyright (C) 2000-2010 ilch.de
 * @version $Id$
 */
defined('main') or die('no direct access');
defined('admin') or die('only admin access');
$cat = 0;
if ($menu->get(2) != '') {
    $cat = escape($menu->get(2), 'integer');
}
$abf = "SELECT `id`,`besch`,`datei_name`,`endung` FROM `prefix_gallery_imgs` WHERE `cat` = " . $cat;
$erg = db_query($abf);
$i = 0;
$design = new design('Ilch Admin-Control-Panel :: Bilder', '', 0);
$design->header();
$tpl = new tpl('selfbp-imagebrowser', 1);
$tpl->out(0);
gallery_admin_showcats(0, '');
$tpl->out(1);
while ($row = db_fetch_assoc($erg)) {
    if ($i != 0 and $i % $allgAr['gallery_imgs_per_line'] == 0) {
        echo '</tr><tr>';
    }
    $toput = 'include/images/gallery/img_' . $row['id'] . '.' . $row['endung'];
    $pfad = 'include/images/gallery/img_thumb_' . $row['id'] . '.' . $row['endung'];
    $tpl->set('toput', $toput);
    $tpl->set('pfad', $pfad);
    $tpl->out(2);
    $i++;
}
$design->footer(1);