// | Copyrights Armia Systems, Inc and iScripts.com � 2005                |
// | All rights reserved                                                  |
// +----------------------------------------------------------------------+
// | This script may not be distributed, sold, given away for free to     |
// | third party, or used as a part of any internet services such as      |
// | webdesign etc.                                                       |
// +----------------------------------------------------------------------+
include "../includes/config.php";
include "../includes/session.php";
include "../includes/functions.php";
include "../includes/htmltop.php";
$approval = $_GET['approval'];
if ($approval == 2) {
    $cms_content_terms = displayCMS('vendor_admin_approval');
} elseif ($approval == 3) {
    $cms_content_terms = displayCMS('vendor_email_confirmation');
}
$fill_out_ticket_link_url = getSettingsValue('fill_out_ticket_link_url');
$fill_out_ticket_link_text = getSettingsValue('fill_out_ticket_link_text');
if ($fill_out_ticket_link_url != '' && $fill_out_ticket_link_text != '') {
    if (substr_count($fill_out_ticket_link_url, "http://") == 0) {
        $url = "http://" . $fill_out_ticket_link_url;
    } else {
        $url = $fill_out_ticket_link_url;
    }
    $link = "\r\n" . "<a href=" . $url . " target='_blank'>" . $fill_out_ticket_link_text . "</a>\r\n\n";
} else {
    if ($fill_out_ticket_link_url == '' && $fill_out_ticket_link_text != '') {
        $url = SITE_URL . "/supportdesk/index.php";
        $link = "\r\n" . "<a href=" . $url . " target='_blank'>" . $fill_out_ticket_link_text . "</a>\r\n\n";
    } else {
<?php

include "includes/config.php";
include "includes/session.php";
include "includes/functions.php";
$filename = isset($_GET['content_id']) ? trim($_GET['content_id']) : '';
$contentID = file_ext_strip($filename);
/*$contentID = str_replace('.html', '',$contentID);
$contentID = str_replace('.htm', '', $contentID);
$contentID = str_replace('-', '_', $contentID);*/
$cms_content_main = displayCMS($contentID);
/*display the active template*/
$active_template = displayTemplate();
//echo stripslashes($cms_content_main[1]);
include "includes/htmltop.php";
/* Top File Name */
include_once "includes/" . $active_template[0];
?>
<!-- content area Right Column starts-------------------------------------------------------------- -->


    <div align="left" class="main_body">
        <!--mainbody area start -->
        <!--center content area start-->
        <!-- Bread Crumb Area -->
        <?php 
echo generalMethods::getBreadCrumbs(array(array('url' => '', 'name' => strip_tags($cms_content_main[0]))));
?>
        <!-- Bread Crumb Area End -->
        <br/>
        <div class="pcm_content_rightcolumn">
// +----------------------------------------------------------------------+
// | Authors: Programmer<*****@*****.**>        		              |
// +----------------------------------------------------------------------+
// | Copyrights Armia Systems, Inc and iScripts.com © 2005                |
// | All rights reserved                                                  |
// +----------------------------------------------------------------------+
// | This script may not be distributed, sold, given away for free to     |
// | third party, or used as a part of any internet services such as      |
// | webdesign etc.                                                       |
// +----------------------------------------------------------------------+
/*---Multicart 2.0 Upgradation Starts------

	Content Management Function Call

*/
$content_array = displayCMS('home_page');
/*---Multicart 2.0 Upgradation Ends------*/
?>
<br>
<table width="100%"  border="0" cellspacing="0" cellpadding="0">

<!--
	Multicart 2.0 Upgradation Starts

-->


  <tr>
    <td height="29" align="left" valign="middle" class="">&nbsp;&nbsp;&nbsp;<?php 
echo $content_array[0];
?>
// +----------------------------------------------------------------------+
// | This script may not be distributed, sold, given away for free to     |
// | third party, or used as a part of any internet services such as      |
// | webdesign etc.                                                       |
// +----------------------------------------------------------------------+
include "includes/config.php";
include "includes/session.php";
include "includes/functions.php";
die("hi");
/*display the active template*/
$active_template = displayTemplate();
include "includes/htmltop.php";
/* Top File Name */
include_once "includes/" . $active_template[0];
/*---Display the terms and conditions------*/
$cms_content_terms = displayCMS('about_us');
/*---Display the terms and conditions------*/
?>

<!-- content area Right Column starts-------------------------------------------------------------- -->

<div class="pcm_content_rightcolumn">
    
<div align="left" class="main_body">
			<!--mainbody area start -->
		<!--center content area start-->
                <!-- Bread Crumb Area -->
                <?php 
echo generalMethods::getBreadCrumbs(array(array('url' => '', 'name' => strip_tags($cms_content_terms[0]))));
?>
                <!-- Bread Crumb Area End -->
// | All rights reserved                                                  |
// +----------------------------------------------------------------------+
// | This script may not be distributed, sold, given away for free to     |
// | third party, or used as a part of any internet services such as      |
// | webdesign etc.                                                       |
// +----------------------------------------------------------------------+
include "includes/config.php";
include "includes/session.php";
include "includes/functions.php";
/*display the active template*/
$active_template = displayTemplate();
include "includes/htmltop.php";
/* Top File Name */
include_once "includes/" . $active_template[0];
/*---Display the terms and conditions------*/
$cms_content_terms = displayCMS('terms_conditions');
/*---Display the terms and conditions------*/
?>


<div align="left" class="main_body">
			<!--mainbody area start -->
		<!--center content area start-->
                <!-- Bread Crumb Area -->
                <?php 
echo generalMethods::getBreadCrumbs(array(array('url' => '', 'name' => strip_tags($cms_content_terms[0]))));
?>
                <!-- Bread Crumb Area End -->

		<form name="frmRegister" action="<?php 
echo $_SERVER["PHP_SELF"];
$page = $_GET['page'];
if (empty($page)) {
    $page = 1;
}
$pagegroup = $_GET['pagegroup'];
if (empty($pagegroup)) {
    $pagegroup = 1;
}
$limit = getPaginationLimit();
if ($limit == 0) {
    $limit = 12;
}
$sql_qr = dopaging($sql, '', $limit);
$result = mysql_query($sql_qr) or die(mysql_error());
$totalrows = mysql_num_rows(mysql_query($sql));
$cms_content = displayCMS('home_page');
?>
	
<!-- content area Right Coulumn starts-------------------------------------------------------------- -->
                <div class="pcm_content_rightcolumn">
				<div class="tab_pannel">
					<div class="tab_pannel_hdr">
						<ul>
							<li class="active" id="catalogtabid"> <a href="#" onclick=" return showcatloge()">Catalog</a></li>
                                                        <li id="featuretabid"><a href="#" onclick=" return showFeatureditems()">Featured Items</a></li>
							<li id="newitemtabid"><a href="#" onclick=" return showNewitems()">New Items</a></li>
							<div class="clear"></div>
						</ul>
					</div>
					<div class="tab_pannel_content" >
                                            <div id="tab_pannel_contentid" style="height: 400px;" >
<?php

$cms_content_footer_admin = displayCMS('terms_conditions');
?>
	
<div align="center" style="font-size: 13px;" class="copyright">
<table cellpadding="1" cellspacing="1" width="100%">
<tr><td>
<?php 
if (strstr($_SERVER['REQUEST_URI'], 'calculate_shipping.php') == FALSE && strstr($_SERVER['REQUEST_URI'], 'install.php') == FALSE) {
    $cms_content_footer = displayCMS('terms_conditions');
    $cms_content_about_us = displayCMS('about_us');
    $cms_content_contact_us = displayCMS('contact_us');
    ?>
		
<?php 
    echo "<a href='" . SITE_URL . "/terms_conditions.html'>" . strip_tags($cms_content_footer[0]) . "</a>&nbsp;&nbsp;";
    echo "<a href='" . SITE_URL . "/about_us.html'>" . strip_tags($cms_content_about_us[0]) . "</a>&nbsp;&nbsp;";
    echo "<a href='" . SITE_URL . "/contact_us.html'>" . strip_tags($cms_content_contact_us[0]) . "</a>";
}
?>
</td><td>
		<div align="right" id="copyright_rgt">Powered by <a href="http://www.iscripts.com/multicart" target="_blank"><font color="#F4700E"><b>iScripts Multicart</b></font></a>. A premium product from <a href="http://www.iscripts.com" class="" target="_blank"><font color="#F4700E"><b>iScripts.com</b></font></a></div>
</td></tr>
</table>	
</div>

	<div align="left" class="clear_float"><img src="../images/clear_admin.gif" alt="" width="1" height="1" /></div>
		
</center>
</body>
//vapproved='Y' AND
$orderAmntResult = mysql_query($sql) or die(mysql_error());
if (mysql_num_rows($orderAmntResult) > 0) {
    $row = mysql_fetch_object($orderAmntResult);
    $totalProducts = $row->total;
}
//Categories - End
//Messages Count
$newMessages = 0;
$sql = "SELECT COUNT(message_to_seller_id) AS total\n\t\tFROM " . $tableprefix . "message_to_seller\n\t\tWHERE artist_id = " . $_SESSION["sess_artistid"] . "\n                    AND `read` ='N'";
$orderAmntResult = mysql_query($sql) or die(mysql_error());
if (mysql_num_rows($orderAmntResult) > 0) {
    $row = mysql_fetch_object($orderAmntResult);
    $newMessages = $row->total;
}
$cms_content_terms = displayCMS('seller_home_text');
//Messages Count - End
//Product View Count Query
$product_view_count_sql = " SELECT a.*,pi.*,COUNT(pi.product_impression_id) AS product_hit,p.*\n                            FROM " . $tableprefix . "product_impression pi\n                            LEFT JOIN " . $tableprefix . "products p ON p.product_id = pi.product_id\n                            INNER JOIN " . $tableprefix . "artists a ON p.product_artist_id = a.artist_id\n                            WHERE p.product_artist_id= '{$artistid}'\n                            GROUP BY pi.product_id\n                            ORDER BY pi.visited_on DESC\n                            LIMIT 5";
$product_view_count_res = mysql_query($product_view_count_sql) or die(mysql_error());
include "../includes/htmltop.php";
?>


<body>
    <center>
        <div align="left" id="layout">
            <!--header area start -->
            <?php 
include_once "../includes/topheader_seller.php";
?>
include "includes/functions.php";
function getContentName($cms_id)
{
    global $tableprefix;
    $select_cms_details = "SELECT content_name,content_heading,content_text FROM " . $tableprefix . "content_management \n\t\t\t\t\t\t\tWHERE content_id = '" . $cms_id . "' ";
    $result_cms_details = mysql_query($select_cms_details);
    $cms_row = mysql_fetch_assoc($result_cms_details);
    return $cms_row['content_name'];
}
$contentID = isset($_GET['content_id']) ? trim($_GET['content_id']) : '';
$content_name = getContentName($contentID);
//$contentID = file_ext_strip($filename);
/*$contentID = str_replace('.html', '',$contentID);
$contentID = str_replace('.htm', '', $contentID);
$contentID = str_replace('-', '_', $contentID);*/
$cms_content_main = displayCMS($content_name);
/*display the active template*/
$active_template = displayTemplate();
include "includes/htmltop.php";
/* Top File Name */
include_once "includes/template1_top.php";
//include_once ("includes/template1_productreview.php");
?>
<!-- content area Right Column starts-------------------------------------------------------------- -->


    <div class="prdetails_container" >
        <div align="left">
<?php 
echo generalMethods::getBreadCrumbs(array(array('url' => '', 'name' => strip_tags($cms_content_main[0]))));
?>