session_start();
$OnPage = "D�tails_" . $id;
include("includes/functions.php");
include("includes/sessQR.php");
/*
$sql = "SELECT * FROM visiteurs_onLine WHERE sessID='$LoginSessID'";
$sql_result = @mysql_query($sql,connectDB("qcref"));
while ($row = @mysql_fetch_array($sql_result))
{
$IDfound = explode(",",$row["foundID"]);
$link = $row["refererLink"];
}
*/
#echo url_bar();
if (!$link) {
$link = $_SERVER['HTTP_REFERER'];
#$resultSess = mysql_query ("UPDATE visiteurs_onLine SET refererLink='$link' WHERE sessID='$LoginSessID'");
}
$sql = "SELECT * FROM compagnie WHERE id = ".$_GET['id']." AND actif = '1' LIMIT 1";
$sql_result = @mysql_query($sql, connectDB("qcref"));
while ($row = @mysql_fetch_array($sql_result)) {
$id = $row["id"];
$actif = $row["actif"];
$forfait = $row["forfait"];
$page_view = $row["page_view"];
$ent = stripslashes(strtolower($row["ent"]));
$nom = $row["nom"];
$addr = $row["addr"];
$ville = stripslashes($row["ville"]);
$meteo = $row["meteo"];
$cp = $row["cp"];
$reg = $row["region"];
$maps = $row["maps"];
$tel = $row["tel"];
$telsf = $row["telsf"];
$fax = $row["fax"];
$faxsf = $row["faxsf"];
$web = $row["web"];
$courriel = $row["email"];
$member_date = $row["member_date"];
$keywords = strtolower($row["mots"]);
$desc_ent = stripslashes($row["desc_ent"]);
$desc_act = stripslashes($row["desc_act"]);
$catDB = explode(",", $row["cat"]);
$nombre_img = $row["images"];
$citq_img = $row["citq"];
$citq = explode("_", $row["citq"]);
$chambres = $row["chambres"];
}
$sql = "SELECT * FROM forfaits WHERE id = ".$forfait." LIMIT 1";
$sql_result = @mysql_query($sql, connectDB("qcref"));
while ($row = @mysql_fetch_array($sql_result)) {
$forfait_id = $row["id"];
$forfait_nom = $row["nom"];
$forfait_duree = $row["duree"];
$forfait_max_img = $row["max_img"];
$forfait_max_privi = $row["max_privilege"];
$forfait_max_jour_privilege = $row["max_jour_privilege"];
$forfait_max_cat = $row["max_cat"];
$forfait_max_caract_txt = $row["max_caract_txt"];
$forfait_cms_access = $row["cms_access"];
$forfait_cms_stats = $row["cms_stats"];
$forfait_web_link = $row["web_link"];
$forfait_priorite = $row["priorite"];
$forfait_prix = $row["prix"];
}
if (!$ent || !$actif || $actif==2) {
//Header("Location: http://www.quebecreferences.com/oups.shtml");
//exit;
}
$catmore = 0;
for ($i = 0; $i < MaxCatByMember($id); $i++) {
if ($catDB[$i]) {
$catmore++;
if ($i > 0 && $i < MaxCatByMember($id)) {
$cat_names .= "
";
}
$cat_names .= ucwords(pathCatList($catDB[$i], 1));
}
}
// Ajoute une visite au membre et la date de la derni�re visite par un usager
$page_view++;
$result = mysql_query("UPDATE compagnie SET page_view='$page_view',last_visit_user='$timestamp' WHERE id='$id'");
// ***
if ($actif) {
$result = @mysql_query("INSERT INTO visiteurs_view_members_page (
date_on,
member_id
) VALUES (
'$timestamp',
'$id'
)");
}
if ($nombre_img==1) {
$sql = "SELECT * FROM compagnie_images WHERE comp_id = '$id' AND img_number = '1'";
$sql_result = @mysql_query($sql, connectDB("qcref"));
while ($row = @mysql_fetch_array($sql_result)) {
$IMGtxt = $row["img_txt"];
$IMGone = $row["img_big"];
}
}
$IS_promo = 0;
if ($timestamp >= $promo_du && $timestamp <= $promo_au && $promo) {
$IS_promo = 1;
$sql = "SELECT * FROM compagnie_images_promo WHERE comp_id = '$id'";
$sql_result = @mysql_query($sql, connectDB("qcref"));
while ($row = @mysql_fetch_array($sql_result)) {
$promo_imgID = $row["id"];
$promo_imgS = $row["img_small"];
$promo_imgB = $row["img_big"];
}
if ($promo_imgB) {
$size = getimagesize("/home/" . $SiteNAME . "/public_html/data/images/promo/$id/$promo_imgB");
$Iw = $size[0] + 25;
$Ih = $size[1] + 55;
}
}
?>
echo ucwords(stripslashes($ent)) . " - " . $ville . " : " . strtolower(stripslashes($keywords)); ?>
, echo strtolower($conf_meta_mots); ?>">
if (!$pdc) {
include("includes/user_login.php");
} ?>
if (!$pdc) { ?>
 |
include("/home/" . $SiteNAME . "/public_html/includes/top_menu_visit.php"); ?> |
} ?>
 |
