<?php
include('../../includes/checkSession.php');
include('../../includes/con2pma3.php');
include('../../includes/topmenunewest.php');
$companyID = $_SESSION['id'];
include('03-08Scope-01Variations01-DB1.php');
?>
<html>
<head>
<meta charset="utf-8">
<title>pmAnywhere - Scope Variations</title>
<link href="03-00Scope-Styles0.css" rel="stylesheet" type="text/css" />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<script src="03-08Scope-01Variations01-JS1.js"></script> <!-- I am trying to move all modular JS to seperate files  --> 
<script src="03-08Scope-01Variations01-JS2.js"></script> <!-- I am trying to move all modular JS to seperate files  --> 
<script src="03-00Scope-01Toggle01.js"></script> <!-- I am trying to move all modular JS to seperate files  --> 
	

</head>

<body style="backgrond-color:#E8E8E8">
<div>
    <h5 class="msg">



        <?php if (isset($_REQUEST["msg"])) { ?>



            <?php echo $_REQUEST["msg"]; ?>



        <?php } ?>



    </h5>
</div>
<br>
<div style="overflow-x:auto;">
  <div id="formdiv" >
    <form align="center" name="entryformform" method="post" action="03-08Scope-01Variations01.php">
      <input type="hidden" value="<?php echo $VAR['var_id'];?>" name="edit_id" id="edit_id" />
      <fieldset>
        <legend align="center">
        <button id="hideformdiv" class="button1">&nbsp;&nbsp;&nbsp;SCOPE VARIATIONS&nbsp;&nbsp;&nbsp;</button>
        </legend>
        <table name="entryformtable" align="center" class="table1" width="80%" border="0" cellpadding="0">
          <tr>
            <td width="13%" align="left" valign="middle"><strong>Project Code/ Name*</strong></td>
            <td width="20%" align="left" valign="middle"><select class="" name="var_projectnamef"  id="var_projectnamef" onchange="loadProjectPhases(this.value)"  required="required" style="">
           <option value="">Select a Project</option>
                <?php
                        $result = mysql_query("SELECT projectSerial,projectCode, projectName FROM projects where companySerial = '$id' AND projStatus=1 ORDER BY projectCode ASC");
                        while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) {
                            $projectSerial = $row['projectSerial'];
                            echo "<option value='$projectSerial' ".(($VAR['var_project_id'] == $projectSerial) ? "selected" : "").">" . $row["projectCode"] . " - " . $row["projectName"] . "</option>";
                     } ?>
              </select>
              <a href="http://pm4.pmanywhere.co/Interface/02-options/02-03Options-01Projects01.php"><img src="img/Adding.png" width="8" height="8" alt=""/></a></td>
            <td align="left" valign="middle"><strong>Project Phase</strong></td>
            <td align="left" valign="middle"><select name="input-phase1"  id="input-phase1" >
              <option value="">Select</option>
              <?php
              if (isset($VAR)) {
                  $phaseID = $VAR['var_phase'];
                  $proID = $VAR['var_project_id'];
                  $result21 = mysql_query("SELECT  Phase_id,Phase_name FROM projects, projectphases where
                                                                    projects.companySerial = '$id' AND projects.projStatus=1 AND projectphases.Phase_status=1 AND
                                                                     projects.projectSerial=projectphases.project_id AND projectphases.project_id='$proID'
                                                                      ORDER BY Phase_name ASC");

                  while ($row21 = mysql_fetch_array($result21, MYSQL_ASSOC)) {
                      $i = $row21['Phase_id'];
                      $n = $row21['Phase_name'];

                      if( $i == $phaseID)
                          echo " <option selected='selected' value='$i'> $n </option>";
                      else
                          echo " <option value='$i'> $n </option>";
                  }
              }
              ?>

            </select>
            <strong><a href="http://pm4.pmanywhere.co/Interface/02-options/02-03Options-01Projects03.php"><img src="img/Adding.png" width="8" height="8" alt=""/></a></strong></td>
            <td align="left" valign="middle"><strong>Project Zone</strong></td>
            <td align="left" valign="middle"><select name="input-zone1"  id="input-zone1" >
              <option value="">Select</option>
              <?php
                  if (isset($VAR)) {
                      $zoneID = $VAR['var_zone'];
                      $proID = $VAR['var_project_id'];
                      $result22 = mysql_query("SELECT  Zone_id,Zone_name FROM projects, projectzones where
                                                                    projects.companySerial = '$id' AND projects.projStatus=1 AND projectzones.Zone_status=1 AND
                                                                     projects.projectSerial=projectzones.project_id AND projectzones.project_id='$proID'
                                                                      ORDER BY Zone_name ASC");

                      while ($row22 = mysql_fetch_array($result22, MYSQL_ASSOC)) {
                          $i = $row22['Zone_id'];
                          $n = $row22['Zone_name'];

                          if( $i == $zoneID)
                              echo " <option selected='selected' value='$i'> $n </option>";
                          else
                              echo " <option value='$i'> $n </option>";
                      }
                  }
                  ?>

            </select>
            <strong><a href="http://pm4.pmanywhere.co/Interface/02-options/02-03Options-01Projects04.php"><img src="img/Adding.png" width="8" height="8" alt=""/></a></strong></td>
          </tr>
          <tr>
            <td align="left" valign="middle"><strong>Original SOW*</strong></td>
            <td align="left" valign="middle"><select class="" name="var_sow_namef" id="var_sow_namef" required style="">
              <option value="">Select SOW</option>
              <?php
              if(isset($VAR)){
                  $result21 = mysql_query("SELECT sowID,sowName FROM scope_sow where sowCompany = '$id' AND sowProject='".$VAR['var_project_id']."' AND sowStatus=1 order by sowName");

                  while($row = mysql_fetch_array($result21 , MYSQL_ASSOC))
                  {
                      $i = $row['sowID'];
                      $n = $row['sowName'];
                      if( $i == $VAR['var_sow_id'])
                          echo " <option selected value='$i'> $n </option>";
                      else
                          echo " <option value='$i'> $n </option>";
                  }

              }

                ?>
            </select>
            <strong><a href="http://pm4.pmanywhere.co/Interface/03-scope/03-04Scope-01SOW01.php"><img src="img/Adding.png" width="8" height="8" alt=""/></a></strong></td>
            <td align="left" valign="middle"><strong>Variation  Serial*</strong></td>
            <td align="left" valign="middle"><input value="<?php echo $VAR['var_no']?>" name="var_nof" type="text" required id="var_nof"></td>
            <td align="left" valign="middle"><strong>Variation  Title*</strong></td>
            <td align="left" valign="middle"><input value="<?php echo $VAR['var_title']?>" name="var_titlef" type="text" required id="var_titlef"></td>
          </tr>
          <tr>
            <td align="left" valign="middle"><strong>Impact Type</strong></td>
            <td align="left" valign="middle" nowrap><select name="var_impactf" id="var_impactf">
              <option <?php if($VAR[var_impact] == 'Scope Impact') echo 'selected'; ?>>Scope Impact</option>
              <option <?php if($VAR[var_impact] == 'Time Impact') echo 'selected'; ?>>Time Impact</option>
              <option <?php if($VAR[var_impact] == 'Cost Impact') echo 'selected'; ?>>Cost Impact</option>
              <option <?php if($VAR[var_impact] == 'Multiple Impact') echo 'selected'; ?>>Multiple Impact</option>
            </select></td>
            <td align="left" valign="middle"><strong>Claim Date</strong></td>
            <td align="left" valign="middle"><input value="<?php echo (($VAR['var_claimdate']) ? date("Y-m-d",strtotime($VAR['var_claimdate'])) : date("Y-m-d"));?>" name="var_date1f" type="date" id="var_date1f"></td>
            <td align="left" valign="middle"><strong>Target Date</strong></td>
            <td align="left" valign="middle"><input value="<?php echo (($VAR['var_target']) ? date("Y-m-d",strtotime($VAR['var_target'])) : date("Y-m-d"));?>" name="var_date1f3" type="date" id="var_date1f3"></td>
          </tr>
          <tr>
            <td align="left" valign="middle"><strong>2nd Party*</strong></td>
            <td align="left" valign="middle"><select id="ReceiptFrom" name="ReceiptFrom" required onChange="clientvendor(this.value)" style="">
                <option value="" selected="selected">Select</option>
                <option <?php echo (($VAR['var_presented_to'] == "Associate") ? "selected" : "")?> value="Associate">Associate</option>
                <option <?php echo (($VAR['var_presented_to'] == "Client") ? "selected" : "")?> value="Client">Client</option>
                <option <?php echo (($VAR['var_presented_to'] == "Consultant") ? "selected" : "")?> value="Consultant">Consultant</option>
                <option <?php echo (($VAR['var_presented_to'] == "Team") ? "selected" : "")?> value="Team">Team</option>
                <option <?php echo (($VAR['var_presented_to'] == "Vendor") ? "selected" : "")?> value="Vendor">Vendor</option>
              </select></td>
            <td align="left" valign="middle"><strong>Name*</strong></td>
            <td align="left" valign="middle"><select name="input_name" id="input_name" required style="">
                <option value="">Select</option>
                <?php
                if($VAR['var_presented_to']){
                    echo getName($VAR['var_presented_to'],$VAR['var_presented_toto'],1);
                }
                ?>
              </select></td>
            <td align="left" valign="middle"><strong>Variation Type</strong></td>
            <td nowrap align="left" valign="middle"><select name="var_typef" id="var_typef">
             	<option <?php if($VAR[var_type] == 'Agreed Multiple') echo 'selected'; ?>>Agreed Multiple</option>
              <option <?php if($VAR[var_type] == 'Agreed Negative') echo 'selected'; ?>>Agreed Negative</option>
              <option <?php if($VAR[var_type] == 'Agreed Positive') echo 'selected'; ?>>Agreed Positive</option>
				<option <?php if($VAR[var_type] == 'Probable Multiple') echo 'selected'; ?>>Probable Multiple</option>
				<option <?php if($VAR[var_type] == 'Probable Negative') echo 'selected'; ?>>Probable Negative</option>
              <option <?php if($VAR[var_type] == 'Probable Positive') echo 'selected'; ?>>Probable Positive</option>
              <option <?php if($VAR[var_type] == 'Proposed Multiple') echo 'selected'; ?>>Proposed Multiple</option>
              <option <?php if($VAR[var_type] == 'Proposed Negative') echo 'selected'; ?>>Proposed Negative</option>
              <option <?php if($VAR[var_type] == 'Proposed Positive') echo 'selected'; ?>>Proposed Positive</option>
			
				
            </select></td>
          </tr>
          <tr>
            <td align="left" valign="middle"><strong>Description</strong></td>
            <td colspan="5" align="left" valign="middle"><textarea name="introduction" id="introduction" style="width:96.8%;"><?php echo $VAR['var_desc'];?></textarea>
              <button style="vertical-align: bottom" class="button1" title="Save">&#x25ba;</button></td>
          </tr>
        </table>
      </fieldset>
    </form>
    <br>
  </div>
</div>
	<a name="activeanchor"></a>
<div style="overflow-x:auto;"><!-- and scope_sow.sowStatus='1'  -->
  <div>
    <?php
    $result = mysql_query("SELECT *,projects.projectName,projects.projectCode,scope_sow.sowName,scope_sow.sowStatus,scope_sow.sowCompany
						  FROM var v, projects, scope_sow 
						  WHERE v.var_project_id = projects.projectSerial AND v.var_sow_id = scope_sow.sowID AND v.companyID = '".$companyID."' AND (v.var_status='1' || v.var_status='3' || v.var_status='4') AND scope_sow.sowStatus='1'  ORDER BY v.var_no DESC");
	
	?>
    <table align="center" name="tabletitle" class="table1 tableActiveFilter" width="80%" border="0" cellpadding="0">
      <tr>
        <th> <div style='float: left; text-align: left'>
            <a href="#archiveanchor"><button class="button1" title="View Archived">&#x25bc;</button></a><button id="showformdiv" class="button1" title="Show/ Hide the Form">&#x25b2;&#x25bc;</button>&nbsp;Active  Variations (<?php echo mysql_num_rows($result);?>)</div>
            <div style='float: right; text-align: right'>
                <select style="width:30%" id="findproject">
                  <option value="">Select a Project</option> 
                  <?php
					$result2 = mysql_query("SELECT *,projects.projectName,projects.projectCode,scope_sow.sowName,scope_sow.sowStatus,scope_sow.sowCompany
						  FROM var v, projects, scope_sow 
						  WHERE v.var_project_id = projects.projectSerial AND v.var_sow_id = scope_sow.sowID AND v.companyID = '".$companyID."' AND (v.var_status='1' || v.var_status='3' || v.var_status='4') AND scope_sow.sowStatus='1' GROUP BY projects.projectName ORDER BY `projectCode` ASC");
					
					while ($row2 = mysql_fetch_array($result2, MYSQL_ASSOC)) {
						?>
						<option value='<?php echo $row2["projectCode"]; ?>' ><?php echo $row2["projectCode"];?></option>
						<?php

					}
					?>             
                </select>
                <select style="width:30%" id="PagingRows">
                  <option value="10">Show 10 Rows</option>
                  <option value="20"> Show 20 Rows</option>
                  <option value="50" selected> Show 50 Rows</option>
                  <option selected value="100"> Show 100 Rows</option>
                  <option value="all"> Show All Rows</option>
                </select>
                <input style="width:30%" id="SearchMeasure" type="search" placeholder="Type to Search">
            </div>
        </th>
      </tr>
    </table>
  </div>
</div>
<div style="overflow-x:auto;">
  <table align="center" class="table2 tableActive" name="datatable" border="0" width="80%" cellpadding="1">
    <thead>
      <tr>
        <th width="8%" align="left" class="sorting" sorting="srtProject" bgcolor="#AAAAAA">Project<br>Code/ Name</th>
        <th width="8%" align="left" class="sorting" sorting="srtPhaseZone"  bgcolor="#AAAAAA">Phase/ <br>
        Zone</th>
        <th width="8%" align="left" class="sorting" sorting="srtID"  bgcolor="#AAAAAA">Variation ID/<br> Initiator</th>
        <th width="8%" align="left"  class="sorting" sorting="srtDate" bgcolor="#AAAAAA">Related<br>
        Dates (ymd)</th>
        <th width="10%" align="left"  class="sorting" sorting="srtTitle" bgcolor="#AAAAAA">Serial Number/ <br>Title of Variation<br></th>
        <th width="10%" align="left"  class="sorting" sorting="srtSOW" bgcolor="#AAAAAA">Original<br>SOW</th>
        <th width="10%" align="left"  class="sorting" sorting="srtType" bgcolor="#AAAAAA">Variation<br> Type</th>
        <th width="20%" align="left"  class="sorting" sorting="srtDesc" bgcolor="#AAAAAA">Variation <br>Description</th>
        <th width="10%" align="left"  class="sorting" sorting="srtVendor" bgcolor="#AAAAAA">2nd<br>
        Party</th>
        <th width="8%" align="center" bgcolor="#AAAAAA">Actions<br>Status</th>
      </tr>
    </thead>
    <tbody>
      <?php
      while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) {
	  ?>
      <tr class="tableData" trid="<?php echo $row['var_id']?>">
        <td align="left" class="tdData srtProject"><?php echo $row["projectCode"]; ?><br><?php echo $row["projectName"]; ?></td>
        <td align="left" class="tdData srtPhaseZone">
            <?php
            $result21 = mysql_query("SELECT  Phase_id,Phase_name FROM projectphases where projectphases.Phase_status=1 and projectphases.Phase_id='".$row['var_phase']."'");
            if ($row21 = mysql_fetch_array($result21, MYSQL_ASSOC)) {
            echo $n = $row21['Phase_name'];
            }
            ?><br><?php
            $zoneID = $row['var_zone'];
            $result22 = mysql_query("SELECT  Zone_id,Zone_name FROM  projectzones where projectzones.Zone_status=1 AND projectzones.Zone_id='$zoneID'");
            if ($row22 = mysql_fetch_array($result22, MYSQL_ASSOC)) {
            echo $n = $row22['Zone_name'];
            }
            ?>
        </td>
        <td align="left" class="tdData srtID"><?php echo $row['companyID']?>-<?php echo $row['projectSerial']?>-<?php echo $row['var_sow_id']?>-<?php echo $row['var_id']?><br>
        <?php echo $row['var_inputby']?><br></td>

        <td align="left" class="tdData srtDate"><span class="tdData srtDate"><span class="tdData srtDate">Entry:<?php echo $row['var_dataentry_date']?></span><br>
Claim:<?php echo $row['var_claimdate']?><br>
Target: <?php echo $row['var_target']?></span></td>

        <td align="left" class="tdData srtTitle"><?php echo $row['var_no']?><br> <strong><?php echo $row['var_title']?></strong></td>
        <td align="left" class="tdData srtSOW"><span class="tdData srtSOW"><?php echo $row['sowName']?></span></td>
        <td align="left" class="tdData srtType"><span class="tdData srtType"><?php echo $row['var_type'];?><br>
                <?php echo $row['var_impact'];?>            <br></td>
        <td align="left" class="tdData srtDesc"><?php echo $row['var_desc'];?></td>
        <td align="left" class="tdData srtVendor">
            <?php echo $row['var_presented_to'];?> - <?php echo getName($row['var_presented_to'],$row['var_presented_toto']); ?><br>
</td>
        <td align="center" class="table2 sortable">
            <?php if($row[var_status] == '1'){  ?>
           <a href="03-08Scope-01Variations01.php?update=<?php echo $row['var_id']; ?>"><img src="img/edit.png" width="13" height="13" alt="" title="Edit"/></a>&nbsp;&nbsp;&nbsp;
            <?php }else{ //user should not able to hide the instance if it is already sent for review ?>
                <a href="javascript:void(0)" onclick="alert('Operation could not be performed.');"><img src="img/edit.png" width="13" height="13" alt="" title="Edit"/></a>&nbsp;&nbsp;&nbsp;
            <?php } ?>

          <a href="03-08Scope-01Variations02.php?BID=<?php echo $row['var_id']; ?>"><img src="img/expand.png" width="13" height="13" alt="" title="Add Details"/></a>&nbsp;&nbsp;&nbsp;
			 
<?php if($row[var_status] == '1'){  ?>
    <a href="03-08Scope-01Variations01.php?statusId=<?php echo $row['var_id']; ?>&status=0"><img src="img/hide.png" width="13" height="13" alt="" title="Archive"/></a>

<?php }else{ //user should not able to hide the instance if it is already sent for review ?>
    <a href="javascript:void(0)" onclick="alert('Operation could not be performed.');"><img src="img/hide.png" width="13" height="13" alt="" title="Archive"/></a>

<?php } ?>

	    </td>
      </tr>
      <tr class="trid<?php echo $row['var_id']?> notetr">
        <td colspan="10" align="left"><!--   <div id="div2"></div>        <br> --><img src="img/information.png" width="12" height="12" alt=""/></td>
      </tr>
      <?php
	  }
	  ?>
    </tbody>
  </table>
</div>
<table width="80%" class="table1 ActiveTablePaging" align="center" border="0" cellpadding="1">
  <tbody>
    <tr>
      <td align="right" ><span class="pagingInfo"></span> &nbsp;
        <button class="button2 BtnPrev" title="Previous Page">&#9668;</button>
        &nbsp;
        <button class="button2 BtnNext" title="Next Page">&#x25ba;</button></td>
    </tr>
  </tbody>
</table>

<!-- HIDDEN TABLE (style="display:none")--> 

<br><a name="archiveanchor"></a><br>
<hr class="hrstyle1">
<br>
<div style="overflow-x:auto;">
  <div id="hiddendiv" >
  	<?php
    $result = mysql_query("SELECT *,projects.projectName,projects.projectCode,scope_sow.sowName,scope_sow.sowStatus,scope_sow.sowCompany
						  FROM var v, projects, scope_sow 
						  WHERE v.var_project_id = projects.projectSerial AND v.var_sow_id = scope_sow.sowID AND v.companyID = '".$companyID."' AND v.var_status= '0' AND scope_sow.sowStatus='1'  ORDER BY v.var_no DESC");
	
	?>
    <table align="center" name="tabletitle" class="table1 tableInActiveFilter" width="80%" border="0" cellpadding="1">
      <tr>
        <th> <div style='float: left; text-align: left'>
            <button id="hidehiddendiv" class="button1" title="Hide">&nbsp;&nbsp;&nbsp;</button><a href="#activeanchor"><button class="button1" title="Show Active">&#x25b2;</button></a>&nbsp;Archived  Variations (<?php echo mysql_num_rows($result);?>)</div>
          <div style='float: right; text-align: right'>
            <select style="width:30%" id="findprojectHide">
              <option value="">Select a Project</option>
              <?php
				$result2 = mysql_query("SELECT *,projects.projectName,projects.projectCode,scope_sow.sowName,scope_sow.sowStatus,scope_sow.sowCompany
						  FROM var v, projects, scope_sow 
						  WHERE v.var_project_id = projects.projectSerial AND v.var_sow_id = scope_sow.sowID AND v.companyID = '".$companyID."' AND v.var_status= '0' AND scope_sow.sowStatus='1' GROUP BY projects.projectName ORDER BY `projectCode` ASC");
				
				while ($row2 = mysql_fetch_array($result2, MYSQL_ASSOC)) {
					?>
					<option value='<?php echo $row2["projectCode"]; ?>' ><?php echo $row2["projectCode"];?></option>
					<?php

				}
				?>
            </select>
            <select style="width:30%" id="PagingRows">
              <option value="10">Show 10 Rows</option>
              <option value="20"> Show 20 Rows</option>
              <option value="50" selected> Show 50 Rows</option>
              <option selected value="100"> Show 100 Rows</option>
              <option value="all"> Show All Rows</option>
            </select>
            <input style="width:30%" id="SearchMeasureHide" type="search" placeholder="Type to Search">
          </div>
        </th>
      </tr>
    </table>
    <table align="center" class="table2 tableInActive" name="datatable" border="0" width="80%" cellpadding="1">
      <thead>
        <tr>
          <th width="8%" align="left" class="sorting" sorting="srtProject" bgcolor="#AAAAAA">Project<br>            Code/ Name</th>
          <th width="8%" align="left" class="sorting" sorting="srtPhaseZone"  bgcolor="#AAAAAA">Phase/ <br>            Zone</th>
          <th width="8%" align="left" class="sorting" sorting="srtID"  bgcolor="#AAAAAA">Variation ID/<br>            Initiator</th>
          <th width="8%" align="left"  class="sorting" sorting="srtDate" bgcolor="#AAAAAA">Related<br>            Dates</th>
          <th width="10%" align="left"  class="sorting" sorting="srtTitle" bgcolor="#AAAAAA">Serial Number/ <br>            Title of Variation<br></th>
          <th width="10%" align="left"  class="sorting" sorting="srtSOW" bgcolor="#AAAAAA">Original<br>SOW</th>
          <th width="10%" align="left"  class="sorting" sorting="srtType" bgcolor="#AAAAAA">Variation<br>
          Type/ Impact</th>
          <th width="20%" align="left"  class="sorting" sorting="srtDesc" bgcolor="#AAAAAA">Variation <br>            Description</th>
          <th width="10%" align="left"  class="sorting" sorting="srtVendor" bgcolor="#AAAAAA">2nd<br>            
            Party</th>
		  <th width="8%" align="center" bgcolor="#AAAAAA">Actions<br>            Status</th>
        </tr>
      </thead>
      <tbody>
        <?php
      while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) {
	  ?>
        <tr class="tableDataHide" trid="<?php echo $row['var_id']?>">
          <td align="left" class="tdDataHide srtProject"><?php echo $row["projectCode"]; ?><br>
            <?php echo $row["projectName"]; ?></td>
          <td align="left" class="tdDataHide srtPhaseZone"><span class="tdDataHide srtPhaseZone">     <?php
                  $result21 = mysql_query("SELECT  Phase_id,Phase_name FROM projectphases where projectphases.Phase_status=1 and projectphases.Phase_id='".$row['var_phase']."'");
                  if ($row21 = mysql_fetch_array($result21, MYSQL_ASSOC)) {
                      echo $n = $row21['Phase_name'];
                  }
                  ?><br><?php
                  $zoneID = $row['var_zone'];
                  $result22 = mysql_query("SELECT  Zone_id,Zone_name FROM  projectzones where projectzones.Zone_status=1 AND projectzones.Zone_id='$zoneID'");
                  if ($row22 = mysql_fetch_array($result22, MYSQL_ASSOC)) {
                      echo $n = $row22['Zone_name'];
                  }
                  ?></span></td>
          <td align="left" class="tdDataHide srtID"><?php echo $row['companyID']?>-<?php echo $row['projectSerial']?>-<?php echo $row['var_sow_id']?>-<?php echo $row['var_id']?><br>
            <?php echo $row['var_inputby']?><br></td>
          <td align="left" class="tdDataHide srtDate"><span class="tdDataHide srtDate"><span class="tdDataHide srtDate">Entry:<?php echo $row['var_dataentry_date']?></span><br>
            Claim:<?php echo $row['var_claimdate']?><br>
            Target:            <?php echo $row['var_target']?><br>
          </span></td>
          <td align="left" class="tdDataHide srtTitle"><?php echo $row['var_no']?><br>
            <strong><?php echo $row['var_title']?></strong><br></td>
          <td align="left" class="tdDataHide srtSOW"><?php echo $row['sowName']?></td>
          <td align="left" class="tdDataHide srtType"><span class="tdDataHide srtType"><?php echo $row['var_type'];?><br>
            <?php echo $row['var_impact'];?>            <br>
          </span></td>
          <td align="left" class="tdDataHide srtDesc"><?php echo $row['var_desc'];?></td>
          <td align="left" class="tdDataHide srtVendor"><?php echo $row['var_presented_to'];?> - <?php echo getName($row['var_presented_to'],$row['var_presented_toto']); ?><br>
            </td>
          <td align="center" class="table2 sortable">

              <a href="03-08Scope-01Variations01.php?statusId=<?php echo $row['var_id']; ?>&status=1"><img src="img/show.png" width="13" height="13" alt="" title="Unhide"/></a>&nbsp;&nbsp;&nbsp;

              <a href="03-08Scope-01Variations01.php?del=<?php echo $row['var_id']; ?>"  onClick="return confirm('Are you sure you want to delete this record ?');"><img src="img/delete.png" width="13" height="13" alt="" title="Delete" /></a>

</td>
        </tr>
        <tr class="trid<?php echo $row['var_id']?> notetr">
          <td colspan="10" align="left"><!--   <div id="div2"></div>        <br> -->
            <img src="img/information.png" width="12" height="12" alt=""/></td>
        </tr>
        <?php
	  }
	  ?>
      </tbody>
    </table>
  </div>
</div>
<table width="80%" class="table1 InActiveTablePaging" align="center" border="0" cellpadding="1">
  <tbody>
    <tr>
      <td align="right" ><span class="pagingInfo"></span> &nbsp;
        <button class="button2 BtnPrev" title="Previous Page">&#9668;</button>
        &nbsp;
        <button class="button2 BtnNext" title="Next Page">&#x25ba;</button></td>
    </tr>
  </tbody>
</table>
<br>
<br>
<br>
</body>
</html>
