<? global $vis_language;?>
<table class="table table-hover b-t b-light m-b-none" data-ride="datatables">
	<thead class="table_head">
		<tr>
			<!--<th width="70">
			<div class="btn-group list_chkbox_action">
				<label class="checkbox m-n m-r-sm i-checks"><input type="checkbox"><i></i></label>		
			</div>
		</th>-->
    <th><? echo $vis_language['TXTLANGUAGE']; ?></th>
    <th class="txt_nowrap"><? echo $vis_language['TXTLANGUAGECODE']; ?></th>
    <th class="txt_nowrap"><? echo $vis_language['TXTCHARACTERSET']; ?></th>
    <th class="txt_nowrap"><? echo $vis_language['TXTDISPLAYORDER']; ?></th>
    <th class="txt_nowrap"><? echo $vis_language['TXTSTATUS']; ?></th>
   <!-- <th class="txt_nowrap"><? //echo $vis_language['TXTIMPORT'].'/'.$vis_language['TXTEXPORT']; ?></th>-->
    <th width="20">&nbsp;</th></tr>
	</thead>
	<tbody>	
	 <? for($i=0;$i<$language_info['language_count'];$i++) {
        if($language_details[$i]['is_enabled']==1){ $status = $vis_language['TXTENABLED'];$lbl='vh-green-bg';} else {$status = $vis_language['TXTDISABLED'];$lbl='label-default';}
        //echo '<tr><td width="30"><label class="checkbox m-n m-r-sm i-checks"><input type="checkbox"  name="vis_global_mass_chk_'.$i.'" id="vis_global_mass_chk_'.$i.'" value="'.$language_details[$i]['language_id'].'" /><i></i></label></td>';
        echo '<tr><td><a href="#/setting/language_details/'.rawurlencode(str_replace("/"," ",$language_details[$i]['language_name'])).'/'.$language_details[$i]['language_id'].'">'.$language_details[$i]['language_name'].'</a></td>';
        echo '<td><a href="#/setting/language_details/'.rawurlencode(str_replace("/"," ",$language_details[$i]['language_name'])).'/'.$language_details[$i]['language_id'].'">'.$language_details[$i]['language_code'].'</a></td>';
        echo '<td><a href="#/setting/language_details/'.rawurlencode(str_replace("/"," ",$language_details[$i]['language_name'])).'/'.$language_details[$i]['language_id'].'">'.$language_details[$i]['char_set'].'</a></td>';
        echo '<td><a href="#/setting/language_details/'.rawurlencode(str_replace("/"," ",$language_details[$i]['language_name'])).'/'.$language_details[$i]['language_id'].'">'.$language_details[$i]['display_order'].'</a></td>';
																
        echo '<td><span class="label '.$lbl.'">'.$status.'</span></td>';
							/*	if($language_details[$i]['is_enabled']==1){
													if($language_details[$i]['val_avilabilty']==1){
													echo '<td><a class="link" href="#/setting/language_export/'.$vis_language['TXTEXPORT'].'/'.$language_details[$i]['language_id'].'">'.$vis_language['TXTEXPORT'].'</a></td>';
													}else{
													echo '<td><a class="link" href="#/setting/import_language/'.$vis_language['TXTIMPORT'].'/'.$language_details[$i]['language_id'].'">'.$vis_language['TXTIMPORT'].'</a></td>';
													}
								}else{
												echo '<td>-</td>';
								}*/
        if($language_details[$i]['language_id']>1){?>
        <td align="center"> <a href="javascript:void(0);" title="<? echo $vis_language['TXTDELETE']; ?>" class="text-muted"  data-toggle="ajaxModal" data-modal-arguments="vis_module=setting&vis_operation=get_language_delete&vis_language_id=<? echo $language_details[$i]['language_id']; ?>&vis_languagename="<? echo $language_details[$i]['language_name']?>"&vis_static_area=vis_language_delete_form"><i class="vh vh-delete-round" ></i></a></td>
        <? }else { echo "<td></td>";}
        echo '</tr>';
    }?>
    </tbody>
</table>
<script type="text/javascript">
$(".selectpicker").selectpicker(); 
$(document).ready(function() {	
$('[data-ride="datatables"]').dataTable({		
         "bPaginate" : false,	
		"sDom": 't', "bAutoWidth": false,
		"aoColumns": [
			{ "bSortable": false },
		  	null,
		  	null,
		  	null,
		  	null,	
				{ "bSortable": false }
		]
	});
});
</script>
