<form class="uk-form uk-form-horizontal admin-settings-page forms" id="forms">
<?php echo CHtml::hiddenField('action','adminSettings')?>

<h2><?php echo Yii::t("default","Website")?></h2>
<div class="uk-form-row">
  <label class="uk-form-label"><?php echo Yii::t("default","Title")?></label>  
  <?php 
  echo CHtml::textField('website_title',
  Yii::app()->functions->getOptionAdmin('website_title'),
  array(
    'class'=>"uk-form-width-large",
    'placeholder'=>"Title of the website"
  ))
  ?> 
</div>

<?php 
$country_list=require_once "CountryCode.php";
$country_list2=$country_list;
//array_unshift($country_list2,t("All"));

$merchant_specific_country=Yii::app()->functions->getOptionAdmin('merchant_specific_country');
if (!empty($merchant_specific_country)){
	$merchant_specific_country=json_decode($merchant_specific_country);
}
?>

<div class="uk-form-row"> 
 <label class="uk-form-label"><?php echo Yii::t('default',"Website Logo")?></label>
  <div style="display:inline-table;margin-left:1px;" class="button uk-button" id="photo"><?php echo Yii::t('default',"Browse")?></div>	  
  <DIV  style="display:none;" class="photo_chart_status" >
	<div id="percent_bar" class="photo_percent_bar"></div>
	<div id="progress_bar" class="photo_progress_bar">
	  <div id="status_bar" class="photo_status_bar"></div>
	</div>
  </DIV>		  
</div>
<p class="uk-text-muted"><?php echo Yii::t("default","Website logo 334x56")?></p>

<?php $website_logo=Yii::app()->functions->getOptionAdmin('website_logo');?>
<?php if (!empty($website_logo)):?>
<div class="uk-form-row"> 
<?php else :?>
<div class="input_block preview">
<?php endif;?>
<label><?php echo Yii::t('default',"Preview")?></label>
<div class="image_preview">
 <?php if (!empty($website_logo)):?>
 <input type="hidden" name="photo" value="<?php echo $website_logo;?>">
 <img class="uk-thumbnail uk-thumbnail-small" src="<?php echo Yii::app()->request->baseUrl."/upload/".$website_logo;?>?>" alt="" title="">
 <p><a href="javascript:rm_preview();"><?php echo Yii::t("default","Remove image")?></a></p>
 <?php endif;?>
</div>
</div>

<h2><?php echo Yii::t("default","Login & Signup")?></h2>

<div class="uk-form-row">
  <label class="uk-form-label"><?php echo Yii::t("default","Disabled Popup")?>?</label>  
  <?php 
  echo CHtml::checkBox('website_disabled_login_popup',
   Yii::app()->functions->getOptionAdmin('website_disabled_login_popup')=="yes"?true:false
   ,array(
   'class'=>"icheck",
   'value'=>"yes"
  ))
  ?>  
</div>
<p class="uk-text-muted uk-text-small"><?php echo t("disbaled popup instead use a page");?></p>


<div class="uk-form-row">
  <label class="uk-form-label"><?php echo Yii::t("default","Enabled Mobile Verification")?>?</label>  
  <?php 
  echo CHtml::checkBox('website_enabled_mobile_verification',
   Yii::app()->functions->getOptionAdmin('website_enabled_mobile_verification')=="yes"?true:false
   ,array(
   'class'=>"icheck",
   'value'=>"yes"
  ))
  ?>  
</div>

<h2><?php echo Yii::t("default","Terms and Conditions")?></h2>

<div class="uk-form-row">
  <label class="uk-form-label"><?php echo Yii::t("default","Enabled On Merchant Signup")?>?</label>  
  <?php 
  echo CHtml::checkBox('website_terms_merchant',
   Yii::app()->functions->getOptionAdmin('website_terms_merchant')=="yes"?true:false
   ,array(
   'class'=>"icheck",
   'value'=>"yes"
  ))
  ?>  
</div>

