<? 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['TXTLANGUAGE']; ?> </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/view_language/<? echo $vis_language['TXTLANGUAGE'];?>" onclick="$('#vis_workpanel_div').visExecution('load_module','<? echo $vis_language['TXTLANGUAGE'];?>',{'vis_module':'setting','vis_operation':'view_language'});" class="link"><?echo $vis_language['TXTLANGUAGE'];?></a> </li>
	<li class="active"><?echo $vis_language['TXTUPDATELANGUAGE'];?></li>
</ul>
</div>
</div>
</section>
<section class="padder">
<section class="panel panel-default">
<header class="panel-heading sub_header"><?echo $vis_language['TXTUPDATELANGUAGE'];?></header>
<div class="panel-body">
<form class="form-horizontal" id="vis_language_update_form" name="vis_language_update_form" method="post" >

<div class="form-group">
<label class="col-sm-2 control-label"><? echo $vis_language['TXTTITLE']; ?></label>
<div class="col-sm-10">
<input class="form-control input-sm" type="text" name="vis_languagename" id="vis_languagename" value="<? echo htmlentities($language_details['language_name'], ENT_COMPAT, 'UTF-8'); ?>">
</div>
</div>

<div class="form-group">
<label class="col-sm-2 control-label"><? echo $vis_language['TXTLANGUAGECODE']; ?></label>
<div class="col-sm-10">
<input class="form-control input-sm" type="text" name="vis_code" id="vis_code" value="<? echo $language_details['language_code']; ?>">
</div>
</div>

<div class="form-group">
<label class="col-sm-2 control-label"><? echo $vis_language['TXTCHARACTERSET']; ?></label>
<div class="col-sm-10">
<input class="form-control input-sm" type="text" name="vis_charset" id="vis_charset" value="<? echo $language_details['char_set']; ?>">
</div>
</div>

<div class="form-group">
<label class="col-sm-2 control-label"><? echo $vis_language['TXTDISPLAYORDER']; ?></label>
<div class="col-sm-10">
<input class="form-control input-sm" type="text" name="vis_displayorder" id="vis_displayorder" value="<? echo $language_details['display_order']; ?>">
</div>
</div>

<div class="form-group">
<label class="col-sm-2 control-label"><? echo $vis_language['TXTDIRECTION']; ?></label>
<div class="col-sm-10">
<select class="form-control input-sm selectpicker" name="vis_direction" id="vis_direction"><? $selected= ($language_details['direction']==1)?'selected="selected"':''; ?>
    <option value="0"><? echo $vis_language['TXTLEFTTORIGHT']; ?> (LtoR)</option>
    <option value="1" <? echo $selected; ?>><? echo $vis_language['TXTRIGHTTOLEFT']; ?> (RtoL)</option>
</select>
</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($language_details['is_enabled']==0) echo 'radio-no-uncheck'; ?>  ">
<input type="checkbox"  name="vis_status"  id="vis_status" <? if($language_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">
<input type="hidden" name="vis_language_id" value="<? echo $language_details['language_id']; ?>" />
<button type="button" class="btn btn-primary" id="btn_update_lang" onclick="$('#vis_workpanel_div').visExecution('submit_form',{'vis_module':'setting', 'vis_operation':'update_language', 'vis_form':'vis_language_update_form'}); $('#btn_update_lang').button('loading');"><? echo $vis_language['TXTUPDATE']; ?></button>
</div>
</form>
</div>
</section>
</section>
