|
|
|
|
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 ($_REQUEST['tsel']!=null)
$tsel=$_REQUEST['tsel'];
?>
|
if (strtoupper($lang)=='GR') { ?>
|
} else { ?>
|
} ?>
if ($cat_id==$rs->fields['cat_id']) {
?>
|
if (strtoupper($lang)=='GR')
$tsel=$rs->fields['cat_name'].' :: '.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']);
else
$tsel=$rs->fields['cat_name_en'].' :: '.printDataset($lang,'subcategories', null, '*', 'sca_order', 'sca_name_en', 'sca_id', $rs->fields['cat_id'], 'cat_id', $sca_id, null, 'class=subcategory', 'category.php', ' where cat_id=' . $rs->fields['cat_id']);
if (substr(trim($tsel),strlen(trim($tsel))-2,2)=='::')
$tsel = substr(trim($tsel),0,strlen(trim($tsel))-2);
?>
|
}
$rs->MoveNext();
}
}
?>
|
if (strtoupper($lang)=='GR')
searchModule('ΑΝΑΖΗΤΗΣΗ ΚΩΔΙΚΟΥ','Αποδοχή');
else
searchModule('SEARCH BY CODE','Submit');
?>
|
|
|
|
$q="select * from products where prd_id=".$prd_id;
$rs = $DB->execute("$q");
$n=$rs->RecordCount();
if ($n>0) {
?>
$obj = new lookupText('photos', 'photo_id', $rs->fields['photo_id'], 'photo_path', '', '');
$photoPath=$obj->getHtml();
//if (($photoPath!=null) && ($photoPath!='-') && ($photoPath!='')) {
if (!(($photoPath!=null) && ($photoPath!='-') && ($photoPath!=''))) $photoPath="images/noimg_b.jpg";
//list($width, $height) = getimagesize("$photoPath");
//$width=350;
//$height=400;
?>
if ($rs->fields['col_id']!=null) {
$qc="select * from collections where col_id=".$rs->fields['col_id'];
$rc = $DB->execute("$qc");
$nc=$rc->RecordCount();
}
if (strtoupper($lang)=='GR') {
$prdName=$rs->fields['prd_name'];
$prdDescr=str_replace('filemanager', 'admin/filemanager', $rs->fields['prd_descr']);
$prdSpecials=str_replace('filemanager', 'admin/filemanager', $rs->fields['prd_specials']);
$ttlDescr='Περιγραφή';
$ttlSpecials='Ειδικά χαρακτηριστικά';
$ttlDims='Διαστάσεις';
$ttlPrice='Τιμή';
if ($rs->fields['col_id']!=null) $colDescr=' ('.$rc->fields['col_name'].')';
} else {
$prdName=$rs->fields['prd_name_en'];
$prdDescr=str_replace('filemanager', 'admin/filemanager', $rs->fields['prd_descr_en']);
$prdSpecials=str_replace('filemanager', 'admin/filemanager', $rs->fields['prd_specials_en']);
$ttlDescr='Description';
$ttlSpecials='Specials';
$ttlDims='Dimensions';
$ttlPrice='Price';
if ($rs->fields['col_id']!=null) $colDescr=' ('.$rc->fields['col_name_en'].')';
}
?>
if ($prdDescr!=null) {
?>
}?>
if ($prdSpecials!=null) {
?>
}?>
if (($rs->fields['prd_dimensions']!=null) && ($rs->fields['prd_dimensions']!='')) {
?>
:
}?>
if ($name!=null) {
?>
: €
}
?>
|
|
if (($rs->fields['photo_id_1']!=null) || ($rs->fields['photo_id_2']!=null)) {
?>
Pictures
for ($i=0;$i<3;$i++) {
if ($i==0) $fld='photo_id';
else $fld='photo_id_' . $i;
$obj = new lookupText('photos', 'photo_id', $rs->fields[$fld], 'photo_path', '', '');
$photoTPath=$obj->getHtml();
$obj = new lookupText('photos', 'photo_id', $rs->fields[$fld], 'photo_path', '', '');
$photoPath=$obj->getHtml();
if (($photoTPath!=null) && ($photoTPath!='-') && ($photoTPath!='')) {
list($width, $height) = getimagesize("$photoTPath");
if ($width>100) $width=100;
if ($height>100) $height=100;
?>
}
}
?>
|
}
?>
|
|
//}
?>
}
?>
|