public static function getHelpdetailNavigationURL($helpID) { global $tableprefix; $navigationURL = $bindName = NULL; if (!empty($productID)) { $resSet = DbHelper::execute("SELECT htitle FROM " . $tableprefix . "help WHERE hid =" . $helpID); $data = DbHelper::fetchOne($resSet); $bindName = generalMethods::doTrimSeoNames(strtolower(stripslashes($data))); $navigationURL = SITE_URL . "/help/" . $bindName . "/" . $helpID; } return $navigationURL; }
</td> </tr> <tr></tr> <tr class="tab_tblbg"> <td> </td> <td height="40"> <?php if ($enable_seller_friendly == "Y") { ?> <a href="<?php echo SITE_URL; ?> /store/<?php echo generalMethods::doTrimSeoNames(strtolower(stripslashes($prow['artist_name']))); ?> /<?php echo $prow['artist_id']; ?> /products"/> <b> VIEW ALL PRODUCTS FROM <?php echo $prow['sellername']; ?> </b></a> <?php } else { ?> <a href="<?php echo SITE_URL; ?> /showportfolio.php?artistid=<?php
} } ?> <?php $rootflage2 = 0; } } if (trim($category_name) == 'Forest') { //show fpr forest catgeory only $MadeToOrder = getMadeToOrderCatgeory($rowcategories["category_id"]); if ($MadeToOrder != '') { ?> <!--<li> <a href="<?php echo SITE_URL . '/' . generalMethods::doTrimSeoNames($rowcategories["category_name"]) . '/' . generalMethods::doTrimSeoNames($MadeToOrder) . "/" . $rowcategories["category_id"]; ?> " title="<?php echo $MadeToOrder; ?> "><?php echo $MadeToOrder; ?> </a> </li>--> <?php } } ?> </ul> <?php
function getProductPageLinkName($baseurl, $catid, $productname, $urlType = NULL) { global $tableprefix; $link = " "; //$link = "<a class='nobg' href='".SITE_URL."'> Home </a> "; if ($catid != "") { $sql = "SELECT * FROM " . $tableprefix . "categories where category_id = " . $catid; $result = mysql_query($sql); if (mysql_num_rows($result) != 0) { $row = mysql_fetch_array($result); $currcatid = $row["category_id"]; $currcatname = stripslashes($row["category_name"]); $subcats = $row["route"]; } if ($subcats == "") { $bindCategory = $navigationLink = NULL; $bindCategory = generalMethods::doTrimSeoNames(strtolower(stripslashes($currcatname))); $navigationLink = $urlType == 'seo' ? SITE_URL . "/" . $bindCategory . "/" . $currcatid : SITE_URL . "/" . $baseurl . "?catid=" . $currcatid; $lastcat = "<a href='" . $navigationLink . "'>->" . htmlentities(stripslashes($currcatname)) . "</a>"; } else { $sql = "SELECT * FROM " . $tableprefix . "categories where category_id in ({$subcats}) "; $result = mysql_query($sql); if (mysql_num_rows($result) != 0) { while ($row = mysql_fetch_array($result)) { $subcatname = stripslashes($row["category_name"]); $subcatid = $row["category_id"]; $bindCategory = $navigationLink = NULL; $bindCategory = generalMethods::doTrimSeoNames(strtolower(stripslashes($subcatname))); $navigationLink = $urlType == 'seo' ? SITE_URL . "/" . $bindCategory . "/" . $subcatid : SITE_URL . "/" . $baseurl . "?catid=" . $subcatid; $link .= " <a href='" . $navigationLink . "'->->" . htmlentities(stripslashes($subcatname)) . "</a>"; } } // $link = substr($link, 0, -35); } } $link .= $lastcat; $prodctlink .= " <a href='javascript:void(0);'>" . $productname . "</a>"; $newlink = $link . $prodctlink; return $newlink; }
$catgeoryName = 'forest'; ?> <div class="home_cat_list"> <a class="home_catimg" href="<?php echo SITE_URL . '/' . generalMethods::doTrimSeoNames($catgeoryName) . '/' . generalMethods::doTrimSeoNames($MadeToOrder) . "/" . $catgeoryId; ?> "><img src="<?php echo $madetoOrderImage; ?> " width="132" height="126" alt="<?php echo $MadeToOrder; ?> " /></a> <div class="home_catname"> <a href="<?php echo SITE_URL . '/' . generalMethods::doTrimSeoNames($catgeoryName) . '/' . generalMethods::doTrimSeoNames($MadeToOrder) . "/" . $catgeoryId; ?> "><?php echo $MadeToOrder; ?> </a> </div> </div> <?php } ?> <div class="clear"></div> </div>
"><img src="<?php echo SITE_URL; ?> /help/<?php echo mysql_result($contents, $j, 'himage'); ?> " width="22" height="20" alt="<?php echo str_replace('{SITE_NAME}', SITE_NAME, mysql_result($contents, $j, 'htitle')); ?> " border="0"> </a></td> <td width="96%" align="left" class="help_text"><a href="<?php echo SITE_URL; ?> /help/<?php echo generalMethods::doTrimSeoNames(mysql_result($contents, $j, 'htitle')); ?> /<?php echo mysql_result($contents, $j, 'hid'); ?> "><?php echo str_replace('{SITE_NAME}', SITE_NAME, mysql_result($contents, $j, 'htitle')); ?> </a> </td> </tr> <?php } //end inner for loop } //end if