<?php
include('../../includes/checkSession.php');
include('../../includes/con2pma3.php');
include('../../includes/topmenunewest.php');
$id = $company_id = $_SESSION['id'];
?>

<html><head><meta charset="utf-8"><title>pmAnywhere - Scope Module</title>
    <link href="03-00Scope-Styles0.css" rel="stylesheet" type="text/css" />
    <script src="../includes/js/jquery.min.js"></script>
    <script src="03-04Scope-01SOW01-JS.js"></script>

</head>
<style>
    .actionTD a{text-decoration:none;}
</style>
<body style="backgrond-color:#E8E8E8">
<!----------------------- Div For errors and warnings--------------------------------->

<!----------------------- Div For errors and warnings--------------------------------->

<!----------------------- Div For errors and warnings--------------------------------->
<div><h5 class="msg">
        <?php if (isset($_REQUEST["msg"])) { ?>
            <?php echo $_REQUEST["msg"]; ?>
        <?php } ?>
    </h5></div>

<script>

    function showConfirm(did) {

        if (confirm("Are you sure to delete? Press OK to Delete.") )

        {

            window.location.href = "03-04Scope-01SOW01DB.php?del=" + did;

        }

    }


</script>

<div style="overflow-x:auto;">
    <div id="formdiv" > <!--div for the form (style="display:none;")-->
        <?php

        if(isset($_GET['Edit']) && !empty($_GET['Edit'])){


            $PID = $_REQUEST['Edit'];
            $result = mysql_query("SELECT * FROM scope_sow where sowID ='$PID'");

            $row = mysql_fetch_array($result, MYSQL_ASSOC);

            $sowID = $row['sowID'];
            $sowName = $row['sowName'];
            $sowFrom = $row['sowFrom'];
            $sowType = $row['sowType'];
            $sowClient = $row['sowClient'];
            $sowProject = $row['sowProject'];
            $sowRev = $row['sowrev'];


            $editUrl="?Edit=".$_GET['Edit'];



        }



        ?>

        <?php if ($uacc == "Full Control" || $uacc == "Consolidate") { ?>
        <form align="center" action="03-04Scope-01SOW01DB.php<?php if(isset($editUrl)) echo $editUrl; ?>" method="post" style="margin-top:20px">

            <fieldset>
                <legend align="center">
                    <button id="hideformdiv" class="button1" TITLE="Click to Hide">&nbsp;&nbsp;&nbsp;SCOPE OF WORK&nbsp;&nbsp;&nbsp;</button></legend>

                <table name="entryform" align="center" class="table1" width="80%" border="0" cellpadding="0">
                    <tr>
                        <td width="10%" align="left" valign="middle"><strong>Project Name*:</strong></td>
                        <td align="left" valign="middle" width="22%">
                            <select name="projectName"  id="projectName" >
                                <?php
                                $result = mysql_query("SELECT projectSerial, projectCode, projectName FROM projects where companySerial = '$id' AND projStatus=1 ORDER BY projectCode");
                                while ($rows = mysql_fetch_array($result, MYSQL_ASSOC)) {
                                    $projectSerial = $rows['projectSerial'];
                                    if ($rows["projectSerial"] == $sowProject)
                                        echo "<option selected='selected' value='$projectSerial'>" . $rows["projectCode"] . " - " . $rows["projectName"] . "</option>";
                                    else
                                        echo "<option value='$projectSerial'>" . $rows["projectCode"] . " - " . $rows["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" width="10%"><strong>Client*:</strong></td>
                        <td align="left" valign="middle" width="22%"><select name="clientName"  id="clientName" >
                                <?php
                                $result = mysql_query("SELECT clientSerial, clientName, clientCode, clientContactName FROM client where companySerial = '$id' AND clientStatus=1 ORDER BY clientName");
                                //echo $result."ll";
                                while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) {

                                    $clientSerial = $row['clientSerial'];
                                    if ($row["clientSerial"] == $sowClient)
                                        echo "<option selected='selected' value='$clientSerial'>" . $row["clientName"] . " - " . $row["clientContactName"] . "</option>";
                                    else
                                        echo "<option value='$clientSerial'>" . $row["clientCode"] . " - " . $row["clientContactName"] . "</option>";
                                }
                                ?>
                            </select>
                          <a href="../02-options/02-04Options-01Clients01.php"><img src="img/Adding.png" width="8" height="8" alt=""/></a></td>

                        <td align="left"  valign="middle" width="10%"><strong>Title *:</strong></td>
                        <td align="left" valign="middle" width="22%"> <input required name="SOWname" type="text" placeholder="Name"  id="SOWname" value="<?php if(isset($editUrl)) echo $sowName; ?>" size="20" /> </td>
                    </tr>

                    <tr>
                        <td  align="left" valign="middle" width="10%"><strong>Rev *:</strong></td>
                        <td align="left"  valign="middle" width="22%"><input required name="SOWrev" type="text"  id="SOWrev"  value="<?php if(isset($editUrl)) echo $sowRev; ?>"  size="10" placeholder="Rev"/>


                        <td align="left" valign="middle" width="10%"><strong>Type of SOW*:</strong></td>
                        <td align="left" valign="middle" width="22%">


                            <select name="brieftype"  id="brieftype">
                                <option value="Brief"<?php if(isset($editUrl)) if ($sowType == "Brief") { ?> selected="selected" <?php } ?>>Brief</option>
                                <option value="Detailed"<?php if(isset($editUrl)) if ($sowType == "Detailed") { ?> selected="selected" <?php } ?>>Detailed</option>
                            </select>
                        </td>

                        <td align="left" valign="middle" width="10%"><strong>Create/ Copy*:</strong></td>
                        <td align="left" valign="middle" width="22%">

                            <select name="SOWfrom"  id="SOWfrom" required>
                                <option value="">Select</option>
                                <option value="Scratch"<?php if(isset($editUrl)) if ( $sowFrom == "Scratch") { ?> selected="selected"<?php } ?>>From Scratch</option>
                                <option value="Copy"<?php if(isset($editUrl)) if ( $sowFrom == "Copy") { ?> selected="selected"<?php } ?>>Copy from another SOW</option>
                            </select>
                            <button style="vertical-align: bottom" type="Submit" class="button1" title="Save">&#x25ba;</button>
                        </td>
                        


                    </tr>

                    <!--
                    <tr>
                        <td align="left" valign="middle"><strong>Copy From:</strong></td>
                        <td align="left" valign="middle">
                            <select name="briefDlist" id="briefDlist" class="double-select">
                                <option value="">Select to Copy from</option>
                                <?php
                          /*      $result = mysql_query("SELECT briefD_id, briefD_name FROM briefD where companyID = '$id' AND briefD_status='1'");
                                //echo $result."ll";
                                while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) {
                                    $briefD_id = $row["briefD_id"];
                                    if ($briefD_id == $briefD_copy_from) {
                                        echo "<option selected='selected' value='$briefD_id'>" . $row["briefD_id"] . " - " . $row["briefD_name"] . "</option>";
                                    } else {
                                        echo "<option value='$briefD_id'>" . $row["briefD_id"] . " - " . $row["briefD_name"] . "</option>";
                                    }
                                }*/
                                ?>

                            </select>

                        </td>

                    </tr>-->

                </table>

            </fieldset></form><?php } ?>
        <br></div></div>




<a name="activeanchor"></a>
<div style="overflow-x:auto;">

    <div>

        <table align="center" name="tabletitle" class="table1 tableActiveFilter" width="80%" border="0" cellpadding="0">

            <tr>

                <th>

                    <div style='float: left; text-align: left'>

                    <!--    <button id="showhiddendiv" class="button1" title="Show Hidden">&#x25bc;</button>-->

                  <a href="#archiveanchor"><button class="button1" title="View Archived">&#x25bc;</button></a><button id="showformdiv" class="button1" title="Add">&#x25b2;&#x25bc;</button>&nbsp;Active SOW</div>

                    <div style='float: right; text-align: right'>

                        <select id="findproject" style="width:30%" >
                            <option value="">Select a Project</option>

                            <?php
                           // $result = mysql_query("SELECT projectSerial,projectCode, projectName FROM projects where companySerial = '$id' AND projStatus=1  ORDER BY projectName");

                            $result = mysql_query( "SELECT scope_sow.*,projects.projectName,projects.projectCode,client.clientName
                            FROM projects,client,scope_sow
												   WHERE scope_sow.sowProject = projects.projectSerial
                            AND scope_sow.sowClient = client.clientSerial
                            AND scope_sow.sowCompany = '$id' AND (scope_sow.sowStatus='1' || scope_sow.sowStatus='3' || scope_sow.sowStatus='4') GROUP BY projects.projectName ORDER BY `projectName` ASC");

                            while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) {
                                //$projectSerial = $row['projectSerial'];
                                //echo "<option value='$projectSerial' ".(($estimate['projectid'] == $projectSerial) ? "selected" : "").">" . $row["projectCode"] . " - " . $row["projectName"] . "</option>";
                                ?>
                                <option value='<?php echo $row["projectName"]; ?>' ><?php echo $row["projectName"];?></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" > Show 50 Rows</option>

                            <option value="100" selected> Show 100 Rows</option>

                            <option value="all"> Show All Rows</option>

                        </select>

                        <input style="width:30%" type="search" id="SearchMeasure" 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="85%" cellpadding="1">

        <tr>

            <th align="left" class="sorting" sorting="projectCode" bgcolor="#AAAAAA">Date Created<br />(yyyy.mm.dd)&nbsp;&#x21c5;</th>
            <th align="left" class="sorting" sorting="hazardID" bgcolor="#AAAAAA">SOW From/ <br />
            ID/ REV/ Title</th>
  <th align="left" class="sorting" sorting="DateLoction1" bgcolor="#AAAAAA">Project Name<br>     Client Name&nbsp;&#x21c5;</th>
            <th align="left" class="sorting" sorting="DateLoction2" bgcolor="#AAAAAA">SOW<br />Type&nbsp;&#x21c5;</th>
            <th align="left" class="sorting" sorting="DateLoction3" bgcolor="#AAAAAA">Prepared<br />By&nbsp;&#x21c5;</th>
            <th align="left" class="sorting" sorting="DateLoction4" bgcolor="#AAAAAA">Sent <br />Status&#x21c5;</th>
            <th align="center" bgcolor="#AAAAAA">Actions<br>Status</th>

        </tr>


        <?php

        $result = mysql_query("SELECT DISTINCT projects.projectName,client.clientName,client.clientContactName,scope_sow.sowID,scope_sow.sowPreparedBy,scope_sow.sowName,scope_sow.sowFrom,scope_sow.sowType,sowStatus,sowDateCreated,scope_sow.sowCompany, scope_sow.sowrev
FROM projects,client,scope_sow,company
WHERE scope_sow.sowProject = projects.projectSerial
AND scope_sow.sowClient = client.clientSerial
AND scope_sow.sowCompany = '$id'
AND scope_sow.sowCompany = company.serial AND (scope_sow.sowStatus='1' || scope_sow.sowStatus='3' || scope_sow.sowStatus='4') ORDER BY scope_sow.sowDateCreated DESC");

        while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) {
            $PreparedBy = "";
            if ($row["sowPreparedBy"] == 0) {
                $resultPre = mysql_query("SELECT firstName, lastName FROM login where loginId='" . $id . "'");
                $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["sowPreparedBy"] . "'");
                $PreparedBy .= mysql_result($resultPre, 0, 0);
                $PreparedBy .=" " . mysql_result($resultPre, 0, 1);
            }
            ?>

            <tr class="tableData" trid="<?php echo $row['sowID']; ?>">

                <td align="left" class="tdData projectCode"><?php echo $row['sowDateCreated']; ?></td>

                <td align="left" class="tdData hazardID"><?php echo $row['sowFrom']; ?><br />
                    <?php echo "SOW-" . $row['sowID']; ?> (<?php echo  $row['sowrev']; ?>)<br>
                    <span class="tdData hazardID"><?php echo $row['sowName'] ; ?></span></td>

                <td align="left" class="tdData DateLoction1"><?php echo $row['projectName'] . "<br>" . $row['clientName']; ?><br>
                <span class="tdData projectCode"><?php echo $row['clientContactName']; ?></span></td>

                <td align="left" class="tdData DateLoction2"><?php echo $row['sowType']; ?></td>

                <td align="left" class="tdData DateLoction3"><?php echo $PreparedBy; ?></td>




                <td align="left" class="tdData DateLoction4"> <?php if($row["sowStatus"]==3){?>
                        Sent <br>for Review
                    <?php } else if($row["sowStatus"]==4) echo "Locked"; else echo "Not Sent <br>for Review" ?></td>

                <td align="center" class="table2 sortable actionTD">
<!--
<button id="addformdiv" class="button3"> <img src="img/add.png" width="13" height="13" alt="" title="Add"/></button>  -->

                    <?php if ( ($uacc == "Full Control" || $uacc == "Consolidate")  && $row[sowStatus] == '1' ) { ?>
                        &nbsp;&nbsp;&nbsp; <a href="03-04Scope-01SOW01.php?Edit=<?php echo $row['sowID']; ?>"><img src="img/edit.png" width="13" height="13" alt="" title="Edit"/></a>&nbsp;&nbsp;&nbsp;
                    <?php } else { ?>
                        &nbsp;&nbsp;&nbsp; <img src="img/edit.png" width="13" height="13" alt="" title="Edit"/>&nbsp;&nbsp;&nbsp;
                    <?php } ?>
				
  <!--                  <?php if ($uacc == "Full Control" || $uacc == "Consolidate") { ?>
                        <a href="javascript:void(0)" onClick="showConfirm('<?php echo $row['sowID']; ?>')">

                            <img src="img/delete.png" width="13" height="13" alt="" title="Delete" />

                        </a>

                    <?php } else { ?>
                        <img src="img/delete.png" width="13" height="13" alt="" title="Delete" />
                    <?php } ?>

                    <br>   -->

                    <a href="03-04Scope-01SOW02.php?BID=<?php echo $row['sowID']; ?>"><img src="img/expand.png" width="13" height="13" alt="" title="Expand"/></a>&nbsp;&nbsp;&nbsp;

      <!--              <a href="#"> <img src="img/print.png" width="13" height="13" alt="" title="Print"/></a>   
                    &nbsp;&nbsp;&nbsp;-->
					
                    <?php if ( ($uacc == "Full Control" || $uacc == "Consolidate" ) && $row[sowStatus] == '1' ) { ?>
                        <a href="03-04Scope-01SOW01DB.php?InActive=<?php echo $row['sowID']; ?>">

                            <img src="img/hide.png" width="13" height="13" alt="" title="Archive"/></a>
                    <?php } else { ?>
                        <img src="img/hide.png" width="13" height="13" alt="" title="Archive"/>
                    <?php } ?>
		
		
		            <a href="SOWPrintView.php?BID=<?php echo $row['sowID']; ?>">&nbsp;&nbsp;&nbsp;<img src="img/print.png" width="13" height="13" alt="" title="PrintView"/></a>

      <!--     <br>         <button id="showremsdiv" class="button3"> <img src="img/mymentos.png" width="13" height="13" alt="" title="Add a Reminder"/></button>

                    &nbsp;&nbsp;&nbsp;

                    <button id="shownotesdiv" class="button3"> <img src="img/notes.png" width="13" height="13" alt="" title="Add Notes"/></button>

                    &nbsp;&nbsp;&nbsp;

                    <button id="showfilesdiv" class="button3"> <img src="img/attach.png" width="13" height="13" alt="" title="Attach" /></button>  -->
</td>

            </tr>

            <tr class="trid<?php echo $row['sowID']; ?> notetr">

                <td colspan="8" align="left"><img src="img/information.png" width="13" height="13" alt=""/></td>

            </tr>

        <?php }  ?>


    </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>

            <div id="pagination"></div>

        </td>

    </tr>

    </tbody>

</table>





<!-- HIDDEN TABLE-->

<a name="archiveanchor"></a><br>

<hr class="hrstyle1">

<br>







<div style="overflow-x:auto;">

    <div id="hiddendiv" > <!--- style="display:none" ------>

        <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">&#x25b2;</button>  -->
						<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 SOW</div>

                    <div style='float: right; text-align: right'>

                        <select id="findprojectHide" style="width:30%">  	<option value="">Select a Project</option>
                            <?php
                        //    $result = mysql_query("SELECT projectSerial,projectCode, projectName FROM projects where companySerial = '$id' AND projStatus=1  ORDER BY projectName");

                            $result = mysql_query( "SELECT scope_sow.*,projects.projectName,projects.projectCode,client.clientName
                            FROM projects,client,scope_sow
												   WHERE scope_sow.sowProject = projects.projectSerial
                            AND scope_sow.sowClient = client.clientSerial
                            AND scope_sow.sowCompany = '$id' AND scope_sow.sowStatus=0 GROUP BY projects.projectName ORDER BY `projectName` ASC");
                            while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) {
                          //      $projectSerial = $row['projectSerial'];
                                //echo "<option value='$projectSerial' ".(($estimate['projectid'] == $projectSerial) ? "selected" : "").">" . $row["projectCode"] . " - " . $row["projectName"] . "</option>";
                                ?>
                                <option value='<?php echo $row["projectName"]; ?>' ><?php echo $row["projectName"];?></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"> Show 50 Rows</option>

                            <option value="100" selected> Show 100 Rows</option>

                            <option value="all"> Show All Rows</option>

                        </select>

                        <input style="width:30%" type="search" id="SearchMeasureHide" placeholder="Type to Search">

                    </div>

                </th>

            </tr>

        </table>





        <table align="center" class="table2 tableInActive" name="datatable" border="0" width="80%" cellpadding="1">


            <tr>

                <th align="left" class="sorting" sorting="projectCode" bgcolor="#AAAAAA">Date Created<br />
                    (yyyy.mm.dd)&nbsp;&#x21c5;</th>

                <th align="left" class="sorting" sorting="hazardID" bgcolor="#AAAAAA">SOW From/ <br />
                    ID/ REV&#x21c5;</th>

                <th align="left" class="sorting" sorting="DateLoction1" bgcolor="#AAAAAA"> SOW Name<br />
                    Project      Name/
                    Client Name&nbsp;&#x21c5;</th>

                <th align="left" class="sorting" sorting="DateLoction2" bgcolor="#AAAAAA">SOW<br />
                    Type&nbsp;&#x21c5;</th>

                <th align="left" class="sorting" sorting="DateLoction3" bgcolor="#AAAAAA">Prepared<br />
                    By&nbsp;&#x21c5;</th>

                <th align="left" class="sorting" sorting="DateLoction4" bgcolor="#AAAAAA">Sent <br />Status&#x21c5;</th>
                <th align="center" bgcolor="#AAAAAA">Actions<br>Status</th>

            </tr>



            <?php
            $result = mysql_query("SELECT DISTINCT projects.projectName,client.clientName,client.clientContactName,scope_sow.sowID,scope_sow.sowPreparedBy,scope_sow.sowName,scope_sow.sowFrom,scope_sow.sowType,sowStatus,sowDateCreated,scope_sow.sowCompany, scope_sow.sowrev
FROM projects,client,scope_sow,company
WHERE scope_sow.sowProject = projects.projectSerial
AND scope_sow.sowClient = client.clientSerial
AND scope_sow.sowCompany = '$id'
AND scope_sow.sowCompany = company.serial AND scope_sow.sowStatus=0  ORDER BY scope_sow.sowDateCreated DESC");

            while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) {
                $PreparedBy = "";
                if ($row["sowPreparedBy"] == 0) {
                    $resultPre = mysql_query("SELECT firstName, lastName FROM login where loginId='" . $id. "'");
                    $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["sowPreparedBy"] . "'");
                    $PreparedBy .= mysql_result($resultPre, 0, 0);
                    $PreparedBy .=" " . mysql_result($resultPre, 0, 1);
                }
                ?>

                <tr class="tableDataHide" trid="<?php echo $row['sowID']; ?>">



                    <td align="left" class="tdDataHide projectCode"><?php echo $row['sowDateCreated']; ?></td>
                    <td align="left" class="tdDataHide hazardID"><?php echo $row['sowFrom']; ?><br />
                      <?php echo "SOW-" . $row['sowID']; ?> (<?php echo  $row['sowrev']; ?>)<br>
                      <span class="tdDataHide hazardID"><?php echo $row['sowName'] ; ?></span></td>
                    <td align="left" class="tdDataHide DateLoction1"><?php echo $row['projectName'] . "<br>" . $row['clientName']; ?><br>
                      <span class="tdData DateLoction1"><?php echo $row['clientContactName']; ?></span></td>

                    <td align="left" class="tdDataHide DateLoction2"><?php echo $row['sowType']; ?></td>

                    <td align="left" class="tdDataHide DateLoction3"><?php echo $PreparedBy; ?></td>




                    <td align="left" class="tdDataHide DateLoction4"> <?php if($row["sowStatus"]==3){?>
                            Sent <br>for Review
                        <?php } else if($row["sowStatus"]==4) echo "Locked"; else  echo "Not Sent <br>for Review" ?></td>



                    <td width="9%" align="center">
                     <?php if ($uacc == "Full Control" || $uacc == "Consolidate") { ?>
                            <a href="03-04Scope-01SOW01DB.php?Active=<?php echo $row['sowID']; ?>">
                                <img src="img/show.png" width="13" height="13" alt="" title="Unhide"/></a>
                     <?php } else { ?>
                            <img src="img/show.png" width="13" height="13" alt="" title="Unhide"/>
                     <?php } ?>&nbsp;&nbsp;&nbsp;
						
						
				    <?php if ($uacc == "Full Control" || $uacc == "Consolidate") { ?>
                        <a href="javascript:void(0)" onClick="showConfirm('<?php echo $row['sowID']; ?>')">
                            <img src="img/delete.png" width="13" height="13" alt="" title="Delete" /></a>
                    <?php } else { ?>
                        <img src="img/delete.png" width="13" height="13" alt="" title="Delete" />
                    <?php } ?>


	
						
						
                    </td>

                </tr>

                <tr class="trid<?php echo $row['sowID']; ?> notetr">


                    <td colspan="8" align="left"><img src="img/information.png" width="13" height="13" alt=""/></td>

                </tr>

            <?php }?>

        </table>

        <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>

    </div>

</div>

<br>

<br>







</body>

</html>



<SCRIPT> // to show hide the forms and hidden tables

    $(document).ready(function(){

        $("#hideformdiv").click(function(){

            $("#formdiv").toggle();

        });

        $("#showformdiv").click(function(){

            $("#formdiv").toggle();

        });

        $("#addformdiv").click(function(){

            $("#formdiv").toggle();

        });

        $("#showhiddendiv").click(function(){

            $("#hiddendiv").toggle();

        });

        $("#hidehiddendiv").click(function(){

            $("#hiddendiv").toggle();

        })

        $("#shownotesdiv").click(function(){

            $("#notesdiv").toggle();

        })

        $("#showremsdiv").click(function(){

            $("#remsdiv").toggle();

        })

        $("#showfilesdiv").click(function(){

            $("#filesdiv").toggle();

        })

    });

</SCRIPT>



<?php include('../includes/footer.php'); ?>

