Apache/2.4.7 (Ubuntu) Linux sman1baleendah 3.13.0-24-generic #46-Ubuntu SMP Thu Apr 10 19:11:08 UTC 2014 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) safemode : OFF MySQL: ON | Perl: ON | cURL: OFF | WGet: ON > / var / www / html / sman1baleendahoppppppp / views / plugins / | server ip : 104.21.89.46 your ip : 172.70.131.162 H O M E |
Filename | /var/www/html/sman1baleendahoppppppp/views/plugins/questions.php |
Size | 1.21 kb |
Permission | rw-r--r-- |
Owner | root : root |
Create time | 04-May-2025 17:23 |
Last modified | 04-May-2025 17:23 |
Last accessed | 07-Jul-2025 12:58 |
Actions | edit | rename | delete | download (gzip) |
View | text | code | image |
<?php defined('BASEPATH') OR exit('No direct script access allowed');
$this->load->view('backend/grid_index');?>
<script type="text/javascript">
var _grid = 'QUESTIONS', _form = _grid + '_FORM';
new GridBuilder( _grid , {
controller:'plugins/questions',
fields: [
{
header: '<input type="checkbox" class="check-all">',
renderer: function( row ) {
return CHECKBOX(row.id, 'id');
},
exclude_excel: true,
sorting: false
},
{
header: '<i class="fa fa-edit"></i>',
renderer: function( row ) {
return A(_form + '.OnEdit(' + row.id + ')', 'Edit');
},
exclude_excel: true,
sorting: false
},
{ header:'Pertanyaan', renderer:'question' },
{
header:'Aktif ?',
renderer: function( row ) {
return row.is_active == 'true' ? '<i class="fa fa-check"></i>' : '';
},
sort_field: 'is_active'
}
]
});
new FormBuilder( _form , {
controller:'plugins/questions',
fields: [
{ label:'Pertanyaan', name:'question', type:'textarea' },
{ label:'Aktif ?', name:'is_active', type:'select', datasource:DS.TrueFalse }
]
});
</script>
$this->load->view('backend/grid_index');?>
<script type="text/javascript">
var _grid = 'QUESTIONS', _form = _grid + '_FORM';
new GridBuilder( _grid , {
controller:'plugins/questions',
fields: [
{
header: '<input type="checkbox" class="check-all">',
renderer: function( row ) {
return CHECKBOX(row.id, 'id');
},
exclude_excel: true,
sorting: false
},
{
header: '<i class="fa fa-edit"></i>',
renderer: function( row ) {
return A(_form + '.OnEdit(' + row.id + ')', 'Edit');
},
exclude_excel: true,
sorting: false
},
{ header:'Pertanyaan', renderer:'question' },
{
header:'Aktif ?',
renderer: function( row ) {
return row.is_active == 'true' ? '<i class="fa fa-check"></i>' : '';
},
sort_field: 'is_active'
}
]
});
new FormBuilder( _form , {
controller:'plugins/questions',
fields: [
{ label:'Pertanyaan', name:'question', type:'textarea' },
{ label:'Aktif ?', name:'is_active', type:'select', datasource:DS.TrueFalse }
]
});
</script>