?> "> <div class="product_img"><?php //echo $prodimagedir.$product_image; ?> <a href="<?php echo generalMethods::getProductdetailNavigationURL($row["product_id"], $catid, $page, $pagegroup); ?> "><?php echo $imageurl; ?> </a> </div> <div class="product_desc"> <a href="<?php echo generalMethods::getProductdetailNavigationURL($row["product_id"], $catid, $page, $pagegroup); ?> " title="<?php echo $prd_name; ?> "> <?php if (strlen($prd_name) > 27) { echo substr(ucwords(strtolower($prd_name)), 0, 27) . "..."; } else { echo ucwords(strtolower($prd_name)); } ?> </a> </div> <div class="product_price">
(function() { var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true; po.src = 'https://apis.google.com/js/plusone.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s); })(); </script> <?php } ?> <!-- End Google Plus Share Button --> <!-- Pinterest Pin-It Button --> <?php if (getSettingsValue('enable_pinit') == 'Y') { ?> <?php $pinterestURL = generalMethods::getProductdetailNavigationURL($prow['product_id']); $product_image = $prow["image_small"]; if (strpos($product_image, "http") === false) { $pinterestImgURL = SITE_URL . "/products/" . $product_image; } else { $pinterestImgURL = $product_image; } ?> <script>function pinit_click() {u=location.href;t=document.title;window.open("http://pinterest.com/pin/create/button/?url=<?php echo urlencode($pinterestURL); ?> &media=<?php echo urlencode($pinterestImgURL); ?> &description=<?php
$currency_attributes = displayCurrencyType(); $conversionRate = ConvertedCurrencyRate($currency_attributes[2]); $converted_price = $price * $conversionRate; $discountprice = 0; if ($row["discount"] != "0") { $discountprice = $converted_price - $converted_price * $row["discount"] / 100; $discountprice = number_format($discountprice, 2, ".", ""); $discountstr = "<br>discount(" . $row["discount"] . "%)"; } $display_product_price = number_format($converted_price, 2, ".", ""); $featured = $row["featured"] == 'Y' ? 'dsd' : 'new'; echo "<item>\n"; echo "<title>" . ucfirst($row["product_name"]) . "</title>\n"; echo "<link>" . generalMethods::getProductdetailNavigationURL($row["product_id"]) . "</link>\n"; echo "<description>\n"; echo '<![CDATA[' . html_entity_decode(stripslashes($row["product_description"])) . ']]>'; echo "</description>\n"; echo "<guid isPermaLink='true'>" . generalMethods::getProductdetailNavigationURL($row["product_id"]) . "</guid>\n"; echo "<g:image_link>" . SITE_URL . "/" . $prdImage . "</g:image_link>\n"; echo "<g:price>" . $display_product_price . "</g:price>\n"; echo "<g:condition>" . $featured . "</g:condition>\n"; echo "<g:id>" . $row["product_id"] . "</g:id>\n"; echo "</item>\n"; } } // And at last the closing tags for the overall info echo "</channel>\n"; echo "</rss>\n"; ?>
public static function showVendorProductCurozileItems($IBArr) { if (count($IBArr) > 0) { ?> <div class="vendor_image_thumbnail_scroll"> <div class="vendor_image_thumbnail_scroll_inner"> <table> <tr> <?php foreach ($IBArr as $itemIB) { $imgPath = $imgURL = NULL; $partsIB = pathinfo($itemIB->image_small); // echopre($partsIB); $imgPath = DbHelper::getBasePath() . '/products/' . $partsIB['filename'] . '.' . $partsIB['extension']; if (strstr($partsIB['basename'], "http://")) { $imgURL = $partsIB['basename']; } else { if (count($partsIB) == 0 || $partsIB['filename'] == "") { $imgURL = SITE_URL . '/products/noimage.jpg'; } else { $imgURL = SITE_URL . '/products/' . $partsIB['filename'] . '.' . $partsIB['extension']; } } if ($imgURL == "") { $imgURL = SITE_URL . '/products/noimage.jpg'; } // $imgURL = (is_file($imgPath)) ? $imgURL : SITE_URL.'/products/noimage.jpg'; // $imgPath = (is_file($imgPath)) ? $imgPath : DbHelper::getBasePath().'/products/noimage.jpg'; // if(is_file($imgPath)) { ?> <td><a href="<?php echo generalMethods::getProductdetailNavigationURL($itemIB->product_id); ?> "> <img src="<?php echo $imgURL; ?> " width="150" height="143" alt="<?php echo $itemIB->product_name; ?> " title="<?php echo $itemIB->product_name; ?> " border="0" /> </a> </td> <?php // } } ?> </tr> </table> </div> <div class="clear"></div> </div> <div class="clear"></div> </div> <?php } }
$seller_rs = mysql_query($seller_sql); $seller_rw = mysql_fetch_array($seller_rs); $seller_email = $seller_rw["email"]; } /***************** End fetching product details **********/ // Send mail to admin /*---------Multicart 2.0 Upgradation------------*/ $subject = "New review is posted in " . stripslashes(SITE_NAME); $mailcontent = readEmailTemplate('product_review'); if ($reviewapproval == "admin") { $to = SITE_EMAIL; } elseif ($reviewapproval == "vendors") { $to = $seller_email; $mailcontent = str_replace('Administrator', "Seller", $mailcontent); } $link = "<a href='" . generalMethods::getProductdetailNavigationURL($_POST["pid"]) . "' target='_blank'>Click here</a>"; /*-------Email Template Reading Fuction Call--------*/ $mailcontent = str_replace('[site_name]', SITE_NAME, $mailcontent); $mailcontent = str_replace('[product_name]', $p_row["product_name"], $mailcontent); $mailcontent = str_replace('[link]', $link, $mailcontent); /*--------------- End email template section-------------------*/ /******* Send Email ************************************************/ $headers = "MIME-Version: 1.0" . "\r\n"; $headers .= "Content-type: text/html; charset=iso-8859-1" . "\r\n"; $headers .= "From: " . SITE_EMAIL . "<" . SITE_EMAIL . ">" . "\r\n"; $headers .= "Reply-To: " . SITE_NAME . "<" . SITE_EMAIL . ">" . "\r\n"; $headers .= "Return-Path: " . SITE_NAME . "<noreply@" . SITE_EMAIL . ">" . "\r\n"; //$headers .= "Organization: ".SITE_NAME."\r\n"; $mailcontent = nl2br($mailcontent); //$mail_send_details = "<html><head><link href='".SITE_URL."/style/template1-admin.css' rel='stylesheet' type='text/css'></head><body><center><div align='left' id='layout'><div align='left' class='header'><div align='left' class='logo'><img src=".$logofolder."/".$logoimage." width='125' height='39'/></div></div><div>".$mailcontent."</div></div><div align='left' class='clear_float'><img src=".$imagefolder."/clear.gif width=1 height=1/></div></div></div></center></body></html>"; $mail_send_details = '<html>
<tr> <td colspan="3" align="right"><span class="required">*</span>Mandatory Fields</td> </tr> <tr><td colspan="3"> </td></tr> <tr><td align="left" valign="top" width="32%">Your Feedback <span class="required">*</span></td><td > </td><td align="left"><TEXTAREA class="textarea" name="txtFeedback" rows="8" cols="40"><?php echo $txtFeedback; ?> </TEXTAREA></td></tr> <tr><td align="left" valign="top" >Your rating (1-10, 10 Best) <span class="required">*</span></td><td > </td><td align="left"><?php echo makeDropDownList("ddlRating", $ratinglist, $ddlRating, false, "textbox", $properties, $behaviors); ?> </td></tr> <tr><td colspan="3"> </td></tr> <tr><td colspan="3" align="center"> <input class="button" type="button" value="Back to Product Details" onClick="window.location.href='productdetails.php?productid=<?php echo generalMethods::getProductdetailNavigationURL($productid); ?> ';" > <input type="submit" class="button" value="Post Feedback" name="btnPostFeedback"></td></tr> </table> <div class="clear"></div> </div> <div align="left" class="float_clear1"></div> <!--items display area end --> </div> </form>
?> &product_option_id=<?php echo $row["product_option_id"]; ?> "><img src="<?php echo SITE_URL; ?> /themes/<?php echo $active_template[5]; ?> /view_cart_btn.gif" width="73" height="20" alt="Add to Cart" border="0"/></a> <?php } ?> <a class="more_btn" href="<?php echo generalMethods::getProductdetailNavigationURL($row["product_id"]); ?> "><img src="<?php echo SITE_URL; ?> /themes/<?php echo $active_template[5]; ?> /btn_more.gif" width="73" height="20" alt="More" border="0"/></a> </div> <?php } else { ?> <div class="adtocart_tbn" align="left"><img src="<?php echo SITE_URL;
/*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; }*/ $name = $_POST['name']; $email = $_POST['email']; $product_id = $_POST['product_id']; $product_url = '<a target="_blank" href="' . generalMethods::getProductdetailNavigationURL($product_id) . '">' . generalMethods::getProductdetailNavigationURL($product_id) . '</a>'; //$userName = getLoggedInUserName($_SESSION["sess_userid"]); $to = $email; $subject = "Product Information by " . SITE_NAME; $mailcontent = readEmailTemplate('mail_friend'); $mailcontent = str_replace('[name]', $name, $mailcontent); $mailcontent = str_replace('[product_url]', $product_url, $mailcontent); //$mailcontent = str_replace('[user_name]',$userName,$mailcontent); $from = "From: " . SITE_EMAIL . "\n"; $headers = "MIME-Version: 1.0" . "\r\n"; $headers .= "Content-type: text/html; charset=iso-8859-1" . "\r\n"; $headers .= "From: " . SITE_EMAIL . "<" . SITE_EMAIL . ">" . "\r\n"; $headers .= "Reply-To: " . SITE_NAME . "<" . SITE_EMAIL . ">" . "\r\n"; $headers .= "Return-Path: " . SITE_NAME . "<" . SITE_EMAIL . ">" . "\r\n"; $headers .= "Organization: " . SITE_NAME . "\r\n"; $mailcontent = nl2br($mailcontent);