?> + ',1)" type="checkbox"/>'; } function update_status(id, value) { $(document).ready(function () { $.post('<?php echo site_url('admin/' . tpl_customer::customer() . '/update_status'); ?> ', { '<?php echo tpl_customer::customer() . '_' . tpl_customer::id(); ?> ': id, '<?php echo tpl_customer::customer() . '_' . tpl_customer::status(); ?> ': value }, function (result) { var $table = $('#table'); $table.bootstrapTable('showLoading'); $table.bootstrapTable('refresh'); }).fail(function () { alert("Error"); }); }); } </script> <script type="text/javascript">