Hi all
At the beginning sorry for my English
My first question is about duplication, I created a button on the form but every time I load a page it duplicates all the records
$crud->add_action('Duplicate', '', 'duplicate','fa fa-magic',array($this,'duplicate'));
In the same controller function
function duplicate($primary_key, $row) { $query = $this->db->get_where('tbl_shortpick', array('id' => $primary_key)); if ($query->num_rows() > 0) { $res = $query->result(); $row = $res[0]; } $null= ''; $dataos = date('Y-m-d H:i:s'); $userId = 'DUBLICATE'; $data = array( 'ctn' => $row->ctn, 'nrzamd' => $row->nrzamd, 'item' => $null, 'ile' => $null, 'status' => $row->status, 'przyczyna' => $row->przyczyna, 'dataAdd' => $row->dataAdd, 'createdBy' => $userId, 'createdDtm' => $dataos ); $this->db->insert('tbl_shortpick', $data); }
The next question is about the bootstrapv3 skin
Using the flexigrid theme the window scales to the edges of the page, bootstrapv3 is it possible to behave like the theme mentioned earlier?
Regards
Luke