Location: PHPKode > projects > K-12 OSS Web Software Project > equest_0.1/teacher/edit.php
<?php
include("../config.php");

session_start();
if (!(isset($_SESSION['teacher']))) {
       header("Location: ../index.php");
       exit();
   }
?>

<html><head>
<title>eQuest Web Quest System</title>
<link type="text/css" rel="stylesheet" href="./styles.css">
</head>
<body>
<table class="maintable" bordercolor="#000066" cellspacing="0" cellpadding="3" align="center" border="1" width="600">
<tbody>
<?php include("./header.php"); ?>
<?php 
$query = "SELECT quest_unique,
                 quest_title,
                 quest_teacher,
                 quest_image,
                 quest_intro,
                 quest_task,
                 quest_process,
                 quest_resource,
                 quest_eval,
                 quest_conclusion FROM quests WHERE quest_unique='{$_REQUEST["quest"]}'"; 
$result = mysql_query($query) or die(mysql_error());
$res = mysql_fetch_array($result);
?>

<!-- start teacher list block -->
  <tr>
    <td class="text" bgcolor="#ffffff" valign="top">
<blockquote>
	<form ACTION="edit_post.php" METHOD="POST">
	<input TYPE="hidden" NAME="quest_unique" value="<?php echo $res["quest_unique"]; ?>">
	<input TYPE="hidden" NAME="quest_teacher" value="<?php echo $res["quest_teacher"]; ?>">
<table width="535" border="0">
<tbody><tr> 
</tr></tbody></table><table cellpadding="2" cellspacing="0" border="0">
<tbody><tr> 

<td valign="top">

<h2>Update Web Quest</h2>

</td>
</tr>
</tbody></table>
  
	
<h3>Step 1: Headings</h3>
<table width="100%" class="text" cellpadding="2" cellspacing="2" border="0">
<tbody><tr> 
<td bgcolor="#FFFFFF" align="right"><b>Title of Web Quest: </b></td>
<td> <input size="50" name="mytitle" type="text" value="<?php echo $res["quest_title"]; ?>"></td>
</tr>
</tbody></table>

<h3>Step 2: Image</h3>
<table width="100%" class="text" cellpadding="2" cellspacing="0" border="1">
<tbody><tr valign="middle" align="center">
 
<td><img src="../images/01.png"><br> 
<input value="01.png" name="pic" type="radio" <?php if ($res["quest_image"] == '01.png') echo "checked"; ?>></td>

<td><img src="../images/02.png"><br> 
<input value="02.png" name="pic" type="radio" <?php if ($res["quest_image"] == '02.png') echo "checked"; ?>></td>

<td><img src="../images/03.png"><br> 
<input value="03.png" name="pic" type="radio" <?php if ($res["quest_image"] == '03.png') echo "checked"; ?>><br></td>

<td><img src="../images/04.png"><br> 
<input value="04.png" name="pic" type="radio" <?php if ($res["quest_image"] == '04.png') echo "checked"; ?>></td></tr>

<tr valign="middle" align="center"> 

<td><img src="../images/05.png"><br>
<input value="05.png" name="pic" type="radio" <?php if ($res["quest_image"] == '05.png') echo "checked"; ?>></td>

<td><img src="../images/06.png"><br>
<input value="06.png" name="pic" type="radio" <?php if ($res["quest_image"] == '06.png') echo "checked"; ?>></td>

<td><img src="../images/07.png"><br>
<input value="07.png" name="pic" type="radio" <?php if ($res["quest_image"] == '07.png') echo "checked"; ?>></td>

<td><img src="../images/08.png"><br>
<input value="08.png" name="pic" type="radio" <?php if ($res["quest_image"] == '08.png') echo "checked"; ?>></td></tr>

<tr valign="middle" align="center"> 

<td><img src="../images/09.png"><br>
<input value="09.png" name="pic" type="radio" <?php if ($res["quest_image"] == '09.png') echo "checked"; ?>></td>

<td><img src="../images/10.png"><br>
<input value="10.png" name="pic" type="radio" <?php if ($res["quest_image"] == '10.png') echo "checked"; ?>></td>

