<?php
include('../../includes/checkSession.php');
include('../../includes/con2pma3.php');
include('../includes/header_in.php');

$order_type = "DESC";
$order_par = "sowDateCreated";
if (isset($_REQUEST['otype'])) {
    $order_type = $_REQUEST['otype'];
}

if (isset($_REQUEST['opar'])) {
    $order_par = $_REQUEST['opar'];
}
?>
<style>
    .fixed{display:none !important}
    div.FixedHeader_Cloned th,
    div.FixedHeader_Cloned td {
        background-color: white !important;
    }
    .first{
        display: none;
    }
    .dataTable, .FixedHeader_Header {width:100% !important}
    .dataTable thead i{
        margin-top: -5px;
    }
	input#SOWname{width:79% !important}
	 input#SOWrev{width:19% !important}
       .imgview{
        height: 19px;
    width: 16px;
    margin-left: 4px;
    margin-top: 1px; 
}
</style>
<script src="../includes/js/fixedheader.js"></script>

<section class="content">

    <div class="container">

        <div class="row">

            <div class="main-content">

                <!--<h5>-->

                <h5>

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

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

                    <?php } ?>

                </h5>
                <?php
                if ($uacc == "Full Control") {
                    if (!isset($_REQUEST['Edit'])) {
                        ?>
                        <div class="add-formpage">
                            <div class="widget">
                                <div class="whead">  <h6>
                                        <i class="fa fa-plus-circle"></i> Add  </h6>
                                    <strong> <a href="javascript:void(0)" onclick="hideform()" class="teamclose"><i class="fa fa-times"></i></a></strong>
                                </div>
                                <form method="post" enctype="multipart/form-data" name="form1" id="form1" action="../../DB/03-scope/SowDB.php" onsubmit="return validatescopeSOW()">
                                    <div class="formRow">
                                        <div class="col-sm-1-8 label-assign" style="padding-right:0px;">

                                            <label>Project Name*:</label></div>
                                        <div class="col-sm-2-2 field-assign " style="padding-left:0px;">
                                            <select name="projectName"  id="projectName" required>
                                            <option value="">Select</option>
                                                <?php
                                                $result = mysql_query("SELECT projectSerial,projectCode, projectName FROM projects where companySerial = '$id' AND projStatus=1");


                                                while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) {
                                                    $projectSerial = $row['projectSerial'];
                                                    echo "<option value='$projectSerial'>" . $row["projectCode"] . " - " . $row["projectName"] . "</option>";
                                                }
                                                ?>
                                            </select> </div>
                                        <div class="col-sm-1-8 label-assign" style="padding-right:0px;">

                                            <label>Client*:</label></div>
                                        <div class="col-sm-2-2 field-assign " style="padding-left:0px;">
                                            <select name="clientName"  id="clientName" required>
                                             <option value="">Select</option>
                                                <?php
                                                $result = mysql_query("SELECT clientSerial, clientName, clientCode FROM client where companySerial = '$id' AND clientStatus=1");
                                                //echo $result."ll";
                                                while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) {
                                                    $clientSerial = $row["clientSerial"];
                                                    echo "<option value='$clientSerial'>" . $row["clientCode"] . " - " . $row["clientName"] . "</option>";
                                                }
                                                ?>
                                            </select> </div>
                                        <div class="col-sm-1-8 label-assign" style="padding-right:0px;">

                                            <label>Name | Rev*:</label></div>
                                        <div class="col-sm-2-2 field-assign " style="padding-left:0px;">
                                            <input name="SOWname" type="text"  id="SOWname" value="" size="20" required placeholder="Name" />
                                            <input name="SOWrev" type="text"  id="SOWrev" value="" size="10" placeholder="Rev"/>
                                        </div>
                                    </div>
                                    <div class="formRow">

                                        
                                        <div class="col-sm-1-8 label-assign" style="padding-right:0px;">

                                            <label>Type of SOW*: </label></div>
                                        <div class="col-sm-2-2 field-assign " style="padding-left:0px;">
                                            <select name="brieftype"  id="brieftype">
                                                <option value="Brief">Brief</option>
                                                <option value="Detailed">Detailed</option>
                                            </select> </div>

											
                                            <div class="col-sm-1-8 label-assign" style="padding-right:0px;">

                                            <label>Create/ Copy*:</label></div>
                                        <div class="col-sm-2-2 field-assign " style="padding-left:0px;">
                                            <select name="SOWfrom"  id="SOWfrom" required>
                                            <option value="">Select</option>
                                                <option value="Scratch">From Scratch</option>
                                                <option value="Copy">Copy from another SOW</option>
                                            </select> </div>
                                        <div class="grid2 submit-btn save-bottom"> 

                                            <button type="submit" class="btn btn-success"><i class="fa fa-check-square"></i> </button>

                                        </div>
                                    </div>






                                </form>
                            </div>

                        </div>
                        <?php
                    } else {

                        $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'];
                        ?>
                        <div class="edit-formpage">

                            <div class="widget">

                                <div class="whead">

                                    <h6>

                                        <i class="fa fa-pencil-square-o"></i>

                                        Edit

                                    </h6>

                                    <strong><a href="javascript:void(0)" onclick="hideeform()" class="teamclose"><i class="fa fa-times"></i></a></strong> </div>

                                <form method="post" enctype="multipart/form-data" action="../../DB/03-scope/SowDB.php?Edit=<?php echo $sowID; ?>" name="form1" id="form1" onsubmit="return validatescopeSOW()">

                                    <div class="formRow">
                                        <div class="col-sm-1-8 label-assign" style="padding-right:0px;">

                                            <label>Project Name*:</label></div>
                                        <div class="col-sm-2-2 field-assign " style="padding-left:0px;">
                                            <select name="projectName"  id="projectName" >
                                                <?php
                                                $result = mysql_query("SELECT projectSerial, projectCode, projectName FROM projects where companySerial = '$id' AND projStatus=1");
                                                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> </div>
                                        <div class="col-sm-1-8 label-assign" style="padding-right:0px;">

                                            <label>Client*:</label></div>
                                        <div class="col-sm-2-2 field-assign " style="padding-left:0px;">
                                            <select name="clientName"  id="clientName" >
                                                <?php
                                                $result = mysql_query("SELECT clientSerial, clientName, clientContactName FROM client where companySerial = '$id' AND clientStatus=1");
                                                //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["clientName"] . " - " . $row["clientContactName"] . "</option>";
                                                }
                                                ?>
                                            </select> </div>
                                        <div class="col-sm-1-8 label-assign" style="padding-right:0px;">

                                            <label>Name | Rev*:</label></div>
                                        <div class="col-sm-2-2 field-assign " style="padding-left:0px;">
                                            <input name="SOWname" type="text"  id="SOWname" value="<?php echo $sowName; ?>" size="20" /> <input name="SOWrev" type="text"  id="SOWrev"  value="<?php echo $sowRev; ?>"  size="10" placeholder="Rev"/>
                                        </div>
                                    </div>
                                    <div class="formRow">

                                        
                                        <div class="col-sm-1-8 label-assign" style="padding-right:0px;">

                                            <label>Type of SOW*: </label></div>
                                        <div class="col-sm-2-2 field-assign " style="padding-left:0px;">
                                            <select name="brieftype"  id="brieftype">
                                                <option value="Brief"<?php if ($sowType == "Brief") { ?> selected="selected" <?php } ?>>Brief</option>
                                                <option value="Detailed"<?php if ($sowType == "Detailed") { ?> selected="selected" <?php } ?>>Detailed</option>
                                            </select></div>
                                            
                                            <div class="col-sm-1-8 label-assign" style="padding-right:0px;">

                                            <label>Create From*:</label></div>
                                        <div class="col-sm-2-2 field-assign " style="padding-left:0px;">
                                            <select name="SOWfrom"  id="SOWfrom">
                                                <option value="From" <?php if ($sowFrom == "From") { ?> selected="selected" <?php } ?>>From Scratch</option>
                                                <option value="Copy" <?php if ($sowFrom == "Copy") { ?> selected="selected" <?php } ?>>Copy from another SOW</option>
                                            </select></div>

                                        <div class="grid2 submit-btn save-bottom"> 

                                            <button type="submit" class="btn btn-success"><i class="fa fa-check-square"></i> </button>

                                        </div>
                                    </div> 


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

                <div class="table-subject">

                    <!--  -->

                    <div class="widget">
                        <div class="whead">
                            <h6 id="active-desciplines" >
                                <b>
                                    <i class="fa fa-dot-circle-o"></i>                    
                                    List of SOWs
                                </b> 
                            </h6>

                            <span style="line-height: 35px;">
                                <a onclick="bottomfooterfunc()" href="#hidden-data" class="hidden-entry" >
                                    <!--                            Go to Hidden List-->
                                    <span class="icon-eye_box bck">

                                    </span>
                                </a>
                                <?php if ($uacc == "Full Control") { ?>
                                    <?php if (!isset($_REQUEST['Edit'])) { ?>
                                        <a onclick="showaddform()" style="cursor:pointer"  class="addform-btn " id=""><span class="icon-plus_box  bck"></span></a>
                                        <a onclick="hideform()" style="cursor:pointer" class="hideform-btn " id=""><span class="icon-minus_box  bck"></span></a>

                                    <?php } else {
                                        ?>
                                        <a onclick="showeditform()" style="cursor:pointer"  class="eform-btn " id=""><i class="fa fa-pencil-square-o green-icon"></i></a>
                                        <a onclick="hideeform()" style="cursor:pointer" class="hideeform-btn " id=""><span class="icon-minus_box  bck"></span></a>

                                    <?php }
                                    ?>
                                <?php } ?>
                            </span>

                            
                        </div>

                        <table cellpadding="0" cellspacing="0" class="" style="width:100%;position:relative !important"  id="active_descipline_tbl">

                            <thead>
                                <tr >
                                    <th width="1%" class="first"></th>
                                    <th width="13%" align="left" valign="top" class="prj-table-datecreated" scope="col" b>Date Created<br />
                                        (yyyy.mm.dd)
                                    </th>
                                    <th width="12%" align="left" valign="top" class="prj-table-code"  scope="col">SOW From/ <br />
                                        ID/ REV</th>
                                    <th width="25%" align="left" valign="top" class="prj-table-name" scope="col">SOW Name<br />
                                        Project      Name/ 
                                        Client Name</th>
                                    <th width="6%" align="left" valign="top" class="prj-table-dates"  scope="col">SOW<br />
                                        Type</th>
                                    <th width="9%" align="left" valign="top" class="prj-table-vendour"  scope="col">Prepared<br />
                                        By</th>
                                    <th width="26%" align="left" valign="top" class="prj-table-currency"  scope="col">Sent <br />Status</th>
                                    <th width="8%" align="right" valign="top" class="prj-table-actions action-icons"  scope="col"> Actions<br />
                                     Status   </th>
                                </tr>
                            </thead>
                            <tbody>
                                <?php
                                $result = mysql_query("SELECT DISTINCT projects.projectName,client.clientName,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') 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 >
                                        <td class="first"></td>
                                        <td  class="prj-table-datecreated" align="left" valign="top"  scope="col"><?php echo $row['sowDateCreated']; ?></td>
                                        <td class="prj-table-code" align="left" valign="top" ><?php echo $row['sowFrom']; ?><br />
                                            <?php echo "SOW-" . $row['sowID']; ?><br />Rev (<?php echo  $row['sowrev']; ?>)</td>
                                        <td  class="prj-table-name" align="left" valign="top" ><?php echo $row['sowName'] . " <br/>" . $row['projectName'] . " / " . $row['clientName']; ?></td>
                                        <td class="prj-table-dates"  align="left" valign="top" ><?php echo $row['sowType']; ?></td>

                                        <td class="prj-table-vendour"  align="left" valign="top" ><?php echo $PreparedBy; ?></td>
                                        <td class="prj-table-currency" align="left" valign="top" ><span class="WBSl-remarks">
                                          <?php if($row["sowStatus"]==3){?>
											Sent </br> for Review
<?php } else echo "Not Sent </br>for Review" ?>
                                      </span></td>
                                        <td  class="prj-table-actions action-icons"  align="right" valign="top" >&nbsp;
                                            <?php if($row["sowStatus"]!=3)
												{ 
											 if ($uacc == "Full Control") { ?>

                                                <div class="close-icon"> <a href="javascript:void(0)" onclick="showConfirm('<?php echo $row["sowID"]; ?>')">
                                                        <div class="glyph">
                                                            <div class="fs1 iconb" data-icon="" title="Delete"></div>
                                                        </div>
                                                    </a> </div><?php } else { ?>
                                                <div class="glyph">
                                                    <div class="fs1 iconb" data-icon="" title="Delete"></div>
                                                </div>

                                            <?php } ?>
                                            <?php if ($uacc == "Full Control") { ?>

                                                <div class="edit-icon"> <a href="SOW1.php?Edit=<?php echo $row["sowID"]; ?>">
                                                        <div class="glyph">
                                                            <div class="fs1 iconb" data-icon="" title="Edit"></div>
                                                        </div> 
                                                    </a></div>
                                            <?php } else { ?>
                                                <div class="glyph">
                                                    <div class="fs1 iconb" data-icon="" title="Edit"></div>
                                                </div> 

                                            <?php } ?>
                                             <?php if ($uacc == "Full Control") { ?><div class="eye-icon"><a href="../../DB/03-scope/SowDB.php?InActive=<?php echo $row['sowID']; ?>">
                                                        <div class="glyph">
                                                            <div class="fs1 iconb" data-icon="" title="Hide" ></div>
                                                        </div>
                                                    </a></div>
                                            <?php } else { ?>  <div class="glyph">
                                                    <div class="fs1 iconb" data-icon="" title="Hide" ></div>
                                                </div><?php } } ?> 
 <div class="edit-icon">
                                            <a  href="SOW2PV.php?BID=<?php echo $row["sowID"]; ?>"> <img src="../includes/images/icons/documentation3.png" border="0" class="imgview" title="View detail"> </a> <a href="SOWPrintView.php?BID=<?php echo $row["sowID"]; ?>"><img class="imgview" src="../includes/images/icons/print.png" title="Print Preview"></a> 
</div>
                                           
 
                                </td>
                                        <?php
                                        $typid = $row["sowID"];
                                        $path = "03-scope";
                                        $type = "SOW1";
                                        $attach = 0;
                                        $reminder = 0;
                                        $note = 1;
                                        include('../includes/noterow2.php');
                                        ?>

                                    </tr>

                                <?php } ?>
                            </tbody>
                        </table>
                  
                    
                    </div>
                </div>
            </div>
        </div>
    </div>
