<?php
include ("../php/show_error_list.php");
PM_Common::top(i18n("Fehlereinträge anzeigen"));
?>
<form method="post" action="show_error_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 Fehlereintrag wurde gelöscht!"); ?><br></td>
</tr>
</table>
<?php
}
if ( count($error_id_list) >0 ) {
if (empty($startindex)) {
$startindex=1;
}
$endindex=PM_Common::make_index($startindex,$error_id_list, "show_error_list_tmpl.php");
?>
<table cellspacing="1" cellpadding="2" border="0" width="100%">
<colgroup>
<col width="10%">
<col width="85%">
<col width="5%">
</colgroup>
<tr>
<th nowrap><?php echo i18n("Fehler-ID"); ?></th>
<th nowrap><?php echo i18n("Fehlertext"); ?></th>
<th nowrap><?php echo i18n("Aktion"); ?></th>
</tr>
<?php
for($i=$startindex; $i<= $endindex; $i++) {
$tr_color=!$tr_color;
?>
<tr <? if (!$tr_color) { echo "class='bg_color'"; } ?>>
<td align="center"><?php echo $error_id_list[$i]; ?></td>
<td><?php echo $error_message[$i]; ?></td>
<td align="center" nowrap="y">
<input name="edit_errorentry" value="<?= i18n('Bearbeiten') ?>" type="button" onclick="location.href='errorentry_tmpl.php?action=update&selected_error_id=<?php echo $error_id_list[$i]; ?>';" class="buttonstyle">
<input name="delete_errorentry" value="<?= i18n('Löschen') ?>" type="button" onclick="if(confirm('<?php echo i18n("Wollen Sie den Fehlereintrag wirklich löschen?"); ?>')== true) location.href='show_error_list_tmpl.php?action=delete&selected_error_id=<?echo $error_id_list[$i]; ?>';" class="buttonstyle">
</td>
</tr>
<?php
}
?>
</table>
<?php
} else {
?>
<table cellspacing="3" cellpadding="2" border="0" width="100%">
<tr>
<td><?php echo i18n("Es wurden keine Fehlereinträge gefunden!"); ?></td>
</tr>
</table>
<?php
}
?>
<table cellspacing="3" cellpadding="2" border="0" width="100%">
<tr>
<td colspan="5" align="center">
<input name="new_link" value="<?php echo i18n("Neu"); ?>" type="button" onclick="location.href='errorentry_tmpl.php?action=new';" class="buttonstyle">
</td>
</tr>
</table>
</form>
<?php
PM_Common::bottom();
?>