<div class="uk-form-row url_1">
  <label class="uk-form-label"><?php echo Yii::t("default","URL Link")?></label>  
  <?php 
  echo CHtml::textField('website_terms_merchant_url',
  Yii::app()->functions->getOptionAdmin('website_terms_merchant_url'),array(
  'class'=>"uk-form-width-large"
  ));
  ?>  
</div>

<div class="uk-form-row">
  <label class="uk-form-label"><?php echo Yii::t("default","Enabled On Customer Signup")?>?</label>  
  <?php 
  echo CHtml::checkBox('website_terms_customer',
   Yii::app()->functions->getOptionAdmin('website_terms_customer')=="yes"?true:false
   ,array(
   'class'=>"icheck",
   'value'=>"yes"
  ))
  ?>  
</div>

<div class="uk-form-row url_2">
  <label class="uk-form-label"><?php echo Yii::t("default","URL Link")?></label>  
  <?php 
  echo CHtml::textField('website_terms_customer_url',
  Yii::app()->functions->getOptionAdmin('website_terms_customer_url'),array(
  'class'=>"uk-form-width-large"
  ));
  ?>    
</div>

<h2><?php echo Yii::t("default","Reviews")?></h2>

<div class="uk-form-row">
  <label class="uk-form-label"><?php echo Yii::t("default","Allow only those who has actual purchases")?></label>  
  <?php 
  echo CHtml::checkBox('website_reviews_actual_purchase',
   Yii::app()->functions->getOptionAdmin('website_reviews_actual_purchase')=="yes"?true:false
   ,array(
   'class'=>"icheck",
   'value'=>"yes"
  ))
  ?>  
</div>

<div class="uk-form-row">
  <label class="uk-form-label"><?php echo Yii::t("default","Disabled Merchant can edit review or delete")?></label>  
  <?php 
  echo CHtml::checkBox('merchant_can_edit_reviews',
   Yii::app()->functions->getOptionAdmin('merchant_can_edit_reviews')=="yes"?true:false
   ,array(
   'class'=>"icheck",
   'value'=>"yes"
  ))
  ?>  
</div>

<h2><?php echo Yii::t("default","Website Security")?></h2>

<div class="uk-form-row">
  <label class="uk-form-label"><?php echo Yii::t("default","Admin Do Not Allow User Multiple Sigin")?>?</label>  
  <?php 
  echo CHtml::checkBox('website_admin_mutiple_login',
   Yii::app()->functions->getOptionAdmin('website_admin_mutiple_login')=="yes"?true:false
   ,array(
   'class'=>"icheck",
   'value'=>"yes"
  ))
  ?>  
</div>

<div class="uk-form-row">
  <label class="uk-form-label"><?php echo Yii::t("default","Merchant Do Not Allow User Multiple Sigin")?>?</label>  
  <?php 
  echo CHtml::checkBox('website_merchant_mutiple_login',
   Yii::app()->functions->getOptionAdmin('website_merchant_mutiple_login')=="yes"?true:false
   ,array(
   'class'=>"icheck",
   'value'=>"yes"
  ))
  ?>  
</div>


<h2><?php echo Yii::t("default","Guest Checkout")?></h2>

<div class="uk-form-row">
  <label class="uk-form-label"><?php echo Yii::t("default","Disabled Guest Checkout")?>?</label>  
  <?php 
  echo CHtml::checkBox('website_disabled_guest_checkout',
   Yii::app()->functions->getOptionAdmin('website_disabled_guest_checkout')=="yes"?true:false
   ,array(
   'class'=>"icheck",
   'value'=>"yes"
  ))
  ?>  
</div>

<!--<h2><?php echo t("Spicy Dish")?></h2>

<div class="uk-form-row"> 
 <label class="uk-form-label"><?php echo Yii::t('default',"Upload Spicy Dish Icon")?></label>
  <div style="display:inline-table;margin-left:1px;" class="button uk-button" id="spicydish"><?php echo Yii::t('default',"Browse")?></div>	  
  <DIV  style="display:none;" class="spicydish_chart_status" >
	<div id="percent_bar" class="spicydish_percent_bar"></div>
	<div id="progress_bar" class="spicydish_progress_bar">
	  <div id="status_bar" class="spicydish_status_bar"></div>
	</div>
  </DIV>		  
