<? 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"><? echo $vis_language['TXTLOCALISATION']; ?></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'});"><?echo $vis_language['TXTLANGUAGE'];?></a></li>
         <li><a class="link" href="#/setting/display_localisation/<? echo $vis_language['TXTLOCALISATION']; ?>"class="active" onclick="$('#vis_workpanel_div').visExecution('load_module','<? echo $vis_language['TXTLOCALISATION'];?>',{'vis_module':'setting','vis_operation':'display_localisation'});"><? echo $vis_language['TXTLOCALISATION']; ?></a></li>
		 <li class="active"><? echo $vis_language['TXTADDLOCALISATION']; ?> </li>
      </ul>
   </div>
</section>
<section class="padder">
   <section class="panel panel-default">
      <header class="panel-heading sub_header"><? echo $vis_language['TXTADDLOCALISATION']; ?></header>
      <div class="panel-body">
         <form class="form-horizontal" id="vis_add_localization_form" name="vis_add_localization_form" method="post" >
			 <div class="form-group">
               <label class="col-sm-2 control-label"><? echo $vis_language['TXTLOCATION']; ?></label>
               <div class="col-sm-10">
                  <select name="vis_location_id" id="vis_location_id" class="form-control input-sm selectpicker">
                     <option value="1"><? echo $vis_language['TXTCLIENTPORTAL']; ?></option>
                     <option value="2"><? echo $vis_language['TXTMANAGEPORTAL']; ?></option>
                  </select>
               </div>
            </div>
            <div class="form-group">
               <label class="col-sm-2 control-label"><? echo $vis_language['TXTLANGVAR']; ?></label>
               <div class="col-sm-10">
                  <input class="form-control input-sm" type="text" name="vis_langvar" id="vis_langvar">
               </div>
            </div>
            <div class="form-group">
               <label class="col-sm-2 control-label"><? echo $vis_language['TXTLANGVAL']; ?></label>
               <div class="col-sm-10">
                  <input class="form-control input-sm" type="text" name="vis_langval" id="vis_langval">
               </div>
            </div>
              <? if($language_details!=-1) { ?>
            <div class="form-group">
               <div class="col-sm-12"><h5><? echo $vis_language['MSGLANGTRANS']; ?></h5></div>
            </div>
            <div class="line b-b line-lg pull-in"></div>
            <br/>
            <?
               for($i=0;$i<count($language_details);$i++) {
				     $variable_ids = $variable_ids.$language_details[$i]['language_id'].',';?>
            <div class="form-group">
               <label class="col-sm-2 control-label"><? echo $language_details[$i]['language_name']; ?></label>
               <div class="col-sm-10">
                  <input class="form-control input-sm" type="text" name="vis_language_<? echo $language_details[$i]['language_id']; ?>" id="vis_language_<? echo $language_details[$i]['language_id']; ?>" >
               </div>
            </div>
            <?
               } $variable_ids=substr($variable_ids, 0, -1);
               }  ?>
               <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_localisation', 'vis_form':'vis_add_localization_form'})"><? echo $vis_language['TXTADD']; ?></button>
               </div>
            </div>
             <input type="hidden" name="vis_variables_ids" id="vis_variables_ids" value="<?php echo $variable_ids; ?>">
      </form>
      </div>
   </section>
</section>
<script>
   $(".selectpicker").selectpicker();
</script>
