From de42ea13f75466a7a84cdd0c03d38661859789ef Mon Sep 17 00:00:00 2001 From: Thomas Mudrunka Date: Wed, 23 Nov 2011 01:19:15 +0100 Subject: [PATCH] Priprava na export ceniku pro web, procisteni vypisu assistentu --- assistants/price-list.inc.php | 5 +++++ index.php | 4 ++-- locale/cs/messages.inc.php | 2 ++ 3 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 assistants/price-list.inc.php diff --git a/assistants/price-list.inc.php b/assistants/price-list.inc.php new file mode 100644 index 0000000..3d549c6 --- /dev/null +++ b/assistants/price-list.inc.php @@ -0,0 +1,5 @@ +
db->safe_query_fetch($sql);
+foreach($result as $item) $items[$item['model_name']]=$item['model_price_out'];
+die(print_r(json_decode(json_encode($items))));
diff --git a/index.php b/index.php
index a6bca88..02aa525 100755
--- a/index.php
+++ b/index.php
@@ -224,8 +224,8 @@ EOF;
 	$assistants=array();
 	foreach(scandir(DIR_ASSISTANTS) as $item) {
 		if($item == '.' || $item == '..') continue;
-		$item = preg_replace('/\.inc\.php$/','',$item);
-		$assistants[$item] = "assistant/$item";
+		$item = preg_replace('/\.inc\.php$/','',$item,-1,$count);
+		if($count) $assistants[$item] = "assistant/$item";
 	}
 
 	$tables=array('item','model','category','producer','vendor','room','status');
diff --git a/locale/cs/messages.inc.php b/locale/cs/messages.inc.php
index 2a76d14..203b9a3 100644
--- a/locale/cs/messages.inc.php
+++ b/locale/cs/messages.inc.php
@@ -82,6 +82,8 @@ $LOCALE_MESSAGES = array(
 		'stats' => 'statistiky',
 		'store' => 'naskladnit',
 		'store-single' => 'naskladnit 1ks',
+		'category-tree' => 'strom kategorií',
+		'price-list' => 'ceník',
 
 		'update' => 'UPRAVIT',
 		'insert' => 'VLOŽIT',
-- 
2.30.2