<?cs def:html_header() ?>
<!--
   Manhattan version   : <?cs var:about.version ?>
   Program Name        : <?cs var:CGI.ScriptName ?>
   ClearSilver Template: <?cs var:about.cs_file ?>
   Language File(s)    : <?cs each:fname=about.lang_file ?><?cs var:fname ?>
                         <?cs /each ?>
-->
<!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">
<?cs /def ?>



<?cs def:top_container() ?>
<div id="top_header">
  <div id="super_info">
    <fieldset>
    <legend><?cs var:page_title ?></legend>
    <h4><span><?cs var:installation_title ?> (<?cs var:installation_version ?>)</span></h4>
    <h4><?cs var:current_time ?>&nbsp;&nbsp; <?cs if:!server_open_for_logins ?><span style="color:#c63; font-weight: bold"><?cs var:lang.super_menu.server_is_locked ?></span><?cs /if ?></h4>
    </fieldset>
  </div>
  <div><img src="<?cs var:image_path ?>manhattan.gif" alt="" /></div>
</div>
<?cs /def ?>

<?cs def:addDoIMenu() ?>
   <script type="text/javascript" src="<?cs var:image_path ?>initialize_menu.js"></script>
   <script type="text/javascript" src="<?cs var:image_path ?>doiMenuDOM.js"></script>
<?cs /def ?>

<?cs def:doIMenu() ?>
 <div style="background-color: #17a; width: 100%">

  <script type="text/javascript">
     var mm = new TMainMenu('mm', 'horizontal');

     var home = new TPopMenu('<?cs var:lang.super_menu.home ?>', '0', 'a', '<?cs var:home_url ?>', '<?cs var:lang.super_menu.home ?>');
     mm.Add(home);


     var course = new TPopMenu('<?cs var:lang.super_menu.courses_label ?>', '0', '', '', '<?cs var:lang.super_menu.courses_label ?>');
     mm.Add(course);

     <?cs if:has_create ?>
     var create_course = new TPopMenu('<?cs var:lang.super_menu.course["create_course"].name ?>', '', '', '', '<?cs var:lang.super_menu.course["create_course"].name ?>');
     course.Add(create_course);

   <?cs each:this = create ?>
     create_course.Add(new TPopMenu('<?cs var:lang.super_menu.create_course[name(this)].name ?>', '', 'a', '<?cs var:this ?>', '<?cs var:lang.super_menu.course[name(this)].name ?>'));

   <?cs /each ?>
  <?cs /if ?>


     <?cs each:this = course ?>
        course.Add(new TPopMenu('<?cs var:lang.super_menu.course[name(this)].name ?>', '', 'a', '<?cs var:this ?>', '<?cs var:lang.super_menu.course[name(this)].name ?>'));
      <?cs /each ?>

     var people = new TPopMenu('<?cs var:lang.super_menu.people_label ?>', '0', '', '', '<?cs var:lang.super_menu.people_label ?>');
     mm.Add(people); 
     <?cs each:this = people ?>
        people.Add(new TPopMenu('<?cs var:lang.super_menu.people[name(this)].name ?>', '', 'a', '<?cs var:this ?>', '<?cs var:lang.super_menu.people[name(this)].name ?>'));
     <?cs /each ?>

     var server = new TPopMenu('<?cs var:lang.super_menu.server_label ?>', '0', '', '', '<?cs var:lang.super_menu.server_label ?>');
     mm.Add(server);

     <?cs if:has_usageReport ?>
     var disk = new TPopMenu('<?cs var:lang.super_menu.usageReport.name ?>', '', '', '', '<?cs var:lang.super_menu.usageReport.name ?>');
     server.Add(disk);

     <?cs each:this = usageReport ?>
        disk.Add(new TPopMenu('<?cs var:lang.super_menu.usageReport[name(this)].name ?>', '', 'a', '<?cs var:this ?>', '<?cs var:lang.super_menu.usageReport[name(this)].name ?>'));
     <?cs /each ?>
     <?cs /if ?>

     <?cs each:this = server ?>
     <?cs if:(name(this) == "lock_server") && server_open_for_logins ?>
        server.Add(new TPopMenu('<?cs var:lang.super_menu.server[name(this)].name ?>', '', 'f', "confirm_url('<?cs var:this ?>', '<?cs var:lang.super_menu.confirm_lock_server ?>')", '<?cs var:lang.super_menu.server[name(this)].name ?>'));
    <?cs else ?> 
        server.Add(new TPopMenu('<?cs var:lang.super_menu.server[name(this)].name ?>', '', 'a', '<?cs var:this ?>', '<?cs var:lang.super_menu.server[name(this)].name ?>'));
    <?cs /if ?> 
     <?cs /each ?>

     <?cs if:has_cleanup ?>
     var cleanup = new TPopMenu('<?cs var:lang.super_menu.cleanup.name ?>', '', '', '', '<?cs var:lang.super_menu.cleanup.name ?>');
     server.Add(cleanup);

     <?cs each:this = cleanup ?>
        cleanup.Add(new TPopMenu('<?cs var:lang.super_menu.cleanup[name(this)].name ?>', '', 'a', '<?cs var:this ?>', '<?cs var:lang.super_menu.cleanup[name(this)].name ?>'));

     <?cs /each ?>
    <?cs /if ?> 
  <?cs if:survey["surveys"] ?>
     var survey = new TPopMenu('<?cs var:lang.super_menu.surveys.name ?>', '0', 'a', '<?cs var:survey["surveys"] ?>', '<?cs var:lang.super_menu.surveys.name ?>');
     mm.Add(survey);
  <?cs /if ?>

  <?cs if:super["add_admin"] ?>
     var add_admin = new TPopMenu('<?cs var:lang.super_menu.admin_label ?>', '0', '', '', '<?cs var:lang.super_menu.admin_label ?>');
     mm.Add(add_admin);
     <?cs each:this = super ?>
        add_admin.Add(new TPopMenu('<?cs var:lang.super_menu.super[name(this)].name ?>', '', 'a', '<?cs var:this ?>', '<?cs var:lang.super_menu.super[name(this)].name ?>'));
        
     <?cs /each ?>
  <?cs /if ?>

    mm.Add(new TPopMenu('<?cs var:lang.super_menu.change_password ?>', '0', 'a', '<?cs var:chg_passwd_url ?>', '<?cs var:lang.super_menu.change_password ?>'));

    mm.Add(new TPopMenu('<?cs var:lang.super_menu.logout ?>', '0', 'a', '<?cs var:exit_url ?>', '<?cs var:lang.super_menu.logout ?>'));
   
 
   <?cs if:view["log_list"] ?>
    mm.Add(new TPopMenu('Updates', '0', 'f', "open_new_window('<?cs var:view["log_list"] ?>')", 'Update'));
  <?cs /if ?>
    look_feel(mm, '<?cs var:image_path ?>doiMenu_space.gif');
    mm.Build();
  </script>
 </div>