</div>

<?php $spicydish=Yii::app()->functions->getOptionAdmin('spicydish');?>
<?php if (!empty($spicydish)):?>
<div class="uk-form-row"> 
<?php else :?>
<div class="input_block preview_spicydish">
<?php endif;?>
<label><?php echo Yii::t('default',"Preview")?></label>
<div class="image_preview_spicydish">
 <?php if (!empty($spicydish)):?>
 <input type="hidden" name="spicydish" value="<?php echo $spicydish;?>">
 <img class="uk-thumbnail" src="<?php echo Yii::app()->request->baseUrl."/upload/".$spicydish;?>?>" alt="" title="">
 <p><a href="javascript:rm_spicydish_preview();"><?php echo Yii::t("default","Remove image")?></a></p>
 <?php endif;?>
</div>
</div>-->

<h2><?php echo Yii::t("default","Website Timezone")?></h2>

<div class="uk-form-row">
<label class="uk-form-label"><?php echo Yii::t("default","Time Zone")?></label>
<?php 
echo CHtml::dropDownList('website_timezone',
Yii::app()->functions->getOptionAdmin("website_timezone")
,Yii::app()->functions->timezoneList())
?>
</div>


<div class="uk-form-row">
<label class="uk-form-label"><?php echo Yii::t("default","Date Format")?></label>
<?php 
echo CHtml::textField('website_date_format',
Yii::app()->functions->getOptionAdmin("website_date_format")
,array(
  'class'=>'',
  'placeholder'=>"M d,Y",
  "maxlength"=>20
));
echo " ".t("Default")." M d,Y"
?>
</div>
<p class="uk-text-muted uk-text-small"><?php echo t("Note: must be a valid php date format")?>
<br/><a target="_blank" href="http://php.net/manual/en/function.date.php">http://php.net/manual/en/function.date.php</a>
</p>


<div class="uk-form-row">
<label class="uk-form-label"><?php echo Yii::t("default","Time Format")?></label>
<?php 
echo CHtml::textField('website_time_format',
Yii::app()->functions->getOptionAdmin("website_time_format")
,array(
  'class'=>'',
  'placeholder'=>"G:i:s",
  "maxlength"=>20
));
echo " ".t("Default")." G:i:s"
?>
</div>
<p class="uk-text-muted uk-text-small"><?php echo t("Note: must be a valid php time format")?>
<br/><a target="_blank" href="http://php.net/manual/en/function.date.php">http://php.net/manual/en/function.date.php</a>
</p>

<div class="uk-form-row">
<label class="uk-form-label"><?php echo Yii::t("default","Date Picker Format")?></label>
<?php 
echo CHtml::dropDownList('website_date_picker_format',
Yii::app()->functions->getOptionAdmin("website_date_picker_format")
,array(
'yy-mm-dd'=>"yy-mm-dd - default",
'mm-dd-yy'=>"mm-dd-yy",
'dd-mm-yy'=>"dd-mm-yy",
'yy-M-d'=>"yy-M-d"
));
?>
</div>


<div class="uk-form-row">
<label class="uk-form-label"><?php echo Yii::t("default","Time Picker Format")?></label>
<?php 
echo CHtml::dropDownList('website_time_picker_format',
Yii::app()->functions->getOptionAdmin("website_time_picker_format")
,array(
'24'=>t("24 hour format"),
 '12'=>t("12 hour format"),
));
?>
</div>



<h2><?php echo Yii::t("default","Website Ordering")?></h2>

<div class="uk-form-row">
  <label class="uk-form-label"><?php echo Yii::t("default","Disabled")?>?</label>  
  <?php 
  echo CHtml::checkBox('disabled_website_ordering',
   Yii::app()->functions->getOptionAdmin('disabled_website_ordering')=="yes"?true:false
   ,array(
   'class'=>"icheck",
   'value'=>"yes"
  ))
  ?>  
