{"id":74,"date":"2021-07-06T12:26:09","date_gmt":"2021-07-06T12:26:09","guid":{"rendered":"http:\/\/localhost\/wordpress\/?page_id=74"},"modified":"2021-07-06T13:50:37","modified_gmt":"2021-07-06T13:50:37","slug":"buttons-panel","status":"publish","type":"page","link":"https:\/\/xcrud.net\/wordpress\/index.php\/buttons-panel\/","title":{"rendered":"Buttons Panel"},"content":{"rendered":"\n<pre style=\"background:#777;color:#ffffff\" class=\"wp-block-code has-small-font-size\"><code><strong>&#91;xcrud]\n    $xcrud = Xcrud::get_instance();\n    $xcrud-&gt;table('offices');\n    $xcrud-&gt;buttons_position('left'); \/\/ can be left, right or none\n    echo $xcrud-&gt;render();\n&#91;\/xcrud]<\/strong><\/code><\/pre>\n\n\n<div class=\"xcrud\">\n<div style=\"display:none;\" class=\"xcrud-main-tab\">Offices<small> <\/small><\/div>\n<div class=\"xcrud-container\">\n<div class=\"xcrud-ajax\">\n            <input type=\"hidden\" class=\"xcrud-data\" name=\"key\" value=\"a64be832417258014cccce446312aedbf651f3c6\" \/><input type=\"hidden\" class=\"xcrud-data\" name=\"orderby\" value=\"\" \/><input type=\"hidden\" class=\"xcrud-data\" name=\"order\" value=\"asc\" \/><input type=\"hidden\" class=\"xcrud-data\" name=\"start\" value=\"0\" \/><input type=\"hidden\" class=\"xcrud-data\" name=\"limit\" value=\"10\" \/><input type=\"hidden\" class=\"xcrud-data\" name=\"instance\" value=\"5b24c497936e9af4337ac6d9c8c7023469078c80\" \/><input type=\"hidden\" class=\"xcrud-data\" name=\"editmode\" value=\"\" \/><input type=\"hidden\" class=\"xcrud-data\" name=\"task\" value=\"list\" \/><\/p>\n<h2>Offices<small> <\/small><\/h2>\n<div class=\"xcrud-top-actions\">\n<div class=\"btn-group pull-right\">\n                <a href=\"javascript:;\" data-task=\"print\" class=\"btn btn-light xcrud-in-new-window xcrud-action\"><i class=\"fa fa-print\"><\/i> Print<\/a><a href=\"javascript:;\" data-task=\"csv\" class=\"btn btn-light xcrud-in-new-window xcrud-action\"><i class=\"fa fa-file\"><\/i> Export into CSV<\/a>            <\/div>\n<p>        <a href=\"javascript:;\" data-task=\"create\" class=\"btn btn-success xcrud-action\"><i class=\"fa fa-plus\"><\/i> Add<\/a>        <\/p>\n<div class=\"clearfix\"><\/div>\n<\/p><\/div>\n<div class=\"row\" style=\"margin: 0!important;overflow-x: scroll;\">\n<div class=\"xcrud-list-container \">\n<table class=\"xcrud-list table table-striped table-hover table-bordered\">\n<thead>\n<tr class=\"xcrud-th\">\n<th class=\"xcrud-num\">&#35;<\/th>\n<th class=\"xcrud-actions\">&nbsp;<\/th>\n<th data-order=\"asc\" data-orderby=\"offices.city\" class=\"xcrud-column xcrud-action\">City<\/th>\n<th data-order=\"asc\" data-orderby=\"offices.phone\" class=\"xcrud-column xcrud-action\">Phone<\/th>\n<th data-order=\"asc\" data-orderby=\"offices.addressLine1\" class=\"xcrud-column xcrud-action\">Addressline1<\/th>\n<th data-order=\"asc\" data-orderby=\"offices.addressLine2\" class=\"xcrud-column xcrud-action\">Addressline2<\/th>\n<th data-order=\"asc\" data-orderby=\"offices.state\" class=\"xcrud-column xcrud-action\">State<\/th>\n<th data-order=\"asc\" data-orderby=\"offices.country\" class=\"xcrud-column xcrud-action\">Country<\/th>\n<th data-order=\"asc\" data-orderby=\"offices.postalCode\" class=\"xcrud-column xcrud-action\">Postalcode<\/th>\n<th data-order=\"asc\" data-orderby=\"offices.territory\" class=\"xcrud-column xcrud-action\">Territory<\/th>\n<th data-order=\"asc\" data-orderby=\"offices.ordering\" class=\"xcrud-column xcrud-action\">Ordering<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr class=\"xcrud-row xcrud-row-0\">\n<td class=\"xcrud-current xcrud-num\">1<\/td>\n<td class=\"xcrud-current xcrud-actions\"><span class=\"btn-group\"><a class=\"xcrud-action btn btn-info btn-sm\" title=\"View\" href=\"javascript:;\" data-primary=\"5\" data-task=\"view\"><i class=\"fa fa-search\"><\/i><\/a><a class=\"xcrud-action btn btn-warning btn-sm\" title=\"Edit\" href=\"javascript:;\" data-primary=\"5\" data-task=\"edit\"><i class=\"fa fa-edit \"><\/i><\/a><a class=\"xcrud-action btn btn-danger btn-sm\" title=\"Remove\" href=\"javascript:;\" data-primary=\"5\" data-task=\"remove\" data-confirm=\"Do you really want remove this entry?\"><i class=\"fa fa-remove\"><\/i><\/a><\/span><\/td>\n<td>Tokyo<\/td>\n<td>+81 33 224 5000<\/td>\n<td>4-1 Kioicho<\/td>\n<td><\/td>\n<td>Chiyoda-Ku<\/td>\n<td>Japan<\/td>\n<td>102-8578<\/td>\n<td>Japan<\/td>\n<td>150<\/td>\n<\/tr>\n<tr class=\"xcrud-row xcrud-row-1\">\n<td class=\"xcrud-current xcrud-num\">2<\/td>\n<td class=\"xcrud-current xcrud-actions\"><span class=\"btn-group\"><a class=\"xcrud-action btn btn-info btn-sm\" title=\"View\" href=\"javascript:;\" data-primary=\"6\" data-task=\"view\"><i class=\"fa fa-search\"><\/i><\/a><a class=\"xcrud-action btn btn-warning btn-sm\" title=\"Edit\" href=\"javascript:;\" data-primary=\"6\" data-task=\"edit\"><i class=\"fa fa-edit \"><\/i><\/a><a class=\"xcrud-action btn btn-danger btn-sm\" title=\"Remove\" href=\"javascript:;\" data-primary=\"6\" data-task=\"remove\" data-confirm=\"Do you really want remove this entry?\"><i class=\"fa fa-remove\"><\/i><\/a><\/span><\/td>\n<td>Sydney<\/td>\n<td>+61 2 9264 2451<\/td>\n<td>5-11 Wentworth Avenue<\/td>\n<td>Floor #2<\/td>\n<td><\/td>\n<td>Australia<\/td>\n<td>NSW 2010<\/td>\n<td>APAC<\/td>\n<td>0<\/td>\n<\/tr>\n<tr class=\"xcrud-row xcrud-row-0\">\n<td class=\"xcrud-current xcrud-num\">3<\/td>\n<td class=\"xcrud-current xcrud-actions\"><span class=\"btn-group\"><a class=\"xcrud-action btn btn-info btn-sm\" title=\"View\" href=\"javascript:;\" data-primary=\"7\" data-task=\"view\"><i class=\"fa fa-search\"><\/i><\/a><a class=\"xcrud-action btn btn-warning btn-sm\" title=\"Edit\" href=\"javascript:;\" data-primary=\"7\" data-task=\"edit\"><i class=\"fa fa-edit \"><\/i><\/a><a class=\"xcrud-action btn btn-danger btn-sm\" title=\"Remove\" href=\"javascript:;\" data-primary=\"7\" data-task=\"remove\" data-confirm=\"Do you really want remove this entry?\"><i class=\"fa fa-remove\"><\/i><\/a><\/span><\/td>\n<td>London<\/td>\n<td>+44 20 7877 2041<\/td>\n<td>25 Old Broad Street<\/td>\n<td>Level 7<\/td>\n<td><\/td>\n<td>UK<\/td>\n<td>EC2N 1HN<\/td>\n<td>EMEA<\/td>\n<td>0<\/td>\n<\/tr>\n<tr class=\"xcrud-row xcrud-row-1\">\n<td class=\"xcrud-current xcrud-num\">4<\/td>\n<td class=\"xcrud-current xcrud-actions\"><span class=\"btn-group\"><a class=\"xcrud-action btn btn-info btn-sm\" title=\"View\" href=\"javascript:;\" data-primary=\"9\" data-task=\"view\"><i class=\"fa fa-search\"><\/i><\/a><a class=\"xcrud-action btn btn-warning btn-sm\" title=\"Edit\" href=\"javascript:;\" data-primary=\"9\" data-task=\"edit\"><i class=\"fa fa-edit \"><\/i><\/a><a class=\"xcrud-action btn btn-danger btn-sm\" title=\"Remove\" href=\"javascript:;\" data-primary=\"9\" data-task=\"remove\" data-confirm=\"Do you really want remove this entry?\"><i class=\"fa fa-remove\"><\/i><\/a><\/span><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>0<\/td>\n<\/tr>\n<\/tbody>\n<tfoot>\n                            <\/tfoot>\n<\/table><\/div>\n<p>        <!-- Side Edit Mode --><\/p>\n<div class=\"xcrud-nav form-inline\">\n<div class=\"btn-group xcrud-limit-buttons\" data-toggle=\"buttons-radio\"><button type=\"button\" class=\"btn btn-secondary active xcrud-action\" data-limit=\"10\">10<\/button><button type=\"button\" class=\"btn btn-secondary xcrud-action\" data-limit=\"25\">25<\/button><button type=\"button\" class=\"btn btn-secondary xcrud-action\" data-limit=\"50\">50<\/button><button type=\"button\" class=\"btn btn-secondary xcrud-action\" data-limit=\"100\">100<\/button><button type=\"button\" class=\"btn btn-secondary xcrud-action\" data-limit=\"all\">All<\/button><\/div>\n<p>                        <a class=\"xcrud-search-toggle btn btn-secondary\" href=\"javascript:;\">Search<\/a><span class=\"xcrud-search form-inline\" style=\"display:none;\"><input class=\"xcrud-searchdata xcrud-search-active input-small form-control\" name=\"phrase\" data-type=\"text\" style=\"\" data-fieldtype=\"default\" type=\"text\" value=\"\" \/><select class=\"xcrud-data xcrud-columns-select input-small form-control\" name=\"column\"><option value=\"\">All fields<\/option><option value=\"offices.city\" data-type=\"text\">City<\/option><option value=\"offices.phone\" data-type=\"text\">Phone<\/option><option value=\"offices.addressLine1\" data-type=\"text\">Addressline1<\/option><option value=\"offices.addressLine2\" data-type=\"text\">Addressline2<\/option><option value=\"offices.state\" data-type=\"text\">State<\/option><option value=\"offices.country\" data-type=\"text\">Country<\/option><option value=\"offices.postalCode\" data-type=\"text\">Postalcode<\/option><option value=\"offices.territory\" data-type=\"text\">Territory<\/option><option value=\"offices.ordering\" data-type=\"int\">Ordering<\/option><\/select><span class=\"btn-group\"><a class=\"xcrud-action btn btn-primary\" href=\"javascript:;\" data-search=\"1\">Go<\/a><\/span><\/span>\n        <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div class=\"xcrud-overlay\"><\/div>\n<\/p><\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"_links":{"self":[{"href":"https:\/\/xcrud.net\/wordpress\/index.php\/wp-json\/wp\/v2\/pages\/74"}],"collection":[{"href":"https:\/\/xcrud.net\/wordpress\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/xcrud.net\/wordpress\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/xcrud.net\/wordpress\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/xcrud.net\/wordpress\/index.php\/wp-json\/wp\/v2\/comments?post=74"}],"version-history":[{"count":3,"href":"https:\/\/xcrud.net\/wordpress\/index.php\/wp-json\/wp\/v2\/pages\/74\/revisions"}],"predecessor-version":[{"id":140,"href":"https:\/\/xcrud.net\/wordpress\/index.php\/wp-json\/wp\/v2\/pages\/74\/revisions\/140"}],"wp:attachment":[{"href":"https:\/\/xcrud.net\/wordpress\/index.php\/wp-json\/wp\/v2\/media?parent=74"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}