<?php /* Smarty version 2.6.16, created on 2008-06-17 12:24:03
         compiled from gallery:modules/cart/templates/ViewCart.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'cycle', 'gallery:modules/cart/templates/ViewCart.tpl', 56, false),array('modifier', 'markup', 'gallery:modules/cart/templates/ViewCart.tpl', 73, false),)), $this); ?>
<div class="gbBlock gcBackground1">
<h2> <?php echo $this->_reg_objects['g'][0]->text(array('text' => 'Items Currently in Your Cart'), $this);?>
 </h2>
</div>
<?php if (! empty ( $this->_tpl_vars['ViewCart']['items'] )): ?>
<form action="<?php echo $this->_reg_objects['g'][0]->url(array(), $this);?>
" method="post">
<div>
<?php echo $this->_reg_objects['g'][0]->hiddenFormVars(array(), $this);?>

<input type="hidden" name="<?php echo $this->_reg_objects['g'][0]->formVar(array('var' => 'controller'), $this);?>
" value="<?php echo $this->_tpl_vars['ViewCart']['controller']; ?>
"/>
<input type="hidden" name="<?php echo $this->_reg_objects['g'][0]->formVar(array('var' => "form[formName]"), $this);?>
" value="<?php echo $this->_tpl_vars['form']['formName']; ?>
"/>
</div>
<div class="gbBlock gcBackground2" style="text-align: right; white-space: nowrap">
<select name="<?php echo $this->_reg_objects['g'][0]->formVar(array('var' => "form[pluginId]"), $this);?>
">
<option label="<?php echo $this->_reg_objects['g'][0]->text(array('text' => "&laquo; cart actions &raquo;"), $this);?>
"
value="" selected="selected"><?php echo $this->_reg_objects['g'][0]->text(array('text' => "&laquo; cart actions &raquo;"), $this);?>
</option>
<option label="<?php echo $this->_reg_objects['g'][0]->text(array('text' => 'Update Quantities'), $this);?>
"
value="updateCart"> <?php echo $this->_reg_objects['g'][0]->text(array('text' => 'Update Quantities'), $this);?>
 </option>
<option label="<?php echo $this->_reg_objects['g'][0]->text(array('text' => 'Empty Cart'), $this);?>
"
value="emptyCart"> <?php echo $this->_reg_objects['g'][0]->text(array('text' => 'Empty Cart'), $this);?>
 </option>
<?php $_from = $this->_tpl_vars['ViewCart']['plugins']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['pluginId'] => $this->_tpl_vars['pluginData']):
?>
<option label="<?php echo $this->_tpl_vars['pluginData']['actionDisplayName']; ?>
"
value="<?php echo $this->_tpl_vars['pluginId']; ?>
"> <?php echo $this->_tpl_vars['pluginData']['actionDisplayName']; ?>
 </option>
<?php endforeach; endif; unset($_from); ?>
</select>
<input type="submit" class="inputTypeSubmit"
name="<?php echo $this->_reg_objects['g'][0]->formVar(array('var' => "form[action][modify]"), $this);?>
" value="<?php echo $this->_reg_objects['g'][0]->text(array('text' => 'Go'), $this);?>
"/>
</div>
<?php endif;  if (isset ( $this->_tpl_vars['status']['cartModified'] )): ?>
<div class="gbBlock"><h2 class="giSuccess">
<?php echo $this->_reg_objects['g'][0]->text(array('text' => 'Cart updated successfully'), $this);?>

</h2></div>
<?php endif;  if (empty ( $this->_tpl_vars['ViewCart']['items'] )): ?>
<div class="gbBlock"><strong>
<p> <?php echo $this->_reg_objects['g'][0]->text(array('text' => "Your cart is empty."), $this);?>
 </p>
<p>
<?php echo $this->_reg_objects['g'][0]->text(array('text' => "To add items, browse the gallery and select 'Add to cart' from the item's action menu."), $this);?>

</p>
</strong>
</div>
<?php else: ?>
<div class="gbBlock">
<table class="gbDataTable"><tr>
<th> <?php echo $this->_reg_objects['g'][0]->text(array('text' => 'Quantity'), $this);?>
 </th>
<th colspan="2" align="center"> <?php echo $this->_reg_objects['g'][0]->text(array('text' => 'Item'), $this);?>
 </th>
<th> <?php echo $this->_reg_objects['g'][0]->text(array('text' => 'Type'), $this);?>
 </th>
<th> <?php echo $this->_reg_objects['g'][0]->text(array('text' => 'Remove'), $this);?>
 </th>
</tr>
<?php $_from = $this->_tpl_vars['ViewCart']['items']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['item']):
?>
<tr class="<?php echo smarty_function_cycle(array('values' => "gbEven,gbOdd"), $this);?>
">
<td>
<input type="text" size="3"
name="<?php echo $this->_reg_objects['g'][0]->formVar(array('var' => "form[counts][".($this->_tpl_vars['item']['id'])."]"), $this);?>
" value="<?php echo $this->_tpl_vars['form']['counts'][$this->_tpl_vars['item']['id']]; ?>
"/>
</td><td>
<a href="<?php echo $this->_reg_objects['g'][0]->url(array('arg1' => "view=core.ShowItem",'arg2' => "itemId=".($this->_tpl_vars['item']['id'])), $this);?>
">
<?php if (isset ( $this->_tpl_vars['ViewCart']['thumbnails'][$this->_tpl_vars['item']['id']] )):  echo $this->_reg_objects['g'][0]->image(array('item' => $this->_tpl_vars['ViewCart']['items'][$this->_tpl_vars['item']['id']],'image' => $this->_tpl_vars['ViewCart']['thumbnails'][$this->_tpl_vars['item']['id']],'maxSize' => 90), $this);?>

<?php else:  echo $this->_reg_objects['g'][0]->text(array('text' => 'No thumbnail'), $this);?>

<?php endif; ?>
</a>
</td><td>
<ul>
<li>
<strong><?php echo $this->_reg_objects['g'][0]->text(array('text' => "Title:"), $this);?>
</strong>
<?php echo ((is_array($_tmp=$this->_tpl_vars['item']['title'])) ? $this->_run_mod_handler('markup', true, $_tmp) : smarty_modifier_markup($_tmp)); ?>

</li>
<li>
<strong><?php echo $this->_reg_objects['g'][0]->text(array('text' => "Summary:"), $this);?>
</strong>
<?php echo ((is_array($_tmp=$this->_tpl_vars['item']['summary'])) ? $this->_run_mod_handler('markup', true, $_tmp) : smarty_modifier_markup($_tmp)); ?>

</li>
</ul>
</td><td>
<?php echo $this->_tpl_vars['ViewCart']['itemTypeNames'][$this->_tpl_vars['item']['id']]['0']; ?>

</td><td align="center">
<input type="checkbox" name="<?php echo $this->_reg_objects['g'][0]->formVar(array('var' => "form[delete][".($this->_tpl_vars['item']['id'])."]"), $this);?>
"/>
</td>
</tr>
<?php endforeach; endif; unset($_from); ?>
</table>
</div>
</form>
<?php endif; ?>