</div>

<div class="uk-form-row">
  <label class="uk-form-label"><?php echo Yii::t("default","Hide food price")?>?</label>  
  <?php 
  echo CHtml::checkBox('website_hide_foodprice',
   Yii::app()->functions->getOptionAdmin('website_hide_foodprice')=="yes"?true:false
   ,array(
   'class'=>"icheck",
   'value'=>"yes"
  ))
  ?>  
</div>

<div class="uk-form-row">
  <label class="uk-form-label"><?php echo Yii::t("default","Disabled single food item auto add to cart")?>?</label>  
  <?php 
  echo CHtml::checkBox('website_disbaled_auto_cart',
   Yii::app()->functions->getOptionAdmin('website_disbaled_auto_cart')=="yes"?true:false
   ,array(
   'class'=>"icheck",
   'value'=>"yes"
  ))
  ?>  
</div>


<h3><?php echo Yii::t("default","Menu Options")?></h3>

<div class="uk-form-row">
  <label class="uk-form-label"><?php echo Yii::t("default","Default Menu")?></label>
  <?php 
  echo CHtml::radioButton('admin_activated_menu',
  Yii::app()->functions->getOptionAdmin("admin_activated_menu")==""?true:false
  ,array(
    'value'=>"",
    'class'=>"icheck"
  ))
  ?> 
</div>

<div class="uk-form-row">
  <label class="uk-form-label"><?php echo Yii::t("default","Activate Menu 1")?></label>
  <?php 
  echo CHtml::radioButton('admin_activated_menu',
  Yii::app()->functions->getOptionAdmin("admin_activated_menu",$merchant_id)=="1"?true:false
  ,array(
    'value'=>"1",
    'class'=>"icheck"
  ))
  ?> 
</div>

<div class="uk-form-row">
  <label class="uk-form-label"><?php echo Yii::t("default","Activate Menu 2")?></label>
  <?php 
  echo CHtml::radioButton('admin_activated_menu',
  Yii::app()->functions->getOptionAdmin("admin_activated_menu",$merchant_id)=="2"?true:false
  ,array(
    'value'=>"2",
    'class'=>"icheck"
  ))
  ?> 
</div>


<h2><?php echo Yii::t("default","Order Status")?></h2>
<div class="uk-form-row">
  <label class="uk-form-label"><?php echo Yii::t("default","Nos. of days merchant can change the order status")?></label>  
  <?php 
  echo CHtml::textField('merchant_days_can_edit_status',
  Yii::app()->functions->getOptionAdmin('merchant_days_can_edit_status'),
  array(
    'class'=>"numeric_only"    
  ))
  ?>   
</div>
<p class="uk-text-muted"><?php echo t("leave empty if you want merchant can change the order status anytime")?></p>



<h2><?php echo Yii::t("default","Credit Card Payment Management")?></h2>

<div class="uk-form-row">
  <label class="uk-form-label"><?php echo Yii::t("default","Disabled")?>?</label>  
  <?php 
  echo CHtml::checkBox('disabled_cc_management',
   Yii::app()->functions->getOptionAdmin('disabled_cc_management')=="yes"?true:false
   ,array(
   'class'=>"icheck",
   'value'=>"yes"
  ))
  ?>  
</div>

<h2><?php echo Yii::t("default","Featured Restaurants")?></h2>

<div class="uk-form-row">
  <label class="uk-form-label"><?php echo Yii::t("default","Disabled")?>?</label>  
  <?php 
  echo CHtml::checkBox('disabled_featured_merchant',
   Yii::app()->functions->getOptionAdmin('disabled_featured_merchant')=="yes"?true:false
   ,array(
   'class'=>"icheck",
   'value'=>"yes"
  ))
  ?>  
</div>

<h2><?php echo Yii::t("default","Subscription")?></h2>