<?cs /def ?>


<?cs def:mynavbar() ?>
<div class="menuBar">
 <a class="menuButton" href="<?cs var:home_url ?>" title="<?cs var:lang.super_menu.home ?>"><?cs var:lang.super_menu.home ?></a>  
 
  <a class="menuButton" href="#" onclick="return buttonClick(event, 'courses');" onmouseover="buttonMouseover(event, 'courses');" ><?cs var:lang.super_menu.courses_label ?></a>
 
  <a class="menuButton" href="#" onclick="return buttonClick(event, 'people');" onmouseover="buttonMouseover(event, 'people');" ><?cs var:lang.super_menu.people_label ?></a>
 
  <a class="menuButton" href="#" onclick="return buttonClick(event, 'server');" onmouseover="buttonMouseover(event, 'server');" ><?cs var:lang.super_menu.server_label ?></a>
  <?cs if:survey["surveys"] ?> 
  <a class="menuButton" href="<?cs var:survey["surveys"] ?>" title="<?cs var:lang.super_menu.surveys.help ?>"><?cs var:lang.super_menu.surveys.name ?></a>  
  <?cs /if ?>

  <?cs if:super["add_admin"] ?>
  <a class="menuButton" href="#" onclick="return buttonClick(event, 'admin');" onmouseover="buttonMouseover(event, 'admin');" ><?cs var:lang.super_menu.admin_label ?></a>
  <?cs /if ?>

 <a class="menuButton" href="<?cs var:chg_passwd_url ?>" title="<?cs var:lang.super_menu.change_password.help ?>" ><?cs var:lang.super_menu.change_password ?></a>
   
 <a class="menuButton" href="<?cs var:exit_url ?>" title="<?cs var:lang.super_menu.logout.help ?>" ><?cs var:lang.super_menu.logout ?></a>
 
<?cs if:view["wnec_view"] ?>
 <a class="menuButton" href="javascript:window.open('<?cs var:view["wnec_view"] ?>', 'WnecAuto','menubar=0,toolbar=0,status=0,scrollbars=yes,resizable=yes,width=650,height=600').focus();" title="View WNEC automatic roster update logs" >Roster Updates</a>
 <?cs /if ?>
</div>
<?cs /def ?>

