Location: PHPKode > projects > Caleb's Code > Cafe_Cart/admin/modules/cp_menu.php
<?php
$ops = array(
   'admin_show_'.$ModName    => 'Show Stores',
   'add_store_'.$ModName     => 'Stores',
   'add_product_'.$ModName   => 'Products',
   'add_seasonal_'.$ModName  => 'Seasonal Products'
   );
   
function cp_menu() {
   global $op, $ops;
   OpenTable();
   echo "
   <form action=\"admin.php\" method=\"get\" style=\"margin: 0;\">
    <b>Jump Menu:</b>&nbsp;&nbsp;
    <select name=op>";
   foreach ($ops as $key => $lable) {
      if ($key == $op) echo "
     <option value=\"$key\" SELECTED>$lable</option>";
      else echo "
     <option value=\"$key\">$lable</option>";
      }
   echo "
    </select>
    <input type=submit value=\"Jump\">
   </form>";
   CloseTable();
   echo "<br>";
   }

?>
Return current item: Caleb's Code