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


<?cs def:print_table_heading() ?>
  <tr>
   <?cs if:!hide_manhattan_username ?>
    <td align="center" class="table_heading"><?cs var:lang.admin_list_passwd.username ?></td>
  <?cs /if ?>
   <?cs each:this = lang.admin_list_passwd.heading ?>
    <td align="center" class="table_heading"><?cs var:this ?></td>
   <?cs /each ?>
 </tr>
<?cs /def ?>





<?cs def:print_row(user) ?>
 <?cs if:user.is_faculty ?>
    <tr class="teacher">
 <?cs elif:user.matches_search ?>
    <tr class="found_user" >
 <?cs else ?>
    <tr>
 <?cs /if ?>

<?cs if:!hide_manhattan_username ?><td><?cs var:user.username ?></td><?cs /if ?>


<td>
   <?cs if:user.url ?>
    <a href="javascript:openwindow('<?cs var:user.url ?>', 'bio')" title="<?cs var:lang.admin_list_passwd.bio_help ?>">
     <?cs var:user.realname ?></a> 
   <?cs else ?>
     <?cs var:user.realname ?> 
   <?cs /if ?> 
</td>

  <td><?cs var:lang.admin_list_passwd.group[user.group] ?></td>
  <td><?cs var:user.alias ?></td>
  <td align="center"><?cs var:user.team ?></td>
  <td><?cs var:user.id ?></td>
 </tr>
<?cs /def ?>

<?cs call:html_heading() ?>
   <head>
      <title><?cs var:lang.admin_list_passwd.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"  />
   <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>

<style type="text/css">
   .teacher {
    background-color: #99FFCC;
   }


   .found_user {
    background-color: #FFCC99;
   }
</style> 
</head>
<?cs call:define_body() ?>
   <?cs if:include_close_window_button ?>
      <div>
      <form action="">
         <div class="center_msg"><input type="button" value="<?cs var:lang.admin_list_passwd.closewin ?>" title="<?cs var:lang.admin_list_passwd.closewin ?>" onclick="window.close()" /></div>
      </form>
    </div> 
   <?cs else ?>
    <?cs call:print_course_heading("javascript:history.back()", lang.admin_list_passwd.goback) ?>
  <?cs /if ?>


<div class="center_msg">
   <div class="regheading"><?cs var:lang.admin_list_passwd.total_count_label ?> <?cs var:total_users ?></div>
</div>
<table width="100%">
<tr><td align="center">
 <table cellspacing="0" cellpadding="4" border="1"> 
  <?cs call:print_table_heading() ?>
  <?cs each:person = user ?>
     <?cs call:print_row(person) ?>
  <?cs /each ?>
 </table>
</td></tr>
</table>
<?cs if:include_close_window_button ?>
    <div>
      <form action="">
      <div class="center_msg">
      <input type="button" value="<?cs var:lang.admin_list_passwd.closewin ?>" title="<?cs var:lang.admin_list_passwd.closewin_help ?>" onclick="window.close()" />
      </div>
      </form>
    </div> 
<?cs /if ?>
</body>
</html>
<?cs call:runtime() ?> 