</section>

<footer>
    <div class="container">
        <div class="row">
            <div class="top-footer">
                <div class="instructions-cont">
                    <i class="fa fa-info-circle"></i>
                    <h6>Instructions </h6>
                    <span>
                        <a onclick="bottomfooterfunc()" href="#hidden-data" class="hidden-entry" >View The Hidden List </a> &nbsp;| 
                        <a href="#active-desciplines">Go to Active List</a></span>
                </div>
                <div class="left-warning"> Deletion is permanent and can not be retrieved.  If a  parameter has been used at other places, deletion might cause problems.  A 
                    parameter can be deleted only after its usage is removed from other places.  
                    If you dont want to see an entry or a parameter, you can hide it instead of deleting it.  A Hidden entry or parameter will  show as &quot;HIDDEN&quot; at all places where it was used before.  
                    <!--Table of Hidden Values is given below--> 
                </div>
            </div>
            <div class="bottom-footer" id="hidden-data">
                <table cellpadding="0" cellspacing="0" width="100%" class="tDark" id="hidden-entry">

                    <thead>
                        <tr >
                            <td width="13%" align="left" valign="top" bgcolor="#E2E2E2"  class="prj-table-datecreated" scope="col">Date Created<br />
                                (yyyy.mm.dd)
                                </th></td>
                            <td width="12%" align="left" valign="top" bgcolor="#E2E2E2" class="prj-table-code" scope="col">SOW From/ <br />
                                ID/ REV</td>
                            <td width="25%" align="left" valign="top" bgcolor="#E2E2E2"  class="prj-table-name" scope="col">SOW Name<br />
                                Project      Name/ 
                                Client Name</td>
                            <td width="5%" align="left" valign="top" bgcolor="#E2E2E2" class="prj-table-dates" scope="col">SOW<br />
                                Type </td>
                            <td width="11%"  align="left" valign="top" bgcolor="#E2E2E2" class="prj-table-vendour" scope="col">Prepared<br />
                                By</td>
                            <td width="24%" align="left" valign="top" bgcolor="#E2E2E2"  class="prj-table-currency" scope="col">Sent <br />Status</td>
                            <td width="10%"  align="right" valign="top" bgcolor="#E2E2E2" class="prj-table-actions action-icons" scope="col"> Unhide</td>
                        </tr>
                    </thead>
                    <tbody>
                        <?php
                        $result = mysql_query("SELECT DISTINCT projects.projectName,client.clientName,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 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 >
                                <td  class="prj-table-datecreated" valign="top"  scope="col"><?php echo $row['sowDateCreated']; ?></td>
                                <td  class="prj-table-code"  align="left" valign="top" ><?php echo $row['sowFrom']; ?><br />
                                    <?php echo "SOW-" . $row['sowID']; ?><br /><?php echo  $row['sowrev']; ?>
                              </td>
                                <td  class="prj-table-name" align="left" valign="top" ><?php echo $row['sowName'] . "<br/>" . $row['projectName'] . " / " . $row['clientName']; ?></td>
                                <td  class="prj-table-dates" align="left" valign="top" ><?php echo $row['sowType']; ?></td>    
                                <td class="prj-table-vendour"  align="left" valign="top" ><?php echo $PreparedBy; ?><br /></td>
                                <td   class="prj-table-currency"  align="left" valign="top" ><span class="WBSl-remarks">
                                  <?php if($row["sowStatus"]==3){?>
									Sent </br>for Review
<?php } else echo "Not Sent </br>for Review" ?>
                                </span></td>
                                <td  class="prj-table-actions action-icons" align="right" valign="top" >
                                    <?php if ($uacc == "Full Control") { ?>
                                        <a href="../../DB/03-scope/SowDB.php?Active=<?php echo $row['sowID']; ?>"><img border="0" src="../images/icon-look.jpg" width="22" height="14" title="Active" alt="Active"/></a
                                        ><?php } else { ?>
                                        <img src="../images/icon-look.jpg" width="22" height="14" border="0" title="Active" alt="Active" />
                                    <?php } ?>   
                                </td>
                            </tr>
                        <?php } ?>
                    </tbody>
                </table>

            </div>
        </div>
    </div>
