JS tricks Default theme

Some js functions example

<button onclick="Xcrud.reload()">Reload button</button>
<button onclick="Xcrud.show_message('.xcrud-ajax','This is error!','error')">Show error</button>
<button onclick="Xcrud.show_message('.xcrud-ajax','Got it!','success')">Show success</button>
<button onclick="Xcrud.show_message('.xcrud-ajax','Mmm... Maybe you right...','note')">Show note</button>
<button onclick="Xcrud.show_message('.xcrud-ajax','Some information','info')">Show info</button>
<button onclick="Xcrud.request('.xcrud-ajax',Xcrud.list_data('.xcrud-ajax',{task:'edit',primary:128}))">Edit entry #128</button>
<button onclick="Xcrud.modal('My modal','<h1>Hello World!</h1>')">Show modal</button>
<?php
	$xcrud = Xcrud::get_instance();
    $xcrud->table('customers');
    echo $xcrud->render();
?>
<script type="text/javascript">
jQuery(document).on("xcrudafterrequest",function(event,container){
    if(Xcrud.current_task == 'save')
    {
        Xcrud.show_message(container,'WOW!','success');
    }
});
</script>

Customers

#CustomernameContactlastnameContactfirstnamePhoneAddressline1Addressline2CityStatePostalcodeCountrySalesrepemployeenumberCreditlimitAvatarPhotoAttachSexInterests 
1Atelier graphiqueSchmittCarine 40.32.255554, rue RoyaleNantes44000France137021000male
2Signal Gift StoresKingJean70255518388489 Strong St.Las VegasNV83030USA116671800male
3Australian Collectors, Co.FergusonPeter03 9520 4555636 St Kilda RoadLevel 3MelbourneVictoria3004Australia1611117300male
4La Rochelle GiftsLabruneJanine 40.67.855567, rue des Cinquante OtagesNantes44000France1370118200male
5Baane Mini ImportsBergulfsenJonas 07-98 9555Erling Skakkes gate 78Stavern4110Norway150481700male
6Mini Gifts Distributors Ltd.NelsonSusan41555514505677 Strong St.San RafaelCA97562USA1165210500male
7Havel & Zbyszek CoPiestrzeniewiczZbyszek (26) 642-7555ul. Filtrowa 68Warszawa01-012Poland0male
8Blauer See Auto, Co.KeitelRoland+49 69 66 90 2555Lyonerstr. 34Frankfurt60528Germany150459700male
9Mini Wheels Co.MurphyJulie65055557875557 North Pendale StreetSan FranciscoCA94217USA116564600male
10Land of Toys Inc.LeeKwai2125557818897 Long Airport AvenueNYCNY10022USA1323114900male
Add Export into CSV PrintSearch

 
Buy it nowfor only $13