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

<?cs def:print_content() ?>
<fieldset>
<legend><?cs var:lang.super_course_search.course_disk_usage_title ?></legend>
  <?cs call:print_super_search_criteria() ?>
<?cs if:number_matches > 0 ?>
  <div class="instruction">
     <?cs var:lang.super_course_search.course_disk_usage_step ?>
  </div>
   <div class="dtree">
   <br /><h4><a href="javascript: d.openAll();" title="<?cs var:lang.super_course_search.open_all ?>"><?cs var:lang.super_course_search.open_all ?></a> | <a href="javascript: d.closeAll();" title="<?cs var:lang.super_course_search.close_all ?>"><?cs var:lang.super_course_search.close_all ?></a></h4><br />

   <script type="text/javascript">
     d = new dTree('d');
     d.add(0, -1, '<?cs var:lang.super_course_search.course_disk_usage_title ?>');

     <?cs if:normal_count ?>
            d.add(1, 0, '<?cs var:normal_count ?> <?cs var:lang.super_course_search.num_central_courses ?>');
     <?cs /if ?>
     <?cs if:std_count ?>

             d.add(2, 0,'<?cs var:std_count ?> <?cs var:lang.super_course_search.num_std_courses ?>');
     <?cs /if ?>
     <?cs if:temp_count ?>
            d.add(3, 0, '<?cs var:temp_count ?> <?cs var:lang.super_course_search.num_temp_courses ?>');
     <?cs /if ?>
     <?cs each:mynode = node ?>
       d.add(<?cs var:mynode ?>);
     <?cs /each ?>
   document.write(d);
   d.openAll();
   </script>
  </div>
<?cs /if ?>
</fieldset>
<?cs /def ?>

<?cs call:html_header() ?>
   <head>
      <title><?cs var:lang.super_course_search.course_disk_usage_title ?></title>
     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
     <link rel="StyleSheet" href="<?cs var:image_path ?>super_template.css" type="text/css"  />
     <link rel="StyleSheet" href="<?cs var:image_path ?>dtree.css" type="text/css"  />
     <script type="text/javascript">
      function openwindow(some_url,winname)
       {
		    var new_window = window.open(some_url, winname,'menubar=yes,toolbar=yes,status=yes,scrollbars=yes,resizable=yes,width=760,height=500');
		      new_window.focus();
		        }
  </script>


     <?cs call:addDoIMenu() ?>
     <?cs if:number_matches > 0 ?>
     <base href="<?cs var:server_name ?><?cs var:image_path ?>index.html" />
     <script type="text/javascript" src="<?cs var:image_path ?>dtree.js"></script>
    <?cs /if ?>  
   </head>
<body>
<div id="container">
  <?cs call:top_container() ?>
  <?cs call:doIMenu() ?>
  <div id="content">
   <?cs call:print_content() ?>
  </div>
</div>

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

