--- /dev/null
+<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))));
$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');
'stats' => 'statistiky',
'store' => 'naskladnit',
'store-single' => 'naskladnit 1ks',
+ 'category-tree' => 'strom kategorií',
+ 'price-list' => 'ceník',
'update' => 'UPRAVIT',
'insert' => 'VLOŽIT',