session_start();
include ("include/variables_frontend.inc");
include ("$configuracion");
include ("$adodb");
include ("include/adminObjects.inc");
global $DB;
$lang=$_REQUEST["lang"]; if ($lang==null) $lang='en';
$offset=$_REQUEST["offset"];
$c=$_REQUEST["c"];
$sc=$_REQUEST["sc"];
$cid=$_REQUEST["cid"];
$scid=$_REQUEST["scid"];
$name=$_SESSION['ID_ADMIN'];
$group=$_SESSION['NAME_ADMIN'];
$super=$_SESSION['SUPER_ADMIN'];
$usrname=$_SESSION['USRNAME'];
$pricetype=$_SESSION['PRICETYPE'];
$email=$_SESSION['EMAIL'];
global $usrname;
global $pricetype;
global $email;
?>
if (strtoupper($lang)=='GR')
searchModule('ΑΝΑΖΗΤΗΣΗ ΚΩΔΙΚΟΥ','Αποδοχή');
else
searchModule('SEARCH BY CODE','Submit');
?>
if ($c!=null) {
$q="select * from collections order by col_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();
}
}
} else if ($sc!=null) {
$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();
?>