<?php
session_start();
include('../includes/con2db.php');
$WBSIDs = $_REQUEST['EditW'];
$id = $_SESSION['id'];
$WID=$_REQUEST['WID'];
   		$result = mysql_query("SELECT * FROM globalwbs where companyID = '$id' && WBSID = '$WBSIDs'");
   		$row = mysql_fetch_array($result , MYSQL_ASSOC);

			 $sortCode = $row["sortCode"];
			 $description= $row["description"];
			 $creationDate= $row["creationDate"];
			 $writeupwbs = $row["writeupwbs"];	  
	  $parent= $row["parent"];
?>
<form id="editWBSForm" name="form1" method="post" action="../DB/GWBSDB-G.php?Edit=<?php echo $_REQUEST['EditW']; ?>&WID=<?php echo $WID ?>">

<h1>Edit WBS</h1>
  <table width="100%" border="0">
    <tr>
      <td align="left" scope="col"><font color="#666666" size="1">WBS Description:</font></td>
      <td colspan="3" align="left" valign="top" class="a1"><span class="a11">
        <input name="description" type="text" class="a1" id="WEdescription" value="<?php echo $description ?>" size="70" />
      </span></td>
    </tr>
    <tr>
      <td align="left" scope="col"><font color="#666666" size="1">Notes (if any):</font></td>
      <td colspan="3" align="left" valign="top" class="a1"><span class="a11">
        <textarea name="writeupwbs" cols="69" rows="3" class="a1" id="WEwriteupwbs"><?php echo $writeupwbs; ?></textarea>
      
        <input type="image" src="../images/icon-save.png"  width="15" height="15"  />
      </span></td>
    </tr>
  </table>
</form>