<div align="left" class="main_body" >
				<!--main body start -->
<?php 
include "../includes/artisttopmenu.php";
?>
																
				
					
								
				<div align="right" class="content_area">
					<!--content area start -->
									<br>									
									<div class="username_chooseplan"><strong>Welcome&nbsp;<?php 
echo getArtistName($artistid);
?>
&nbsp;&nbsp;</strong></div>
									<br><br>						
					<!--content area ends -->
					
					<div align="center">
					<table width="200" border="0" align="center" cellspacing="0" bordercolor="#000000">
  <tr>
    <td>
	<table width="600" border="0" align="center">
                      <tr align="center">
                        <td align="center">Please choose your subscription plan to enjoy the features.</td>
                      </tr>
                      <tr>
                        <td align="center"><form name="subMembership" method="post" action="chooseYourPlan.php">
    $imageurl = $prodimagedir . "noimage.jpg";
} else {
    if (strstr($product_image, "http://")) {
        $imageurl = $product_image;
    } else {
        $imageurl = $prodimagedir . $product_image;
    }
}
//echo $imageurl;
$detail_image_url = "<img  width='283' height='269' src='" . $imageurl . "' border='0' id='itemImage'>";
if (intval($prow["product_stock"]) > 0) {
    $productinstock = true;
} else {
    $productinstock = false;
}
$artistname = getArtistName($artistid);
// End Details
$price = $prow["product_price"];
$currency_attributes = displayCurrencyType();
$conversionRate = ConvertedCurrencyRate($currency_attributes[2]);
$converted_price = $price * $conversionRate;
$discountprice = 0;
if ($prow["discount"] != "0") {
    $discountprice = $converted_price - $converted_price * $prow["discount"] / 100;
    $discountprice = number_format($discountprice, 2, ".", "");
}
$display_product_price = number_format($converted_price, 2, ".", "");
// End Set Currency Value
// Item Description
$product_description_format = $prow["product_description"];
// End Item Description
 if ($txtGiftCode == '') {
     $message = "Enter Gift Cerficate Code";
 } else {
     $sql_code = "SELECT g.* FROM " . $tableprefix . "giftcertificates g\n                                        where g.vgift_coupon_code='" . addslashes($txtGiftCode) . "' ";
     $rs_code = mysql_query($sql_code) or die(mysql_error());
     if (mysql_num_rows($rs_code) > 0) {
         $rsobj = mysql_fetch_object($rs_code);
         $sellerid = $rsobj->seller_id;
         $sql_select_products = "SELECT p.product_id,p.product_name\n                                                           FROM " . $tableprefix . "product_options po\n                                                           INNER JOIN " . $tableprefix . "products p ON po.product_id = p.product_id\n                                                           INNER JOIN " . $tableprefix . "cart c ON c.product_option_id=po.product_option_id\n                                                           WHERE c.user_id='" . $userid . "' and p.product_artist_id!='" . $sellerid . "' ";
         $rs_select_products = mysql_query($sql_select_products) or die(mysql_error());
         if (mysql_num_rows($rs_select_products) > 0) {
             while ($rows = mysql_fetch_array($rs_select_products)) {
                 $productnames[] = $rows['product_name'];
             }
             $products = join(",", $productnames);
             $message = "Following products are not from " . getArtistName($sellerid) . " , Please  delete them from cart to use this giftcertificate. <br> ";
             $message .= $products;
         } else {
             $avaibale_gift_amt = $rsobj->ngift_coupon_amount - $rsobj->nused_gift_amount;
             if ($avaibale_gift_amt > 0) {
                 $_SESSION['sess_giftcertificate_available_amt'] = $avaibale_gift_amt;
                 $_SESSION['sess_giftcertificate_code'] = $txtGiftCode;
                 $success_message = "GiftCertificate Applied Successfully ,<b>&nbsp; amount will be deducted from your Giftcertificate.";
             } else {
                 $_SESSION['sess_giftcertificate_available_amt'] = '';
                 $message = "This Giftcertificate Already Used , No  Balance in this Giftcertificate";
             }
         }
     } else {
         $message = "Gift Certificate Code Does not Exists , Enter valid Gift Certificate Code";
     }
    exit;
}
if ($_POST["btnPostFeedback"] == "Post Feedback") {
    $txtFeedback = $_POST["txtFeedback"];
    $ddlRating = $_POST["ddlRating"];
    if (!isNotNull($txtFeedback)) {
        $message .= "* Feedback cannot be empty! <br>";
    }
    if ($message != "") {
        // error
        $message = "<br>Please correct the following errors to continue!<br>" . $message;
    } else {
        // no error so insert user details
        $sql = "INSERT INTO " . $tableprefix . "artist_feedbacks (\n\t\t\t\tfeedback_content,\n\t\t\t\trating,\n\t\t\t\tuser_id,\n\t\t\t\tartist_id,\n\t\t\t\tdate_added,\n\t\t\t\tpublished\n\n\t\t\t\t) VALUES (\n\t\t\t\t'" . addslashes($txtFeedback) . "',\n\t\t\t\t'" . addslashes($ddlRating) . "',\n\t\t\t\t'" . addslashes($userid) . "',\n\t\t\t\t'" . addslashes($artistid) . "',\n\t\t\t\tnow(),\n\t\t\t\t'N')\n\t\t\t\t";
        //echo $sql;
        $message = "Thank you for posting your valuable feedback about <b>" . getArtistName($artistid) . "</b>";
        $message .= "<br>Your feedback is pending for review and approval by the administrator";
        mysql_query($sql);
        $txtFeedback = "";
        $ddlRating = "";
    }
}
$ratinglist = array();
for ($i = 1; $i < 11; $i++) {
    $ratinglist[$i] = $i;
}
/*display the active template*/
$active_template = displayTemplate();
include "includes/htmltop.php";
/* Top File Name */
include_once "includes/" . $active_template[0];
示例#5
0
<?php

$page = "artist";
require_once $_SERVER["DOCUMENT_ROOT"] . "/php/includes/config.php";
require_once ROOT_PATH . 'php/functionList.php';
include ROOT_PATH . 'php/ignoreList.php';
$artistFullName = getArtistName();
if (strpos($artistFullName, '_') > 0) {
    $artistLastName = substr($artistFullName, strpos($artistFullName, '_') + 1);
} else {
    $artistLastName = $artistFullName;
}
$artistInfo = selectQuery('select * from artists where lastName="' . $artistLastName . '"');
$artist_id = $artistInfo[0]["artist_id"];
$title = $artistInfo[0]["artist_name"];
$description = "Overview of art works by " . $title . " available at the Sloane Gallery of Art, Denver CO";
$keywords = $title;
if (in_array($artist_id, $ukranians)) {
    $artistWorks = selectQuery('select * from art_works where ' . printUkranians($ukranians) . ' ORDER BY availability, media');
} elseif (in_array($artist_id, $change_order)) {
    $artistWorks = selectQuery('select * from art_works where artist = ' . $artist_id . ' ORDER BY availability desc, category, media desc');
} else {
    $artistWorks = selectQuery('select * from art_works where artist = ' . $artist_id . ' ORDER BY availability, media');
}
$thumbsHTML = "";
foreach ($artistWorks as $work) {
    if (setArtWork($work) && !in_array($work["work_id"], $ignoreListArtWorks)) {
        $thumbsHTML .= '<div class="thumbs" itemscope itemtype="http://schema.org/Painting">';
        $thumbsHTML .= '<a href="work/' . $artist_id . '/"> 
            <img src="img/Thumb/' . $work["image"] . '.jpg" alt=' . $work["title"] . '/></a>';
        if (isset($work["title"])) {