<div class="uk-form-row">
  <label class="uk-form-label"><?php echo Yii::t("default","Disabled")?>?</label>  
  <?php 
  echo CHtml::checkBox('disabled_subscription',
   Yii::app()->functions->getOptionAdmin('disabled_subscription')=="yes"?true:false
   ,array(
   'class'=>"icheck",
   'value'=>"yes"
  ))
  ?>  
</div>

<h2><?php echo Yii::t("default","Merchant Registration")?></h2>

<div class="uk-form-row">
  <label class="uk-form-label"><?php echo Yii::t("default","Disabled Registration")?>?</label>  
  <?php 
  echo CHtml::checkBox('merchant_disabled_registration',
   Yii::app()->functions->getOptionAdmin('merchant_disabled_registration')=="yes"?true:false
   ,array(
   'class'=>"icheck",
   'value'=>"yes"
  ))
  ?>
  <p class="uk-text-muted"><?php echo Yii::t("default","Check this if you want to disabled merchant registration")?></p>
</div>

<div class="uk-form-row">
  <label class="uk-form-label"><?php echo Yii::t("default","Enabled ABN")?></label>  
  <?php 
  echo CHtml::checkBox('merchant_reg_abn',
   Yii::app()->functions->getOptionAdmin('merchant_reg_abn')=="yes"?true:false
   ,array(
   'class'=>"icheck",
   'value'=>"yes"
  ))
  ?>  
</div>


<div class="uk-form-row">
  <label class="uk-form-label"><?php echo Yii::t("default","Registration Status")?></label>  
  <?php 
  echo CHtml::dropDownList('merchant_sigup_status',
  Yii::app()->functions->getOptionAdmin('merchant_sigup_status')
  ,clientStatus(),array(
   'class'=>"uk-form-width-large"
  ));
  ?>
  <p class="uk-text-muted"><?php echo Yii::t("default","The status of the merchant after registration")?></p>
</div>

<div class="uk-form-row">
  <label class="uk-form-label"><?php echo Yii::t("default","Default Country")?></label>  
  <?php 
  echo CHtml::dropDownList('merchant_default_country',
  Yii::app()->functions->getOptionAdmin('merchant_default_country')
  ,$country_list,array(
   'class'=>"uk-form-width-large"
  ));
  ?>  
</div>

<div class="uk-form-row">
  <label class="uk-form-label"><?php echo Yii::t("default","Specific Country")?></label>  
  <?php 
  echo CHtml::dropDownList('merchant_specific_country[]',
  $merchant_specific_country
  ,$country_list2,array(
   'class'=>"uk-form-width-large chosen",
   "multiple"=>"multiple"
  ));
  ?> 
  <p class="uk-text-muted"><?php echo t("leave empty to show all country")?></p> 
</div>

<div class="uk-form-row">
  <label class="uk-form-label"><?php echo Yii::t("default","Disabled Verification")?>?</label>  
  <?php 
  echo CHtml::checkBox('merchant_email_verification',
   Yii::app()->functions->getOptionAdmin('merchant_email_verification')=="yes"?true:false
   ,array(
   'class'=>"icheck",
   'value'=>"yes"
  ))
  ?>
  <p class="uk-text-muted"><?php echo Yii::t("default","Check this if you want to disabled merchant Verification")?></p>
</div>

<!--<div class="uk-form-row">
  <label class="uk-form-label">Enabled Payment?</label>  
  <?php 
  echo CHtml::checkBox('merchant_payment_enabled',
  Yii::app()->functions->getOptionAdmin('merchant_payment_enabled')=="yes"?true:false
  ,array(
   'class'=>"icheck",
   'value'=>"yes"
  ))
  ?>
  <p class="uk-text-muted">Check this if you want to collect payment during registration</p>  
</div>-->
  

<h2><?php echo Yii::t("default","Payment Gateway")?></h2>
<div class="uk-form-row">
  <label class="uk-form-label"><?php echo Yii::t("default","Disabled Paypal")?>?</label>
  <?php 
  echo CHtml::checkBox('admin_enabled_paypal',
  Yii::app()->functions->getOptionAdmin('admin_enabled_paypal')=="yes"?true:false
  ,array(
    'value'=>"yes",
    'class'=>"icheck"
  ))
  ?> 
