<? global $vis_language; ?>
<div class="form-group">
	<label class="col-sm-2 control-label" ><? echo $operation['vis_login_name'].' '.$vis_language['TXTURL']; ?></label>
	<div class="col-sm-10">
		<input class="form-control input-sm" type="text" name="vis_host" id="vis_host" value="<? echo $smtp_details['host_name']; ?>">
	</div>
</div>
<!--<div class="form-group">
	<label class="col-sm-2 control-label" ><? //echo $vis_language['TXTUSERNAME']; ?></label>
	<div class="col-sm-10">
		<input class="form-control input-sm" type="text" name="vis_username" id="vis_username" value="<? echo $smtp_details['user_name']; ?>">
	</div>
</div>
<div class="form-group">
	<label class="col-sm-2 control-label" ><? //echo $vis_language['TXTPASSWORD']; ?></label>
	<div class="col-sm-10">
		<input class="form-control input-sm" type="password" name="vis_password" id="vis_password" value="<? echo $smtp_details['db_password']; ?>">
	</div>
</div>
<div class="form-group">
	<label class="col-sm-2 control-label" ><? //echo $vis_language['TXTDATABASENAME']; ?></label>
	<div class="col-sm-10">
		<input class="form-control input-sm" type="text" name="vis_dbname" id="vis_dbname" value="<? echo $smtp_details['db_name']; ?>">
	</div>
</div>
<div class="form-group">
	<label class="col-sm-2 control-label" ><? //echo $vis_language['TXTTABLEPREFIX']; ?></label>
	<div class="col-sm-10">
		<input class="form-control input-sm" type="text" name="vis_prefix" id="vis_prefix" value="<? echo $smtp_details['db_prefix']; ?>">
	</div>
</div>-->
<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($smtp_details['is_enabled']==0) echo 'radio-no-uncheck'; ?>">
		  <input type="checkbox" name="vis_status"  id="vis_status" <? if($smtp_details['is_enabled']==1 || !isset($smtp_details['is_enabled'])) 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':'subsetting', 'vis_operation':'update_single_login', 'vis_form':'vis_single_form', 'login_type_name':'<?=$operation['vis_login_name']?>'})"><? echo $vis_language['TXTSAVE']; ?></button>
                 <? if($smtp_details !=-1 && !empty($smtp_details)) {?>
                    <button type="button" class="btn btn-primary m-l" onclick="$('#vis_workpanel_div').visExecution('submit_form', {'vis_module':'setting', 'vis_operation':'delete_single_login_<?= $operation['vis_login_type']; ?>', 'vis_form':'vis_single_form','login_type_name':'<?=$operation['vis_login_name']?>', 'vis_channel_id':'<?=$operation['vis_login_name']?>'})"><? echo $vis_language['TXTDELETE']; ?></button>
                <? } ?>
	</div>	
</div>
