class jqTxt extends jqGrid
{
protected function init()
{
#Set database table
$this->table = 'txt';
#Make all columns editable by default
$this->cols_default = array('editable' => true);
#Set columns
$this->cols = array(
'id' => array('label' => 'ID',
'width' => 10,
'align' => 'center',
'editable' => false, //id is non-editable
),
'title' => array('label' => 'title',
'width' => 35,
'editrules' => array('required' => true),
),
'place' => array('label' => 'Place',
'width' => 35,
'editrules' => array('required' => true),
),
);
#Set nav
$this->nav = array('add' => true, 'edit' => true, 'del' => true);
#Add filter toolbar
$this->render_filter_toolbar = true;
}
}