From: Thomas Mudrunka Date: Wed, 23 Nov 2011 00:19:15 +0000 (+0100) Subject: Priprava na export ceniku pro web, procisteni vypisu assistentu X-Git-Url: https://git.harvie.cz/?a=commitdiff_plain;h=de42ea13f75466a7a84cdd0c03d38661859789ef;p=mirrors%2FSokoMan.git Priprava na export ceniku pro web, procisteni vypisu assistentu --- 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',