if (!$f && isset($_SESSION['search']['found'])) { ?>
} else if ($f=="users") { ?>
} else if ($f=="home") { ?>
} else { ?>
} ?> |
 |
if ($actif) { ?>
|
 |
echo strtoupper($ent); ?> |
if ($REMOTE_ADDR=="xxx") { ?>
$banT = 0;
$sql = "SELECT * FROM banners_member WHERE actif='1' AND member_id = '$id' AND date_from < $timestamp AND date_to > $timestamp ORDER BY section ASC LIMIT 1";
$sql_result = @mysql_query($sql, connectDB("qcref"));
while ($row = @mysql_fetch_array($sql_result)) {
$banT++;
}
if ($banT) {
?>
} #if ($banT) ?>
} ?>
Vous êtes propriétaire de
cette
entreprise et vous désirez
faire
des modifications sur
cette page? Cliquez ici! |
|
if ($forfait_max_img && $nombre_img > $forfait_max_img) {
$nbrImg = $forfait_max_img;
} else {
$nbrImg = $nombre_img;
}
if (!$forfait_max_img) {
$nbrImg = 0;
}
if ($forfait_max_img && $nbrImg > 1) {
echo $nbrImg . " PHOTOS";
} else {
echo $nbrImg . " PHOTO";
} ?>
|
check_img_one($id); ?>
|
L'ENTREPRISE |
echo ucfirst(nl2br($desc_ent)); ?>
|
NOS ACTIVITÉS |
echo nl2br($desc_act); ?>
|
if ($forfait_max_privi || $forfait_id==1) { ?>
PRIVILÈGES |
$total_promotion = 0;
$total_evenement = 0;
$total_forfait = 0;
$total_message = 0;
$total_coupon = 0;
$total_emploi = 0;
$sql = "SELECT * FROM privileges_membres WHERE date_aprv > 0 AND member_id = '$id'";
$sql_result = @mysql_query($sql, connectDB("qcref"));
while ($row = @mysql_fetch_array($sql_result)) {
$sec = $row["section"];
if ($sec=="promotion") {
$total_promotion++;
}
if ($sec=="evenement") {
$total_evenement++;
}
if ($sec=="forfait") {
$total_forfait++;
}
if ($sec=="message") {
$total_message++;
}
if ($sec=="coupon") {
$total_coupon++;
}
if ($sec=="emploi") {
$total_emploi++;
}
}
?>
|
} ?>
|
|
 |
if (isset($_SESSION['search']['found'])) { ?>
} else if ($f=="users") { ?>
} else if ($f=="home") { ?>
} else { ?>
} ?> |
} else { ?>
echo $ent; ?>
CETTE ENTREPRISE N'A PAS DE PAGE PERSONNELLE POUR L'INSTANT |
|
} ?>
include("includes/bas_page_visiteurs.php"); ?> |
|