Gentics Portal.Node PHP API
 All Classes Namespaces Functions Variables Pages
adminemail_template.php
1 <?php
2 /**
3  * Gentics Portal.Node PHP
4  * Author & Copyright (c) by Gentics Software GmbH
5  * sales@gentics.com
6  * http://www.gentics.com
7  * Licenses can be found in the LICENSE.txt file in the root-folder of this installation
8  * You must not use this software without a valid license agreement.
9  *
10  */
11 ?>
12 
13 <h2><?php echo ShoppingcartModule::t('Items ordered')?></h2>
14 
15 
16 <table width="100%" cellspacing="0" cellpadding="0" class="items">
17  <colgroup>
18  <col width="10%">
19  <col width="65%">
20  <col width="10%">
21  <col width="10%">
22  </colgroup>
23  <tr>
24  <th class="item_quantity"><?php echo Item::model()->getAttributeLabel('quantity'); ?></th>
25  <th class="item_title"><?php echo Item::model()->getAttributeLabel('title'); ?></th>
26  <th class="item_price"><?php echo Item::model()->getAttributeLabel('price'); ?></th>
27  <th class="item_sum"><?php echo ShoppingcartModule::t('Total'); ?></th>
28  </tr>
29  <?php
30  foreach($items as $i=>$item):
31 
32  ?>
33  <tr>
34  <td class="item_quantity"><?php echo $item->quantity ?></td>
35  <td class="item_title"><?php echo $item->title; ?></td>
36  <td class="item_price"><?php echo ($item->price != 0)?Item::addCurrency($item->price):ShoppingcartModule::t('free'); ?></td>
37  <td class="item_sum"><?php echo ($item->price != 0)?Item::addCurrency(($item->price * $item->quantity)):ShoppingcartModule::t('free'); ?></td>
38  </tr>
39  <?php endforeach; ?>
40 <tr><td colspan="4"><hr /></td></tr>
41  <tr>
42  <th><?php echo ShoppingcartModule::t('Buyer');?></th>
43  </tr>
44 
45  <?php foreach($user->attributes as $fieldName => $field):
46  if(substr($fieldName,-2) == 'id' || empty($field)) continue; ?>
47  <tr>
48  <td class="label"><?php echo $user->getAttributeLabel($fieldName); ?></td>
49  <td class="value"><?php echo $field; ?></td>
50  </tr>
51 <?php endforeach; ?>
52 </table>