<?php
if (!isset($_SESSION['FirstName'])) {
    session_start();
}
    include ('includes/db1config.php');
    include ('../includes/mysql_connect.php');
    include ('includes/admin-config.php'); 
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">
<?php 
include('title.php'); 
echo'<link href="css/'.$stylesheet.'" rel="stylesheet" type="text/css" media="screen" />';  
echo'<link href="css/print_style.css" rel="stylesheet" type="text/css" media="print" />';
?>

<!-- <link rel="stylesheet" type="text/css" href="css/cssverticalmenu.css" /> -->


<!-- <script type="text/javascript" src="js/cssverticalmenu.js">
/***********************************************
* CSS Vertical List Menu- by JavaScript Kit (www.javascriptkit.com)
* Menu interface credits: http://www.dynamicdrive.com/style/csslibrary/item/glossy-vertical-menu/ 
* This notice must stay intact for usage
* Visit JavaScript Kit at http://www.javascriptkit.com/ for this script and 100s more
***********************************************/ 
</script> -->
<!--this script link needed for fantools posting -->
<!--<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js"></script>-->
<!-- for popup windows -->
<link href="css/popup-style.css" rel="stylesheet" type="text/css" media="all" />
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"> </script>
<script type="text/javascript" src="js/script.js"></script>
 <!-- end popup script-->

 <link rel="stylesheet" type="text/css" href="css/cssverticalmenu.css" />
<link rel="stylesheet" href="//code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css">
<script src="//code.jquery.com/jquery-1.9.1.js"></script>
<script src="//code.jquery.com/ui/1.10.3/jquery-ui.js"></script>


<!-- for popup windows -->
<link href="css/popup-style.css" rel="stylesheet" type="text/css" media="all" />
<script type="text/javascript" src="../js/jquery.popupoverlay.js"></script>
 <!-- end popup script-->

<link rel="stylesheet" type="text/css" href="css/widget-field.css" />
<style>
.dd-list li{
    background: #fff none repeat scroll 0 0;
    border: 1px solid #cccfd2;
    border-radius: 4px;
    color: #000;
    margin: 0 0 5px;
    padding: 5px;
    width: 97%;
}
.gear-icon{
    float: right;
    cursor: pointer;
}
.dd .gear-icon{
    display: none;
}
.menu-item-iframe {
    width: 810px;
    min-height: 300px;
    height: auto;
    border: none;
}
.widget-heading{
    color: #fff;
    font-family: Arial,Helvetica,sans-serif;
    font-size: 1.2em;
    font-weight: bold;
    cursor: default;
    pointer-events: none;
}
#draggable{
    background: #2077a1 none repeat scroll 0 0;
    border: 1px solid #cccfd2;
    border-radius: 6px;
    padding: 13px 13px 8px 11px;
}
.removeField{
    float: right;
    cursor: pointer;
    margin-left: 10px;
}
.dd .removeField{
    display: none;
}
.dd-handle {
    cursor: move;
}
</style>
</head>


<body>
<!--<input type="hidden" id="api_key" value="eebef818df9c4152ba90b9480a2096f1"/>
<input type="hidden" id="access_token" value="68b8bba9749e42959d6a4a22ff8fdea1" />
<input type="hidden" id="base_url" value="http://staging.fantools.net" />
<input type="hidden" id="fb_id" />
<input type="hidden" id="org_id" value="5"/> 
<input type="hidden" id="methods" value="save_deal"/> -->
<input type="hidden" id="api_key" value="6fd1b6ecee2f4aa198fd05ca239f6ebc"/>
<input type="hidden" id="access_token" value="a4ba3b27528c417389fc65319e5f5ef5" />
<input type="hidden" id="base_url" value="http://www.fantools.net" />
<input type="hidden" id="fb_id" value="164157603666312"/>
<input type="hidden" id="org_id" value="<?php echo $fantools_org_id; ?>"/> 
<input type="hidden" id="methods" value="save_deal"/> 
<div id="wrapper">

<!-- start header -->
<?php include('includes/header.inc.php'); ?>
<!-- end header-->

<!-- start page -->
<div id="page-container">
<div id="page-bg-top">


<!-- start content -->
<div id="content">
<div id="main-content">
   
        <div class="post">
          <div class="entry">
          
          <br />
<h1>Edit Widgets</h1>

<div id="single-admin-button4">
<ul>
<a href="index.php"><li>BACK TO HOME ADMIN</li></a>
</ul>
</div>

<?php 
if($_SESSION['adminkey']=="security"){
include "editwidgetsub.php"; 
} else {
    echo '<font color="red"><div align="center">You are not authorized to view this page. <br>Please <a href="index.php"><font color="blue">login here</font></a>.</div></font>';
}
?>
            
            
<br />

</div><!-- end entry-->

<br />

</div><!-- end post-->

</div><!-- end main-content-->

</div><!-- end content -->
    
<!-- start sidebar -->
<?php include('includes/admin-sidebar.inc.php'); ?>
<!--sidebar-->


<div style="clear: both;">&nbsp;</div>
<div id="page-bg-btm">
</div><!-- end page-bg-btm div -->
</div><!-- end page-bg-top div -->
</div><!-- end page-container -->



</div><!-- end wrapper div-->

<!-- end page -->


<!--footer-->



</body>
</html>
