// // ------------------------------------------------------------------------- // // Original Author: James Knickelbein // Author Website : http://www.journeymilwaukee.com // Licence Type : GPL // ------------------------------------------------------------------------- // include_once('../../mainfile.php'); include_once('./cache/config.php'); include_once("header.php"); $lid = intval($_GET['lid']); $db->query('UPDATE '.$db->prefix('adresses_adresses').' SET hits=hits+1 WHERE lid='.$lid.' AND status>0'); $result = $db->query('SELECT lid FROM '.$db->prefix('adresses_adresses').' WHERE lid='.$lid.' AND status>0'); list($lid) = $db->fetchRow($result); $mytree = new XoopsTree($db->prefix("adresses_cat"), "cid", "pid"); $lid = intval($_GET['lid']); $sql = " SELECT lid, cid, title, url, homepage, adres, zip, city, country, phone, mobile, fax, email, opentime, banner, logourl, status, date, hits, rating, votes, description FROM ".$db->prefix("adresses_adresses")." WHERE lid=$lid AND status>0"; $result = $db->query($sql); if ($db->getRowsNum($result) != 1) { redirect_header('index.php'); exit(); } include_once(XOOPS_ROOT_PATH."/header.php"); OpenTable(); echo ""._MI_MYADRESSES_NAME.""; list($lid, $cid, $title, $url, $homepage, $adres, $zip, $city, $country, $phone, $mobile, $fax, $email, $opentime, $banner, $logourl, $status, $time, $hits, $rating, $votes, $description) = $db->fetchRow($result); echo "
"; $pathstring = ""._MODIFYCATEGORY." : "; $nicepath = $mytree->getNicePathFromId($cid, "title", "viewcat.php?"); $pathstring .= $nicepath; echo "".$pathstring."

"; $rating = number_format($rating, 2); $dtitle = $myts->makeTboxData4Show($title); $url = $myts->makeTboxData4Show($url); $homepage = $myts->makeTboxData4Show($homepage); $adres = $myts->makeTboxData4Show($adres); $zip = $myts->makeTboxData4Show($zip); $city = $myts->makeTboxData4Show($city); $country = $myts->makeTboxData4Show($country); $phone = $myts->makeTboxData4Show($phone); $mobile = $myts->makeTboxData4Show($mobile); $fax = $myts->makeTboxData4Show($fax); $email = $myts->makeTboxData4Show($email); $opentime = $myts->makeTboxData4Show($opentime); $banner = $myts->makeTboxData4Show($banner); $logourl = $myts->makeTboxData4Show($logourl); $datetime = formatTimestamp($time, "s"); $description = $myts->makeTareaData4Show($description, 1, 1, 1); include("include/dlformatvisit.php"); CloseTable(); include_once("footer.php"); ?>