<td><img src="../images/11.png"><br>
<input value="11.png" name="pic" type="radio" <?php if ($res["quest_image"] == '11.png') echo "checked"; ?>></td>

<td><img src="../images/12.png"><br>
<input value="12.png" name="pic" type="radio" <?php if ($res["quest_image"] == '12.png') echo "checked"; ?>></td></tr>

<tr valign="middle" align="center"> 

<td><img src="../images/13.png"><br>
<input value="13.png" name="pic" type="radio" <?php if ($res["quest_image"] == '13.png') echo "checked"; ?>></td>

<td><img src="../images/14.png"><br>
<input value="14.png" name="pic" type="radio" <?php if ($res["quest_image"] == '14.png') echo "checked"; ?>></td>

<td><img src="../images/15.png"><br>
<input value="15.png" name="pic" type="radio" <?php if ($res["quest_image"] == '15.png') echo "checked"; ?>></td>

<td><img src="../images/16.png"><br>
<input value="16.png" name="pic" type="radio" <?php if ($res["quest_image"] == '16.png') echo "checked"; ?>></td></tr>

<tr valign="middle" align="center"> 

<td><img src="../images/17.png"><br>
<input value="17.png" name="pic" type="radio" <?php if ($res["quest_image"] == '17.png') echo "checked"; ?>></td>

<td><img src="../images/18.png"><br>
<input value="18.png" name="pic" type="radio" <?php if ($res["quest_image"] == '18.png') echo "checked"; ?>></td>

<td><img src="../images/19.png"><br>
<input value="19.png" name="pic" type="radio" <?php if ($res["quest_image"] == '19.png') echo "checked"; ?>></td>

<td><img src="../images/20.png"><br>
<input value="20.png" name="pic" type="radio" <?php if ($res["quest_image"] == '20.png') echo "checked"; ?>></td></tr>

<tr valign="middle" align="center"> 

<td>&nbsp;</td>

<td colspan="2"><img src="../images/21.png"><br>
<input value="21.png" name="pic" type="radio" <?php if ($res["quest_image"] == '21.png') echo "checked"; ?>></td>


<td>&nbsp;</td></tr>

</tbody></table>

<h3>Step 3: Content</h3>

<table width="100%" class="text" cellpadding="2" cellspacing="2" border="0">
<tbody>

<tr> <td><b>Introduction:</b>
<p>The introduction provides a brief overview of what the web quest is all about.</p>
<p><textarea cols="80" rows="6" name="intro"><?php echo $res["quest_intro"]; ?></textarea></p>
</td></tr>

<tr><td><b>Task</b>
<p>What is the task? Make sure that the task is doable and interesting. It could be posed as a single question. The task should require students to analyze an array of information to find the answer.</p>
<p><textarea rows="6" cols="80" name="task"><?php echo $res["quest_task"]; ?></textarea> </p>

</td></tr>

<tr><td><b>Process</b>
<p>Describe in detail the process the learner should go through to complete the task. It should be broken into clearly described steps. Use bullets or point form if possible. Be sure to include some guidance on how to organise the information that is gathered. If the web quest is a group activity include instructions on how you intend the students to collaborate.</p>
<p><textarea rows="6" cols="80" name="process"><?php echo $res["quest_process"]; ?></textarea> </p>
</td></tr>

<tr><td><b>Resources</b>
<p>The information sources needed to complete the task are included here. It is very important that the learner is guided to the places you wish them to investigate and that they are not left to "wander" through the World Wide Web. In the fields below you can add up to 10 internet links to your web Quest. To add a link enter the complete address of the resource into a
"Link" field (remember to include the "http://"). Enter a descriptions for each link in its associated "Description" field. </p>
<p> <textarea rows="6" cols="80" name="resource"><?php echo $res["quest_resource"]; ?></textarea></p>

