DEMO SITE v1.7.15

Whole page translationNEW Default theme

All page words translation

HIDE CODE
<br>
<?php
    $xcrud = Xcrud::get_instance();
	   $languages = array(
	              array('en','English'),
	              array('fr','French'),
				  array('de','Germany'),
				  array('es','Spanish'));
	if(isset($_GET['language'])){
		$language = $_GET['language'];   
	}else{
		$language = 'en';//default to english   
	}
	
	$xcrud->language($language);
	//gets translation from one of the files based on selection
	//xcrud/languages/de.ini;
	//xcrud/languages/fr.ini;
	//xcrud/languages/es.ini;
	
	echo "<label>" . $xcrud->translate_external_text("Select Language") . "</label>";
?>

<select class="select-language selectpicker form-control" title="" data-width="110px">                              
     <?php						  
			foreach ( $languages as $val ) {	
					if($language == $val[0]){
						echo "<option selected value=" . $val[0]  . ">" . $val[1] . "</option>";	
					}else{
						echo "<option value=" . $val[0]  . ">" . $val[1] . "</option>";	
					}								
			}			
		?>
</select>

<?php
   	
	 
	$xcrud->table("payments");
	$xcrud->table_name($xcrud->translate_external_text("Payments"));
	$xcrud->label('checkNumber',$xcrud->translate_external_text("check_number"));
	$xcrud->label('paymentDate',$xcrud->translate_external_text("payment_date"));
	$xcrud->label('customerNumber',$xcrud->translate_external_text("check_number"));
	$xcrud->label('amount',$xcrud->translate_external_text("amount"));	   
	
	echo $xcrud->render();			
?>

<script>
	
	$(".select-language").change(function(){
		var hrefString = window.location.href;
		hrefString = hrefString.replace('&language=en',''); 
		hrefString = hrefString.replace('&language=fr',''); 
		hrefString = hrefString.replace('&language=de',''); 
		hrefString = hrefString.replace('&language=es','');  
		window.location = hrefString + "&language=" + $(".select-language").val();
	});
	
</script>

Payments

#Check NumberCheck NumberPayment DateAmount 
1161Test02.02.2005 00:00:00230
25454161hNI90821405.08.2003 00:00:0038675.13
3166444BQ327613dfgdfg17.09.2004 00:00:0038785.48
4166LA31862928.02.2004 00:00:0022474.17
5167ED74361519.09.2004 00:00:0012538.01
6167GN22884603.12.2003 00:00:0085024.46
7171GB87803815.03.2004 00:00:0018997.89
8171IL10442522.11.2003 00:00:0042783.81
9177AD83209109.09.2004 00:00:001960.8
10173IG46239729.03.2004 00:00:0020355.24
Add Export into CSV Print
Search