Forum Moderators: coopster
if(is_array($prodoptions)){
if($optjs!='') print '<script language="javascript" type="text/javascript">/* <![CDATA[ */'.$optjs.'/* ]]> */</script>';
if($prodoptions[0]['optType']==4) $thestyle=''; else $thestyle=' width="100%"';
if($optionshtml!='') print '<div class="detailoptions" align="center"><table class="prodoptions detailoptions" border="0" cellspacing="1" cellpadding="1"'.$thestyle.'>' . $optionshtml;
if($isInStock && @$nobuyorcheckout != true && (@$showquantondetail==TRUE || ! @isset($showquantondetail)) && $hasmultipurchase==0){ ?>
<tr><td align="right"><?php print $xxQuant?>:</td><td align="left"><input type="text" name="quant" size="4" maxlength="5" value="1" alt="<?php print $xxQuant?>" />[B]</td></tr>[/B]<?php
}
if($optionshtml!='') print '</table></div>';
}else{
if($isInStock && @$nobuyorcheckout != true && (@$showquantondetail==TRUE || ! @isset($showquantondetail))){ ?>
<table border="0" cellspacing="1" cellpadding="1" width="100%">
<tr><td align="right"><?php print $xxQuant?>:</td><td><input type="text" name="quant" size="4" maxlength="5" value="1" alt="<?php print $xxQuant?>" /></td></tr>
</table>
<?php
}
}
?>
[B]<p align="center">[/B]
<?php
if(@$nobuyorcheckout == TRUE)
print ' ';
else{
if($rs['pPrice']==0 && @$nosellzeroprice==TRUE){
print ' ';
}elseif($isInStock){
writehiddenvar('id', $rs['pId']);
writehiddenvar('mode', 'add');
if($wishlistondetail) writehiddenvar('listid', '');
if(@$custombuybutton != '') print $custombuybutton; else print imageorsubmit(@$imgbuybutton,$xxAddToC,'buybutton');
if($wishlistondetail) print '<br />' . imageorlink(@$imgaddtolist,$xxAddLis,'gtid='.$Count.';return displaysavelist(event,window)',TRUE);
}else{
if(@$notifybackinstock)
print imageorlink(@$imgnotifyinstock, $xxNotBaS, "return notifyinstock(false,'".str_replace("'","\\'",$rs['pId'])."','".str_replace("'","\\'",$rs['pId'])."',".($rs['pStockByOpts']!=0&&!@$optionshavestock?'-1':'0').")", TRUE);
else
print '<strong>'.$xxOutStok.'</strong>';
print '<br />';
}
}