<?php 
	$utils = new Utils;
	
	$db = new EO_DB;
	$db1 = new EO_DB;

	// Set this page to the Section title for the left navigation bar
	$thispagebookmark = "classquest";
	$expedition = new Expedition;

	// These two are probably declared without any usage - Check if we can remove them
	$euser = new EUser;
	$erusername = $euser->getUserName();

	if (!$pageno)
	{
		$pageno = 1;
	}
	
	$cq = new ClassQuest;
	$iexps = $cq->getInteractiveExpds($pageno);
?>
<html>
<head>
<title>Expedition Quest - Nominate</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<SCRIPT LANGUAGE="JavaScript" src="/ell/functions.js"></SCRIPT>
</head>

<body bgcolor="#FFFFFF" leftmargin=0 topmargin=0>
<table width="<?=$t1_width?>" border="0" cellspacing="0" cellpadding="0">
  <?php
	$UI=new UserInterface;
	$UI->DisplayHeader();
	$UI->DisplayTab($thispagebookmark);
  ?>  <tr valign="top"> 
    <td height="141"> 
      <table width="<?=$t1_width?>" border="0" cellspacing="0" cellpadding="0">
        <tr> 
            <?php include "ell/left_navigation_bar.inc"; ?>

          <td width="<?=$t3_width?>" valign="top" height="41"> 
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td rowspan="6" width="3%"><img src="/images/dot.GIF" width="30" height="1"></td>
                <td height="6"> <font face="Verdana, Arial, Helvetica, sans-serif" size="1"><?php include "ell/welcome_banner.ell"; ?> 
                  </font></td>
              </tr>
              <tr>
                <td height="20">&nbsp;</td>
              </tr>
              <tr> 
                <td height="20"> 
                  <div align="center"><font face="Arial, Helvetica, sans-serif" size="2"><b><font color="#990000">Virtual 
                    / Interactive Expeditions</font></b></font></div>
                </td>
              </tr>
              <tr> 
                <td height="39"><font size="1" face="Verdana, Arial, Helvetica, sans-serif">The 
                  projects listed here incorporate interactive technologies which 
                  enable students and others to participate in an expeditions 
                  via live broadcasts, polls, e-mail, chat sessions and tests.</font></td>
              </tr>
              <tr> 
                <td height="15"><font face="Verdana, Arial, Helvetica, sans-serif" size="1"></font></td>
              </tr>
              <?php
	       if ($pageno==1)
	       {
	      ?> <?php
	      }
	      ?> 
              <tr> 
                <td width="95%" valign="top" height="58"> 
                  <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr> 
                      <td width="210" bgcolor="1E55DF" height="3"><font face="Verdana, Arial, Helvetica, sans-serif" size="1" color="#FFFFFF">&nbsp;<b>Virtual/Interactive 
                        Expeditions</b></font></td>
                      <td width="33" valign="bottom" height="3"><font face="Verdana, Arial, Helvetica, sans-serif" size="1"><img src="/images/sub_tab_right.gif" height="19" width="25"></font></td>
                      <td width="374" valign="bottom" height="3" align="right"> 
                        <div align="left"><font face="Verdana, Arial, Helvetica, sans-serif" size="1"><a href="index.ell"><font color="#0000CC">ClassQuest</font></a> 
                          &gt; <font color="#666666"><b>Interactive Expeditions</b></font> 
                          </font> </div>
                      </td>
                    </tr>
                    <tr> 
                      <td colspan="3" height="1" bgcolor="#666666"><img src="/images/dot.GIF" width="1" height="1"></td>
                    </tr>
                    <tr valign="top"> 
                      <td colspan="3" height="10"><img src="/images/dot.GIF" width="1" height="1"></td>
                    </tr>
                    <tr valign="top"> 
                      <td colspan="3" height="10"> 
                        <table width="100%" border="0" cellspacing="0" cellpadding="0" alin=center>
                          <?php
				for ($i = 0;$i < count($iexps);$i++)
				{
			  ?> 
                          <tr> 
                            <td width="20" height="22" valign=middle> 
                              <div align="center"><img src="../images/a2.gif"></div>
                            </td>
                            <td width="490" height="22" align=left valign=middle><font size="1" face="Verdana, Arial, Helvetica, sans-serif"><a href="<?php  echo $iexps[$i]["ws"]; ?>"><b> 
                              <?php echo $iexps[$i]["name"];  ?> </b> </a></font></td>
                          </tr>
                          <tr> 
                            <td width="15"> 
                              <div align="center"><font face="Verdana, Arial, Helvetica, sans-serif" size="1"></font></div>
                            </td>
                            <td width="490"><font size="1" face="Verdana, Arial, Helvetica, sans-serif"> 
                              <?php echo $iexps[$i]["desc"];  ?> ...</font></td>
                          </tr>
                          <tr> 
                            <td colspan="2" height="10"><img src="../images/dot.GIF" width="1" height="1"></td>
                          </tr>
                          <?php
				}
			  ?> 
                        </table>
                      </td>
                    </tr>
                    <tr> 
                      <td colspan="3" height="1" bgcolor="#666666"><img src="/images/dot.GIF" width="1" height="1"></td>
                    </tr>
                    <tr valign="top" align="right"> 
                      <td colspan="3" height="10"><font face="Verdana, Arial, Helvetica, sans-serif" size="1"> 
                        <?php 
			$pagingtext = $cq->doIexpPagenums($pageno,2);
			echo $pagingtext;
		      ?> </font></td>
                    </tr>
                  </table>
                </td>
              </tr>
              <tr> 
                <td colspan="2" height="2">&nbsp;</td>
              </tr>
            </table>
          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<?php
	$UI->DisplayMap();
?>
</body>
</html>