</div>

<div class="uk-form-row">
  <label class="uk-form-label"><?php echo Yii::t("default","Disabled Card Payment")?>?</label>
  <?php 
  echo CHtml::checkBox('admin_enabled_card',
  Yii::app()->functions->getOptionAdmin('admin_enabled_card')=="yes"?true:false
  ,array(
    'value'=>"yes",
    'class'=>"icheck"
  ));      
  ?> 
</div>


<h2><?php echo Yii::t("default","Address & Currency")?></h2>
<div class="uk-form-row">
  <label class="uk-form-label"><?php echo Yii::t("default","Country")?></label>  
  <?php 
  echo CHtml::dropDownList('admin_country_set',
  Yii::app()->functions->getOptionAdmin('admin_country_set')
  ,$country_list,array(
    'class'=>"uk-form-width-large",
    'data-validation'=>"required"
  ));
  ?> 
</div>

<div class="uk-form-row">
<label class="uk-form-label"><?php echo Yii::t('default',"Address")?></label>  
<?php 
  echo CHtml::textField('website_address',
  Yii::app()->functions->getOptionAdmin('website_address'),
  array(
    'class'=>"uk-form-width-large"    
  ))
  ?> 
</div>

<div class="uk-form-row">
<label class="uk-form-label"><?php echo Yii::t('default',"Contact Phone Number")?></label>  
<?php 
  echo CHtml::textField('website_contact_phone',
  Yii::app()->functions->getOptionAdmin('website_contact_phone'),
  array(
    'class'=>"uk-form-width-large"    
  ))
  ?> 
</div>

<div class="uk-form-row">
<label class="uk-form-label"><?php echo Yii::t('default',"Contact email")?></label>  
<?php 
  echo CHtml::textField('website_contact_email',
  Yii::app()->functions->getOptionAdmin('website_contact_email'),
  array(
    'class'=>"uk-form-width-large" ,
    //'data-validation'=>"email"
  ))
  ?> 
</div>

<div class="uk-form-row">
<label class="uk-form-label"><?php echo Yii::t('default',"Global Sender email")?></label>  
<?php 
  echo CHtml::textField('global_admin_sender_email',
  Yii::app()->functions->getOptionAdmin('global_admin_sender_email'),
  array(
    'class'=>"uk-form-width-large" ,
    //'data-validation'=>"email"
  ))
  ?> 
</div>
<p class="uk-text-muted">(<?php echo t("This email address will be use when sending email")?>)</p>

<div class="uk-form-row">
  <label class="uk-form-label"><?php echo Yii::t("default","Currency Code")?></label>  
  <?php 
  echo CHtml::dropDownList('admin_currency_set',
  Yii::app()->functions->getOptionAdmin('admin_currency_set')
  ,
  (array)Yii::app()->functions->currencyList()
  ,array(
    'class'=>"uk-form-width-large",
    'data-validation'=>"required"
  ));
  ?> 
</div>

<div class="uk-form-row">
  <label class="uk-form-label"><?php echo Yii::t("default","Currency code position")?></label>  
  <?php 
  echo CHtml::dropDownList('admin_currency_position',
  Yii::app()->functions->getOptionAdmin('admin_currency_position')
  ,
  (array)Yii::app()->functions->currencyPosition()
  ,array(
    'class'=>"uk-form-width-large",
    'data-validation'=>"required"
  ));
  ?> 
</div>

<?php $admin_decimal_place=Yii::app()->functions->getOptionAdmin('admin_decimal_place');?>
<?php $admin_use_separators=Yii::app()->functions->getOptionAdmin('admin_use_separators');?>
<div class="uk-form-row">
  <label class="uk-form-label"><?php echo Yii::t("default","Decimal Places")?></label>
  <?php echo CHtml::dropDownList('admin_decimal_place',empty($admin_decimal_place)?2:$admin_decimal_place,Yii::app()->functions->decimalPlacesList()
  ,array(
  'class'=>'uk-form-width-large',
  'data-validation'=>"required"
  ))?>
