virt2/api/code/t_tovar.php

17 lines
554 B
PHP
Raw Permalink Normal View History

<?php
include MYDIR . '/set/install/magazin.php';
if ($_SESSION['dostup']!=='a' && $_SESSION['dostup']!=='e')header( 'Location: /403/' );
unset($a);
if (ID){
$a['parent']=ID;
//узнаем вышестоящий каталог...
unset($b);
$b['id']=ID;
$db -> get_val('m_groupe', $b, 'parent');
$parent=$db->result;
if ($parent>0)$smarty -> assign( 'parent', $parent );
}else
$a['parent']='0';
$smarty -> assign( 'list', $db -> get_massiv ( 'm_groupe', $a, 'naim' ) );
//print_r($db -> get_massiv ( 'm_groupe', $a, 'naim' ));
?>