<?cs def:print_submit(value) ?>
    <input type="submit" value="<?cs var:value.msg ?>" class="super_color_button" title="<?cs var:value.help ?>" />
<?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_xml_create_courses.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" media="screen" />
   <link rel="StyleSheet" href="<?cs var:image_path ?>super.css" type="text/css" media="screen" />
  </head>
<body>
<div>
 <a href="javascript:history.back()" title="<?cs var:lang.super_xml_create_courses.goback ?>" >
 <img src="<?cs var:image_path ?>back_arrow.gif" alt="<?cs var:lang.super_xml_create_courses.goback ?>" /></a>
</div>
<div class="center_msg">
   <?cs var:lang.super_xml_create_courses.select ?>
</div>
<table width="100%">
<tr><td align="center">
   <div><form method="post" action="super_xml_course_create">
       <div><input type="hidden" name="id" value="<?cs var:Query.id ?>" />
      <input type="hidden" name="roster_path" value="<?cs var:roster_path ?>" />
      </div>
   <table border="1" cellspacing="0" cellpadding="4">
     <tr>
      <?cs each:this = lang.super_xml_create_courses.label ?>
      <td class="regheading"><?cs var:this ?></td>
      <?cs /each ?>
    </tr>
    <?cs set:num = #1 ?>
    <?cs each:crs = course ?>
    <tr>
      <td><input type="checkbox" name="c<?cs var:num ?>_orig_id" value="<?cs var:crs.id ?>" class="super_color_text" /></td>
     <td><?cs var:crs.course_code ?></td> 
     <td><?cs var:crs.course_title ?></td> 
     <td><?cs var:crs.course_semester ?></td> 
     <td><input type="text" name="c<?cs var:num ?>_subdir" value="<?cs var:crs.subdir ?>" class="super_color_text" title="<?cs var:lang.super_xml_create_courses.help[1] ?>"  size="<?cs var:crs.subdir_length ?>" maxlength="<?cs var:max_subdir ?>" /></td>
     <td><input type="text" name="c<?cs var:num ?>_new_id" value="<?cs var:crs.id ?>" class="super_color_text" title="<?cs var:lang.super_xml_create_courses.help[2] ?>"  size="<?cs var:crs.id_length ?>" maxlength="<?cs var:max_id ?>" /></td>
     <td>
       <?cs set:t_num = #0 ?>
       <?cs each:teacher = crs.faculty ?>
        <?cs if:t_num > #0 ?>
          <br />
        <?cs /if ?> 
        <?cs var:teacher.fname ?> <?cs var:teacher.lname ?>
       <?cs set:t_num =t_num + #1 ?>
       <?cs /each ?>
     </td>
  <td><select name="c<?cs var:num ?>_type" class="super_color_text" title="<?cs var:lang.super_xml_create_courses.help[0] ?>" >
      <?cs each:type = lang.super_xml_create_courses.type ?>
       <option value="<?cs var:type ?>"><?cs var:type ?></option> 
    <?cs /each ?>
      </select></td>
   </tr> 
   <?cs set:num = num + #1 ?>
   <?cs /each ?>
   <tr>
    <td colspan="8" class="regheading" align="center"><?cs var:lang.super_xml_create_courses.total ?></td>
   </tr>
   <tr>
    <td colspan="8"  align="center">
    <?cs var:if:total_course != #1 ?>
     <?cs call:print_submit(lang.super_xml_create_course.button_2) ?>
    <?cs else ?>
     <?cs call:print_submit(lang.super_xml_create_course.button_1) ?>
    <?cs /if ?>
   </td>
  </tr> 
   </table>
  </form></div>
</td></tr>
</table>
</body>
</html>


