<?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-03Scope-01DesignBrief01JS.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-03Scope-01DesignBrief01DB.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'])){


            $BID = $_REQUEST['Edit'];
            $result = mysql_query("SELECT * FROM briefD where briefD_id='$BID'");
            $row = mysql_fetch_array($result, MYSQL_ASSOC);
            $project_id = $row["project_id"];
            $client_id = $row["client_id"];
            $briefD_name = $row["briefD_name"];
            $briefD_rev = $row["briefD_rev"];
            $briefD_create = $row["briefD_create_from"];
            $briefD_copy_from = $row["briefD_copy_from"];


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

        }



        ?>

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

            <fieldset>
                <legend align="center">
                    <button id="hideformdiv" class="button1" title="Click to Hide">&nbsp;&nbsp;&nbsp;DESIGN BRIEFS&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 width="22%"  align="left" valign="middle">
                            <select name="projname"  id="projname" class="single-select">
                                <?php
                                $result = mysql_query("SELECT projectSerial,projectCode, projectName FROM projects where companySerial = '$id' AND projStatus=1 ORDER BY projectCode");


                                while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) {
                                    $projectSerial = $row['projectSerial'];
                                    if( $projectSerial == $project_id)
                                        echo "<option selected value='$projectSerial'>" . $row["projectCode"] . " - " . $row["projectName"] . "</option>";
                                    else
                                        echo "<option value='$projectSerial'>" . $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 width="10%"  align="left"  valign="middle"><strong>Title *:</strong></td>
                        <td width="22%"  align="left"   valign="middle"><input name="briefDname" type="text" required  id="briefDname"  size="20" placeholder="Title" value="<?php if(isset($editUrl)) echo $briefD_name; ?>" />
                        <a href="../01-home/help.php#brief"><img src="img/AddingHelp.png" width="7" height="8" alt=""/></a></td>

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


                        <td  width="3%"  align="left"  valign="middle">                        
                    </tr>


                    <tr>
                        <td  align="left" valign="middle"><strong>Client Name *:</strong></td>
                        <td  align="left" valign="middle"><select required name="clientname"  id="clientname" class="single-select">
                                <?php
                                $result = mysql_query("SELECT clientSerial, clientName, clientCode, clientContactName FROM client where companySerial = '$id' AND clientStatus=1 ORDER BY clientCode");
                                //echo $result."ll";
                                while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) {
                                    $clientSerial = $row["clientSerial"];
                                    if ($row["clientSerial"] == $client_id)
                                        echo "<option selected value='$clientSerial'>" . $row["clientCode"] . " - " . $row["clientName"] . "</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"><strong>Create/ Copy*:</strong></td>
                        <td  align="left" valign="middle">

                            <select name="briefDfrom" id="briefDfrom" class="double-select">
                                <option value="">Select</option>
                                <option value="From Scratch"<?php if(isset($editUrl)) if ($briefD_create == "From Scratch") { ?> selected="selected"<?php } ?>>From Scratch</option>
                                <option value="From another Design Brief"<?php if(isset($editUrl)) if ($briefD_create == "From another Design Brief") { ?> selected="selected"<?php } ?>>From another Design Brief</option>
                            </select>
                        </td>

                        <td  align="left" valign="middle"><strong>Copy From:</strong></td>
                        <td  align="right" 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>
                        <td  align="left" valign="middle">
                       	  <button style="vertical-align: bottom" type="Submit" class="button1" title="Save">&#x25ba;</button>
                      </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'>

                        <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 Design Briefs</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 briefD.*,projects.projectName,projects.projectCode,client.clientName
                            FROM projects,client,briefD
												   WHERE briefD.project_id = projects.projectSerial
                            AND briefD.client_id = client.clientSerial
                            AND briefD.companyID = '$id' AND (briefD.briefD_status=1 OR briefD.briefD_status='3' OR briefD.briefD_status='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 width="10" align="left" class="sorting" sorting="DateCreated" bgcolor="#AAAAAA">Date Created<br />  (yyyy.mm.dd)&nbsp;&#x21c5;</th>
 <th width="10" align="left" class="sorting" sorting="BriefType" bgcolor="#AAAAAA">Brief <br />Type&#x21c5;</th>
 <th width="25" align="left" class="sorting" sorting="Title" bgcolor="#AAAAAA">ID (rev)<br>Title</th>
 <th width="25" align="left" class="sorting" sorting="projectCode" bgcolor="#AAAAAA">Project<br>Client&nbsp;&#x21c5;</th>
 <th width="10" align="left" class="sorting" sorting="PreparedBy" bgcolor="#AAAAAA">Prepared<br />By&nbsp;&#x21c5;</th>
 <th width="10" align="left" class="sorting" sorting="Status" bgcolor="#AAAAAA">Sent<br />Status&nbsp;&#x21c5;</th>
 <th width="10" align="center" bgcolor="#AAAAAA">Actions<br>Status</th>

        </tr>


        <?php
        $result = mysql_query("SELECT briefD.creationDate,briefD_rev,briefD.briefD_create_from,briefD.briefD_status,briefD.briefD_id,briefD.briefD_name,briefD.PreparedBy,briefD.companyID,projects.projectName,client.clientName,client.clientContactName FROM projects,client,briefD where briefD.companyID='$id' AND (briefD.briefD_status='1' OR briefD.briefD_status='3' OR briefD.briefD_status='4') AND projects.projectSerial=briefD.project_id AND client.clientSerial=briefD.client_id   ORDER BY creationDate DESC");// projects.projectName,briefD.briefD_name, briefD.briefD_id
        while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) {
            $PreparedBy = "";
            if ($row["PreparedBy"] == 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["PreparedBy"] . "'");
                $PreparedBy .= mysql_result($resultPre, 0, 0);
                $PreparedBy .=" " . mysql_result($resultPre, 0, 1);
            }
            ?>

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

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

                <td align="left" class="tdData BriefType"><?php echo $row["briefD_create_from"]; ?></td>
                <td align="left" class="tdData Title">DBRF-<?php echo $row["briefD_id"]; ?> (<?php echo $row["briefD_rev"]; ?>)<br>
                <?php echo $row["briefD_name"]; ?></td>

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

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

                <td align="left" class="tdData Status"><?php if($row["briefD_status"]==3){?>Sent for Review<?php }  else if($row["briefD_status"]==4) echo "Locked"; else echo "Not Sent for Review" ?><br /></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>&nbsp;&nbsp;&nbsp; -->

                    <?php if (($uacc == "Full Control" || $uacc == "Consolidate") && $row["briefD_status"] == 1)  { ?>
        			<a href="03-03Scope-01DesignBrief01.php?Edit=<?php echo $row['briefD_id'];; ?>"><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['briefD_id'];; ?>')">

                            <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-03Scope-01DesignBrief02.php?BID=<?php echo $row['briefD_id']; ?>"><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["briefD_status"] == 1)  { ?>
                        <a href="03-03Scope-01DesignBrief01DB.php?InActive=<?php echo $row['briefD_id'];; ?>">

                            <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"/></a>
                    <?php } ?>
		
		            <a href="DBPrintView.php?BID=<?php echo $row['briefD_id']; ?>">&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['briefD_id']; ?> notetr">

                <td colspan="9" align="left"><em><img src="img/information.png" width="13" height="13" alt=""/></em></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'>

                        <a href="#activeanchor"><button class="button1" title="Show Active">&#x25b2;</button></a>&nbsp;Archived Design Briefs</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 briefD.*,projects.projectName,projects.projectCode,client.clientName
                            FROM projects,client,briefD
												   WHERE briefD.project_id = projects.projectSerial
                            AND briefD.client_id = client.clientSerial
                            AND briefD.companyID = '$id' AND briefD.briefD_status=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 width="10" align="left" class="sorting" sorting="DateCreated" bgcolor="#AAAAAA">Date Created<br />  (yyyy.mm.dd)&nbsp;&#x21c5;</th>
 <th width="10" align="left" class="sorting" sorting="BriefType" bgcolor="#AAAAAA">Brief <br />Type&#x21c5;</th>
 <th width="25" align="left" class="sorting" sorting="Title" bgcolor="#AAAAAA">ID (rev)<br>Title</th>
 <th width="25" align="left" class="sorting" sorting="projectCode" bgcolor="#AAAAAA">Project<br>Client&nbsp;&#x21c5;</th>
 <th width="10" align="left" class="sorting" sorting="PreparedBy" bgcolor="#AAAAAA">Prepared <br />By&nbsp;&#x21c5;</th>
 <th width="10" align="left" class="sorting" sorting="Status" bgcolor="#AAAAAA">Sent<br /> Status&nbsp;&#x21c5;</th>
 <th width="10" align="center" bgcolor="#AAAAAA">Actions<br>Status</th>

            </tr>



            <?php
            $result = mysql_query("SELECT briefD.creationDate, briefD_status,briefD_rev,briefD.briefD_create_from,briefD.briefD_id,briefD.briefD_name,briefD.PreparedBy,briefD.companyID,projects.projectName,client.clientName, client.clientContactName FROM projects,client,briefD where briefD.companyID='$id' AND briefD.briefD_status='0' AND projects.projectSerial=briefD.project_id AND client.clientSerial=briefD.client_id ORDER BY creationDate DESC");//projects.projectName,briefD.briefD_name, briefD.briefD_id
            while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) {
                $PreparedBy = "";
                if ($row["PreparedBy"] == 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["PreparedBy"] . "'");
                    $PreparedBy .= mysql_result($resultPre, 0, 0);
                    $PreparedBy .=" " . mysql_result($resultPre, 0, 1);
                }
                ?>

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

                    <td align="left" class="tdDataHide DateCreated"><?php echo $row["creationDate"]; ?></td>

                    <td align="left" class="tdDataHide BriefType"><?php echo $row["briefD_create_from"]; ?></td>
                    <td align="left" class="tdDataHide Title"><span >DBRF-<?php echo $row["briefD_id"]; ?> (<?php echo $row["briefD_rev"]; ?>)<br>
                    <?php echo $row["briefD_name"]; ?></span></td>

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

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

                    <td align="left" class="tdDataHide Status"><?php if($row["briefD_status"]==3){?>
                            Sent for Review
                        <?php } else if($row["briefD_status"]==4) echo "Locked"; else echo "Not Sent for Review" ?></td>
                    <td width="9%" align="center">
						
                        <?php if ($uacc == "Full Control" || $uacc == "Consolidate") { ?>
                            <a href="03-03Scope-01DesignBrief01DB.php?Active=<?php echo $row['briefD_id'];; ?>">
                                <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['briefD_id'];; ?>')">

                            <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['briefD_id']; ?> notetr">

                    <td colspan="9" align="left">

                        <em>

                            <!--   <div id="div2"></div>        <br> -->
                            <img src="img/information.png" width="14" height="14" alt=""/></em></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'); ?>

