<?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.                                                       |
// +----------------------------------------------------------------------+
?>
<?php
include "../includes/config.php";
include "../includes/session.php";
include "../includes/functions.php";

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_adminname"]) and $_SESSION["sess_adminname"]!= "") {
    $adminname = $_SESSION["sess_adminname"];
}else {
    header("Location:login.php");
    exit;
}
if (isset($_GET["artistid"]) and $_GET["artistid"] != "") {
    $artistid = $_GET["artistid"];
} else if (isset($_POST["artistid"]) and $_POST["artistid"] != "") {
    $artistid = $_POST["artistid"];
}
$txtUserName = trim($_POST["txtUserName"]);
$txtFirstName = trim($_POST["txtFirstName"]);
$txtLastName = trim($_POST["txtLastName"]);
$txtAddress1 = trim($_POST["txtAddress1"]);
$txtAddress2 = trim($_POST["txtAddress2"]);
$txtCity = trim($_POST["txtCity"]);
$txtState = trim($_POST["txtState"]);
if($txtState=="")
    $txtState  =  trim($_POST["bill_state"]);
$ddlCountry = trim($_POST["ddlCountry"]);
$txtZIP = trim($_POST["txtZIP"]);
$txtEmail = trim($_POST["txtEmail"]);
$txtPaypalEmail = trim($_POST["txtPaypalEmail"]);
$txtPhone = trim($_POST["txtPhone"]);
$txtFAX = trim($_POST["txtFAX"]);
$txtPassword = trim($_POST["txtPassword"]);
$txtConfirmPassword = trim($_POST["txtConfirmPassword"]);
$txtNewPassword = trim($_POST["txtNewPassword"]);
$chkNotify = trim($_POST["chkNotify"]);
//New fields added
$txtComapny = trim($_POST["txtComapny"]);
$txtStore=$_POST["txtStore"];
$txtStore = getStoreAlias($txtStore,$txtStore,$artistid);
$txtWebsite = trim($_POST["txtWebsite"]);

$txtCommission = trim($_POST["txtCommission"]);

