<?php 
include('../../includes/checkSession.php');
include('../../includes/con2pma3.php');
include('../includes/header_in.php');
 $BID=$_REQUEST['BID'];
		 $result = mysql_query("SELECT briefC.*,projects.projectName,client.clientName FROM projects,client,briefC where briefC.companyID='$id' AND briefC_id='$BID' AND briefC.briefC_status='1' AND projects.projectSerial=briefC.project_id AND client.clientSerial=briefC.client_id ");
   		$row = mysql_fetch_array($result , MYSQL_ASSOC);  		
			$PreparedBy = "";
  		 if($row["PreparedBy"]==$row["companyID"]){
			$resultPre = mysql_query("SELECT firstName, lastName FROM login where loginId='".$row["PreparedBy"]."'"); 
			$PreparedBy .= mysql_result($resultPre,0,0);
			$PreparedBy .=" ". mysql_result($resultPre,0,1);
		 }
		 else{
			 $resultPre = mysql_query("SELECT internal_personnel_firstName, internal_personnel_lastName FROM internal_personnel where internal_personnel_id='".$row["PreparedBy"]."'"); 
			 $PreparedBy .= mysql_result($resultPre,0,0);
			 $PreparedBy .=" ". mysql_result($resultPre,0,1);
		 }
		
  		?>


<img src="../images/icon-heading.gif" width="12" height="13" /> 
<span class="lbrownlll7">Develop the Client Brief: ID xx REV xx </span>(<a href="Brief-C1PV.php">Print View</a>)<br />
<br />
<form id="form3" name="form3" method="post">
  <table width="100%" border="0">
    <tr class="ablks1">
      <th width="16%" align="left" valign="top" scope="col">Project Name:<?php echo $row["projectName"]; ?></th>
      <th width="35%" align="left" valign="top"  scope="col"></th>
      <th width="14%" align="left" valign="top" scope="col">Initiated By: <?php echo $PreparedBy; ?></th>
      <th width="35%" align="left" valign="top"  scope="col">&nbsp;</th>
    </tr>
    <tr class="ablks1">
      <th align="left" valign="top" scope="col">Client Name:<?php echo $row["clientName"]; ?></th>
      <th align="left" valign="top" >&nbsp;</th>
      <th align="left" valign="top" >Date Initiated:<?php echo $row["creationDate"]; ?></th>
      <th align="left" valign="top" >&nbsp;</th>
    </tr>
    <tr class="ablks1">
      <th align="left" valign="top" scope="col">&nbsp;</th>
      <th colspan="3" align="left" valign="top" >&nbsp;</th>
    </tr>
  </table>
</form>
<hr />
<table width="100%" border="0">
  <tr class="jblklll7">
    <th align="right" valign="top" scope="col">&nbsp;</th>
    <th align="right" valign="top" ><span class="dblkl1">(SAVE ALL) (SEND FOR REVIEW/ SENT FOR PREVIEW)</span></th>
  </tr>
  <tr class="jblklll7">
    <th align="right" valign="top" bgcolor="#F0F0F0" scope="col">&nbsp;</th>
    <th align="left" valign="top" bgcolor="#F0F0F0" >Project Summary</th>
  </tr>
  <tr class="ablks1">
    <th align="right" valign="top" scope="col">1.1 <br />
      Introduction</th>
    <th align="left" valign="top" ><label for="p17s"></label>
      <label for="cb11"></label>
      <textarea name="cb11" cols="150" rows="3"  class="ablks1" id="cb11"></textarea>
      save</th>
  </tr>
  <tr class="ablks1">
    <th align="right" valign="top" scope="col">1.2<br />
      Need for Project</th>
    <th align="left" valign="top" ><textarea name="cb12" cols="150" rows="3"  class="ablks1" id="cb12"></textarea>
      save</th>
  </tr>
  <tr class="ablks1">
    <th align="right" valign="top" scope="col">1.3<br />
      Project Location</th>
    <th align="left" valign="top" ><label for="cb13"></label>
      <textarea name="cb13" cols="150" rows="3"  class="ablks1" id="cb13"></textarea>
      save</th>
  </tr>
  <tr class="ablks1">
    <th align="right" valign="top" scope="col">1.4<br />
      Space Description</th>
    <th align="left" valign="top" ><textarea name="cb14" cols="150" rows="3"  class="ablks1" id="cb14"></textarea>
      save</th>
  </tr>
  <tr class="ablks1">
    <th align="right" valign="top" scope="col">1.5<br />
      Deliverables</th>
    <th align="left" valign="top" ><textarea name="cb15" cols="150" rows="3"  class="ablks1" id="cb15"></textarea>
      save</th>
  </tr>
  <tr class="ablks1">
    <th align="right" valign="top" scope="col">1.6<br />
      Time Scale</th>
    <th align="left" valign="top" ><textarea name="cb16" cols="150" rows="3"  class="ablks1" id="cb16"></textarea>
      save</th>
  </tr>
  <tr class="ablks1">
    <th align="right" valign="top" scope="col">1.7<br />
      Source of Funding</th>
    <th align="left" valign="top" ><textarea name="cb17" cols="150" rows="3"  class="ablks1" id="cb17"></textarea>
      save</th>
  </tr>
  <tr class="ablks1">
    <th align="right" valign="top" scope="col">1.8<br />
      Estimated Cost</th>
    <th align="left" valign="top" ><textarea name="cb18" cols="150" rows="3"  class="ablks1" id="cb18"></textarea>
      save</th>
  </tr>
  <tr class="ablks1">
    <th align="right" valign="top" scope="col">&nbsp;</th>
    <th align="left" valign="top" ><textarea name="cb" cols="150" rows="3"  class="ablks1" id="cb"></textarea>
      save</th>
  </tr>
  <tr class="ablks1">
    <th align="right" valign="top" scope="col">&nbsp;</th>
    <th align="right" valign="top" class="dblkl1" >&nbsp;</th>
  </tr>
</table>
<?php include('../includes/footer.php');?>