<?php
	$query = "SELECT link_title,link_url FROM links WHERE link_unique='1' AND link_quest='{$res["quest_unique"]}'";
	$result = mysql_query($query) or die(mysql_error());
	while ($row = mysql_fetch_array($result, MYSQL_ASSOC))	
	{
	print "<table cellpadding=\"2\" class=\"text\" cellspacing=\"0\" border=\"0\"><tbody><tr><td align=\"right\">Link 1:</td>\n";
	print "<td><input size=\"40\" name=\"link1\" type=\"text\" value=\"{$row["link_url"]}\"></td></tr>\n";
	print "<tr><td align=\"right\">Description:</td>\n";
	print "<td><input size=\"40\" name=\"desc1\" type=\"text\" value=\"{$row["link_title"]}\"><input TYPE=\"hidden\" NAME=\"update1\" VALUE=\"insert\"></td>\n";
	print "</tr></tbody></table><br>\n";
	}
$numrows=mysql_num_rows($result);
if ($numrows == 0)
{
	print "<table cellpadding=\"2\" class=\"text\" cellspacing=\"0\" border=\"0\"><tbody><tr><td align=\"right\">Link 1:</td>\n";
	print "<td><input size=\"40\" name=\"link1\" type=\"text\" value=\"http://\"></td></tr>\n";
	print "<tr><td align=\"right\">Description:</td>\n";
	print "<td><input size=\"40\" name=\"desc1\" type=\"text\"><input TYPE=\"hidden\" NAME=\"update1\" VALUE=\"update\"></td>\n";
	print "</tr></tbody></table><br>\n";
}
?>

<?php
	$query = "SELECT link_title,link_url FROM links WHERE link_unique='2' AND link_quest='{$res["quest_unique"]}'";
	$result = mysql_query($query) or die(mysql_error());
	while ($row = mysql_fetch_array($result, MYSQL_ASSOC))	
	{
	print "<table cellpadding=\"2\" class=\"text\" cellspacing=\"0\" border=\"0\"><tbody><tr><td align=\"right\">Link 2:</td>\n";
	print "<td><input size=\"40\" name=\"link2\" type=\"text\" value=\"{$row["link_url"]}\"></td></tr>\n";
	print "<tr><td align=\"right\">Description:</td>\n";
	print "<td><input size=\"40\" name=\"desc2\" type=\"text\" value=\"{$row["link_title"]}\"><input TYPE=\"hidden\" NAME=\"update2\" VALUE=\"insert\"></td>\n";
	print "</tr></tbody></table><br>\n";
	}
$numrows=mysql_num_rows($result);
if ($numrows == 0)
{
	print "<table cellpadding=\"2\" class=\"text\" cellspacing=\"0\" border=\"0\"><tbody><tr><td align=\"right\">Link 2:</td>\n";
	print "<td><input size=\"40\" name=\"link2\" type=\"text\" value=\"http://\"></td></tr>\n";
	print "<tr><td align=\"right\">Description:</td>\n";
	print "<td><input size=\"40\" name=\"desc2\" type=\"text\"><input TYPE=\"hidden\" NAME=\"update2\" VALUE=\"update\"></td>\n";
	print "</tr></tbody></table><br>\n";
}
?>

<?php
	$query = "SELECT link_title,link_url FROM links WHERE link_unique='3' AND link_quest='{$res["quest_unique"]}'";
	$result = mysql_query($query) or die(mysql_error());
	while ($row = mysql_fetch_array($result, MYSQL_ASSOC))	
	{
	print "<table cellpadding=\"2\" class=\"text\" cellspacing=\"0\" border=\"0\"><tbody><tr><td align=\"right\">Link 3:</td>\n";
	print "<td><input size=\"40\" name=\"link3\" type=\"text\" value=\"{$row["link_url"]}\"></td></tr>\n";
	print "<tr><td align=\"right\">Description:</td>\n";
	print "<td><input size=\"40\" name=\"desc3\" type=\"text\" value=\"{$row["link_title"]}\"><input TYPE=\"hidden\" NAME=\"update3\" VALUE=\"insert\"></td>\n";
	print "</tr></tbody></table><br>\n";
	}
$numrows=mysql_num_rows($result);
if ($numrows == 0)
{
	print "<table cellpadding=\"2\" class=\"text\" cellspacing=\"0\" border=\"0\"><tbody><tr><td align=\"right\">Link 3:</td>\n";
	print "<td><input size=\"40\" name=\"link3\" type=\"text\" value=\"http://\"></td></tr>\n";
	print "<tr><td align=\"right\">Description:</td>\n";
	print "<td><input size=\"40\" name=\"desc3\" type=\"text\"><input TYPE=\"hidden\" NAME=\"update3\" VALUE=\"update\"></td>\n";
	print "</tr></tbody></table><br>\n";
}
?>