if (isset($_POST["btnUpdateProfile"])) {
    $message = "" ;
    if (!isNotNull($txtFirstName)) {
        $message .= E_FNAME."<br>";
    }
    /*if(isNotNull($txtFirstName))
	{

	 if(!preg_match("/^[a-zA-Z ]+$/", $txtFirstName))
	 {
	   $message .= "* First name accepts alphabets only !! <br>";
	 }
	}*/
    if (!isNotNull($txtLastName)) {
        $message .= E_LNAME."<br>";
    }
    /*if(isNotNull($txtLastName))
	{
	 if(!preg_match("/^[a-zA-Z ]+$/", $txtLastName))
	 {
	   $message .= "* Last name accepts alphabets only !! <br>";
	 }
	}*/
    if (!isNotNull($txtAddress1)) {
        $message .= E_ADDRESS."<br>";
    }
    if (!isNotNull($txtCity)) {
        $message .= E_CITY."<br>";
    }
    if (!isNotNull($txtState)) {
        $message .= E_STATE."<br>";
    }
    if (!isNotNull($txtZIP)) {
        $message .= E_ZIP."<br>";
    }
    /*if(isNotNull($txtZIP))
	{
		if(strlen($txtZIP)!=5 && $ddlCountry=="US")
		{
		 $message .= "* Enter a valid Zipcode!<br>";
		}
	} */
    if (!isNotNull($txtPhone)) {
        $message .= E_PHONE."<br>";
    }
    if(isNotNull($txtPhone)) {
        if(!check_phone($txtPhone,$ddlCountry)) {
            $message .= INVALID_PHONE;
        }
    }

    if (!isNotNull($txtEmail)) {
        $message .= E_EMAIL."<br>";
    } else {
        if (!isValidEmail($txtEmail)) {
            $message .= INVALID_EMAIL."<br>";
        }
    }
    if (!isNotNull($txtPaypalEmail)) {
        $message .= E_PAYPAL_EMAIL."<br>";
    } else {
        if (!isValidEmail($txtPaypalEmail)) {
            $message .= INVALID_PAYPAL_EMAIL."<br>";
        }
    }
    $txtCommission = doubleval($txtCommission);
    if($txtCommission > 100) {
        $message .= COMM_LESS."<br>";
    }

    $qry2 = "select email from  " . $tableprefix . "artists where email='" . addslashes($txtEmail) . "' AND artist_id <> '" . addslashes($artistid) . "' ";
    if (mysql_num_rows(mysql_query($qry2)) > 0) {
        $message .= "* The email address '" . htmlentities($txtEmail) . "' is already in use!. <br>";
    }

    if ($message != "") { // error
        $message = "<br>".MSG_CORRECT_THE_ERRORS."<br>" . $message;
    } else { // no error so insert user details
        $sql = "UPDATE " . $tableprefix . "artists SET
			first_name = '" . addslashes($txtFirstName) . "',
			last_name = '" . addslashes($txtLastName) . "',
			address1 = '" . addslashes($txtAddress1) . "',
			address2 = '" . addslashes($txtAddress2) . "',
			city = '" . addslashes($txtCity) . "',
			state = '" . addslashes($txtState) . "',
			country = '" . addslashes($ddlCountry) . "',
			phone = '" . addslashes($txtPhone) . "',
			fax = '" . addslashes($txtFAX) . "',
			company = '" . addslashes($txtComapny) . "',
                        storename='".addslashes($txtStore)."',
			website = '" . addslashes($txtWebsite) . "',
			zip = '" . addslashes($txtZIP) . "',
			commission = '" . addslashes($txtCommission) . "',
			email = '" . addslashes($txtEmail) . "',
                        paypalemail= '" .addslashes($txtPaypalEmail). "'
			WHERE artist_id =  '" . addslashes($artistid) . "'
			";
        mysql_query($sql);
        $message = PROFILE_UPDATED;
    }
}else if (isset($_POST["btnSaveChanges"])) {
    $message = "" ;
    $commision     = $txtCommission;
    $txtCommission = doubleval($txtCommission);

    /* if (!isNotNull($txtCommission) && isNotNull($commision)) {
        $message .= "* Commission should be an integer value! <br>";
    }else if(!isNotNull($txtCommission) && !isNotNull($commision))
	{
		  $message .= "* Commission cannot be empty! <br>";
	}else if($txtCommission < 0){
		 $message .= "* Commission should be a positive value! <br>";
	}else if($txtCommission > 100){
		$message .= "* Commission should be less than 100! <br>";
	}*/
    if($txtCommission > 100) {
        $message .= COMM_LESS."<br>";
    }
    if ($message != "") { // error
        $message = "<br>".MSG_CORRECT_THE_ERRORS."<br>" . $message;
    } else { // no error so insert user details
        $sql = "UPDATE " . $tableprefix . "artists SET
			commission = '" . addslashes($txtCommission) . "'
			WHERE artist_id =  '" . addslashes($artistid) . "'
			";
        mysql_query($sql);
        $message = CHANGES_SAVED_SUCCESSFULLY;
    }
} else if (isset($_POST["btnResetPassword"])) {
    if (!isNotNull($txtNewPassword)) {
        $message .= "*".PWD_EMPTY."<br>";
    }

    if ($message != "") { // error
        $message = "<br>".MSG_CORRECT_THE_ERRORS."<br>" . $message;
    } else { // no error so insert user details
        $sql = "UPDATE " . $tableprefix . "artists SET
			password = '" . addslashes(md5($txtNewPassword)) . "'
			WHERE artist_id =  '" . addslashes($artistid) . "'";
        mysql_query($sql);
        if ($chkNotify == "on") {
            $sql = "SELECT email,first_name,last_name,artist_name FROM " . $tableprefix . "artists WHERE artist_id = '" . addslashes($artistid) . "' ";
            $result = mysql_query($sql);
            if (mysql_num_rows($result) != 0) {
                $row = mysql_fetch_array($result);
                $email = $row["email"];
                $firstname = $row["first_name"];
                $lastname = $row["last_name"];
                $artistname = $row["artist_name"];
            }

            $artistfullname = $firstname;
            if ($lastname != "") {
                $artistfullname .= " " . $lastname;
            }
            $to = $email;
            $subject = "Your Seller account information with " . stripslashes(SITE_NAME) . " updated by Administrator";

            /*----------Multicart 2.0 Upgradation---------------*/

            $mailmessage = readEmailTemplate('change_sellerpassword');

            $mailmessage = str_replace('[name]',$artistfullname,$mailmessage);
            $mailmessage = str_replace('[user_name]',$artistname,$mailmessage);
            $mailmessage = str_replace('[password]',$txtNewPassword,$mailmessage);

            $mailmessage = nl2br($mailmessage);

            $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>".$mailmessage."</div></div><div align='left' class='clear_float'><img src=".$imagefolder."/clear.gif width=1 height=1/></div></div></div></center></body></html>";

            $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";
            $mailsent = @mail($to, $subject, $mail_send_details, $headers);

            /*----------Multicart 2.0 Upgradation---------------*/

            $updatepass = true;
        } else {
            $updatepass = true;
        }

        if ($updatepass) {
            mysql_query($sql);
            $message = PWD_UPD;
        } else {
            $message = UNK_ERROR;
        }
    }
}
$sql = "SELECT a.*, ap.artist_portfolio_id FROM " . $tableprefix . "artists a LEFT JOIN " . $tableprefix . "artist_portfolios ap ON a.artist_id = ap.artist_id WHERE a.artist_id = '" . addslashes($artistid) . "' ";
$result = mysql_query($sql);
if (mysql_num_rows($result) != 0) {
    $row = mysql_fetch_array($result);
    $txtUserName = $row["artist_name"];
    $txtFirstName = $row["first_name"];
    $txtLastName = $row["last_name"];
    $txtAddress1 = $row["address1"];
    $txtAddress2 = $row["address2"];
    $txtCity = $row["city"];
    $txtState = $row["state"];
    $ddlCountry = $row["country"];
    $txtPhone = $row["phone"];
    $txtFAX = $row["fax"];
    $txtZIP = $row["zip"];
    $txtEmail = $row["email"];
    $txtPaypalEmail = $row["paypalemail"];

    $txtCommission = $row["commission"];
    $txtComapny = $row["company"];
    $txtStore=$row["storename"];
    $txtStore=$row["storename"];
    $txtWebsite = $row["website"];
    $artistportfolioid =  $row["artist_portfolio_id"];
}
//echo "<br>".$artistportfolioid."<br>";
$countrylist = makeCountryList();

