From 1c99d83ba85b59794cb6ff7a872cd58b8e2fa04f Mon Sep 17 00:00:00 2001 From: Thomas Mudrunka Date: Tue, 25 Oct 2011 13:33:36 +0200 Subject: [PATCH] Pridano klikatko na nastavovani pocitatelnosti modelu --- index.php | 4 +++- locale/cs/messages.inc.php | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) 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', -- 2.30.2