<?php
	$query = "SELECT link_title,link_url FROM links WHERE link_unique='4' AND link_quest='{$res["quest_unique"]}'";
	$result = mysql_query($query) or die(mysql_error());
	while ($row = mysql_fetch_array($result, MYSQL_ASSOC))	
	{
	print "<table cellpadding=\"2\" class=\"text\" cellspacing=\"0\" border=\"0\"><tbody><tr><td align=\"right\">Link 4:</td>\n";
	print "<td><input size=\"40\" name=\"link4\" type=\"text\" value=\"{$row["link_url"]}\"></td></tr>\n";
	print "<tr><td align=\"right\">Description:</td>\n";
	print "<td><input size=\"40\" name=\"desc4\" type=\"text\" value=\"{$row["link_title"]}\"><input TYPE=\"hidden\" NAME=\"update4\" VALUE=\"insert\"></td>\n";
	print "</tr></tbody></table><br>\n";
	}
$numrows=mysql_num_rows($result);
if ($numrows == 0)
{
	print "<table cellpadding=\"2\" class=\"text\" cellspacing=\"0\" border=\"0\"><tbody><tr><td align=\"right\">Link 4:</td>\n";
	print "<td><input size=\"40\" name=\"link4\" type=\"text\" value=\"http://\"></td></tr>\n";
	print "<tr><td align=\"right\">Description:</td>\n";
	print "<td><input size=\"40\" name=\"desc4\" type=\"text\"><input TYPE=\"hidden\" NAME=\"update4\" VALUE=\"update\"></td>\n";
	print "</tr></tbody></table><br>\n";
}
?>

<?php
	$query = "SELECT link_title,link_url FROM links WHERE link_unique='5' AND link_quest='{$res["quest_unique"]}'";
	$result = mysql_query($query) or die(mysql_error());
	while ($row = mysql_fetch_array($result, MYSQL_ASSOC))	
	{
	print "<table cellpadding=\"2\" class=\"text\" cellspacing=\"0\" border=\"0\"><tbody><tr><td align=\"right\">Link 5:</td>\n";
	print "<td><input size=\"40\" name=\"link5\" type=\"text\" value=\"{$row["link_url"]}\"></td></tr>\n";
	print "<tr><td align=\"right\">Description:</td>\n";
	print "<td><input size=\"40\" name=\"desc5\" type=\"text\" value=\"{$row["link_title"]}\"><input TYPE=\"hidden\" NAME=\"update5\" VALUE=\"insert\"></td>\n";
	print "</tr></tbody></table><br>\n";
	}
$numrows=mysql_num_rows($result);
if ($numrows == 0)
{
	print "<table cellpadding=\"2\" class=\"text\" cellspacing=\"0\" border=\"0\"><tbody><tr><td align=\"right\">Link 5:</td>\n";
	print "<td><input size=\"40\" name=\"link5\" type=\"text\" value=\"http://\"></td></tr>\n";
	print "<tr><td align=\"right\">Description:</td>\n";
	print "<td><input size=\"40\" name=\"desc5\" type=\"text\"><input TYPE=\"hidden\" NAME=\"update5\" VALUE=\"update\"></td>\n";
	print "</tr></tbody></table><br>\n";
}
?>

<?php
	$query = "SELECT link_title,link_url FROM links WHERE link_unique='6' AND link_quest='{$res["quest_unique"]}'";
	$result = mysql_query($query) or die(mysql_error());
	while ($row = mysql_fetch_array($result, MYSQL_ASSOC))	
	{
	print "<table cellpadding=\"2\" class=\"text\" cellspacing=\"0\" border=\"0\"><tbody><tr><td align=\"right\">Link 6:</td>\n";
	print "<td><input size=\"40\" name=\"link6\" type=\"text\" value=\"{$row["link_url"]}\"></td></tr>\n";
	print "<tr><td align=\"right\">Description:</td>\n";
	print "<td><input size=\"40\" name=\"desc6\" type=\"text\" value=\"{$row["link_title"]}\"><input TYPE=\"hidden\" NAME=\"update6\" VALUE=\"insert\"></td>\n";
	print "</tr></tbody></table><br>\n";
	}
