<? global $vis_language; ?>
<input type="hidden" name="vis_module_id" value="<? echo $module_details['module_id']; ?>" />
<div class="form-group">
   <label class="col-sm-2 control-label"><? echo $vis_language['TXTDOMAIN']; ?></label>
   <div class="col-sm-10">
	<select name="vis_domain"  class="form-control input-sm selectpicker" onchange="$('#vis_module_details_list_<? echo $module_details['module_id']; ?>').visExecution('load_area',{'vis_module':'setting', 'vis_operation':'module_setting', 'vis_module_id':<? echo $module_details['module_id']; ?>, 'vis_domain_id':$(this).val()})">
	<? for ($i = 0; $i < count($domain); $i++) 
				echo '<option value="' . $domain[$i]['domain_id'] . '"' . ($domain[$i]['domain_id'] == $domain_sel ? ' selected="selected"' : '') . '>' . $domain[$i]['domain_name'] . '</option>';  ?>
	</select>
   </div>
</div>
<div class="form-group">
   <label class="col-sm-2 control-label"><? echo $vis_language['TXTCOMPANYNAME']; ?></label>
   <div class="col-sm-10">
	  <input class="form-control input-sm" type="text" name="vis_company_name" value="<?= $module_setting['vis_company_name'] ?>" >
   </div>
</div>	
<div class="form-group">
   <label class="col-sm-2 control-label"><? echo $vis_language['TXTEMAILADDRESS']; ?></label>
   <div class="col-sm-10">
	  <input class="form-control input-sm" type="text" name="vis_email_add" value="<?= $module_setting['vis_email_add'] ?>" >
   </div>
</div>	
<div class="form-group">
   <label class="col-sm-2 control-label"><? echo $vis_language['TXTWEBSITEURL']; ?></label>
   <div class="col-sm-10">
	  <input class="form-control input-sm" type="text" name="vis_website_url" value="<?= $module_setting['vis_website_url'] ?>" >
   </div>
</div>			
<div class="form-group">
   <label class="col-sm-2 control-label"><? echo $vis_language['TXTLOGOURL']; ?></label>
   <div class="col-sm-10">
	  <input class="form-control input-sm" type="text" name="vis_logo_url" value="<?= $module_setting['vis_logo_url'] ?>" >
   </div>
</div>	
<div class="form-group">
   <label class="col-sm-2 control-label"><? echo $vis_language['TXTPAYTOTEXT']; ?></label>
   <div class="col-sm-10">
	  <textarea name="vis_pay_to_text" class="form-control input-sm"><?= $module_setting['vis_pay_to_text']?></textarea>  
   </div>
</div>
<? if($module_details['module_id']>3) { ?>
<div class="form-group">
  <label class="col-sm-2 control-label"><? echo $vis_language['TXTSTATUS']; ?></label>
  <div class="col-sm-1">
	 <label class="switch  <? if($module_details['is_enabled']==0) echo 'radio-no-uncheck'; ?>">
	 <input type="checkbox" name="vis_status"  id="vis_status" <? if($module_details['is_enabled']==1) echo 'checked="checked"'; ?> > 
	 <span ></span>
	 </label>
  </div>
</div>
<? } ?>
<div class="line b-b line-lg pull-in"></div>
<br/>             
<div class="form-group">
   <div class="col-sm-4 col-sm-offset-2">		   			   
	  <button type="button" class="btn btn-primary" onclick="$('#vis_workpanel_div').visExecution('submit_form',{'vis_module':'setting', 'vis_operation':'update_setting', 'vis_form':'vis_module_form'})"><? echo $vis_language['TXTUPDATE']; ?></button>
   </div>
</div>
</form>  
<script>	
   $(".selectpicker").selectpicker();
</script>