<? 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['TXTTWITTER'];?></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="#/setting/setting_menu/<? echo $vis_language['TXTSETTINGS'];?>" 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="#/setting/integration_list/<? echo $vis_language['TXTTWITTER'];?>/2"><?echo $vis_language['TXTTWITTER'];?></a> </li>
			<li class="active"><?echo $vis_language['TXTADDTWITTER'];?></li>
		</ul>
	</div>
</section>
<section class="padder">
	<section class="panel panel-default">
		<header class="panel-heading sub_header"><? echo $vis_language['TXTADDTWITTER']; ?></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['TXTDEPARTMENT']; ?></label>
				<div class="col-sm-10">
					<select  name="vis_department" id="vis_department" class="form-control input-sm selectpicker" <? if(count($department_details) > 10) echo 'data-live-search="true"' ?>><?
						for($i=0;$i<count($department_details);$i++) { ?>
						<option value="<? echo $department_details[$i]['domain_id'].','.$department_details[$i]['department_id']; ?>"><? echo $department_details[$i]['domain_name'].' :: '.$department_details[$i]['department_name']; ?></option><?
						} ?>
					</select>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label"><? echo $vis_language['TXTTITLE']; ?></label>
				<div class="col-sm-10">
					<input type="text" class="form-control input-sm" name="vis_title" id="vis_title" />
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label"><? echo$vis_language['TXTCONKEY']; ?></label>
				<div class="col-sm-10">
					<input type="text" class="form-control input-sm" name="vis_conkey" id="vis_conkey"/>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label"><? echo$vis_language['TXTCONSKEY']; ?></label>
				<div class="col-sm-10">
					<input type="text" class="form-control input-sm" name="vis_conskey" id="vis_conskey"/>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label"><? echo$vis_language['TXTUSRKEY']; ?></label>
				<div class="col-sm-10">
					<input type="text" class="form-control input-sm" name="vis_usrkey" id="vis_usrkey" />
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label"><? echo$vis_language['TXTUSRSKEY']; ?></label>
				<div class="col-sm-10">
					<input type="text" class="form-control input-sm" name="vis_usrskey" id="vis_usrskey" />
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label" ><? echo $vis_language['TXTAUTOTICKETCONVERT']; ?></label>
				<div class="col-sm-10">
<!--
					<label class="switch"  value="0" <? if($twitter_details['db_prefix']!=1) echo 'radio-no-uncheck'; ?>  >
						<input type="checkbox"  name="vis_status"  id="vis_status" value="1" <? if($twitter_details['db_prefix']==1) echo ' checked="checked"'; ?> >
						<span></span>
					</label>
-->
					<div class="radio i-checks pull-left m-r-lg">
					<label>
						<input type="radio" name="vis_db_prefix" value="1" checked="checked"><i></i>
						<? echo $vis_language['TXTYES']; ?>
					</label></div>
					<div class="radio i-checks pull-left">
					<label>
						<input type="radio" name="vis_db_prefix" value="0" ><i></i>
						<? echo $vis_language['TXTNO']; ?>
					</label>
					</div>
				</div>
			</div>
			<input type="hidden" name="vis_integration_id" value="1" id="vis_integration_id" value="<? echo $twitter_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':'add_twitter', 'vis_form':'vis_integration_form'})"><? echo $vis_language['TXTADD']; ?></button>
					</div>
				</div>
			</div>
		</form>
	</section>
</section>
<script>
	$('.selectpicker').selectpicker();
</script>