menu
Home / Employees
Customers
Orders
Products
Offices
Films
Materialize CSS framework
Home / Employees
Customers
Orders
Products
Offices
Films
Buy
from
code
Sample Codes
public function products_management()
{
$this->config->load('grocery_crud');
$this->config->set_item('grocery_crud_dialog_forms',true);
$this->config->set_item('grocery_crud_dialog_color','pink darken-4');
$this->config->set_item('grocery_crud_dialog_text_color','white');
$crud = new grocery_CRUD();
$crud->set_theme('materializecss'); // magic code
$crud->set_table('products');
$crud->set_subject('Product');
$crud->unset_columns('productDescription');
$crud->callback_column('buyPrice',array($this,'valueToEuro'));
$output = $crud->render();
$this->_example_output($output);
}
edit
Edit Product
ProductCode
ProductName
ProductLine
ProductScale
ProductVendor
Features include: Turnable front wheels; steering function; detailed interior; detailed engine; opening hood; opening trunk; opening doors; and detailed chassis.
Rich Text Editor
Editor toolbars
Bold
Italic
Insert/Remove Numbered List
Insert/Remove Bulleted List
Link
Unlink
About CKEditor
▲
Press ALT 0 for help
Elements path
ProductDescription
QuantityInStock
BuyPrice
MSRP
Loading, saving data...
check
Update changes
rotate_left
Save and go back to list
warning
Cancel