From: Thomas Mudrunka Date: Tue, 25 Oct 2011 11:33:36 +0000 (+0200) Subject: Pridano klikatko na nastavovani pocitatelnosti modelu X-Git-Url: https://git.harvie.cz/?a=commitdiff_plain;h=1c99d83ba85b59794cb6ff7a872cd58b8e2fa04f;p=mirrors%2FSokoMan.git Pridano klikatko na nastavovani pocitatelnosti modelu --- diff --git a/index.php b/index.php index 6e834fe..59156ab 100755 --- a/index.php +++ b/index.php @@ -575,7 +575,9 @@ class Sklad_DB extends PDO { } function columns_get_selectbox($columns, $class=false, $suffix_id='_id', $suffix_name='_name') { - $selectbox=array(); + $selectbox=array( //TODO: Hardcoded... + 'model_countable' => array(0 => 'no', 1 => 'yes') + ); foreach($columns as $column) { if($column['Field'] == 'user_id') continue; //TODO HACK Blacklist: tabulka nemusi obsahovat *_name!!! momentalne se to tyka jen tabulky user (a item - u ty to nevadi)! if($class && $column['Field'] == $class.$suffix_id) continue; diff --git a/locale/cs/messages.inc.php b/locale/cs/messages.inc.php index e9cf7af..614e7a3 100644 --- a/locale/cs/messages.inc.php +++ b/locale/cs/messages.inc.php @@ -28,7 +28,7 @@ $LOCALE_MESSAGES = array( 'model_barcode:' => 'Čárový kód modelu:', 'model_price_in' => 'Předpokládaná cena', 'model_price_out' => 'Doporučená cena', - 'model_countable' => 'Model má sériová č. (0=ne,1=ano)', + 'model_countable' => 'Model má sériová č.', 'room_name' => 'Sklad', 'room_descript' => 'Popis skladu',