$numrows=mysql_num_rows($result);
if ($numrows == 0)
{
	print "<table cellpadding=\"2\" class=\"text\" cellspacing=\"0\" border=\"0\"><tbody><tr><td align=\"right\">Link 6:</td>\n";
	print "<td><input size=\"40\" name=\"link6\" type=\"text\" value=\"http://\"></td></tr>\n";
	print "<tr><td align=\"right\">Description:</td>\n";
	print "<td><input size=\"40\" name=\"desc6\" type=\"text\"><input TYPE=\"hidden\" NAME=\"update6\" VALUE=\"update\"></td>\n";
	print "</tr></tbody></table><br>\n";
}
?>

<?php
	$query = "SELECT link_title,link_url FROM links WHERE link_unique='7' AND link_quest='{$res["quest_unique"]}'";
	$result = mysql_query($query) or die(mysql_error());
	while ($row = mysql_fetch_array($result, MYSQL_ASSOC))	
	{
	print "<table cellpadding=\"2\" class=\"text\" cellspacing=\"0\" border=\"0\"><tbody><tr><td align=\"right\">Link 7:</td>\n";
	print "<td><input size=\"40\" name=\"link7\" type=\"text\" value=\"{$row["link_url"]}\"></td></tr>\n";
	print "<tr><td align=\"right\">Description:</td>\n";
	print "<td><input size=\"40\" name=\"desc7\" type=\"text\" value=\"{$row["link_title"]}\"><input TYPE=\"hidden\" NAME=\"update7\" VALUE=\"insert\"></td>\n";
	print "</tr></tbody></table><br>\n";
	}
$numrows=mysql_num_rows($result);
if ($numrows == 0)
{
	print "<table cellpadding=\"2\" class=\"text\" cellspacing=\"0\" border=\"0\"><tbody><tr><td align=\"right\">Link 7:</td>\n";
	print "<td><input size=\"40\" name=\"link7\" type=\"text\" value=\"http://\"></td></tr>\n";
	print "<tr><td align=\"right\">Description:</td>\n";
	print "<td><input size=\"40\" name=\"desc7\" type=\"text\"><input TYPE=\"hidden\" NAME=\"update7\" VALUE=\"update\"></td>\n";
	print "</tr></tbody></table><br>\n";
}
?>

<?php
	$query = "SELECT link_title,link_url FROM links WHERE link_unique='8' AND link_quest='{$res["quest_unique"]}'";
	$result = mysql_query($query) or die(mysql_error());
	while ($row = mysql_fetch_array($result, MYSQL_ASSOC))	
	{
	print "<table cellpadding=\"2\" class=\"text\" cellspacing=\"0\" border=\"0\"><tbody><tr><td align=\"right\">Link 8:</td>\n";
	print "<td><input size=\"40\" name=\"link8\" type=\"text\" value=\"{$row["link_url"]}\"></td></tr>\n";
	print "<tr><td align=\"right\">Description:</td>\n";
	print "<td><input size=\"40\" name=\"desc8\" type=\"text\" value=\"{$row["link_title"]}\"><input TYPE=\"hidden\" NAME=\"update8\" VALUE=\"insert\"></td>\n";
	print "</tr></tbody></table><br>\n";
	}
$numrows=mysql_num_rows($result);
if ($numrows == 0)
{
	print "<table cellpadding=\"2\" class=\"text\" cellspacing=\"0\" border=\"0\"><tbody><tr><td align=\"right\">Link 8:</td>\n";
	print "<td><input size=\"40\" name=\"link8\" type=\"text\" value=\"http://\"></td></tr>\n";
	print "<tr><td align=\"right\">Description:</td>\n";
	print "<td><input size=\"40\" name=\"desc8\" type=\"text\"><input TYPE=\"hidden\" NAME=\"update8\" VALUE=\"update\"></td>\n";
	print "</tr></tbody></table><br>\n";
}
?>