</div>

<div class="uk-form-row">
  <label class="uk-form-label"><?php echo Yii::t("default","Use 1000 Separators(,)")?>?</label>
  <?php 
  echo CHtml::checkBox('admin_use_separators',
  $admin_use_separators=="yes"?true:false
  ,array(
    'value'=>"yes",
    'class'=>"icheck"
  ))
  ?>
</div>

<div class="uk-form-row">
  <label class="uk-form-label"><?php echo Yii::t("default","Thousand Separators")?></label>
  <?php 
  echo CHtml::textField('admin_thousand_separator',
  Yii::app()->functions->getOptionAdmin('admin_thousand_separator'),array(
   'class'=>"uk-form-width-small",
   'maxlength'=>1
  ));
  ?>
</div>
<p class="uk-text-muted">(<?php echo t("leave empty to use standard comma separators")?>)</p>

<div class="uk-form-row">
  <label class="uk-form-label"><?php echo Yii::t("default","Decimal Separators")?></label>
  <?php 
  echo CHtml::textField('admin_decimal_separator',
  Yii::app()->functions->getOptionAdmin('admin_decimal_separator'),array(
    'class'=>"uk-form-width-small",
    'maxlength'=>1
  ));
  ?>
</div>
<p class="uk-text-muted">(<?php echo t("leave empty to use standard decimal separators")?>)</p>

<hr></hr>


<h2><?php echo Yii::t("default","Home Search Area")?></h2>



<div class="uk-form-row"> 
 <label class="uk-form-label"><?php echo Yii::t('default',"Map Icon Marker")?></label>
  <div style="display:inline-table;margin-left:1px;" class="button uk-button" id="photo2"><?php echo Yii::t('default',"Browse")?></div>	  
  <DIV  style="display:none;" class="photo2_chart_status" >
	<div id="percent_bar" class="photo2_percent_bar"></div>
	<div id="progress_bar" class="photo2_progress_bar">
	  <div id="status_bar" class="photo2_status_bar"></div>
	</div>
  </DIV>		  
</div>
<p class="uk-text-muted"><?php echo Yii::t("default","icon size 32x32 or 62x62")?></p>

<?php $map_marker=Yii::app()->functions->getOptionAdmin('map_marker');?>
<?php if (!empty($map_marker)):?>
<div class="uk-form-row"> 
<?php else :?>
<div class="input_block preview">
<?php endif;?>
<label><?php echo Yii::t('default',"Preview")?></label>
<div class="image_preview2">
 <?php if (!empty($map_marker)):?>
 <input type="hidden" name="photo2" value="<?php echo $map_marker;?>">
 <img class="" src="<?php echo Yii::app()->request->baseUrl."/upload/".$map_marker;?>?>" alt="" title="">
 <p><a href="javascript:rm_preview2();"><?php echo Yii::t("default","Remove image")?></a></p>
 <?php endif;?>
</div>
</div>


<div class="uk-form-row">
  <label class="uk-form-label"><?php echo Yii::t("default","Enabled advance search")?>?</label>  
  <?php 
  echo CHtml::checkBox('enabled_advance_search',
   Yii::app()->functions->getOptionAdmin('enabled_advance_search')=="yes"?true:false
   ,array(
   'class'=>"icheck",
   'value'=>"yes"
  ))
  ?>
  <p class="uk-text-muted"><?php echo Yii::t("default","Check this if you want to enabled advance search on homepage")?></p>
</div>

<div class="uk-form-row">
  <label class="uk-form-label"><?php echo Yii::t("default","Enabled Maps")?>?</label>  
  <?php 
  echo CHtml::checkBox('enabled_search_map',
   Yii::app()->functions->getOptionAdmin('enabled_search_map')=="yes"?true:false
   ,array(
   'class'=>"icheck",
   'value'=>"yes"
  ))
  ?>
  <p class="uk-text-muted"><?php echo Yii::t("default","Check this if you want to enabled maps in search result")?></p>
</div>

