<?php if ($id == "10") { ?> <ul> <li><a href="activities_comments.php?type=online"<?php echo $type == "online" && $action == "" ? ' class="sub_menu_active"' : ''; ?> >Voir Online (<?php echo fetchSimpleTotal("activity_comment", "online = 'Y'"); ?> )</a></li> <li><a href="activities_comments.php?type=offline"<?php echo $type == "offline" && $action == "" ? ' class="sub_menu_active"' : ''; ?> >Voir Offline (<?php echo fetchSimpleTotal("activity_comment", "online = 'N'"); ?> )</a></li> </ul> <?php } ?> </li> <li><a href="<?php echo SITE_URL; ?> " target="_blank">Voir le site</a></li> </ul> </div> <!-- -end- side menu --> <hr />
// include DB operations functions include $path_to_dynamik . "db_ops_fncs.inc.php"; // load type of items to display (online / offline) $type = trim($_GET["type"]); // make sure type is set if ($type == "") { $type = "online"; } // transform $type into $online (Y/N) if ($type == "offline") { $online = "N"; } else { $online = "Y"; } // get items total $items_total = fetchSimpleTotal("activities", "online = '" . $online . "'"); // get items results $items_result = fetchActivities(CMS_LANG, $online, "rank", 0, 0); // set id for css purposes $id = 3; // global vars for includes $g_section = 'Blog'; $g_sub_section = $type; $g_sub_sub_section = $items_total; // include header include 'inc/header.inc.php'; // include menu include 'inc/menu.inc.php'; ?> <?php
// include format functions include $path_to_dynamik . "format_functions.inc.php"; // include DB fetch functions include $path_to_dynamik . "db_fetch_fncs.inc.php"; // include DB insert functions include $path_to_dynamik . "db_ops_fncs.inc.php"; // load vars $item_id = trim($_POST["item_id"]); $coord_x1 = trim($_POST["coord_x1"]); $coord_y1 = trim($_POST["coord_y1"]); $coord_x2 = trim($_POST["coord_x2"]); $coord_y2 = trim($_POST["coord_y2"]); $width = trim($_POST["width"]); $height = trim($_POST["height"]); // verify if a row is already there in type_map for given item_id $map_result = fetchSimpleTotal("sale_maps", "sales_id = " . $item_id); // if not there yet, add it, else update if ($map_result == 0) { // insert the item into [sale_maps] $sql_fields = "sales_id, coord_x1, coord_y1, coord_x2, coord_y2, width, height, date_modified"; $sql_values = "'" . $item_id . "', '" . $coord_x1 . "', '" . $coord_y1 . "', '" . $coord_x2 . "', '" . $coord_y2 . "', '" . $width . "', '" . $height . "', NOW()"; $image_id = insertRecord("sale_maps", $sql_fields, $sql_values, TRUE); } else { // update item in [sale_maps] $sql = "UPDATE sale_maps SET "; $sql .= "coord_x1 = " . $coord_x1 . ", "; $sql .= "coord_y1 = " . $coord_y1 . ", "; $sql .= "coord_x2 = " . $coord_x2 . ", "; $sql .= "coord_y2 = " . $coord_y2 . ", "; $sql .= "width = " . $width . ", "; $sql .= "height = " . $height . ", ";
// include DB operations functions include $path_to_dynamik . "db_ops_fncs.inc.php"; // load type of items to display (online / offline) $type = trim($_GET["type"]); // make sure type is set if ($type == "") { $type = "online"; } // transform $type into $online (Y/N) if ($type == "offline") { $online = "N"; } else { $online = "Y"; } // get items total $items_total = fetchSimpleTotal("contacts", "online = '" . $online . "'"); // get items results $items_result = fetchContacts(CMS_LANG, '', 0, ''); // set id for css purposes $id = 6; // global vars for includes $g_section = 'Contacts'; $g_sub_section = $type; $g_sub_sub_section = $items_total; // include header include 'inc/header.inc.php'; // include menu include 'inc/menu.inc.php'; ?> <?php
// include DB operations functions include $path_to_dynamik . "db_ops_fncs.inc.php"; // load type of items to display (online / offline) $type = trim($_GET["type"]); // make sure type is set if ($type == "") { $type = "online"; } // transform $type into $online (Y/N) if ($type == "offline") { $online = "N"; } else { $online = "Y"; } // get items total $items_total = fetchSimpleTotal("projects", "online = '" . $online . "'"); // get items results $items_result = fetchProjects(CMS_LANG, $online, "name", 0, 0); // set id for css purposes $id = 4; // global vars for includes $g_section = 'Projects'; $g_sub_section = $type; $g_sub_sub_section = $items_total; // include header include 'inc/header.inc.php'; // include menu include 'inc/menu.inc.php'; ?> <?php
// include DB operations functions include $path_to_dynamik . "db_ops_fncs.inc.php"; // load type of items to display (online / offline) $type = trim($_GET["type"]); // make sure type is set if ($type == "") { $type = "online"; } // transform $type into $online (Y/N) if ($type == "offline") { $online = "N"; } else { $online = "Y"; } // get items total $items_total = fetchSimpleTotal("sale_comment", "online = '" . $online . "'"); // get items results $items_result = fetchCommentsSales($online); $item_result_reply = fetchReplySales(""); // set id for css purposes $id = 9; // global vars for includes $g_section = 'Sales Comments'; $g_sub_section = $type; $g_sub_sub_section = $items_total; // include header include 'inc/header.inc.php'; // include menu include 'inc/menu.inc.php'; ?>
// include DB operations functions include $path_to_dynamik . "db_ops_fncs.inc.php"; // load type of items to display (online / offline) $type = trim($_GET["type"]); // make sure type is set if ($type == "") { $type = "online"; } // transform $type into $online (Y/N) if ($type == "offline") { $online = "N"; } else { $online = "Y"; } // get items total $items_total = fetchSimpleTotal("sales", "online = '" . $online . "'"); // get items results $items_result = fetchSales(CMS_LANG, $online, "rank", 0, 0); // set id for css purposes $id = 2; // global vars for includes $g_section = 'Ventes'; $g_sub_section = $type; $g_sub_sub_section = $items_total; // include header include 'inc/header.inc.php'; // include menu include 'inc/menu.inc.php'; ?> <?php
// include format functions include $path_to_dynamik . "format_functions.inc.php"; // include DB fetch functions include $path_to_dynamik . "db_fetch_fncs.inc.php"; // include DB insert functions include $path_to_dynamik . "db_ops_fncs.inc.php"; // load vars $item_id = trim($_POST["item_id"]); $coord_x1 = trim($_POST["coord_x1"]); $coord_y1 = trim($_POST["coord_y1"]); $coord_x2 = trim($_POST["coord_x2"]); $coord_y2 = trim($_POST["coord_y2"]); $width = trim($_POST["width"]); $height = trim($_POST["height"]); // verify if a row is already there in type_map for given item_id $map_result = fetchSimpleTotal("activity_maps", "activities_id = " . $item_id); // if not there yet, add it, else update if ($map_result == 0) { // insert the item into [activity_maps] $sql_fields = "activities_id, coord_x1, coord_y1, coord_x2, coord_y2, width, height, date_modified"; $sql_values = "'" . $item_id . "', '" . $coord_x1 . "', '" . $coord_y1 . "', '" . $coord_x2 . "', '" . $coord_y2 . "', '" . $width . "', '" . $height . "', NOW()"; $image_id = insertRecord("activity_maps", $sql_fields, $sql_values, TRUE); } else { // update item in [activity_maps] $sql = "UPDATE activity_maps SET "; $sql .= "coord_x1 = " . $coord_x1 . ", "; $sql .= "coord_y1 = " . $coord_y1 . ", "; $sql .= "coord_x2 = " . $coord_x2 . ", "; $sql .= "coord_y2 = " . $coord_y2 . ", "; $sql .= "width = " . $width . ", "; $sql .= "height = " . $height . ", ";
// include format functions include_once $path_to_dynamik . "format_functions.inc.php"; // include DB fetch functions include_once $path_to_dynamik . "db_fetch_fncs.inc.php"; // include DB operations functions include_once $path_to_dynamik . "db_ops_fncs.inc.php"; // load vars $item_id = trim($_POST["item_id"]); $coord_x1 = trim($_POST["coord_x1"]); $coord_y1 = trim($_POST["coord_y1"]); $coord_x2 = trim($_POST["coord_x2"]); $coord_y2 = trim($_POST["coord_y2"]); $width = trim($_POST["width"]); $height = trim($_POST["height"]); // verify if a row is already there in type_map for given item_id $map_result = fetchSimpleTotal("rental_maps", "rentals_id = " . $item_id); // if not there yet, add it, else update if ($map_result == 0) { // insert the item into [rental_maps] $sql_fields = "rentals_id, coord_x1, coord_y1, coord_x2, coord_y2, width, height, date_modified"; $sql_values = "'" . $item_id . "', '" . $coord_x1 . "', '" . $coord_y1 . "', '" . $coord_x2 . "', '" . $coord_y2 . "', '" . $width . "', '" . $height . "', NOW()"; $image_id = insertRecord("rental_maps", $sql_fields, $sql_values, TRUE); } else { // update item in [rental_maps] $sql = "UPDATE rental_maps SET "; $sql .= "coord_x1 = " . $coord_x1 . ", "; $sql .= "coord_y1 = " . $coord_y1 . ", "; $sql .= "coord_x2 = " . $coord_x2 . ", "; $sql .= "coord_y2 = " . $coord_y2 . ", "; $sql .= "width = " . $width . ", "; $sql .= "height = " . $height . ", ";
// include DB operations functions include $path_to_dynamik . "db_ops_fncs.inc.php"; // load type of items to display (online / offline) $type = trim($_GET["type"]); // make sure type is set if ($type == "") { $type = "online"; } // transform $type into $online (Y/N) if ($type == "offline") { $online = "N"; } else { $online = "Y"; } // get items total $items_total = fetchSimpleTotal("rentals", "online = '" . $online . "'"); // get items results $items_result = fetchRentals(CMS_LANG, $online, "rank", 0, 0); // set id for css purposes $id = 1; // global vars for includes $g_section = 'Locations'; $g_sub_section = $type; $g_sub_sub_section = $items_total; // include header include 'inc/header.inc.php'; // include menu include 'inc/menu.inc.php'; ?> <?php
// include DB operations functions include $path_to_dynamik . "db_ops_fncs.inc.php"; // load type of items to display (online / offline) $type = trim($_GET["type"]); // make sure type is set if ($type == "") { $type = "online"; } // transform $type into $online (Y/N) if ($type == "offline") { $online = "N"; } else { $online = "Y"; } // get items total $items_total = fetchSimpleTotal("activity_comment", "online = '" . $online . "'"); // get items results $items_result = fetchCommentsActivities($online); $item_result_reply = fetchReplyActivities(""); // set id for css purposes $id = 10; // global vars for includes $g_section = 'Blog Comments'; $g_sub_section = $type; $g_sub_sub_section = $items_total; // include header include 'inc/header.inc.php'; // include menu include 'inc/menu.inc.php'; ?>
// include DB operations functions include $path_to_dynamik . "db_ops_fncs.inc.php"; // load type of items to display (online / offline) $type = trim($_GET["type"]); // make sure type is set if ($type == "") { $type = "online"; } // transform $type into $online (Y/N) if ($type == "offline") { $online = "N"; } else { $online = "Y"; } // get items total $items_total = fetchSimpleTotal("locations", "online = '" . $online . "'"); // get items results $items_result = fetchLocations(CMS_LANG, '', 0, ''); // set id for css purposes $id = 5; // global vars for includes $g_section = 'Destinations'; $g_sub_section = $type; $g_sub_sub_section = $items_total; // include header include 'inc/header.inc.php'; // include menu include 'inc/menu.inc.php'; ?> <?php
// include DB operations functions include $path_to_dynamik . "db_ops_fncs.inc.php"; // load type of items to display (online / offline) $type = trim($_GET["type"]); // make sure type is set if ($type == "") { $type = "online"; } // transform $type into $online (Y/N) if ($type == "offline") { $online = "N"; } else { $online = "Y"; } // get items total $items_total = fetchSimpleTotal("testimonials", "online = '" . $online . "'"); // get items results $items_result = fetchTestimonials($online); // set id for css purposes $id = 7; // global vars for includes $g_section = 'Testimonials'; $g_sub_section = $type; $g_sub_sub_section = $items_total; // include header include 'inc/header.inc.php'; // include menu include 'inc/menu.inc.php'; ?> <?php