Location: PHPKode > projects > Top Music module > Top Music 3.0.7/html/modules/topMusic/admin/editGenre.php
<?php
/************************************************************************/
/* Top Music: Administration Module                                     */
/* ================================                                     */
/*                                                                      */
/* Copyright (c) 2004 by SergiDs.com                                */
/* http://phpnuke.org                                                   */
/*                                                                      */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License.       */
/************************************************************************/

if (!eregi("admin.php", $_SERVER['PHP_SELF'])) { die ("Access Denied"); }
$aid = trim($aid);
$result = mysql_query("select radminsuper from ".$prefix."_authors where aid='$aid'");
list($radminsuper) = mysql_fetch_row($result);
if ($radminsuper==1) {
?>
<script language="javascript" type="text/javascript">
function changeLang(form){
	form.action='admin.php?op=topmusic&action=editGenre&idgenre=<?=$_GET['idgenre']?>&newlang='+form.lang.options[form.lang.selectedIndex].value;
	form.method='post';
	form.submit();
}
</script>
	<table cellspacing="0" cellpadding="0" border="0">
	<form name="genreEditForm" method="post" action="admin.php?op=topmusic&action=editGenre&idgenre=<?=$_GET['idgenre']?>">
	<?php if($message!=""){ ?>
	<tr>
	<td colspan="2"><font color="red"><?=$message?></font></td>
	</tr>
	<?php } ?>
	<tr>
	<td>#</td><td><?=(is_object($genre))?$genre->getId():""?></td>
	</tr>
	<tr>
	<td valign="top"><?=_TOPMUSIC_NAME?> (<?=$currentlang?>):</td><td><input type="text" name="name" value="<?=(is_object($genre))?$genre->getName():""?>">
	<?php
	GenericAdminView::printSelect("lang",$languageList,$currentlang,"changeLang(document.genreEditForm);");
    ?>
    </td>
	</tr>
	<tr>
	<td>&nbsp;</td><td align="right"><input type="submit" name="submit1" value="<?=_TOPMUSIC_SAVE?>"></td>
	</tr>
	</form>
	</table>
	<?php
} else {
	OpenTable();
    echo "Access Denied";
    CloseTable();
}
?>
Return current item: Top Music module