|
|
|
|
if (strtoupper($lang)=='GR') { ?>
ΚΑΤΗΓΟΡΙΕΣ
} else { ?>
CATEGORIES
} ?>
|
|
if (strtoupper($lang)=='GR')
printDataset($lang,'categories', 'subcategories', '*', 'cat_order', 'cat_name', 'cat_id', $cat_id, 'sca_id', $sca_id, 'sca_name', 'class=subcategory', 'category.php', ' where cat_visible=0 ');
else
printDataset($lang,'categories', 'subcategories', '*', 'cat_order', 'cat_name_en', 'cat_id', $cat_id, 'sca_id', $sca_id, 'sca_name_en', 'class=subcategory', 'category.php', ' where cat_visible=0 ');
?>
|
$q="select * from categories where cat_visible=1";
$rs = $DB->execute("$q");
$n=$rs->RecordCount();
//echo '->' . $n . '';
if ($n>0) {
for ($i=0;$i<$n;$i++) {
if ($cat_id==$rs->fields['cat_id'])
$sel='_sel';
else $sel='';
?>
|
|
if ($cat_id==$rs->fields['cat_id']) {
?>
|
printDataset($lang,'subcategories', null, '*', 'sca_order', 'sca_name', 'sca_id', $rs->fields['cat_id'], 'cat_id', $sca_id, null, 'class=subcategory', 'category.php', ' where cat_id=' . $rs->fields['cat_id']);
?>
|
}
$rs->MoveNext();
}
}
?>
|
if (strtoupper($lang)=='GR')
searchModule('ΑΝΑΖΗΤΗΣΗ ΚΩΔΙΚΟΥ','Αποδοχή');
else
searchModule('SEARCH BY CODE','Submit');
?>
|
|
|
|
$q="select * from categories where cat_visible=0 order by cat_order";
$rs = $DB->execute("$q");
$ncols=$rs->RecordCount();
if ($ncols>0) {
for ($i=0;$i<$ncols;$i++) {
$obj = new lookupText('photos', 'photo_id', $rs->fields['photo_id'], 'photo_path', '', '');
$photoPath=$obj->getHtml();
?>
$rs->MoveNext();
}
}
?>
|
|