Priprava na export ceniku pro web, procisteni vypisu assistentu
authorThomas Mudrunka <tomas@mudrunka.cz>
Wed, 23 Nov 2011 00:19:15 +0000 (01:19 +0100)
committerThomas Mudrunka <tomas@mudrunka.cz>
Wed, 23 Nov 2011 00:19:15 +0000 (01:19 +0100)
assistants/price-list.inc.php [new file with mode: 0644]
index.php
locale/cs/messages.inc.php

diff --git a/assistants/price-list.inc.php b/assistants/price-list.inc.php
new file mode 100644 (file)
index 0000000..3d549c6
--- /dev/null
@@ -0,0 +1,5 @@
+<pre><?php
+$sql = 'SELECT model_name,model_price_out FROM model';
+$result = $this->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))));
index a6bca88694479642d9fc7645b27a936fc6acabfd..02aa5252b21644ec018d8950ece2b365574d7289 100755 (executable)
--- 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');
index 2a76d1469b8c322daf1812350c93ace1e4148cf2..203b9a3c739bbd11a08f6111c16f486f26d593fd 100644 (file)
@@ -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',
This page took 0.134471 seconds and 4 git commands to generate.