Location: PHPKode > projects > ProjectButler > ProjectButler/menu/templates/menuentry_tmpl.php
<?php

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

?>

  <form method="post" action="menuentry_tmpl.php?action=<?php echo $add_url; ?>" target="main">
  <?php
    if (strcmp($action,"update")== 0) {
  ?>
    <input type="hidden" name="action" value="edit">
    <input type="hidden" name="selected_menu_id" value="<?php echo $selected_menu_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("Benutzergruppe"); ?><BR>
        <select class="inputfields" name="user_group_id" size="1" style="width:196pt;">
          <?php if (strcmp($action,"new")== 0) {  ?>
            <option value="0"><?php echo i18n("Alle Benutzergruppen"); ?></option>
          <?php
            }
            for($i=1; $i<= (count($user_group_id_list)); $i++) {
          ?>
            <option value="<?php echo $user_group_id_list[$i]; ?>" <?php if ($user_group_id_list[$i] == $user_group_id) { echo "selected"; } ?>><? echo $user_group_name_list[$i]; ?></option>
          <?php
            }
          ?>
        </select>
      </td>
    </tr>

    <tr>
      <td><?php echo i18n("Men&uuml;punkt"); ?><BR><input class="inputfields" value="<?php echo $topic; ?>" name="topic" style="width:196pt;" size="34" maxlength="30" ></td>
    </tr>
    <tr>
      <td><?php echo i18n("Pfad"); ?><BR><input class="inputfields" value="<?php echo $path; ?>" name="path" style="width:360pt;" size="74" maxlength="128" ></td>
    </tr>
    <tr>
      <td><?php echo i18n("Status"); ?><BR>
        <input class="inputfields" type="radio" name="status" <?php if (strcmp($status,'A') == 0) { echo "checked"; } ?> value="A">&nbsp;<?php echo i18n("aktiv"); ?>&nbsp;&nbsp;
        <input class="inputfields" type="radio" name="status" <?php if (strcmp($status,'N') == 0) { echo "checked"; } ?> value="N">&nbsp;<?php echo i18n("inaktiv"); ?>
      </td>
    </tr>
    <tr>
      <td align="center">
        <input name="save_menuentry" value="<?php echo i18n("Speichern"); ?>" type="submit" class="buttonstyle">
        <input name="cancel_menuentry" 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_menu_list_tmpl.php');" class="buttonstyle">
      </td>
    </tr>
  </table>
  </form>

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