/*-------Multicart 2.0 Upgradation-------------*/

/*---------calculating the seller rating--------------*/

/*$select_seller_rating = "SELECT vrating,count(record.nrating_id) AS rating_count
						 FROM ".$tableprefix."rating rt,".$tableprefix."record_ratings record
                         WHERE rt.nrat_id = record.nrating_id
						  AND record.nrseller_id = ".$artistid."
						   GROUP BY record.nruser_id";

echo $select_seller_rating;

$result_seller_rating = mysql_query($select_seller_rating) or die(mysql_error());	*/


$select_rating = "SELECT nrat_id,vrating FROM ".$tableprefix."rating";

$result_rating = mysql_query($select_rating) or die(mysql_error());
$ddlCountry = $ddlCountry == ""?"US":$ddlCountry;
include "../includes/htmltop.php";
?>
<script src="../js/jquery.js"></script>
<script type="text/javascript">
    $( document ).ready(function() {

        var storeURL = $.trim($("input[name='txtStore']").val());
        var storeURLNew = storeURL.replace(/[^a-z0-9-\s]/gi, '').replace(/[_\s]/g, '-');

        $('#mashable').html(storeURLNew);
        $("input[name='txtStore']").val(storeURLNew);

        $("input[name='txtStore']").keyup(function() {
            storeURL = $.trim($("input[name='txtStore']").val());
            storeURLNew = storeURL.replace(/[^a-z0-9-\s]/gi, '').replace(/[_\s]/g, '-');
            $('#mashable').html(storeURLNew);
            $("input[name='txtStore']").val(storeURLNew);
        });
    });

</script>

