<?php
global $vis_language;
$module_setting=$object->get_module_setting('module_id='.$module_details['module_id'], VIS_STAFF_ID, VIS_LOCATION_AREA);?>
<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['TXTDRIVELISTCOUNT']; ?></label>
	   <div class="col-sm-10">
		  <input class="form-control input-sm" type="text" name="vis_drive_list_count" id="vis_drive_list_count"  value="<? echo (isset($module_setting['vis_drive_list_count']) && $module_setting['vis_drive_list_count'] != '') ? $module_setting['vis_drive_list_count'] : '5'; ?>" >
	   </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>
