Пример #1
0
 
				<img src='<?php 
    _p($img);
    ?>
' width=95px height=110px></img>
			 </div>
			<div> 
				<?php 
    if ($cnt <= 0) {
        $item_pass = $_ITEM->Id . '~' . $_ITEM->Title;
        $btnChoose = new QImageButton($this->dtrAssets);
        $btnChoose->ImageUrl = '../assets/images/32x32/add_to_shopping_cart.png';
        $btnChoose->AlternateText = 'Add to Basket';
        $btnChoose->AddAction(new QClickEvent(), new QServerAction('ChooseAssets_Click'));
        $btnChoose->ActionParameter = $item_pass;
        $btnChoose->Render();
    } else {
        ?>
					<b>
						<?php 
        _p('This item is shared with ' . $name);
        ?>
					</b><?php 
    }
    ?>
			</div>
		</td>
		
		
		<td valign="top">
				<div><a href=<?php 
Пример #2
0
        $calPublicationDate = isset($_ITEM->PublicationDate) ? $_ITEM->PublicationDate : 00 - 00 - 00;
        $tempstr = $strAuthor . '~' . $_ITEM->Binding . '~' . $intPages . '~' . $strPublisher . '~' . $calPublicationDate . '~' . $strISBN;
        $item_pass = $item_pass . '~' . $tempstr;
        break;
    case 'DVD':
        $tempstr = $strActor . '~' . $strDirector . '~' . $intRunningTime;
        $item_pass = $item_pass . '~' . $tempstr;
        break;
    case 'Music':
        $tempstr = $strArtist . '~' . $_ITEM->Label . '~' . $strNumberOfDiscs;
        $item_pass = $item_pass . '~' . $tempstr;
        break;
}
if ($owned == true) {
    $imgAddLink = new QImageButton($this->dtrAmazon);
    $imgAddLink->ImageUrl = '../assets/images/48x48/heart.png';
    $imgAddLink->ToolTip = 'You Own this';
} else {
    $imgAddLink = new QImageButton($this->dtrAmazon);
    $imgAddLink->ImageUrl = '../assets/images/48x48/add.png';
    $imgAddLink->AddAction(new QClickEvent(), new QServerAction('AddClicked'));
    $imgAddLink->ToolTip = 'Add to collection';
    $imgAddLink->ActionParameter = $item_pass;
}
$imgAddLink->Render();
?>
</td>
	</tr>

</table>