<?php /* Smarty version 2.6.16, created on 2007-06-28 20:03:44
         compiled from gallery:modules/core/templates/AdminRepositoryDownload.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'counter', 'gallery:modules/core/templates/AdminRepositoryDownload.tpl', 61, false),)), $this); ?>
<div class="gbBlock gcBackground1">
<h2> <?php echo $this->_reg_objects['g'][0]->text(array('text' => "Download %s",'arg1' => $this->_tpl_vars['AdminRepositoryDownload']['pluginName']), $this);?>
 </h2>
</div>
<?php if (isset ( $this->_tpl_vars['form']['error'] )): ?>
<div class="gbBlock">
<h2 class="giError">
<?php if (isset ( $this->_tpl_vars['form']['error']['nothingSelected'] )):  echo $this->_reg_objects['g'][0]->text(array('text' => "No packages have been selected."), $this);?>

<?php endif; ?>
</h2>
</div>
<?php endif; ?>
<script type="text/javascript">
// <![CDATA[
var allSources = [];
<?php $_from = $this->_tpl_vars['AdminRepositoryDownload']['upgradeData']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['item']):
?>
allSources.push('<?php echo $this->_tpl_vars['item']['repository']; ?>
');
<?php endforeach; endif; unset($_from); ?>
// ]]>
</script>
<div class="gbBlock">
<p class="giDescription">
<?php echo $this->_reg_objects['g'][0]->text(array('text' => "Download a package in order to use this plugin.  You can upgrade by choosing a newer version of the package to download.  Language packages are optional, You only need to download the ones that you want to use on your site."), $this);?>

</p>
<h2> <?php echo $this->_reg_objects['g'][0]->text(array('text' => 'Base Packages'), $this);?>
 </h2>
<?php $_from = $this->_tpl_vars['AdminRepositoryDownload']['upgradeData']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['item']):
?>
<p>
<?php if ($this->_tpl_vars['item']['base']['relation'] == 'older'): ?>
<input type="radio" onchange="showLanguagePacks('<?php echo $this->_tpl_vars['item']['repository']; ?>
')" name="<?php echo $this->_reg_objects['g'][0]->formVar(array('var' => "form[base]"), $this);?>
" value="<?php echo $this->_tpl_vars['item']['repository']; ?>
:<?php echo $this->_tpl_vars['item']['base']['newBuild']; ?>
"/>
<?php echo $this->_reg_objects['g'][0]->text(array('text' => "%s: version %s (build %s)",'arg1' => "<b>".($this->_tpl_vars['item']['repositoryName'])."</b>",'arg2' => $this->_tpl_vars['item']['base']['newVersion'],'arg3' => $this->_tpl_vars['item']['base']['newBuild']), $this);?>

<?php elseif ($this->_tpl_vars['item']['base']['relation'] == 'newer'): ?>
<input type="radio" value="false" disabled="disabled" />
<?php echo $this->_reg_objects['g'][0]->text(array('text' => "%s: version %s (build %s) %sdowngrading is not supported!%s",'arg1' => "<b>".($this->_tpl_vars['item']['repositoryName'])."</b>",'arg2' => $this->_tpl_vars['item']['base']['newVersion'],'arg3' => $this->_tpl_vars['item']['base']['newBuild'],'arg4' => "<b>",'arg5' => "</b>"), $this);?>

<?php else: ?>
<input type="radio" onchange="showLanguagePacks('<?php echo $this->_tpl_vars['item']['repository']; ?>
')" name="<?php echo $this->_reg_objects['g'][0]->formVar(array('var' => "form[base]"), $this);?>
" value="<?php echo $this->_tpl_vars['item']['repository']; ?>
:<?php echo $this->_tpl_vars['item']['base']['newBuild']; ?>
" checked="checked"/>
<?php echo $this->_reg_objects['g'][0]->text(array('text' => "%sCurrently Installed%s: version %s (build %s)",'arg1' => "<b>",'arg2' => "</b>",'arg3' => $this->_tpl_vars['item']['base']['newVersion'],'arg4' => $this->_tpl_vars['item']['base']['newBuild']), $this);?>

<?php $this->assign('currentlyInstalled', $this->_tpl_vars['item']['repository']);  endif; ?>
</p>
<?php endforeach; endif; unset($_from); ?>
<h2> <?php echo $this->_reg_objects['g'][0]->text(array('text' => 'Language Packages'), $this);?>
 </h2>
<?php $_from = $this->_tpl_vars['AdminRepositoryDownload']['upgradeData']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['item']):
?>
<div style="position: relative; left: 25px">
<div class="languagePacks" id="<?php echo $this->_tpl_vars['item']['repository']; ?>
_languagePacks"
style="<?php if (empty ( $this->_tpl_vars['currentlyInstalled'] ) || $this->_tpl_vars['item']['repository'] != $this->_tpl_vars['currentlyInstalled']): ?>display: none<?php endif; ?>">
<p id="<?php echo $this->_tpl_vars['item']['repository']; ?>
_languages">
<?php if (! empty ( $this->_tpl_vars['item']['languages'] )):  echo $this->_reg_objects['g'][0]->text(array('text' => "(%sselect all%s%sselect none%s)",'arg1' => "<a id=\"".($this->_tpl_vars['item']['repository'])."_selectAllLink\" href=\"javascript:selectAll('".($this->_tpl_vars['item']['repository'])."')\">",'arg2' => "</a>",'arg3' => "<a style=\"display: none\" id=\"".($this->_tpl_vars['item']['repository'])."_selectNoneLink\" href=\"javascript:selectNone('".($this->_tpl_vars['item']['repository'])."')\">",'arg4' => "</a>"), $this);?>

<?php $_from = $this->_tpl_vars['item']['languages']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['code'] => $this->_tpl_vars['pack']):
?>
<br/>
<?php echo smarty_function_counter(array('assign' => 'langId'), $this);?>

<?php ob_start();  $this->assign('checked', ""); ?>
<label for="lang_<?php echo $this->_tpl_vars['langId']; ?>
">
<?php if ($this->_tpl_vars['pack']['relation'] == 'older' && $this->_tpl_vars['pack']['currentBuild']):  echo $this->_reg_objects['g'][0]->text(array('text' => "%s version %s (upgrading from %s)",'arg1' => "<b>".($this->_tpl_vars['pack']['name'])."</b>",'arg2' => $this->_tpl_vars['pack']['newBuild'],'arg3' => $this->_tpl_vars['pack']['currentBuild']), $this);?>

<?php if (! empty ( $this->_tpl_vars['AdminRepositoryDownload']['installedLanguages'][$this->_tpl_vars['code']] )):  $this->assign('checked', 'checked');  endif;  elseif ($this->_tpl_vars['pack']['relation'] == 'older'):  echo $this->_reg_objects['g'][0]->text(array('text' => "%s version %s",'arg1' => "<b>".($this->_tpl_vars['pack']['name'])."</b>",'arg2' => $this->_tpl_vars['pack']['newBuild']), $this);?>

<?php elseif ($this->_tpl_vars['pack']['relation'] == 'newer'):  echo $this->_reg_objects['g'][0]->text(array('text' => "%s version %s (%snewer version %s is installed%s)",'arg1' => "<b>".($this->_tpl_vars['pack']['name'])."</b>",'arg2' => $this->_tpl_vars['pack']['newBuild'],'arg3' => "<b>",'arg4' => $this->_tpl_vars['pack']['currentBuild'],'arg5' => "</b>"), $this);?>

<?php else:  echo $this->_reg_objects['g'][0]->text(array('text' => "%s version %s (currently installed)",'arg1' => "<b>".($this->_tpl_vars['pack']['name'])."</b>",'arg2' => $this->_tpl_vars['pack']['newBuild']), $this);?>

<?php $this->assign('checked', 'checked');  endif; ?>
</label>
<?php $this->_smarty_vars['capture']['default'] = ob_get_contents();  $this->assign('label', ob_get_contents());ob_end_clean(); ?>
<input type="hidden" name="<?php echo $this->_reg_objects['g'][0]->formVar(array('var' => "form[languagesAvailable][]"), $this);?>
" value="<?php echo $this->_tpl_vars['item']['repository']; ?>
:<?php echo $this->_tpl_vars['code']; ?>
"/>
<input id="lang_<?php echo $this->_tpl_vars['langId']; ?>
" type="checkbox" name="<?php echo $this->_reg_objects['g'][0]->formVar(array('var' => "form[languages][]"), $this);?>
"
value="<?php echo $this->_tpl_vars['item']['repository']; ?>
:<?php echo $this->_tpl_vars['code']; ?>
:<?php echo $this->_tpl_vars['pack']['newBuild']; ?>
" <?php if (! empty ( $this->_tpl_vars['checked'] )): ?>checked="<?php echo $this->_tpl_vars['checked']; ?>
"<?php endif; ?>/>
<?php echo $this->_tpl_vars['label']; ?>

<?php endforeach; endif; unset($_from);  else: ?> <i><?php echo $this->_reg_objects['g'][0]->text(array('text' => 'No compatible language packages available'), $this);?>
</i>
<?php endif; ?>
</p>
</div>
</div>
<?php endforeach; endif; unset($_from);  if (! isset ( $this->_tpl_vars['currentlyInstalled'] )): ?>
<div style="position: relative; left: 25px" id="languageListPlaceholder">
<i><?php echo $this->_reg_objects['g'][0]->text(array('text' => "You must select a base package before choosing language packs."), $this);?>
</i>
</div>
<?php endif; ?>
</div>
<div class="gbBlock gcBackground1">
<input class="inputTypeSubmit" type="submit" name="<?php echo $this->_reg_objects['g'][0]->formVar(array('var' => "form[action][download]"), $this);?>
" value="<?php echo $this->_reg_objects['g'][0]->text(array('text' => 'Update'), $this);?>
"/>
<input class="inputTypeSubmit" type="submit" name="<?php echo $this->_reg_objects['g'][0]->formVar(array('var' => "form[action][cancel]"), $this);?>
" value="<?php echo $this->_reg_objects['g'][0]->text(array('text' => 'Cancel'), $this);?>
"/>
<input type="hidden" name="<?php echo $this->_reg_objects['g'][0]->formVar(array('var' => "form[pluginType]"), $this);?>
" value="<?php echo $this->_tpl_vars['AdminRepositoryDownload']['pluginType']; ?>
" />
<input type="hidden" name="<?php echo $this->_reg_objects['g'][0]->formVar(array('var' => "form[pluginId]"), $this);?>
" value="<?php echo $this->_tpl_vars['AdminRepositoryDownload']['pluginId']; ?>
" />
</div>