<body>
    <center>

        <div align="left" id="layout">




            <!--header area start -->
<?php

            include_once("../includes/topheader_admin.php")

                    ?>

            <!--header area end -->




            <div align="left" class="main_body">
                <!--main body start -->



<?php
include_once("../includes/admintopmenu.php")
                        ?>

                <form name="frmProfile" action="<?php echo $_SERVER["PHP_SELF"]?>" method="POST">
                    <input type="hidden" name="artistid" value="<?php echo htmlentities($artistid);?>">

                    <div align="left" class="content_area">
                        <input type="hidden" name="action" value="<?php echo htmlentities($action);?>">
                        <!-- The id of the country field(s).  If more than one, seperate with spaces -->
                        <input type="hidden" value="billCountrySelect" name="cs_config_country_field" id="cs_config_country_field">
                        <input type="hidden" value="billStateSelect" name="cs_config_state_field"   id="cs_config_state_field">


                        <!-- The id of the the fields holding the default values.  If more than one, seperate with spaces -->
                        <input type="hidden" value="billCountryDefault" name="cs_config_country_default" id="cs_config_country_default">
                        <input type="hidden" value="billStateDefault"   name="cs_config_state_default"   id="cs_config_state_default">
                        <!-- The actual default values -->
                        <input type="hidden" value="<?php echo $ddlCountry; ?>" name="billCountryDefault" id="billCountryDefault">
                        <input type="hidden" value="<?php echo $txtState; ?>"   name="billStateDefault"   id="billStateDefault">
                        <!--content area start -->
                        <SCRIPT type="text/javascript" SRC="../js/country-state.js"></SCRIPT>
