<?php include 'sets.php';?>
<?php
$superuser="1";
?>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Webadmin <?php echo $domain ?></title>
<?php include 'codes.php';?>
<script type='text/javascript'>
$(window).load(function(){
$(':radio').change(function (event) {
    var id = $(this).data('id');
    $('#' + id).addClass('show').siblings().removeClass('show');
});
});
</script>
</head>
<body>

<?php include 'navbar.php';?>
    
<div class="container">
<div class="frame">
<div class="frametitles fedit"><a href="siteinfo.php"><?php echo $adminsiteinfo ?></a></div>
<div class="framein">

<?php
$result1 = $mysqli->query("SELECT * FROM lang WHERE main=1");
$row = $result1->fetch_array(); 
$dir1=$row['dir'];

$result = $mysqli->query("SELECT * FROM siteinfo");
$row = $result->fetch_array();
$site_id=$row['site_id'];
$domain=$row['domain'];
$firma=$row['firma'];
$sitemail=$row['sitemail'];
$paymail=$row['paymail'];
$x=$row['x'];
$y=$row['y'];
$map=$row['map'];
$resurl=$row['resurl'];
$resform=$row['resform'];
$payurl=$row['payurl'];
$sitenr=$row['sitenr'];
$sitecode=$row['sitecode'];
$promocode=$row['promocode'];
$sitescript=$row['sitescript'];
$sitescript2=$row['sitescript2'];
$sitescript3=$row['sitescript3'];
$langadmin=$row['langadmin'];
$user=$row['user'];
$editor=$row['editor'];
$package=$row['package'];
$cookies=$row['cookies'];
$type=$row['type'];
$inquiry=$row['inquiry'];
$payment=$row['payment'];
$availability=$row['availability'];
$imgsite=$row['imgsite'];
$imgcat=$row['imgcat'];
$imgitem=$row['imgitem'];
$nritems=$row['nritems'];
$decimalprice=$row['decimalprice'];
$discount=$row['discount'];
$discount2=$row['discount2'];
$weight=$row['weight'];
$weightunit=$row['weightunit'];
$weightpac=$row['weightpac'];
$siteitem=$row['siteitem'];
$siteform=$row['siteform'];
$sitepath=$row['sitepath'];
$stylesheet=$row['stylesheet'];
$fontcss=$row['fontcss'];
$customcss=$row['customcss'];
$webadmincss=$row['webadmincss'];
?>

