DEMO SITE v1.7.26

Coments like template Minimal theme

This trick allows you use add and grid view per one page

HIDE CODE
<?php
	$xcrud1 = Xcrud::get_instance();
    $xcrud1->table('productlines');
    $xcrud1->columns('productLine,htmlDescription');
    $xcrud1->unset_edit()->unset_view();
    $xcrud1->hide_button('add');
    echo $xcrud1->render();
    
    $xcrud2 = Xcrud::get_instance();
    $xcrud2->table('productlines');
    $xcrud2->fields('productLine,htmlDescription');
    $xcrud2->hide_button('save_return,return,save_edit');
    $xcrud2->set_lang('save_new','Publish');
    echo $xcrud2->render('create');
?>
<script type="text/javascript">
window.onload = function(){
    $(document).on("xcrudafterrequest",function(event,container){
        if($(container).closest(".xcrud").prevAll(".xcrud").length){
            Xcrud.reload(".xcrud:first");
        }
    });
}
</script>

Productlines

#ProductlineHtmldescription
11Greate Remove
21212434 Remove
3MotorcyclesOur motorcycles are state of the art replicas of… Remove
4Planes Remove
5Ships Remove
6Trains Remove
7Trucks and Buses Remove
8Vintage Cars Remove
Export into CSV Print Search Execution time: 0.003 sMemory usage: 0.16 MB

Add - Productlines

Productline
Htmldescription
Execution time: 0.001 sMemory usage: 0.04 MB