From: Thomas Mudrunka Date: Wed, 19 Dec 2012 19:54:26 +0000 (+0100) Subject: Defaultne skryvat z eshopu X-Git-Url: https://git.harvie.cz/?a=commitdiff_plain;h=af6ae18de08fdcbbe6a371f6ccd78ecaf6af6001;p=mirrors%2FSokoMan.git Defaultne skryvat z eshopu --- diff --git a/index.php b/index.php index 67f3843..bb5bb5e 100755 --- a/index.php +++ b/index.php @@ -938,13 +938,17 @@ class Sklad_UI { function render_form_add($class) { $columns = $this->db->get_columns($class); $selectbox = $this->db->columns_get_selectbox($columns, $class); - return $this->html->render_insert_form($class, $columns, $selectbox); + $current=array('default'=>array( + 'model_eshop_hide'=>1 + )); + return $this->html->render_insert_form($class, $columns, $selectbox, $current); } function render_form_edit($class, $id, $multi_insert) { $columns = $this->db->get_columns($class); $selectbox = $this->db->columns_get_selectbox($columns, $class); $current = $this->db->get_listing($class, $id, 1); + //echo('
');print_r($current);die();
 		return $this->html->render_insert_form($class, $columns, $selectbox, $current, false, false, $multi_insert);
 	}