<?php
$properties="onchange='updateState(this.id)' id='billCountrySelect'";
                        ?>


                        <div align="left" class="page_title"><?php echo EDIT_SELLER_DET;?></div>
                        <div align="center" class="text_information grey_tr"><?php echo $message?></div>
                        <br>

                        <div align="left">

                            <table width="100%" border="0" cellpadding="0" cellspacing="0" class="manage_table">
                                <tr>
                                    <td colspan="3" align="right"><span class="required">*</span><?php echo MANDATORY_FIELDS;?></td>
                                </tr>

                                <tr>
                                    <td colspan="3">
                                        <fieldset>
                                            <legend class='page_title2'><?php echo SELLER_PRO;?></legend>
                                            <table width="100%" border="0" cellspacing="2" cellpadding="2">
                                                <tr class="manage_table">
                                                    <td align="right" ><?php echo UNAME;?></td>
                                                    <td >&nbsp;</td>
                                                    <td align="left" ><input name="txtUserName" type="text" class="textarea" id="txtUserName" value="<?php echo htmlentities($txtUserName);?>" size="30" maxlength="100" readonly="readonle"></td>
                                                </tr>
                                                <tr class="manage_table">
                                                    <td align="right" ><?php echo TEXT_STORENAME;?></td>
                                                    <td >:</td>
                                                    <td align="left" ><input name="txtStore" type="text" class="textarea" id="txtStore" value="<?php echo htmlentities($txtStore);?>" size="30" maxlength="20"></td>
                                                </tr>
                                                <tr class="manage_table">
                                                    <td align="right" ><?php echo TEXT_SELLER_STORE_URL;?></td>
                                                    <td>:</td>
                                                    <td align="left" ><?php echo SITE_URL; ?><?php if($enable_seller_friendly == "Y") { ?>/stores/<?php } else { ?>/showportfolio.php?storename=<?php } ?><span id="mashable"></span></td>
                                                </tr>
                                                <tr><td width="40%" align="right" ><?php echo FNAME;?>&nbsp;<span class="required">*</span></td>
                                                    <td width="3%" >:</td>
                                                    <td width="57%" align="left"><input class="textarea" type="text" value="<?php echo stripslashes($txtFirstName); ?>" name="txtFirstName" size="30" maxlength="100"></td></tr>
                                                <tr><td align="right" ><?php echo LNAME;?> &nbsp; <span class="required">*</span></td>
                                                    <td >:</td>
                                                    <td align="left"><input class="textarea" type="text" value="<?php echo stripslashes($txtLastName);?>" name="txtLastName" size="30" maxlength="100"></td></tr>
                                                <tr><td align="right" ><?php echo ADDRESS_LINE;?> 1&nbsp; <span class="required">*</span></td>
                                                    <td >:</td>
                                                    <td align="left"><input class="textarea" type="text" value="<?php echo htmlentities($txtAddress1);?>" name="txtAddress1" size="40" maxlength="100"></td></tr>
                                                <tr><td align="right" ><?php echo ADDRESS_LINE;?> 2</td>
                                                    <td >:</td>
                                                    <td align="left" ><input class="textarea" type="text" value="<?php echo htmlentities($txtAddress2);?>" name="txtAddress2" size="40" maxlength="100"></td></tr>
                                                <tr><td align="right" ><?php echo CITY;?>&nbsp;<span class="required">*</span></td>
                                                    <td >:</td>
                                                    <td align="left"><input class="textarea" type="text" value="<?php echo stripslashes($txtCity);?>" name="txtCity" size="30" maxlength="100"></td></tr>
                                                <tr><td align="right" ><?php echo COUNTRY;?>&nbsp;<span class="required">*</span></td>
                                                    <td >:</td>
                                                    <td align="left"><?php echo makeDropDownList("ddlCountry", $countrylist, $ddlCountry, false, "textarea", $properties, $behaviors)?></td></tr>
                                                <tr><td align="right" ><?php echo STATE;?>&nbsp;<span class="required">*</span></td>
                                                    <td >:</td>
                                                    <td align="left"><select id='billStateSelect' class="textarea" name='txtState'>
                                                        </select> <SCRIPT  type="text/javascript">initCountry(); </SCRIPT> </td></tr>
                                                <tr><td align="right" ><?php echo ZIP;?>&nbsp;<span class="required">*</span></td>
                                                    <td >:</td>
                                                    <td align="left"><input type="text" class="textarea" value="<?php echo htmlentities($txtZIP);?>" name="txtZIP" size="30" maxlength="20"></td></tr>

                                                <tr><td align="right" ><?php echo COMPANY;?>&nbsp;</td>
                                                    <td >:</td>
                                                    <td align="left"><input class="textarea" type="text" value="<?php echo stripslashes($txtComapny);?>" name="txtComapny" size="30" maxlength="100"></td></tr>
                                                <tr><td align="right" ><?php echo WEBSITE;?>&nbsp;</td>
                                                    <td >:</td>
                                                    <td align="left"><input class="textarea" type="text" value="<?php echo htmlentities($txtWebsite);?>" name="txtWebsite" size="30" maxlength="100"></td></tr>




                                                <tr><td align="right" ><?php echo PHONE;?>&nbsp;<span class="required">*</span></td>
                                                    <td >:</td>
                                                    <td align="left"><input type="text"  class="textarea" value="<?php echo htmlentities($txtPhone);?>" name="txtPhone" size="30" maxlength="100"></td></tr>
                                                <tr><td align="right" ><?php echo FAX;?></td>
                                                    <td >:</td>
                                                    <td align="left"><input type="text"  class="textarea" value="<?php echo htmlentities($txtFAX);?>" name="txtFAX" size="30" maxlength="100"></td></tr>
                                                <tr><td align="right" ><?php echo EMAIL;?>&nbsp;<span class="required">*</span></td>
                                                    <td >:</td>
                                                    <td align="left"><input type="text"  class="textarea" value="<?php echo htmlentities($txtEmail);?>" name="txtEmail" size="30" maxlength="100"></td></tr>
                                                <tr><td align="right" ><?php echo PP_EMAILID;?>&nbsp;<span class="required">*</span></td>
                                                    <td >:</td>
                                                    <td align="left"><input type="text"  class="textarea" value="<?php echo htmlentities($txtPaypalEmail);?>" name="txtPaypalEmail" size="30" maxlength="100"></td></tr>


