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

<?cs def:flag_image() ?><img src="<?cs var:image_path ?>flag.gif" alt="<?cs var:lang.news_team_list.flag_title ?>" title="<?cs var:lang.news_team_list.flag_title ?>" width="14" height="14"  /><?cs /def ?>
	
<?cs call:html_heading() ?>
<head>
<title><?cs var:course_no ?><?cs var:lang.news_team_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>
<?cs call:define_body() ?>
<table width="100%">
<tr><td align="center">
  <table>
  <tr><td align="center">
  <a href="<?cs var:main_menu_url ?>" title="<?cs var:lang.news_team_list.main_menu_title ?>"><img src="<?cs var:image_path ?>main.gif" width="50" height="34" alt="<?cs var:lang.news_team_list.main_menu_title ?>" /></a><img src="<?cs var:image_path ?>team_teach_label.gif" width="262" height="34" alt="<?cs var:news_team_list.page_title ?>" /><br /><i><?cs var:lang.news_team_list.page_description ?></i>
  </td></tr>
  </table>
   <br />
  <table cellspacing="0" cellpadding="10">
    <?cs each:t = team ?>
     <tr class=<?cs if:name(t) % #2 ?>"odder_color"<?cs else ?>"even_color"<?cs /if ?> >
       <td>(<?cs var:t.total_msgs ?><?cs if:t.total_unread ?><img src="<?cs var:image_path ?>redstar.gif" alt="<?cs var:lang.news_team_list.redstar_title ?>" title="<?cs var:lang.news_team_list.redstar_title ?>" /><?cs /if ?><?cs if:t.total_flagged ?><?cs call:flag_image() ?><?cs /if ?>)</td>
       <td><a href="news_topic?crs=<?cs var:crs?>&amp;id=<?cs var:id ?>&amp;grp=7&amp;team=<?cs var:t.team_letter ?>" title="<?cs var:lang.news_team_list.team_topic_title ?>" >
         <?cs var:lang.news_team_list.team_label ?>&nbsp;<?cs var:t.team_name ?></a>
      </td>
       <td>
         <?cs if:!t.total_members ?>
                <?cs var:lang.news_team_list.no_members ?>
         <?cs else ?>
           <?cs each:m = t.member ?>
           <?cs if:name(m) ?>, <?cs if:!(name(m) % #4) ?><br /><?cs /if ?><?cs /if ?><?cs var:m ?> 
           <?cs /each ?>
           <?cs if:t.is_partial_member_list ?><?cs var:lang.news_team_list.partial_listing ?><?cs /if ?>
         <?cs /if ?>
       </td>
     </tr> 
    <?cs /each ?>
  </table>
</td></tr>
</table>
</body>
</html>
<?cs call:runtime() ?>
