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

<?cs ############################################
     # macro that prints one entry 
?>

<?cs def:print_one_entry(one_entry) ?>
  <?cs if:one_entry.url ?>
   <?cs with:lang = lang.grades_fac_menu[one_entry.name] ?>
      <?cs if:one_entry.name=="admin_download_passwd" ?>
         <dt>
               <span class="menu_item" ><?cs var:lang.link ?></span>
               <a href="<?cs var:one_entry.url ?>" class="menu_listing" title="<?cs var:lang.tab_link ?>"><?cs var:lang.tab_link ?></a>&nbsp;&nbsp;&nbsp;
               <a href="<?cs var:one_entry.url ?>&amp;csv=1" class="menu_listing" title="<?cs var:lang.csv_link ?>"><?cs var:lang.csv_link ?></a>
               </span>
         </dt>
       <?cs else ?>
         <dt><a href="<?cs var:one_entry.url ?>" class="menu_listing" title="<?cs var:lang.link ?>" ><?cs var:lang.link ?></a></dt>
      <?cs /if ?>
     <?cs if:one_entry.name=="grades_view" && !using_excel_method ?>
       <dd><span class="menu_description"><?cs var:lang.gradequick_desc ?></span></dd><p />
     <?cs else ?>
       <dd><span class="menu_description"><?cs var:lang.desc ?></span></dd><p />
     <?cs /if ?>
    <?cs /with ?>
  <?cs else ?>
   <?cs with:lang = lang.grades_fac_menu[one_entry.name] ?>
     <dt><span class="disabled_menu_item"><?cs var:lang.link ?></span></dt>
     <dd><span class="disabled_menu_description"><?cs var:lang.desc ?></span></dd><p />
   <?cs /with ?>
  <?cs /if ?>
<?cs /def ?>




<?cs def:print_all_entries() ?>
<table width="75%">
<tr><td>
  <dl>
     <?cs each:value = item ?>
        <?cs call:print_one_entry(value) ?>
     <?cs /each ?>
  </dl>
</td></tr>
</table>
<?cs /def ?>

        
    



<?cs call:html_heading() ?>   
   <head>
      <title><?cs var:course_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" />
   <link rel="StyleSheet" href="<?cs var:image_path ?>menu_listing.css" type="text/css" />
  </head>
<?cs call:define_body() ?>
   <?cs call:print_course_heading(back_url, lang.grades_fac_menu.goback) ?>
<table width="100%">
<tr><td align="center">
   <h3><?cs if:using_excel_method ?><?cs var:lang.grades_fac_menu.using_excel_method ?><?cs else ?><?cs var:lang.grades_fac_menu.using_gradequick_method ?><?cs /if ?></h3>
   <?cs call:print_all_entries() ?>
</td></tr>
</table>
</body>
</html>
<?cs call:runtime() ?>
