squads'; // neuen Squad ertstellen if($_GET['action']=="add") { $filepath="../images/squadicons/"; $folder=opendir($filepath); while($file=readdir($folder)) { if($file!="." && $file!="..") $files[]=$file; } closedir($folder); if(is_array($files)) { foreach($files as $file) { $icons.=' '; } } echo'
Squadicon: '.$icons.'
Icon-Upload:
Squadname:
Squadtype: gaming squad non gaming squad
Squad Info:
 
'; } elseif($_GET['action']=="edit") { // Squad bearbeiten $squadID = $_GET['squadID']; $filepath="../images/squadicons/"; $folder=opendir($filepath); while($file=readdir($folder)) { if($file!="." && $file!="..") $files[]=$file; } closedir($folder); if(is_array($files)) { foreach($files as $file) { $icons.=' '; } } $ergebnis=safe_query("SELECT * FROM ".PREFIX."squads WHERE squadID='$squadID'"); $ds=mysql_fetch_array($ergebnis); if($ds[gamesquad]) $type='gaming squad non gaming squad'; else $type='gaming squad non gaming squad'; $icons=str_replace('value="'.$ds[icon].'"', 'value="'.$ds[icon].'" checked', $icons); echo'
Squadicon: '.$icons.'
Icon-Upload:
Squadname:
Squadtype: '.$type.'
Squad Info:
'; } else { echo'

existing squads

'; echo'
'; $squads=safe_query("SELECT * FROM ".PREFIX."squads ORDER BY sort"); $anzsquads=mysql_num_rows($squads); if($anzsquads) { $i=1; while($db=mysql_fetch_array($squads)) { if($db[gamesquad]) $type="gaming squad"; else $type="non gaming squad"; echo''; } } echo'
Icon: Squadname: Squadtype: Info: Actions: Sort:
'.$db[name].' '.$type.' '.$db[info].'
'; } ?>