<?php
if  (isset($_POST['submit'])) {
$domain = $mysqli->real_escape_string(stripslashes($_REQUEST['domain']));
$firma = $mysqli->real_escape_string(stripslashes($_REQUEST['firma']));
$firma=preg_replace('/\s+/', '-', $firma);
$sitemail = $mysqli->real_escape_string(stripslashes($_REQUEST['sitemail']));
$paymail = $mysqli->real_escape_string(stripslashes($_REQUEST['paymail']));
$x = $mysqli->real_escape_string(stripslashes($_REQUEST['x']));
$y = $mysqli->real_escape_string(stripslashes($_REQUEST['y'])); 
$map = $mysqli->real_escape_string(stripslashes($_REQUEST['map']));
$resurl = $mysqli->real_escape_string(stripslashes($_REQUEST['resurl']));
$resform = $mysqli->real_escape_string(stripslashes($_REQUEST['resform']));
$payurl = $mysqli->real_escape_string(stripslashes($_REQUEST['payurl']));
$sitenr = $mysqli->real_escape_string(stripslashes($_REQUEST['sitenr']));
$sitecode = $mysqli->real_escape_string(stripslashes($_REQUEST['sitecode']));
$promocode = $mysqli->real_escape_string(stripslashes($_REQUEST['promocode']));	 
$sitescript = $mysqli->real_escape_string(stripslashes($_REQUEST['sitescript']));
$sitescript2 = $mysqli->real_escape_string(stripslashes($_REQUEST['sitescript2']));	
$sitescript3 = $mysqli->real_escape_string(stripslashes($_REQUEST['sitescript3']));	
$langadmin = $mysqli->real_escape_string(stripslashes($_REQUEST['langadmin']));
$user = $mysqli->real_escape_string(stripslashes($_REQUEST['user']));
$editor = $mysqli->real_escape_string(stripslashes($_REQUEST['editor']));
$package = $mysqli->real_escape_string(stripslashes($_REQUEST['package']));
$cookies = $mysqli->real_escape_string(stripslashes($_REQUEST['cookies']));
$type = $mysqli->real_escape_string(stripslashes($_REQUEST['type']));
$inquiry = $mysqli->real_escape_string(stripslashes($_REQUEST['inquiry']));
$payment = $mysqli->real_escape_string(stripslashes($_REQUEST['payment']));
$availability = $mysqli->real_escape_string(stripslashes($_REQUEST['availability']));
$imgsite = $mysqli->real_escape_string(stripslashes($_REQUEST['imgsite']));
$imgcat = $mysqli->real_escape_string(stripslashes($_REQUEST['imgcat']));
$imgitem = $mysqli->real_escape_string(stripslashes($_REQUEST['imgitem']));
$nritems = $mysqli->real_escape_string(stripslashes($_REQUEST['nritems']));
$decimalprice = $mysqli->real_escape_string(stripslashes($_REQUEST['decimalprice']));
$discount = $mysqli->real_escape_string(stripslashes($_REQUEST['discount']));
$discount2 = $mysqli->real_escape_string(stripslashes($_REQUEST['discount2']));
$weight = $mysqli->real_escape_string(stripslashes($_REQUEST['weight']));
$weightunit = $mysqli->real_escape_string(stripslashes($_REQUEST['weightunit']));
$weightpac = $mysqli->real_escape_string(stripslashes($_REQUEST['weightpac']));
$siteitem = $mysqli->real_escape_string(stripslashes($_REQUEST['siteitem']));
$siteform = $mysqli->real_escape_string(stripslashes($_REQUEST['siteform']));
$sitepath = $mysqli->real_escape_string(stripslashes($_REQUEST['sitepath']));
$webadmincss = $mysqli->real_escape_string(stripslashes($_REQUEST['webadmincss']));
			 	 
$mysqli->query("UPDATE siteinfo SET domain='$domain', firma='$firma', sitemail='$sitemail', paymail='$paymail', x='$x', y='$y', map='$map', resurl='$resurl', resform='$resform', payurl='$payurl', sitenr='$sitenr', sitecode='$sitecode', promocode='$promocode', sitescript='$sitescript', sitescript2='$sitescript2', sitescript3='$sitescript3', langadmin='$langadmin', user='$user', editor='$editor', package='$package', cookies='$cookies', type='$type', inquiry='$inquiry', payment='$payment', availability='$availability', imgsite='$imgsite', imgcat='$imgcat', imgitem='$imgitem', nritems='$nritems', decimalprice='$decimalprice', discount='$discount', discount2='$discount2', 
weight='$weight', weightunit='$weightunit', weightpac='$weightpac', siteitem='$siteitem', siteform='$siteform', sitepath='$sitepath', webadmincss='$webadmincss'");

if ($type==2) {
$mysqli->query("UPDATE categories SET active='1' WHERE type=4 AND priority=1");
} else {
$mysqli->query("UPDATE categories SET active='0' WHERE type=4 AND priority=1");
}
if ($availability==0) {
$mysqli->query("UPDATE prices SET available='0'");
}
?>
<meta http-equiv="refresh" content="0">
<?php } ?>

<?php
if  (isset($_POST['submit'])) {

foreach($_REQUEST['id'] as $key => $idvalue ) {
$active = $mysqli->real_escape_string(stripslashes($_REQUEST['active'.$idvalue]));	
$mysqli->query("UPDATE menu SET active='$active' WHERE id='$idvalue'");
}

$result1 = $mysqli->query("SELECT * FROM menu ORDER BY id");
while($row = $result1->fetch_array()) {
$ffeature=$row['feature'];
$factive=$row['active'];
			
$fresultmenu=$$ffeature="$factive";
}
if ($newsletter==1) {
$mysqli->query("UPDATE categories SET active='1' WHERE type=4 AND priority=2");
} else {
$mysqli->query("UPDATE categories SET active='0' WHERE type=4 AND priority=2");
}
if ($reviews==1 OR $reviewsitem==1) {
$mysqli->query("UPDATE categories SET active='1' WHERE type=4 AND priority=3");
} else {
$mysqli->query("UPDATE categories SET active='0' WHERE type=4 AND priority=3");
}

}
?> 

<form name="forma" method="post" enctype="multipart/form-data">
  <table>
          <tr class="tcolor">
             <td class="tabletd1"><span class="icon icstyle2 fa-user-plus color3"></span></td>
             <td class="tabletd2 titles"><div class="strong padtop10 padbottom10">Super user</div></td>
             <td>
			 <input type="hidden" name="user" value="0"> <input type="checkbox" name="user" value="1"<?php if ($user==1) { echo " checked"; }?>>
</td>
           </tr>
          <tr class="overline bordercolor3">
            <td></td>
            <td></td>
            <td></td>
          </tr>
          <tr>
            <td class="tabletd1"><span class="icon icstyle2 fa-link color1"></span></td> 
            <td class="tabletd2 titles">Domain name</td>
            <td><input name="domain" type="text" value="<?php echo $domain ?>" size="100" maxlength="100" class="inputauto">
            </td>
          </tr>
          <tr class="overlinet">
            <td></td>
            <td></td>
            <td></td>
          </tr>
          <tr class="overline bordercolor1">
            <td></td>
            <td></td>
            <td></td>
          </tr>
          <tr>
            <td><span class="icon icstyle2 fa-ticket color1"></span></td>
            <td class="titles">Company</td>
            <td><input name="firma" type="text" value="<?php echo $firma ?>" size="100" maxlength="50" class="inputauto"></td>
          </tr>
          <tr>
            <td>&nbsp;</td>
            <td> Email</td>
            <td>
            <span class="icon fa-envelope" title="Website email"></span> &nbsp; <input name="sitemail" type="text" value="<?php echo $sitemail ?>" size="40" maxlength="100" class="inputauto">
            &nbsp; &nbsp; &nbsp; &nbsp; 
            <span class="icon fa-credit-card" title="Payment email"></span> &nbsp; <input name="paymail" type="text" value="<?php echo $paymail ?>" size="40" maxlength="100"class="inputauto">
            </td>
          </tr>
          <tr class="overlinet">
            <td></td>
            <td></td>
            <td></td>
          </tr>
          <tr class="overline bordercolor1">
            <td></td>
            <td></td>
            <td></td>
          </tr>
          <tr>
            <td><span class="icon icstyle2 fa-cogs color1"></span></td>
            <td class="titles">Settings</td>
            <td>&nbsp;</td>
          </tr>
           <tr>
             <td>
<?php
$result1 = $mysqli->query("SELECT * FROM lang WHERE id='$langadmin'");
$row = $result1->fetch_array();
$language=$row['language'];
$dir=$row['dir'];
?>
               <img src="img/<?php echo $dir ?>.png" width="16" height="16" title="<?php echo $language ?>" alt="<?php echo $language ?>"></td>
             <td>Webadmin <?php echo $adminlang ?></td>
             <td>
<select name="langadmin">
<?php
$result2 = $mysqli->query("SELECT * FROM lang WHERE active=1 ORDER BY priority");
while($row = $result2->fetch_array()) {
$langid=$row['id'];
$lang=$row['language'];
$dir=$row['dir'];
?>
<option value="<?php echo $langid ?>"<?php if ($langid==$langadmin) { echo " selected"; }?>> 
<?php echo $lang ?>
</option>
<?php } ?>
</select>
               &nbsp; &nbsp; &nbsp; &nbsp;
               Html editor    &nbsp; &nbsp;
     <input type="hidden" name="editor" value="0"> <input type="checkbox" name="editor" value="1"<?php if ($editor==1) { echo " checked"; }?>>
               &nbsp; &nbsp; &nbsp; &nbsp;
               <span title="1 basic, 2 business, 3 advanced (more effects)">Package</span>
                <input type="text" name="package" value="<?php echo $package ?>" size="2" maxlength="11" class="inputauto">
                &nbsp; &nbsp; &nbsp; &nbsp;
                Cookies
                <input type="hidden" name="cookies" value="0"> <input type="checkbox" name="cookies" value="1"<?php if ($cookies==1 OR $type==2) { echo " checked"; }?>>
             </td>
           </tr>
           <tr>
             <td></td>
             <td><hr></td>
             <td><hr></td>
           </tr>
           <tr>
             <td>&nbsp;</td>
             <td>Type</td>
             <td> Business
              <input type="radio" name="type" data-id="divtype1" value="1"<?php if ($type==1) { echo " checked"; }?>>
               &nbsp; &nbsp; &nbsp; &nbsp;
               Shop
               <input type="radio" name="type" data-id="divtype2" value="2"<?php if ($type==2) { echo " checked"; }?>>
               Inquiry
               <input type="hidden" name="inquiry" value="0"> <input type="checkbox" name="inquiry" value="1"<?php if ($inquiry==1) { echo " checked"; }?>>
               &nbsp; &nbsp; &nbsp; &nbsp;
               Hotel
               <input type="radio" name="type" data-id="divtype3" value="3"<?php if ($type==3) { echo " checked"; }?>>
               &nbsp; &nbsp; &nbsp; &nbsp;
               Travel
               <input type="radio" name="type" data-id="divtype5" value="5"<?php if ($type==5) { echo " checked"; }?>>
                &nbsp; &nbsp; &nbsp; &nbsp;
               Car rental
               <input type="radio" name="type" data-id="divtype6" value="6"<?php if ($type==6) { echo " checked"; }?>>
               &nbsp; &nbsp; &nbsp; &nbsp;
               Portal
              <input type="radio" name="type" data-id="divtype4" value="4"<?php if ($type==4) { echo " checked"; }?>>
             </td>
           </tr>
           <tr>
             <td></td>
             <td><hr></td>
             <td><hr></td>
           </tr>
           <tr>
             <td>&nbsp;</td>
             <td>Website</td>
             <td>
             <table class="tablewidth">
               <tr>
                 <td><?php echo $adminitems ?> / <?php echo $adminpage ?></td>
                 <td>&nbsp;</td>
                 <td><span title="If empty, default item url is the item name"><?php echo $adminitem ?> URL</span></td>
                 <td>&nbsp;</td>
                 <td><span title="<?php echo $adminimg ?> Website header"><?php echo $adminimg ?> site</span></td>
                 <td>&nbsp;</td>
                 <td><span title="<?php echo $adminitemimgdet ?>"><?php echo $adminitemimg ?></span></td>
                 <td>&nbsp;</td>
                 <td><span title="<?php echo $admincatimgdet ?>"><?php echo $admincatimg ?></span></td>
                 <td>&nbsp;</td>
                 <td><span title="<?php echo $adminformdet ?>"><?php echo $adminform ?></span></td>
                </tr>
               <tr>
                 <td><input name="nritems" type="text" value="<?php echo $nritems ?>" size="2" maxlength="3" class="inputauto"></td>
                 <td>&nbsp;</td>
                 <td><input name="siteitem" type="text" class="inputauto" value="<?php echo $siteitem ?>" size="10" maxlength="50"></td>
                 <td>&nbsp;</td>
                 <td><input type="hidden" name="imgsite" value="0"> <input type="checkbox" name="imgsite" value="1"<?php if ($imgsite==1) { echo " checked"; }?>></td>
                 <td>&nbsp;</td>
                 <td>
                 <input type="hidden" name="imgitem" value="0">
              <span class="icon icstyle fa-times-circle"></span> <input type="radio" name="imgitem" value="2"<?php if ($imgitem==2) { echo " checked"; }?>>
              &nbsp; &nbsp;
              <span class="icon icstyle fa-folder"></span> <input type="radio" name="imgitem" value="0"<?php if ($imgitem==0) { echo " checked"; }?>>
              &nbsp; &nbsp;
              <span class="icon icstyle fa-desktop"></span> <input type="radio" name="imgitem" value="1"<?php if ($imgitem==1) { echo " checked"; }?>>
                  </td>
                 <td>&nbsp;</td>
                 <td>
                 <input type="hidden" name="imgcat" value="0"> <input type="checkbox" name="imgcat" value="1"<?php if ($imgcat==1) { echo " checked"; }?>>
                  </td>
                 <td>&nbsp;</td>
                 <td><input name="siteform" type="text" class="inputauto" value="<?php echo $siteform ?>" size="10" maxlength="50"></td>
                </tr>
               </table>
               
               <table class="tablewidth">
               <tr>
                 <td><?php echo $adminprice ?> decimal</td>
                 <td>&nbsp;</td>
                 <td><span title="<?php echo $admindiscountdet ?>"><?php echo $admindiscount ?></span></td>
                 <td><span title="<?php echo $admindiscountdet ?>"><?php echo $admindiscount ?></span> <?php echo $adminchildren ?></td>
                 <td>&nbsp;</td>
                 <td><span title="<?php echo $adminweight ?>"><?php echo $adminweight ?></span></td>
                 <td>&nbsp;</td>
                 <td><span title="<?php echo $adminprice ?>">Package &#8364; / Kg </span></td>
                 <td>&nbsp;</td>
                 <td><a href="list-transport.php" class="color3"><span title="<?php echo $admintransportwdet ?>"><?php echo $admintransportw ?></span></a></td>
                </tr>
               <tr>
                 <td>
                 <input type="hidden" name="decimalprice" value="0"> <input type="checkbox" name="decimalprice" value="1"<?php if ($decimalprice==1) { echo " checked"; }?>>
                 </td>
                 <td>&nbsp;</td>
                 <td><input type="text" name="discount" value="<?php echo $discount ?>" size="2" maxlength="11" class="inputauto">
                  % </td>
                 <td><input type="text" name="discount2" value="<?php echo $discount2 ?>" size="2" maxlength="11" class="inputauto">
                  % </td>
                 <td>&nbsp;</td>
                 <td><select name="weightunit">
  <option value="1"<?php if ($weightunit==1) { echo " selected"; }?>> Kg </option>
<option value="1000"<?php if ($weightunit==1000) { echo " selected"; }?>> g </option>
</select>
               </td>
                 <td>&nbsp;</td>
                 <td><span class="icon icstyle fa-cube"></span>
                   <input type="text" name="weightpac" value="<?php echo $weightpac ?>" size="2" maxlength="11" class="inputauto">
                   /Kg</td>
                 <td>&nbsp;</td>
                 <td>
                 <span class="icon icstyle fa-truck"></span>
                 <input type="text" name="weight" value="<?php echo $weight ?>" size="2" maxlength="11" class="inputauto"> 
                   Kg</td>
                </tr>
               </table>
            <hr> 
            <span class="icon icstyle fa-folder-open"></span> 
            <div class="divwidth"> Site files path </div>
               <input name="sitepath" type="text" value="<?php echo $sitepath ?>" size="50" maxlength="100" class="inputauto">  
             <hr>
               <span class="icon icstyle fa-credit-card"></span>  
             <div class="divwidth"> Online payment   
             <input type="hidden" name="payment" value="0"> <input type="checkbox" name="payment" value="1"<?php if ($payment==1) { echo " checked"; }?>>
             </div>
                   <input name="payurl" type="text" value="<?php echo $payurl ?>" placeholder="url" size="50" class="inputauto">
                   &nbsp; &nbsp;
                  Site nr. <input name="sitenr" type="text" value="<?php echo $sitenr ?>" size="15" maxlength="100" class="inputauto">
                  &nbsp; &nbsp;
                  Site code  <input name="sitecode" type="text" value="<?php echo $sitecode ?>" size="15" maxlength="100" class="inputauto">
                <div id="divtype3"<?php if ($type!=3) { echo ' class="hide"'; }?>>
                   <hr>
                 <span class="icon icstyle fa-calendar-check-o"></span>  
                <div class="divwidth"> Online booking </div>
             <input name="resurl" type="text" value="<?php echo $resurl ?>" placeholder="url" size="70" class="inputauto">
             &nbsp; &nbsp;
             
             <select name="resform">
               <option value=""<?php if ($resform=='') { echo " selected"; }?>><?php echo $adminform ?></option>
               <option value="cosmores"<?php if ($resform=='cosmores') { echo " selected"; }?>>Cosmores</option>
               <option value="booking"<?php if ($resform=='booking') { echo " selected"; }?>>Booking</option>
               <option value="webhotelier"<?php if ($resform=='webhotelier') { echo " selected"; }?>>WebHotelier</option>
             </select>
             &nbsp; &nbsp;
                   <span title="<?php echo $adminavailabilitydet ?>"><?php echo $adminavailability ?></span>
             <input type="hidden" name="availability" value="0"> <input type="checkbox" name="availability" value="1"<?php if ($availability==1) { echo " checked"; }?>>
             </div>
             <div id="divtype1" class="hide"></div>
             <div id="divtype2" class="hide"></div>
             <div id="divtype4" class="hide"></div>
             <div id="divtype5" class="hide"></div>
             <div id="divtype6" class="hide"></div>
             </td>
           </tr>
            <tr class="overlinet">
            <td></td>
            <td></td>
            <td></td>
          </tr>
          <tr class="overline bordercolor1">
            <td></td>
            <td></td>
            <td></td>
          </tr>
          <tr>
            <td><span class="icon icstyle2 fa-check-square-o color1"></span></td>
            <td class="titles">Features</td>
            <td>&nbsp;</td>
          </tr>
           <tr>
             <td>&nbsp;</td>
             <td colspan="2">
<!--menu -->
<?php
$resultm = $mysqli->query("SELECT * FROM menu ORDER BY priority, id");
while($row = $resultm->fetch_array()) {
$id=$row['id'];
$nameft=$row['name'];
$feature=$row['feature'];
$active=$row['active'];
$priority=$row['priority'];

$namedet=$nameft."det";
?>
<div class="framerow2">
<div title="<?php echo $$namedet ?>"><?php echo $$nameft ?></div>
<div>
<input type="hidden" name="id[]" value="<?php echo $id ?>">
<input type="hidden" name="active<?php echo $id ?>" value="0"> <input type="checkbox" name="active<?php echo $id ?>" value="1"<?php if ($active==1) { echo " checked"; }?>>  
</div>
</div> 
<?php } ?> 
<!--end menu -->            
             </td>
           </tr>
           <tr class="overlinet">
            <td></td>
            <td></td>
            <td></td>
          </tr>
           <tr class="overline bordercolor1">
            <td></td>
            <td></td>
            <td></td>
          </tr>
          <tr>
            <td><span class="icon icstyle2 fa-code color1"></span></td>
            <td class="titles">Codes</td>
            <td>&nbsp;</td>
          </tr>
          <tr>
            <td>&nbsp;</td>
            <td colspan="2">
            <table>
              <tr>
                <td> <strong>Code 1</strong> before &lt;/head&gt;</td>
                <td><strong>Code 2</strong> in &lt;body&gt;</td>
                <td><strong>Code 3</strong> - before &lt;/body&gt;</td>
                <td><span class="icon icstyle fa-map"></span></td>
              </tr>
              <tr>
                <td><textarea name="sitescript" cols="50" rows="8" class="width100"><?php echo $sitescript ?></textarea></td>
                <td><textarea name="sitescript2" cols="50" rows="8" class="width100"><?php echo $sitescript2 ?></textarea></td>
                <td><textarea name="sitescript3" cols="50" rows="8" class="width100"><?php echo $sitescript3 ?></textarea></td>
                <td><textarea name="map" cols="50" rows="8" class="width100"><?php echo $map ?></textarea>
                <div class="hide">
                X  <input name="x" type="text" value="<?php echo $x ?>" size="25" maxlength="50" class="inputauto">
                &nbsp; &nbsp;
                Y  <input name="y" type="text" value="<?php echo $y ?>" size="25" maxlength="50" class="inputauto"> 
                </div>
                </td>
              </tr>
            </table>
            </td>
          </tr>
          <tr class="overlinet">
            <td></td>
            <td></td>
            <td></td>
          </tr>
          <tr class="overline bordercolor1">
            <td></td>
            <td></td>
            <td></td>
          </tr>
          <tr>
            <td colspan="3">
              <table>
                <tr>
                  <td><span class="icon icstyle2 fa-copyright color1"></span> </td>
                  <td><textarea name="promocode" cols="120" rows="2" class="inputauto"><?php echo $promocode ?></textarea></td>
                  <td><span class="icon icstyle2 color1">{ }</span>  </td>
                  <td>
                  <textarea name="webadmincss" cols="60" rows="2" class="inputauto"><?php echo $webadmincss ?></textarea>
                  </td>
                </tr>
            </table></td>
          </tr>
        </table>

       <hr>
  <div class="divallbuttons">
 <div class="divlist"></div>
<div class="divbuttons">
  <button type="submit" name="submit" class="button"><span class="icon fa-check"></span> <?php echo $adminsubmit ?></button>
  <button type="reset" name="reset" class="button buttondelete"><span class="icon fa-refresh"></span> <?php echo $adminreset ?></button> 
</div>
   </div>  
       
</form>   
   
</div>
</div>
</div>

<?php include 'menudown.php';?>

</body>
</html>