<? global $vis_language;?>

<section id="breadcrumb" class="row m-b m-l-none m-r-none">
	<div class="col-sm-6">
		<h3 class="m-b-xs text-black"><span><?echo $vis_language['TXTSMS'];?></span></h3>
		<ul class="breadcrumb bg-empty no-border m-b-xxs no-padder">
			<li><a class="link" href="#/home/quick_view/<? echo $vis_language['TXTHOME']; ?>"><?echo $vis_language['TXTHOME'];?></a></li>
			<li><a class="link" href="javascript:void(0);" onclick="$('#vis_workpanel_div').visExecution('load_module','<?echo $vis_language['TXTSETTINGS'];?>',{'vis_module':'setting','vis_operation':'setting_menu'});"><?echo $vis_language['TXTSETTINGS'];?></a></li>
			<li><a  class="link" href="javascript:void(0);" onclick="$('#vis_workpanel_div').visExecution('load_module','<?echo $vis_language['TXTSMS'];?>',{'vis_module':'setting','vis_operation':'integration_list','vis_integration_type':3});" class="link"><?echo $vis_language['TXTSMS'];?></a> </li>
			<li class="active"><?echo $vis_language['TXTUPDATESMS'];?></li>
		</ul>
	</div>
</section>
<section class="padder">
	<section class="panel panel-default">
		<header class="panel-heading sub_header"><? echo $vis_language['TXTUPDATESMS']; ?></header>
		<div class="panel-body">
		<form class="form-horizontal" id="vis_integration_form" name="vis_integration_form" method="post" >
			<div class="form-group">
				<label class="col-sm-2 control-label"><? echo $vis_language['TXTDOMAIN']; ?></label>
				<div class="col-sm-10">
					<label class="control-label" ><? echo $sms_details['domain_name']; ?></label>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label"><? echo $vis_language['TXTAPI']; ?></label>
				<div class="col-sm-10">
					<select class="form-control input-sm" name="vis_api" id="vis_api_smsint_host" onchange="vis_sms_switch_api(this)">
						<option value="clicktell_api"><? echo $vis_language['TXTCLICKATELL']; ?></option>
						<option value="two_sms"<? echo ($sms_details['host_name']=='two_sms')?' selected="selected"':'' ?>><? echo $vis_language['TXTTWOSMS']; ?></option>
					</select>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label"><? echo$vis_language['TXTUSERNAME']; ?></label>
				<div class="col-sm-10">
					<input type="text" class="form-control input-sm" name="vis_username" id="vis_username" value="<? echo $sms_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 type="password" class="form-control input-sm" name="vis_password" id="vis_password"/>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label"><? echo$vis_language['TXTURL']; ?></label>
				<div class="col-sm-10">
					<input type="text" class="form-control input-sm" name="vis_baseurl" id="vis_baseurl" value="<? echo $sms_details['billing_url']; ?>" />
				</div>
			</div>
			<div class="form-group" id="vis_api_id">
				<label class="col-sm-2 control-label"  ><? echo$vis_language['TXTAPIID']; ?></label>
				<div class="col-sm-10">
					<input type="text" class="form-control input-sm" name="vis_apiid" id="vis_api_id" value="<? echo $sms_details['api_key'] ?>"/>
				</div>
			</div>
			<input type="hidden" name="vis_integration_id" id="vis_integration_id" value="<? echo $sms_details['integration_id'];?>"/>
			<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_sms', 'vis_form':'vis_integration_form'})"><? echo $vis_language['TXTUPDATE']; ?></button>
					</div>
				</div>
			</div>
		</form>
	</section>
</section>