<?php
require('application/language/english/translations_lang.php');
require ('config.php');
if($_POST['test'] == ''){
header("location:".Config::BASE_URL.'/index.php/backend'); 
exit();
}else{

?>


<!DOCTYPE html>
<html> 
<head>
    <title>Frontend Configuration Page</title>
       <link rel="stylesheet" type="text/css" href="assets/ext/bootstrap/css/bootstrap.min.css">
    <link rel="stylesheet" type="text/css" href="assets/ext/jquery-ui/jquery-ui.min.css">
    <link rel="stylesheet" type="text/css" href="assets/ext/jquery-qtip/jquery.qtip.min.css">
    <link rel="stylesheet" type="text/css" href="assets/ext/cookieconsent/cookieconsent.min.css">
    <link rel="stylesheet" type="text/css" href="assets/css/frontend.css">
    <link rel="stylesheet" type="text/css" href="assets/css/general.css">
        <link rel="stylesheet" type="text/css" href="assets/css/frontend_general.php">

    
</head> 

<body style="background-color:#ffffff"> 
<?php
echo '<a href='.'"'.Config::BASE_URL.'/index.php/backend/settings'.'"'.'>'.'<image src='.'"'.'leftarrow.png'.'"'. 'width='.'"'.'100'.'"'. 'height='.'"'.'50'.'"'.'>'.'</a>'.'<br>';
?>
<h3>Frontend Configuration</h3>
<form method="POST" action="requiredfrontendconfigprocess.php"> 
         <?php 
         $on = ''; 
         $off = ''; 
         if($lang['first_name_onoff'] == 'on'){
        $on = 'selected'; 
             
         }else{
             $off= 'selected'; 
         }
         
         ?>
<div class="form-group">
    <label for="first-name-onoff" class="control-label">First Name On/Off*</label>
     <select id="first-name-onoff" name="first-name-onoff" class="col-xs-12 col-sm-4 form-control">

         
            <option value="on" name="on" <?php echo ' '.$on;?> >ON</option>
            <option value="off" name="off"<?php  echo ' '.$off;?> >OFF</option>
     </select> 
</div> 

<div class="form-group">
    <label for="first-name-required" class="control-label">First Name Required or Unrequired*</label>
     <select id="first-name-required" name="first-name-required" class="col-xs-12 col-sm-4 form-control">
                  <?php 
         $required = ''; 
         $requirednot = ''; 
         if($lang['first_name_required'] == 'required form-control'){
        $required = 'selected'; 
             
         }else{
             $requirednot= 'selected'; 
         }
         
         ?>
         
<option value="form-control" name="form-control" <?php echo ' '.$requirednot?>>Unrequired</option>
            <option value="required form-control" name="required form-control" <?php echo ' '.$required?>>Required</option>
     </select> 
</div> 
<br><br>
        
<div class="form-group">
    <label for="last-name-onoff" class="control-label">Last Name On/Off*</label>
     <select id="last-name-onoff" name="last-name-onoff" class="col-xs-12 col-sm-4 form-control">
          <?php 
         $on = ''; 
         $off = ''; 
         if($lang['last_name_onoff'] == 'on'){
        $on = 'selected'; 
             
         }else{
             $off= 'selected'; 
         }
         
         ?>
         
                 <option value="on" name="on" <?php echo ' '.$on;?> >ON</option>
            <option value="off" name="off"<?php  echo ' '.$off;?> >OFF</option>
     </select> 
</div> 

<div class="form-group">
    <label for="last-name-required" class="control-label">Last Name Required or Unrequired*</label>
     <select id="last-name-required" name="last-name-required" class="col-xs-12 col-sm-4 form-control">
                  <?php 
         $required = ''; 
         $requirednot = ''; 
         if($lang['last_name_required'] == 'required form-control'){
        $required = 'selected'; 
             
         }else{
             $requirednot= 'selected'; 
         }
         
         ?>
         
            <option value="form-control" name="form-control" <?php echo ' '.$requirednot?>>Unrequired</option>
            <option value="required form-control" name="required form-control" <?php echo ' '.$required?>>Required</option>
     </select> 
</div> 
<br><br>

<div class="form-group">
    <label for="birth-date-onoff" class="control-label">Birthdate On/Off*</label>
     <select id="birth-date-onoff" name="birth-date-onoff" class="col-xs-12 col-sm-4 form-control">
         <?php 
         $on = ''; 
         $off = ''; 
         if($lang['birth_date_onoff'] == 'on'){
        $on = 'selected'; 
             
         }else{
             $off= 'selected'; 
         }
         
         ?>
         
                 <option value="on" name="on" <?php echo ' '.$on;?> >ON</option>
            <option value="off" name="off"<?php  echo ' '.$off;?> >OFF</option>
     </select> 
</div> 

<div class="form-group">
    <label for="birth-date-required" class="control-label">Birthdate On/Off*</label>
     <select id="birth-date-required" name="birth-date-required" class="col-xs-12 col-sm-4 form-control">
                  <?php 
         $required = ''; 
         $requirednot = ''; 
         if($lang['birth_date_required'] == 'required form-control'){
        $required = 'selected'; 
             
         }else{
             $requirednot= 'selected'; 
         }
         
         ?>
         
<option value="form-control" name="form-control" <?php echo ' '.$requirednot?>>Unrequired</option>
            <option value="required form-control" name="required form-control" <?php echo ' '.$required?>>Required</option>
     </select> 
</div> 
<br><br>

<div class="form-group">
    <label for="email-onoff" class="control-label">Email On/Off*</label>
     <select id="email-onoff" name="email-onoff" class="col-xs-12 col-sm-4 form-control">
         <?php 
         $on = ''; 
         $off = ''; 
         if($lang['email_onoff'] == 'on'){
        $on = 'selected'; 
             
         }else{
             $off= 'selected'; 
         }
         
         ?>
         
                <option value="on" name="on" <?php echo ' '.$on;?> >ON</option>
            <option value="off" name="off"<?php  echo ' '.$off;?> >OFF</option>
     </select> 
</div> 

<div class="form-group">
    <label for="email-required" class="control-label">Email Required or Unrequired*</label>
     <select id="email-required" name="email-required" class="col-xs-12 col-sm-4 form-control">
                  <?php 
         $required = ''; 
         $requirednot = ''; 
         if($lang['email_required'] == 'required form-control'){
        $required = 'selected'; 
             
         }else{
             $requirednot= 'selected'; 
         }
         
         ?>
         
<option value="form-control" name="form-control" <?php echo ' '.$requirednot?>>Unrequired</option>
            <option value="required form-control" name="required form-control" <?php echo ' '.$required?>>Required</option>
     </select> 
</div> <br><br>



<div class="form-group">
    <label for="phone-number-onoff" class="control-label">Phone Number On/Off*</label>
     <select id="phone-number-onoff" name="phone-number-onoff" class="col-xs-12 col-sm-4 form-control">
         <?php 
         $on = ''; 
         $off = ''; 
         if($lang['phone_number_onoff'] == 'on'){
        $on = 'selected'; 
             
         }else{
             $off= 'selected'; 
         }
         
         ?>
         
 <option value="on" name="on" <?php echo ' '.$on;?> >ON</option>
            <option value="off" name="off"<?php  echo ' '.$off;?> >OFF</option>
     </select> 
</div> 

<div class="form-group">
    <label for="phone-number-required" class="control-label">Phone Number Required or Unrequired*</label>
     <select id="phone-number-required" name="phone-number-required" class="col-xs-12 col-sm-4 form-control">
                  <?php 
         $required = ''; 
         $requirednot = ''; 
         if($lang['phone_number_required'] == 'required form-control'){
        $required = 'selected'; 
             
         }else{
             $requirednot= 'selected'; 
         }
         
         ?>
         
<option value="form-control" name="form-control" <?php echo ' '.$requirednot?>>Unrequired</option>
            <option value="required form-control" name="required form-control" <?php echo ' '.$required?>>Required</option>
     </select> 
</div> <br><br>


<div class="form-group">
    <label for="address-onoff" class="control-label">Address On/Off*</label>
     <select id="address-onoff" name="address-onoff" class="col-xs-12 col-sm-4 form-control">
         <?php 
         $on = ''; 
         $off = ''; 
         if($lang['address_onoff'] == 'on'){
        $on = 'selected'; 
             
         }else{
             $off= 'selected'; 
         }
         
         ?>
         
< <option value="on" name="on" <?php echo ' '.$on;?> >ON</option>
            <option value="off" name="off"<?php  echo ' '.$off;?> >OFF</option>
     </select> 
</div> 

<div class="form-group">
    <label for="address-required" class="control-label">Address Required or Unrequired*</label>
     <select id="address-required" name="address-required" class="col-xs-12 col-sm-4 form-control">
                  <?php 
         $required = ''; 
         $requirednot = ''; 
         if($lang['address_required'] == 'required form-control'){
        $required = 'selected'; 
             
         }else{
             $requirednot= 'selected'; 
         }
         
         ?>
         
<option value="form-control" name="form-control" <?php echo ' '.$requirednot?>>Unrequired</option>
            <option value="required form-control" name="required form-control" <?php echo ' '.$required?>>Required</option>
     </select> 
</div> <br><br>



<div class="form-group">
    <label for="city-onoff" class="control-label">City On/Off*</label>
     <select id="city-onoff" name="city-onoff" class="col-xs-12 col-sm-4 form-control">
         <?php 
         $on = ''; 
         $off = ''; 
         if($lang['city_onoff'] == 'on'){
        $on = 'selected'; 
             
         }else{
             $off= 'selected'; 
         }
         
         ?>
         
                  <option value="on" name="on" <?php echo ' '.$on;?> >ON</option>
            <option value="off" name="off"<?php  echo ' '.$off;?> >OFF</option>
     </select> 
</div> 

<div class="form-group">
    <label for="city-required" class="control-label">City Required or Unrequired*</label>
     <select id="city-required" name="city-required" class="col-xs-12 col-sm-4 form-control">
                  <?php 
         $required = ''; 
         $requirednot = ''; 
         if($lang['city_required'] == 'required form-control'){
        $required = 'selected'; 
             
         }else{
             $requirednot= 'selected'; 
         }
         
         ?>
         
<option value="form-control" name="form-control" <?php echo ' '.$requirednot?>>Unrequired</option>
            <option value="required form-control" name="required form-control" <?php echo ' '.$required?>>Required</option>
     </select> 
</div> <br><br>


<div class="form-group">
    <label for="zip-code-onoff" class="control-label">Zip Code On/Off*</label>
     <select id="zip-code-onoff" name="zip-code-onoff" class="col-xs-12 col-sm-4 form-control">
         <?php 
         $on = ''; 
         $off = ''; 
         if($lang['zip_code_onoff'] == 'on'){
        $on = 'selected'; 
             
         }else{
             $off= 'selected'; 
         }
         
         ?>
         
            <      <option value="on" name="on" <?php echo ' '.$on;?> >ON</option>
            <option value="off" name="off"<?php  echo ' '.$off;?> >OFF</option>
     </select> 
</div> 

<div class="form-group">
    <label for="zip-code-required" class="control-label">Zip Code Required or Unrequired*</label>
     <select id="zip-code-required" name="zip-code-required" class="col-xs-12 col-sm-4 form-control">
                             <?php 
         $required = ''; 
         $requirednot = ''; 
         if($lang['zip_code_required'] == 'required form-control'){
        $required = 'selected'; 
             
         }else{
             $requirednot= 'selected'; 
         }
         
         ?>
         
<option value="form-control" name="form-control" <?php echo ' '.$requirednot?>>Unrequired</option>
            <option value="required form-control" name="required form-control" <?php echo ' '.$required?>>Required</option>
     </select> 
</div> <br><br>


<div class="form-group">
    <label for="notes-onoff" class="control-label">Notes On/Off*</label>
     <select id="notes-onoff" name="notes-onoff" class="col-xs-12 col-sm-4 form-control">
         <?php 
         $on = ''; 
         $off = ''; 
         if($lang['notes_onoff'] == 'on'){
        $on = 'selected'; 
             
         }else{

             $off= 'selected'; 
         }
         
         ?>
         
                 <option value="on" name="on" <?php echo ' '.$on;?> >ON</option>
            <option value="off" name="off"<?php  echo ' '.$off;?> >OFF</option>
     </select> 
</div> 

<div class="form-group">
    <label for="notes-required" class="control-label">Notes Required or Unrequired*</label>
     <select id="notes-required" name="notes-required" class="col-xs-12 col-sm-4 form-control">
                             <?php 
         $required = ''; 
         $requirednot = ''; 
         if($lang['notes_required'] == 'required form-control'){
        $required = 'selected'; 
             
         }else{
             $requirednot= 'selected'; 
         }
         
         ?>
         
<option value="form-control" name="form-control" <?php echo ' '.$requirednot?>>Unrequired</option>
            <option value="required form-control" name="required form-control" <?php echo ' '.$required?>>Required</option>
     </select> 
</div> <br><br>


<input type="submit" id="submit" name="submit" class="btn btn-primary">
</form>


</body>
</html>
<?php
}

?>