Wie kann ich in Admin Bereich in der Menüleiste die Module mit Bild und Text anseigen Lassen?
Das habe ich aus: include/boxes/adminmenu.php
<?php } elseif (count($_SESSION['authmod']) > 0) { echo "[null, 'Module', null, null, null,"; $q = "SELECT DISTINCT url, name FROM prefix_modulerights a LEFT JOIN prefix_modules b ON b.id = a.mid WHERE b.gshow = 1 AND uid = ".$_SESSION['authid']; $erg = db_query($q); while($row = db_fetch_assoc($erg) ) { echo '[null, \''.$row['name'].'\', \'admin.php?'.$row['url'].'\', null, null],'."\n"; } echo "],"; } ?>
und Das habe ich aus: include/admin/admin.php
<?php $modabf = db_query("SELECT * FROM `prefix_modules` WHERE ashow = 1"); if (db_num_rows($modabf) > 0) { echo '<br /><ul>'; while ($modrow = db_fetch_object($modabf)) { if (file_exists('include/images/icons/admin/'.$modrow->url.'.png')) { $bild = 'include/images/icons/admin/'.$modrow->url.'.png'; } else { $bild = 'include/images/icons/admin/na.png'; } echo '<li><a href="admin.php?'.$modrow->url.'"><img src="'.$bild.'" alt="">'.$modrow->name.'</a></li>'."\n"; } echo '<br class="admix_last"/></ul>'; } ?>
MFG
verwendete ilch Version: 1.1 P