<?php

                                                if(mysql_num_rows($result_rating) > 0) {

                                                    ?>
                                                <tr>
                                                    <td align="right" ><?php echo SELLER_RATING;?></td>
                                                    <td>:</td>
                                                    <td align="left">

    <?php

    while($rating_row = mysql_fetch_array($result_rating)) {
//$artistid
                                                                ?>

                                                        <b><?php echo $rating_row['vrating']?></b>&nbsp;[<span class="required"><?php echo getSellerRating($rating_row['nrat_id'],$artistid)?></span>]


        <?php

    }
    ?>
                                                    </td>
                                                </tr>
                                                            <?php

}

                                                ?>

                                                <tr><td colspan="3">&nbsp;</td></tr>
                                                <tr><td colspan="3" align="center"><input type="submit" class="button" value="<?php echo UPD_PROFILE;?>" name="btnUpdateProfile"></td></tr>
                                            </table>
                                        </fieldset>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="3">
                                        <fieldset>
                                            <legend class='page_title2'><?php echo CHANGE_PASSWORD;?></legend>
                                            <table width="100%" cellspacing="2" cellpadding="2">
                                                <tr><td colspan="3" align="center"><?php echo CHANGE_PASSWORD;?></td></tr>
                                                <tr><td width="40%" align="right" ><?php echo NEW_PWD;?>&nbsp;<span class="required">*</span></td>
                                                    <td width="3%" >:</td>
                                                    <td width="57%" align="left"><input type="password"  class="textarea"  value="" name="txtNewPassword" size="30" maxlength="100"></td></tr>
                                                <tr><td align="right" ><?php echo NOTIFY_EMAIL;?>&nbsp;</td>
                                                    <td >:</td>
                                                    <td align="left"><input type="checkbox"  class="checkbox"  checked  name="chkNotify" ></td></tr>
                                                <tr><td colspan="3">&nbsp;</td></tr>
                                                <tr><td colspan="3" align="center"><input type="submit" class="button" value="<?php echo RST_PWD;?>" name="btnResetPassword"></td></tr>
                                            </table>
                                        </fieldset>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="3">
                                        <fieldset>
                                            <legend class='page_title2'><?php echo OTHER_DET;?></legend>
                                            <table width="100%" cellspacing="2" cellpadding="2" border=0>
                                                <tr><td align="right" width="40%"><?php echo SELLER_COMMISSION; ?>(%)&nbsp;<span class="required">*</span></td>
                                                    <td align="left" width="3%">:</td>
                                                    <td width="57%" align="left"><input type="text"   class="textarea" value="<?php echo htmlentities($txtCommission); ?>" name="txtCommission" style="width:26px" maxlength="5"></td></tr>
                                                <tr><td colspan="4" align="center"><input type="submit" value="<?php echo BTN_SAVE_CHANGES;?>" name="btnSaveChanges" class="button"></td></tr>
                                            </table>
                                        </fieldset>
                                    </td>
                                </tr>
                                <tr><td colspan="3"></tr>
                                <tr>
                                    <td colspan="3">
                                        <fieldset>
                                            <legend class='page_title2'><?php echo SELLER_REL_INFO;?></legend>
                                            <table width="100%" cellspacing="2" cellpadding="2">
                                                <tr>
                                                    <td colspan="3" align="left">
<?php

$displaytext = "<b>".VIEW_PORTFOLIO."</b>";

                                                        $link = "editartistportfolio.php?artistid=$artistid";
                                                        ?>
                                                        <a href="<?php echo $link;?>" class="links"><?php echo $displaytext;?></a>
                                                    </td>
                                                </tr>
                                            </table>
                                        </fieldset>
                                    </td>
                                </tr>

                                <tr><td colspan="3" align="center"><input type="button" class="button" name="btnbackToArtists" value="<?php echo BACK_TO_SELLERS;?>" onClick="window.location.href='artists.php'"></td></tr>

                            </table>

                            <!-- ***************************************************** -->
                            </td>
                            </tr>
                            </table>


                            <!--

		Multicart 2.0 Design Integration

                            -->



                        </div>


                        <!--content area end-->

                    </div>

                </form>

                <div align="left" class="clear_float"><img src="../images/clear.gif" alt="" width="1" height="1" /></div>
                <!--main body end -->
            </div>


<?php

include "../includes/footer.php";
?>