<?php
/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
// +----------------------------------------------------------------------+
// | PHP version 4/5                                                      |
// +----------------------------------------------------------------------+
// | This source file is a part of iScripts Multicart                     |
// +----------------------------------------------------------------------+
// | Authors: Programmer<programmer@armia.com>        		              |
// +----------------------------------------------------------------------+
// | 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.                                                       |
// +----------------------------------------------------------------------+
// 
// Check the Buyer Account exists for this seller

include_once "../classes/cls_store.php";

$user_seller_previlge_added     =   'N';
if($_SESSION["sess_artistid"]!='') {
         $userObj   =     Store::get_buyer_account_info($_SESSION["sess_artistid"]);
         if($userObj->status==SUCCESS)  {
                    $userid     = $userObj->data;
         }
         if($userid==$_SESSION["sess_artistid"])
             {
                    $user_seller_previlge_added     =    'Y';
             }

}
?>
<script>
function opensellerhelp(){
var url = '../help/sellerhelp/index.php';
//var url = '../help/sellerhelp/languages/<?php echo LANGUAGE; ?>/index.html';

window.open(url,"Help","scrollbars=yes");

}
/*function opensellerhelp1(){
var url = '../help/sellerhelp/index.html';
//var url = '../help/sellerhelp/languages/<?php echo LANGUAGE; ?>/index.html';

window.open(url,"Help","scrollbars=yes");

}*/
</script>


<div align="left" class="links_container">
 <!--left links area start -->
  <div align="left"><a href="index.php"><?php echo TEXT_HOME;?></a></div>
  
<?php

if(isset( $_SESSION["sess_artistid"]) and $_SESSION["sess_artistid"]!= "")
{
	$artistid = $_SESSION["sess_artistid"];
?>  
    
  <div align="left"><a href="profile.php"><?php echo TEXT_MY_PROFILE;?></a></div>
  <div align="left"><a href="myplans.php"><?php echo TEXT_MY_PLANS;?></a></div>
  <div align="left"><a href="gift_coupon_artist.php"><?php echo TEXT_GIFT_CERT;?></a></div>
  <div align="left"><a href="themes.php"><?php echo TEXT_MY_THEMES;?></a></div>
  <div align="left"><a href="portfolio.php"><?php echo TEXT_MY_PORT;?></a></div>
  <?php if($user_seller_previlge_added=='N') { ?>
  <div align="left"><a href="changepassword.php"><?php echo TEXT_CH_PASS;?></a></div>
  <?php } ?>
  <div align="left"><a href="mycatalog.php"><?php echo TEXT_MY_CATALOG;?></a></div>
  <div align="left"><a href="myproducts.php"><?php echo TEXT_MY_PROD;?></a></div>
  <div align="left"><a href="couponCodes.php"><?php echo COUPON_CODES;?></a></div>
 <?php if(getSettingsValue('enable_bulkupload')=='Y') { ?>
        <div align="left"><a href="mybulkupload.php"><?php echo TEXT_BULK_PROD_UPLOAD;?></a></div>
  <?php } ?>
   <div align="left"><a href="flatrate.php"><?php echo TEXT_SHIP_SETT;?></a></div>
  <!-- <div align="left"><a href="list_productview_images_artist.php">Multiple Image Upload</a></div> -->
  <div align="left"><a href="orders.php"><?php echo TEXT_ORDERS;?></a></div>
  <div align="left"><a href="list_refunds.php"><?php echo TEXT_REFUND_REQ;?></a></div>
  <div align="left"><a href="email_templates_seller.php"><?php echo TEXT_EMAIL_TEMP;?></a></div>
  <!--
  <div align="left"><a href="shipping_settings_artist.php">Shipping Settings</a></div>
  -->
  <?php if(getSettingsValue('enable_buyerToseller')=='N'){ ?>
  <div align="left"><a href="requestpayment.php"><?php echo TEXT_REQ_FOR_PAY;?></a></div>
  <div align="left"><a href="requestpayment_approved.php"><?php echo TEXT_REQ_PAY_APPR;?></a></div>
  <?php } ?>
  <div align="left"><a href="payments.php"><?php echo TEXT_PAY_HIST;?></a></div>
  <div align="left"><a href="product_reviews.php"><?php echo TEXT_PRODUCT_REVIEWS;?></a></div>
  <div align="left"><a href="mailadmin.php"><?php echo TEXT_MAIL_ADMIN;?></a></div>
  <div align="left"><a href="messages.php"><?php echo TEXT_MY_MSG;?></a></div>  
  <div align="left"><a href="seller_rss_feed.php?artistid=<?php echo $artistid;?>" target="_blank" ><?php echo SELLER_RSS_FEED;?></a></div>
  <div align="left"><a href="help_list.php"><?php echo TEXT_HELP;?></a></div>
<?php

}
else
{

?>
  <div align="left"><a href="login.php"><?php echo TEXT_LOGIN;?></a></div>
  <div align="left"><a href="register.php"><?php echo TEXT_REG_NOW;?></a></div>	
  <div align="left"><a href="forgotpassword.php"><?php echo TEXT_FORGOT_PASS;?></a></div>
  <div align="left"><a href="#"  onClick=" opensellerhelp();" title="Open User Help Window"><?php echo TEXT_HELP;?></a></div>
 <!-- <div align="left"><a href="#"  onClick=" opensellerhelp1();" title="Open User Help Window"><?php echo "Help Demo";?></a></div>-->

<?php

}

?> 
 <!--left links area end -->
</div>





				 