<?php /* Smarty version 2.6.16, created on 2007-07-30 18:41:47
         compiled from gallery:modules/publishxp/templates/SelectAlbum.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'repeat', 'gallery:modules/publishxp/templates/SelectAlbum.tpl', 31, false),array('modifier', 'default', 'gallery:modules/publishxp/templates/SelectAlbum.tpl', 32, false),)), $this); ?>
<form action="<?php echo $this->_reg_objects['g'][0]->url(array(), $this);?>
" enctype="application/x-www-form-urlencoded" method="post"
id="publishXpForm">
<div>
<script type="text/javascript">
// <![CDATA[
<?php ob_start();  echo $this->_reg_objects['g'][0]->url(array('arg1' => "view=publishxp.NewAlbum"), $this); $this->_smarty_vars['capture']['url'] = ob_get_contents(); ob_end_clean(); ?>
setSubtitle("<?php echo $this->_reg_objects['g'][0]->text(array('text' => "Choose an album for new photos, or create a new album.",'arg1' => $this->_smarty_vars['capture']['url'],'forJavascript' => true), $this);?>
");
setOnBackUrl("<?php echo $this->_reg_objects['g'][0]->url(array('arg1' => "view=publishxp.SelectAlbum"), $this);?>
");
setSubmitOnNext(true);
setButtons(false, true, false);
// ]]>
</script>
<?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="publishxp.SelectAlbum"/>
<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']; ?>
"/>
<input type="hidden" name="<?php echo $this->_reg_objects['g'][0]->formVar(array('var' => "form[action][select]"), $this);?>
" value="1"/>
</div>
<div class="gbBlock">
<div>
<select id="<?php echo $this->_reg_objects['g'][0]->formVar(array('var' => "form[albumId]"), $this);?>
" name="<?php echo $this->_reg_objects['g'][0]->formVar(array('var' => "form[albumId]"), $this);?>
"
size="15" width="40" style="width: 100%; margin-top: 10px">
<?php $_from = $this->_tpl_vars['SelectAlbum']['albumTree']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['album']):
?>
<option value="<?php echo $this->_tpl_vars['album']['data']['id']; ?>
"
<?php if (( $this->_tpl_vars['album']['data']['id'] == $this->_tpl_vars['form']['albumId'] )): ?>selected="selected"<?php endif; ?>>
<?php echo ((is_array($_tmp="&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;")) ? $this->_run_mod_handler('repeat', true, $_tmp, $this->_tpl_vars['album']['depth']) : smarty_modifier_repeat($_tmp, $this->_tpl_vars['album']['depth'])); ?>
--
<?php echo ((is_array($_tmp=@$this->_tpl_vars['album']['data']['title'])) ? $this->_run_mod_handler('default', true, $_tmp, @$this->_tpl_vars['album']['data']['pathComponent']) : smarty_modifier_default($_tmp, @$this->_tpl_vars['album']['data']['pathComponent'])); ?>

</option>
<?php endforeach; endif; unset($_from); ?>
</select>
<script type="text/javascript">document.getElementById('publishXpForm')['<?php echo $this->_reg_objects['g'][0]->formVar(array('var' => "form[albumId]"), $this);?>
'].focus();</script>
<input type="submit" class="inputTypeSubmit"
name="<?php echo $this->_reg_objects['g'][0]->formVar(array('var' => "form[action][newAlbum]"), $this);?>
" value="<?php echo $this->_reg_objects['g'][0]->text(array('text' => 'New Album'), $this);?>
"/>
<?php if (isset ( $this->_tpl_vars['form']['error']['albumId']['missing'] )): ?>
<div class="giError">
<?php echo $this->_reg_objects['g'][0]->text(array('text' => 'You must select an album'), $this);?>

</div>
<?php endif; ?>
</div>
</div>
</form>