<div class="uk-form-row">
  <label class="uk-form-label"><?php echo Yii::t("default","Disabled Share location")?>?</label>
  <?php 
  echo CHtml::checkBox('disabled_share_location',
  Yii::app()->functions->getOptionAdmin('disabled_share_location')=="yes"?true:false
  ,array(
    'value'=>"yes",
    'class'=>"icheck"
  ))
  ?>   
</div>

<div class="uk-form-row">
  <label class="uk-form-label"><?php echo Yii::t("default","Disabled Google Auto Address")?>?</label>
  <?php 
  echo CHtml::checkBox('google_auto_address',
  Yii::app()->functions->getOptionAdmin('google_auto_address')=="yes"?true:false
  ,array(
    'value'=>"yes",
    'class'=>"icheck"
  ))
  ?>   
</div>
<p class="uk-text-muted"><?php echo Yii::t("default","This will disabled the google auto address fill")?></p>


<div class="uk-form-row">
  <label class="uk-form-label"><?php echo Yii::t("default","Set Google Default Country On")?>?</label>
  <?php 
  echo CHtml::checkBox('google_default_country',
  Yii::app()->functions->getOptionAdmin('google_default_country')=="yes"?true:false
  ,array(
    'value'=>"yes",
    'class'=>"icheck"
  ))
  ?>   
</div>

<div class="uk-form-row">
  <label class="uk-form-label"><?php echo Yii::t("default","Search within radius")?></label>  
  <?php 
  echo CHtml::textField('home_search_radius',
  Yii::app()->functions->getOptionAdmin('home_search_radius'),
  array(    
    "class"=>"numeric_only",
    "placeholder"=>Yii::t("default","Default is 10")
  ))
  ?> 
  
  <?php 
  echo CHtml::dropDownList('home_search_unit_type',
  Yii::app()->functions->getOptionAdmin("home_search_unit_type"),Yii::app()->functions->distanceOption());
  ?>    
</div>


<hr></hr>

<div class="uk-form-row">
  <label class="uk-form-label"><?php echo Yii::t("default","Home Title Text")?></label>  
  <?php 
  echo CHtml::textField('home_search_text',
  Yii::app()->functions->getOptionAdmin('home_search_text'),
  array(
    'class'=>"uk-form-width-large",
    'placeholder'=>"Find restaurants near you"
  ))
  ?> 
</div>

<div class="uk-form-row">
  <label class="uk-form-label"><?php echo Yii::t("default","Home SubTitle Text")?></label>  
  <?php 
  echo CHtml::textField('home_search_subtext',
  Yii::app()->functions->getOptionAdmin('home_search_subtext'),
  array(
    'class'=>"uk-form-width-large",
    'placeholder'=>"Order Delivery Food Online From Local Restaurants"
  ))
  ?> 
</div>

<div class="uk-form-row">
  <label class="uk-form-label"><?php echo Yii::t("default","Search As Address")?></label>
  <?php 
  echo CHtml::radioButton('home_search_mode',
  Yii::app()->functions->getOptionAdmin('home_search_mode')=="address"?true:false
  ,array(
    'value'=>"address",
    'class'=>"icheck"
  ))
  ?> 
  <p class="uk-text-muted"><?php echo Yii::t("default","User will search restaurant using address (default)")?></p>
</div>

<div class="uk-form-row">
  <label class="uk-form-label"><?php echo Yii::t("default","Search As PostCode")?></label>
  <?php 
  echo CHtml::radioButton('home_search_mode',
  Yii::app()->functions->getOptionAdmin('home_search_mode')=="postcode"?true:false
  ,array(
    'value'=>"postcode",
    'class'=>"icheck"
  ));      
  ?> 
  <p class="uk-text-muted"><?php echo Yii::t("default","User will search restaurant using postcode/zipcode")?></p>
</div>

<div class="uk-form-row">
<label class="uk-form-label"></label>
<input type="submit" value="<?php echo Yii::t("default","Save")?>" class="uk-button uk-form-width-medium uk-button-success">
</div>

</form>