<?cs def:print_course_info(mycourse, flag) ?>
  <?cs if:mycourse.letter ?>
     <tr>
        <td colspan="4">
     <?cs var:mycourse.letter ?></td>
    </tr>
  <?cs /if ?>
  <tr>
   <td>
    <?cs if:!plain && flag == 1 ?>
      <a href="<?cs var:door_url ?>" title="" class="normal">
    <?cs elif:!plain && flag ==0 ?>
      <a href="<?cs var:door_url ?>?class=<?cs var:mycourse.subdir ?>/<?cs var:mycourse.dirname ?>" title="" >
    <?cs /if ?> 
    <?cs var:mycourse.course_no ?></a>
   </td>
   <td><?cs var:mycourse.course_title ?></td>
   <td><?cs var:mycourse.semester ?></td>
   <td><?cs var:mycourse.instructor ?></td>
  </tr>
<?cs /def ?>



<?cs def:print_course_list(group, flag) ?>
<table width="75%" cellspacing="0" cellpadding="3">
<?cs each:this = group ?>
  <?cs if:this.name ?>
    <tr>
     <td colspan="4" class="regheading" align="center">
       <br /><?cs var:lang.super_print_course_list.group_name ?>  <?cs var:this.name ?>
       (<?cs var:this.desc ?>)
     </td>
    </tr>
 <?cs /if ?>
  <?cs each:course = this.course ?>
   <?cs call:print_course_info(course, flag) ?>
  <?cs /each ?>
<?cs /each ?>
</table>
<?cs /def ?>

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
       "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
   <head>
      <title><?cs var:lang.super_config_course_list.page_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>
<body>
  <table width="100%">
    <tr><td align="center">
     <?cs if:normal_count ?>
       <div class="center_notice">
         <?cs var:normal_count ?> <?cs var:lang.super_print_course_list.num_central_courses ?>
       </div>

     <?cs call:print_course_list(ctr_group, #0) ?>
     <?cs /if ?>
     <?cs if:stand_count ?>
       <div class="center_notice">
         <?cs var:stand_count ?> <?cs var:lang.super_print_course_list.num_std_courses ?>
       </div>
     <?cs call:print_course_list(std_group, #1) ?>
     <?cs /if ?>
     <?cs if:temp_count ?>
       <div class="center_notice">
         <?cs var:temp_count ?> <?cs var:lang.super_print_course_list.num_temp_courses ?>
       </div>
     <?cs call:print_course_list(temp_group, #0) ?>
     <?cs /if ?>
    </td></tr>
  </table>    
</body>
</html>