<?php
	$query = "SELECT link_title,link_url FROM links WHERE link_unique='9' AND link_quest='{$res["quest_unique"]}'";
	$result = mysql_query($query) or die(mysql_error());
	while ($row = mysql_fetch_array($result, MYSQL_ASSOC))	
	{
	print "<table cellpadding=\"2\" class=\"text\" cellspacing=\"0\" border=\"0\"><tbody><tr><td align=\"right\">Link 9:</td>\n";
	print "<td><input size=\"40\" name=\"link9\" type=\"text\" value=\"{$row["link_url"]}\"></td></tr>\n";
	print "<tr><td align=\"right\">Description:</td>\n";
	print "<td><input size=\"40\" name=\"desc9\" type=\"text\" value=\"{$row["link_title"]}\"><input TYPE=\"hidden\" NAME=\"update9\" VALUE=\"insert\"></td>\n";
	print "</tr></tbody></table><br>\n";
	}
$numrows=mysql_num_rows($result);
if ($numrows == 0)
{
	print "<table cellpadding=\"2\" class=\"text\" cellspacing=\"0\" border=\"0\"><tbody><tr><td align=\"right\">Link 9:</td>\n";
	print "<td><input size=\"40\" name=\"link9\" type=\"text\" value=\"http://\"></td></tr>\n";
	print "<tr><td align=\"right\">Description:</td>\n";
	print "<td><input size=\"40\" name=\"desc9\" type=\"text\"><input TYPE=\"hidden\" NAME=\"update9\" VALUE=\"update\"></td>\n";
	print "</tr></tbody></table><br>\n";
}
?>

<?php
	$query = "SELECT link_title,link_url FROM links WHERE link_unique='10' AND link_quest='{$res["quest_unique"]}'";
	$result = mysql_query($query) or die(mysql_error());
	while ($row = mysql_fetch_array($result, MYSQL_ASSOC))	
	{
	print "<table cellpadding=\"2\" class=\"text\" cellspacing=\"0\" border=\"0\"><tbody><tr><td align=\"right\">Link 10:</td>\n";
	print "<td><input size=\"40\" name=\"link10\" type=\"text\" value=\"{$row["link_url"]}\"></td></tr>\n";
	print "<tr><td align=\"right\">Description:</td>\n";
	print "<td><input size=\"40\" name=\"desc10\" type=\"text\" value=\"{$row["link_title"]}\"><input TYPE=\"hidden\" NAME=\"update10\" VALUE=\"insert\"></td>\n";
	print "</tr></tbody></table><br>\n";
	}
$numrows=mysql_num_rows($result);
if ($numrows == 0)
{
	print "<table cellpadding=\"2\" class=\"text\" cellspacing=\"0\" border=\"0\"><tbody><tr><td align=\"right\">Link 10:</td>\n";
	print "<td><input size=\"40\" name=\"link10\" type=\"text\" value=\"http://\"></td></tr>\n";
	print "<tr><td align=\"right\">Description:</td>\n";
	print "<td><input size=\"40\" name=\"desc10\" type=\"text\"><input TYPE=\"hidden\" NAME=\"update10\" VALUE=\"update\"></td>\n";
	print "</tr></tbody></table><br>\n";
}
?>

</td>
</tr>
<tr> 
<td><b>Evaluation</b>

<p>Cleary describe the outcome for the web quest. This is generally a written/oral report or a multimedia presentation presented individually or in a group.</p>
<p><textarea rows="6" cols="80" name="evalu"><?php echo $res["quest_eval"]; ?></textarea></p></td></tr>
<tr> 
<td><b>Conclusion</b>
<p>It is a good idea to include an activity that requires the learners to reflect on what they have learned. Encourage them to extend what they have learned into other area. Remember the web quest should encourage students to analyse and synthesize information, not just gather it.</p>
<p><textarea rows="6" cols="80" name="conc"><?php echo $res["quest_conclusion"]; ?></textarea></p></td>
</tr>
<tr> 
<td valign="middle" align="left">
<center><input value="Update WebQuest" type="submit"><center></td>
</tr>
</tbody></table>
	</form>
    </td>
  </tr>
<!-- end teacher list block -->


<?php include("./footer.php"); ?>
Return current item: K-12 OSS Web Software Project