adminFareTableMngtMenu.phpの例

<?php
  //共通インクルード
  include_once("../../../mainfile.php");
  include_once(XOOPS_ROOT_PATH."/include/cp_header.php");
  //バスマップクラス
  include_once('../class/class.busmap.php');

  //xoopsヘダ
  xoops_cp_header();

  //モジュールフレーム開始
  OpenTable();

  $busmap = new BusMap();
  //カテゴリ取得
  $categories = $busmap->getCategories();
?>

<!-- ▼Javascript▼ -->
<script language="javascript">
//
function goPage(action) {
  document.form1.action = action;
  document.form1.submit();
}
</script>
<!-- ▲Javascript▲ -->


<!-- ▼料金管理メニュー画面▼ -->
<table border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td colspan="2"><h3><?php echo _AD_BM_FARETABLE_MNGT_MENU_TTL; ?></h3></td>
  </tr>
  <tr>
    <td colspan="2">&nbsp;</td>
  </tr>
  <tr>
    <td width="20">&nbsp;</td>
    <td><?php echo _AD_BM_SELECT_CATEGORY_DISP; ?></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>
      <form name="form1" action="" method="post">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td colspan="3">
<?php
            if (!empty($categories)) {
?>
              <select name='category'>
<?php
              foreach($categories as $category) {
?>
                <option value="<?php echo $category['id']; ?>"><?php echo $category['name']; ?></option>
<?php
              }
?>
              </select>
<?php
            }
?>
            </td>
          </tr>
          <tr>
            <td colspan="3">&nbsp;</td>
          </tr>
          <tr>
            <td width="10%">&nbsp;</td>
            <td width="25%"><input type="button" value=" <?php echo _AD_BM_FARE_MAJOR_STOPS; ?> " onclick="javascript:goPage('adminFareMajorStops.php')"></td>
            <td><input type="button" value="  <?php echo _AD_BM_FARE_DETAIL; ?> " onclick="javascript:goPage('adminFare.php')"></td>
          </tr>
          <tr>
            <td colspan="3">&nbsp;</td>
          </tr>
          <tr>
            <td width="10%">&nbsp;</td>
            <td width="25%"><input type="button" value="   <?php echo _AD_BM_EDIT_MAJOR_STOPS; ?>   " onclick="javascript:goPage('adminMajorStops.php')"></td>
            <td></td>
          </tr>
        </table>
      </form>
    </td>
  </tr>
  <tr>
    <td colspan="2">&nbsp;</td>
  </tr>
  <!-- add_start koizumi 2009.12.08 -->
 <!--
  <tr>
    <td width="20">&nbsp;</td>
    <td><?php echo _AD_BM_MANUAL_DISP; ?></td>
  </tr>
-->
  <!-- add_end   koizumi 2009.12.08 -->
</table>
<!-- ▲料金表管理メニュー画面▲ -->

<?php
  //モジュールフレーム終了
  CloseTable();
  //xoopsフータ
  xoops_cp_footer();
?>