//get currency $currency_attributes = displayCurrencyType(); //get all product reviews $product_feedbacks = Userdashboard::listProductFeedbacks($userid); $totalrows = count($product_feedbacks); //get pagination results $limit = getPaginationLimit(); if ($limit == 0) { $limit = 10; } $page = isset($_GET['page']) ? trim($_GET['page']) : 1; if (empty($page)) { $page = 1; } $sql = " SELECT p.product_name ,f.*, u.user_name,u.email FROM " . $tableprefix . "Review f\n\t\tINNER JOIN " . $tableprefix . "users u ON f.nUserId = u.user_id\n INNER JOIN " . $tableprefix . "products p ON p.product_id = f.nProdId\n WHERE f.nUserId = {$userid}\n AND f.vActive = '1' AND f.deleted = 0\n ORDER BY f.vDateAdded DESC "; $product_feedbacks_records = Userdashboard::getPaginationResult($sql, $limit, $page); /*display the active template*/ $active_template = displayTemplate(); include "includes/htmltop.php"; /* Top File Name */ include_once "includes/" . $active_template[0]; ?> <script language="JavaScript" type="text/JavaScript"> function confirmDelete(){ return confirm('Are you sure to delete this feedback?'); } </script> <!-- content area Right Column starts-------------------------------------------------------------- -->
include "includes/functions.php"; include "includes/arrays.inc.php"; include "classes/cls_userdashboard.php"; if (get_magic_quotes_gpc()) { $_POST = array_map('stripslashes_deep', $_POST); $_GET = array_map('stripslashes_deep', $_GET); $_COOKIE = array_map('stripslashes_deep', $_COOKIE); } if (isset($_SESSION["sess_userid"]) and $_SESSION["sess_userid"] != "") { $userid = $_SESSION["sess_userid"]; } else { header("Location:login.php"); exit; } $feedback_id = $_REQUEST['feedback_id']; $feedback = Userdashboard::getProductFeedback($feedback_id); /*display the active template*/ $active_template = displayTemplate(); include "includes/htmltop.php"; /* Top File Name */ include_once "includes/" . $active_template[0]; ?> <div align="left" class="main_body"> <!--mainbody area start --> <div align="left" id="body_left_area"> <!--body left area start -->
include "includes/arrays.inc.php"; include "classes/cls_userdashboard.php"; error_reporting(1); if (get_magic_quotes_gpc()) { $_POST = array_map('stripslashes_deep', $_POST); $_GET = array_map('stripslashes_deep', $_GET); $_COOKIE = array_map('stripslashes_deep', $_COOKIE); } if (isset($_SESSION["sess_userid"]) and $_SESSION["sess_userid"] != "") { $userid = $_SESSION["sess_userid"]; } else { header("Location:login.php"); exit; } $feedback_id = $_REQUEST['feedback_id']; $feedback = Userdashboard::getVendorFeedback($feedback_id); /*display the active template*/ $active_template = displayTemplate(); include "includes/htmltop.php"; /* Top File Name */ include_once "includes/" . $active_template[0]; ?> <div align="left" class="main_body"> <!--mainbody area start --> <div align="left" id="body_left_area"> <!--body left area start -->
$_COOKIE = array_map('stripslashes_deep', $_COOKIE); } if (isset($_SESSION["sess_userid"]) and $_SESSION["sess_userid"] != "") { $userid = $_SESSION["sess_userid"]; } else { header("Location:login.php"); exit; } //update shipping info if ($_POST["btnSaveChanges"] == "Save Changes") { $message = Userdashboard::updateShippingInfo($userid, $_REQUEST); $url = "saved_shipping.php?msg=" . $message; generalMethods::redirect($url); } //get current users shipping info $saved_shipping_info = Userdashboard::getSavedShippingInfo($userid); if (count($saved_shipping_info) != 0) { $txtFirstName = $saved_shipping_info->shipping_first_name; $txtLastName = $saved_shipping_info->shipping_last_name; $txtAddress1 = $saved_shipping_info->shipping_address1; $txtAddress2 = $saved_shipping_info->shipping_address2; $txtCity = $saved_shipping_info->shipping_city; $txtState = $saved_shipping_info->shipping_state; $ddlCountry = $saved_shipping_info->shipping_country; $txtPhone = $saved_shipping_info->shipping_phone; $txtFAX = $saved_shipping_info->shipping_fax; $txtZIP = $saved_shipping_info->shipping_zip; $txtEmail = $saved_shipping_info->shipping_email; } //error/success message $message = isset($_GET['msg']) ? $_GET['msg'] : "";