slot gacor
slot gacor
Confirm Yes/No dialogue - Default theme - eXtended CRUD & Data Management System
DEMO SITE v1.7.28

Confirm Yes/No dialogue Default theme

Prompt a Yes/No Dialogue on clicking a button

HIDE CODE
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php
    $xcrud = Xcrud::get_instance();
    $xcrud->table('base_fields');
    $xcrud->columns('text,date,bool');
    $xcrud->create_action('publish', 'publish_action'); // action callback, function publish_action() in functions.php
    $xcrud->create_action('unpublish', 'unpublish_action');
    $xcrud->button('#', 'unpublished', 'icon-close glyphicon glyphicon-remove', 'xcrud-action',
        array// set action vars to the button
            'data-task' => 'action',
            'data-action' => 'publish',
            'data-confirm' => 'Do you wish to publish?',
            'data-primary' => '{id}'),
        array// set condition ( when button must be shown)
            'bool',
            '!=',
            '1')
    );
    $xcrud->button('#', 'published', 'icon-checkmark glyphicon glyphicon-ok', 'xcrud-action', array(
        'data-task' => 'action',
        'data-action' => 'unpublish',
        'data-confirm' => 'Do you wish to unpublish?',
        'data-primary' => '{id}'), array(
        'bool',
        '=',
        '1'));
    echo $xcrud->render();
 
?>

Base Fields

Add Export into CSV Print
Search
#TextDateBool
Actions
1Test testYes published View Edit Remove
2Test test test30.11.2032No unpublished View Edit Remove
3TextNo unpublished View Edit Remove
4ttt01.01.1970Yes published View Edit Remove
?>
 
slot thailand
slot thailand slot gacor
slot gacor