Ejemplo n.º 1
0
            $t_commerce_item = new ca_commerce_order_items();
            foreach ($va_items as $va_item) {
                $vn_i++;
                ?>
					<div class="caClientOrderCustomerFormItem"<?php 
                print $vn_i % 2 ? "" : " style='margin-left:18px;'";
                ?>
>
						<div class="caClientOrderCustomerFormItemImage"><?php 
                print "<a href='#' onclick='caMediaPanel.showPanel(\"" . caNavUrl($this->request, 'Detail', 'Object', 'GetRepresentationInfo', array('object_id' => $va_item['object_id'], 'order_item_id' => $va_item['item_id'])) . "\"); return false;' >" . $va_item['thumbnail_tag'] . "</a>\n";
                ?>
</div>
						<div class="caClientOrderCustomerFormItemSummary">
<?php 
                $t_commerce_item->load($va_item["item_id"]);
                if ($vb_can_download_item = $t_commerce_item->userCanDownloadItem()) {
                    print caNavLink($this->request, _t('Download'), 'download', '', 'Account', 'Download', array('item_id' => $va_item['item_id'], 'download' => 1)) . "</a>";
                } else {
                    if (is_null($vb_can_download_item)) {
                        print "<a href='#' class='download'>" . _t('Not yet available for download') . "</a>";
                    }
                }
                ?>
							<em><?php 
                print $va_item['name'] . "</em> (" . $va_item['idno'] . ")";
                ?>
							<div><?php 
                print $t_order_item->getChoiceListValue('service', $va_item['service']);
                ?>
</div>
							<div>
Ejemplo n.º 2
0
            $t_commerce_item = new ca_commerce_order_items();
            foreach ($va_items as $va_item) {
                $vn_i++;
                ?>
					<div class="caClientOrderCustomerFormItem"<?php 
                print $vn_i % 2 ? "" : " style='margin-left:18px;'";
                ?>
>
						<div class="caClientOrderCustomerFormItemImage"><?php 
                print $va_object_reps[$va_item['object_id']]['tags']['thumbnail'];
                ?>
</div>
						<div class="caClientOrderCustomerFormItemSummary">
<?php 
                $t_commerce_item->load($va_item["item_id"]);
                if ($t_commerce_item->userCanDownloadItem()) {
                    print caNavLink($this->request, _t('Download'), 'download', '', 'Account', 'Download', array('item_id' => $va_item['item_id'], 'download' => 1)) . "</a>";
                }
                ?>
							<em><?php 
                print $va_item['name'] . "</em> (" . $va_item['idno'] . ")";
                ?>
							<div><?php 
                print $t_order_item->getChoiceListValue('service', $va_item['service']);
                ?>
</div>
							<div>
<?php 
                print $vs_currency_symbol . $va_item['fee'];
                if ((double) $va_item['tax'] > 0) {
                    print " + " . _t('%1 tax', $vs_currency_symbol . $va_item['tax']);