<?cs def:submenu() ?>
  <div id="courses" class="menu" onmouseover="menuMouseover(event)">
    <a class="menuItem" href="#" onclick="return false;" onmouseover="menuItemMouseover(event,'create_courses');" ><span class="menuItemText"><?cs var:lang.super_menu.course["create_course"].name ?></span><span class="menuItemArrow">&#9654;</span></a>
   
   <?cs each:this = course ?>
    <a class="menuItem" href="<?cs var:this ?>" title="<?cs var:lang.super_menu.course[name(this)].help ?>"><?cs var:lang.super_menu.course[name(this)].name ?></a>
   <?cs /each ?>
  </div>

  <div id="people" class="menu" onmouseover="menuMouseover(event)">
   <?cs each:this = people ?>
       <a class="menuItem" href="<?cs var:this ?>" title="<?cs var:lang.super_menu.people[name(this)].help ?>"><?cs var:lang.super_menu.people[name(this)].name ?></a>
   <?cs /each ?>
  </div> 

 
  <div id="server" class="menu" onmouseover="menuMouseover(event)">
    <?cs each:this = server ?>
     <?cs if:(name(this) == "lock_server") && server_open_for_logins ?>
        <a class="menuItem" href="<?cs var:this ?>" title="<?cs var:lang.super_menu.server[name(this)].help ?>" onclick="return window.confirm('<?cs var:lang.super_menu.confirm_lock_server ?>')"><?cs var:lang.super_menu.server[name(this)].name ?></a>
    <?cs else ?> 
        <a class="menuItem" href="<?cs var:this ?>" title="<?cs var:lang.super_menu.server[name(this)].help ?>"><?cs var:lang.super_menu.server[name(this)].name ?></a>
    <?cs /if ?> 
   <?cs /each ?>
  </div>

  <?cs if:super["add_admin"] ?>
    <div id="admin" class="menu" onmouseover="menuMouseover(event)">
     <?cs each:this = super ?>
      <a class="menuItem" href="<?cs var:this ?>" title="<?cs var:lang.super_menu.super[name(this)].help ?>" ><?cs var:lang.super_menu.super[name(this)].name ?></a>
     <?cs /each ?>
   </div>
 <?cs /if ?>
 
  <div id="create_courses" class="menu" onmouseover="menuMouseover(event)">
   <?cs each:this = create ?>
    <a class="menuItem" href="<?cs var:this ?>" title="<?cs var:lang.super_menu.create_course[name(this)].help ?>"><?cs var:lang.super_menu.create_course[name(this)].name ?></a>
   <?cs /each ?>
  </div>
<?cs /def ?>
   


<?cs def:print_super_label_row(label, value) ?>
  <tr>
    <th align="right"><?cs var:label ?></th>    
    <td><?cs var:value ?></td>    
  </tr>
<?cs /def ?>






<?cs def:print_super_description(desc) ?>
  <?cs if:desc ?><?cs var:desc ?><?cs else ?><?cs var:lang.super_course_search.add_description_link ?><?cs /if ?>
<?cs /def ?>






<?cs def:print_super_search_criteria() ?>
<br />
 <table border="1" cellspacing="0">
     <?cs call:print_super_label_row(lang.super_course_search.label[0], search_param) ?> 
     <?cs call:print_super_label_row(lang.super_course_search.label[1], "") ?> 
        <?cs if:temp[0] ?>
        <tr><td>&nbsp;</td>
        <td>
         <?cs var:lang.super_course_search.template ?>
        </td>
        </tr>
        <?cs /if ?>
     <?cs each:this = subdir ?>
      <tr><td>&nbsp;</td>
      <td>
        <?cs if:this.url ?>
          <?cs var:this.value ?>
          (<a href="<?cs var:this.url ?>" title="<?cs var:lang.super_course_search.desc_help ?>" ><?cs call:print_super_description(this.desc) ?></a>)
        <?cs else ?>
          <?cs var:this.value ?>(<?cs call:print_super_description(this.desc) ?>)</a>
        <?cs /if ?>
     </td>
      </tr>
     <?cs /each ?>
     <?cs call:print_super_label_row(lang.super_course_search.label[2], lang.super_course_search.type[params_type] ) ?> 
     
     <?cs call:print_super_label_row(lang.super_course_search.label[3], lang.super_course_search.where[params_where]) ?> 
     <?cs call:print_super_label_row(lang.super_course_search.label[4], number_matches) ?> 
 </table>
<?cs /def ?>


<?cs def:define_super_onload_onunload_body() ?>
<body  onunload="javascript:bar1.hideBar()">
<?cs /def ?>





<?cs def:runtime() ?>
<!-- <?cs var:runtime ?> -->
<?cs /def ?>

