<?php
include ("../php/show_menu_list.php");
PM_Common::top(i18n("Menüeinträge anzeigen"));
?>
<form method="post" action="show_menu_list_tmpl.php" target="main">
<?php
if ((strcmp($action,"delete") == 0) && ($delete_result == 1)){
?>
<table width="40%" cellspacing="1" cellpadding="4" border="0">
<tr>
<td class="message"><?php echo i18n("Der Menüeintrag wurde gelöscht!"); ?><br></td>
</tr>
</table>
<?php
}
if ( count($menu_id_list) >0 ) {
if (empty($startindex)) {
$startindex=1;
}
$endindex=PM_Common::make_index($startindex,$menu_id_list, "show_menu_list_tmpl.php", $orderby);
?>
<table cellspacing="1" cellpadding="2" border="0" width="100%">
<colgroup>
<col width="18%">
<col width="56%">
<col width="5%">
<col width="4%">
<col width="6%">
</colgroup>
<tr>
<th nowrap><a href="show_menu_list_tmpl.php?orderby=topic&startindex=<?php echo $startindex; ?>" class="a_th"><?php echo i18n("Menüpunkt"); ?></a></th>
<th nowrap><a href="show_menu_list_tmpl.php?orderby=path&startindex=<?php echo $startindex; ?>" class="a_th"><?php echo i18n("Pfad"); ?></a></th>
<th nowrap><a href="show_menu_list_tmpl.php?orderby=user_group&startindex=<?php echo $startindex; ?>" class="a_th">BG</a></th>
<th nowrap><a href="show_menu_list_tmpl.php?orderby=status&startindex=<?php echo $startindex; ?>" class="a_th">S</a></th>
<th nowrap><?php echo i18n("Aktion"); ?></th>
</tr>
<?php
for($i=$startindex; $i<= $endindex; $i++) {
$tr_color=!$tr_color;
?>
<tr <?php if (!$tr_color) { echo "class='bg_color'"; } ?>>
<td><a href="<?php echo $path[$i]; ?>" target="_blank"><? echo $topic[$i]; ?></a></td>
<td><a href="<?php echo $path[$i]; ?>" target="_blank"><font size=-2><? echo $path[$i]; ?></a></font></td>
<td align="center"><?php echo $short_name[$i]; ?></td>
<td align="center"><?php echo $status[$i]; ?></td>
<td align="center" nowrap="y">
<input name="edit_menuentry" value="<?= i18n('Bearbeiten') ?>" type="button" onclick="location.href='menuentry_tmpl.php?action=update&selected_menu_id=<?php echo $menu_id_list[$i]; ?>';" class="buttonstyle">
<input name="delete_menuentry" value="<?= i18n('Löschen') ?>" type="button" onclick="if(confirm('<?php echo i18n("Wollen Sie den Menüeintrag wirklich löschen?"); ?>')== true) location.href='show_menu_list_tmpl.php?action=delete&selected_menu_id=<?echo $menu_id_list[$i]; ?>';" class="buttonstyle">
</td>
</tr>
<?php
}
?>
</table>
<?php
} else {
?>
<table cellspacing="3" cellpadding="5" border="0" width="100%">
<tr>
<td><?php echo i18n("Es wurden keine Menüeinträge gefunden!"); ?></td>
</tr>
</table>
<?php
}
?>
<table cellspacing="3" cellpadding="5" border="0" width="100%">
<tr>
<td colspan="5" align="center">
<input name="new_link" value="<?php echo i18n("Neu"); ?>" type="button" onclick="location.href='menuentry_tmpl.php?action=new';" class="buttonstyle">
</td>
</tr>
</table>
</form>
<?php
PM_Common::bottom();
?>