</footer>
<script>

</script>
<script type="text/javascript">

    function format(d) {
        // `d` is the original data object for the ro
        console.log(d.details);
        return '<div class="notesDIV">' + d.details + '</div>';
    }

    active_units_table = $('#active_descipline_tbl').DataTable({
        "columns": [
            {
                "className": 'details-control',
                "orderable": false,
                "defaultContent": '',
            },
            {"data": "date_created"},
            {"data": "project_code"},
            {"data": "project_name"},
            {"data": "project_dates"},
            {"data": "project_location"},
            {"data": "project_currency"},
            {"data": "action"},
            {"data": "details", "visible": false}
        ],
        "order": [[1, 'asc']],
        "lengthMenu": [[-1, 10, 25, 50], ["All", 10, 25, 50]],
        "sPaginationType": "full_numbers",
        "sDom": '<"tOptions" f><"top">rt<"bottom" pil><"clear">',
        "oLanguage": {
            "sLengthMenu": "<span class='showentries'>Show entries:</span> _MENU_"
        },
        "aoColumnDefs": [{"bSortable": false, "aTargets": [8]}]
    });

    $('div.dataTables_filter input[type=search]').attr('placeholder', 'Type to Start Search');
    var active_descipline_table1 = $('#active_descipline_tbl').DataTable();
    new $.fn.dataTable.FixedHeader(active_descipline_table1, {
        bottom: true
    });
    $('.details-control').ready(function () {

        no_of_records = active_units_table.page.info().recordsTotal;
        for (var i = 0; i < no_of_records; i++) {
            active_units_table.row(i).child(format(active_units_table.row(i).data())).show();
        }
        ;



    });
    function showConfirm(did) {
        alertify.confirm("This record will be deleted and cannot be retrieved. Press OK to Delete.", function (e) {
            if (e) {
                window.location.href = "../../DB/03-scope/SowDB.php?del=" + did;

            } else {
                return 0;
            }
        });
    }

</script>
