<?cs include:"util.cs" ?>

<?cs def:print_bb_to_hotpot() ?>
<body>
  <table width="100%">
  <tr><td align="center">
    <div><form method="post" enctype="multipart/form-data" action="bb_to_hotpot">
         <table>
         <tr><td colspan="2"><img src="<?cs var:image_path ?>bb_to_jbc.jpeg" width="450" height="100" /></td></tr>
         <tr>
              <th align="right"><?cs var:lang.exam_util.upload_bb_xml_file ?></th>
              <td><input type="file" name="xml_file" /></td>
         </tr>
         <tr>
            <th colspan="2"><input type="submit" value="<?cs var:lang.exam_util.convert_bb_to_jbc ?>" title="<?cs var:lang.exam_util.convert_bb_to_jbc ?>" /></th>
         </tr>
        </table>
    </form></div>
  </td></tr>
  </table>
</body>
<?cs /def ?>

<?cs def:print_examview_to_hotpot() ?>
<body>
  <table width="100%">
  <tr><td align="center">
    <div><form method="post" enctype="multipart/form-data" action="examview_to_hotpot">
         <table>
         <tr><td colspan="2"><img src="<?cs var:image_path ?>examview_to_jbc.jpeg" width="450" height="100" /></td></tr>
         <tr>
              <th align="right"><?cs var:lang.exam_util.upload_examview_xml_file ?></th>
              <td><input type="file" name="xml_file" /></td>
         </tr>
         <tr>
            <th colspan="2"><input type="submit" value="<?cs var:lang.exam_util.convert_examview_to_jbc ?>" title="<?cs var:lang.exam_util.convert_examview_to_jbc ?>" /></th>
         </tr>
        </table>
    </form></div>
  </td></tr>
  </table>
</body>
<?cs /def ?>

<?cs def:print_list() ?>
 <body>
 <table width="100%">
  <tr><td align="center">
    <table>
      <tr><th align="left"><a href="exam_util?type=bb_to_hotpot" title="<?cs var:lang.exam_util.convert_bb_to_jbc ?>" ><?cs var:lang.exam_util.convert_bb_to_jbc ?> </a></th></tr>
      <tr><th align="left"><a href="exam_util?type=examview_to_hotpot" title="<?cs var:lang.exam_util.convert_examview_to_jbc ?>" ><?cs var:lang.exam_util.convert_examview_to_jbc ?> </a></th></tr>
    </table>
  </td></tr>
 </table>
</body>
<?cs /def ?>

<?cs call:html_heading() ?>
   <head>
      <title><?cs var:lang.exam_util.title ?></title>
   <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
   <link rel="StyleSheet" href="<?cs var:image_path ?>common.css" type="text/css"  />
  </head>

    <?cs if:bb_to_hotpot ?> 
      <?cs call:print_bb_to_hotpot() ?>
    <?cs elif:examview_to_hotpot ?>
      <?cs call:print_examview_to_hotpot() ?>
    <?cs else ?>
      <?cs call:print_list() ?>
    <?cs /if ?>

</html>
<?cs call:runtime() ?>
