Location: PHPKode > projects > ProjectButler > ProjectButler/error/templates/errorentry_tmpl.php
<?php

  /* WebDynamite Projectmanagement
   *
   * Creates a form for creating an new error entry or for editing an existing one.
   *
   * Author: Martin Jobst (JMF)
   *
   * 2002/04/02 (JMF): Initial Version
   */

   include ("../php/errorentry.php");
   if ((strcmp($action,"new")== 0) || (strcmp($action,"add")== 0))  {
     PM_Common::top(i18n("Fehlereintrag anlegen"));
   } elseif ((strcmp($action,"update")== 0) || (strcmp($action,"edit")== 0)) {
     PM_Common::top("Fehlereintrag bearbeiten");
   } else {
       $error = new Error_Management;
       $error->error_page(1,'');
     die();
   }

?>

  <form method="post" action="errorentry_tmpl.php" target="main">
  <?php
    if (strcmp($action,"update")== 0) {
  ?>
    <input type="hidden" name="action" value="edit">
    <input type="hidden" name="selected_error_id" value="<?php echo $selected_error_id; ?>" >
   <?php
    } elseif (strcmp($action,"new")== 0) {
  ?>
    <input type="hidden" name="action" value="add">
  <?php
    }
  ?>

  <table width="60%" cellspacing="1" cellpadding="6" border="0">
    <?php
      if (((strcmp($action,"add") == 0) || (strcmp($action,"edit") == 0)) && (strcmp($check_message,"") != 0)){
    ?>
    <tr>
      <td class="message">
        <?php echo $check_message; ?><br>
      </td>
    </tr>
    <?php
      }
    ?>
  <tr>
    <td><?php echo i18n("Fehler-ID"); ?><BR><input class="inputfields" value="<?php echo $new_error_id; ?>" name="new_error_id" style="width:96pt;" size="10" maxlength="10" ></td>
  </tr>
  <tr>
      <td><?php echo i18n("Fehlertext"); ?><BR><textarea class="inputfields" name="error_message" style="width:360pt;" cols="70" rows="2" wrap=physical><?php echo $error_message; ?></textarea>
      </td>
    </tr>
  <tr>
      <td align="center">
        <input name="save_errorentry" value="<?php echo i18n("Speichern"); ?>" type="submit" class="buttonstyle">
        <input name="cancel_errorentry" value="<?php echo i18n("Abbrechen"); ?>" type="reset" class="buttonstyle">
        <input name="back" value="<?php echo i18n("Zur&uuml;ck"); ?>" type="button" onclick="location.replace('show_error_list_tmpl.php');" class="buttonstyle">
     </td>
   </tr>
  </table>
	
</form>


<?php
  PM_Common::bottom();
?>
Return current item: ProjectButler