<?php /* Smarty version 2.6.12, created on 2011-01-18 14:26:11
         compiled from multidatabase_view_main_init.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'escape', 'multidatabase_view_main_init.html', 4, false),array('modifier', 'get_themes_image', 'multidatabase_view_main_init.html', 15, false),array('modifier', 'sprintf', 'multidatabase_view_main_init.html', 27, false),)), $this); ?>
<?php echo '';  echo '<div class="outerdiv">';  if (! ((is_array($_tmp=$this->_tpl_vars['action']['metadata_exists'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'))):  echo '';  echo $this->_tpl_vars['lang']['mdb_noneexists_metadata'];  echo '';  else:  echo '<div class="bold">';  echo ((is_array($_tmp=$this->_tpl_vars['action']['mdb_obj']['multidatabase_name'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'));  echo '</div><table class="outer"><tr><td class="nowrap mdb_right_space">';  if (((is_array($_tmp=$this->_tpl_vars['action']['mdb_obj']['post_auth'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')) && ((is_array($_tmp=$this->_tpl_vars['action']['mdb_obj']['active_flag'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')) == ((is_array($_tmp=@_ON)) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'))):  echo '<a class="syslink" href="#" title="';  echo $this->_tpl_vars['lang']['mdb_new_content_title'];  echo '" onclick="commonCls.sendView(\'';  echo ((is_array($_tmp=$this->_tpl_vars['id'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'));  echo '\', {\'action\':\'multidatabase_view_main_content_init\', \'multidatabase_id\':\'';  echo ((is_array($_tmp=$this->_tpl_vars['action']['multidatabase_id'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'));  echo '\'}, {\'loading_el\':this}); return false;"><img class="icon" alt="" src="';  echo ((is_array($_tmp="edit.gif")) ? $this->_run_mod_handler('get_themes_image', true, $_tmp) : get_themes_image($_tmp));  echo '"/>';  echo $this->_tpl_vars['lang']['mdb_new_content'];  echo '</a>';  if (((is_array($_tmp=$_SESSION['_auth_id'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')) >= ((is_array($_tmp=@_AUTH_CHIEF)) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'))):  echo '';  echo $this->_tpl_vars['lang']['_separator'];  echo '<a class="syslink" href="#" title="" onclick="mdbCls[\'';  echo ((is_array($_tmp=$this->_tpl_vars['id'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'));  echo '\'].showDataSeqPop(event, \'';  echo ((is_array($_tmp=$this->_tpl_vars['action']['multidatabase_id'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'));  echo '\'); return false;">';  echo $this->_tpl_vars['lang']['mdb_sequence'];  echo '</a>';  endif;  echo '';  endif;  echo '</td><td class="align-right nowrap"><a class="syslink" href="#" title="';  echo ((is_array($_tmp=$this->_tpl_vars['lang']['mdb_search_title'])) ? $this->_run_mod_handler('sprintf', true, $_tmp, ((is_array($_tmp=$this->_tpl_vars['action']['mdb_obj']['multidatabase_name'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'))) : sprintf($_tmp, ((is_array($_tmp=$this->_tpl_vars['action']['mdb_obj']['multidatabase_name'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'))));  echo '" onclick="commonCls.sendView(\'';  echo ((is_array($_tmp=$this->_tpl_vars['id'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'));  echo '\', {\'action\':\'multidatabase_view_main_search_init\', \'multidatabase_id\':\'';  echo ((is_array($_tmp=$this->_tpl_vars['action']['multidatabase_id'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'));  echo '\'}, {\'loading_el\':this}); return false;"><img class="icon" src="';  echo ((is_array($_tmp="search.gif")) ? $this->_run_mod_handler('get_themes_image', true, $_tmp) : get_themes_image($_tmp));  echo '" alt="';  echo $this->_tpl_vars['lang']['mdb_search'];  echo '" title="';  echo $this->_tpl_vars['lang']['mdb_search'];  echo '" />';  echo $this->_tpl_vars['lang']['mdb_search'];  echo '</a></td></tr></table><div class="nowrap"><form id="mdb_page_form';  echo ((is_array($_tmp=$this->_tpl_vars['id'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'));  echo '" action="" onsubmit="return false;"><table class="mdb_mdblist_table" cellspacing="0" summary=""><tr><td class="align-right">';  if (((is_array($_tmp=$this->_tpl_vars['action']['total_page'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')) > 1):  echo '';  $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "multidatabase_view_main_init_page.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
  echo '';  endif;  echo '';  $_from = ((is_array($_tmp=$this->_tpl_vars['action']['section_metadatas'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['item']):
 echo '<span class="mdb_separator"><select class="mdb_category" name="sort_section[';  echo ((is_array($_tmp=$this->_tpl_vars['key'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'));  echo ']" onchange="mdbCls[\'';  echo ((is_array($_tmp=$this->_tpl_vars['id'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'));  echo '\'].toPage(this, \'\')"><option value="0" ';  if (((is_array($_tmp=$this->_tpl_vars['action']['sort_section'][$this->_tpl_vars['key']])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')) == 0 || ((is_array($_tmp=$this->_tpl_vars['action']['sort_section'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')) == null):  echo ' selected="selected"';  endif;  echo '>';  echo ((is_array($_tmp=$this->_tpl_vars['item']['name'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'));  echo '</option>';  $_from = ((is_array($_tmp=$this->_tpl_vars['item']['select_content_array'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['selectloop'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['selectloop']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['option']):
        $this->_foreach['selectloop']['iteration']++;
 echo '<option value="';  echo ((is_array($_tmp=$this->_tpl_vars['option'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'));  echo '" ';  if (((is_array($_tmp=$this->_tpl_vars['action']['sort_section'][$this->_tpl_vars['key']])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')) == ((is_array($_tmp=$this->_tpl_vars['option'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'))):  echo ' selected="selected"';  endif;  echo '>';  echo ((is_array($_tmp=$this->_tpl_vars['option'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'));  echo '</option>';  endforeach; endif; unset($_from);  echo '</select></span>';  endforeach; endif; unset($_from);  echo '<span class="mdb_separator"><select class="mdb_sort[';  echo ((is_array($_tmp=$this->_tpl_vars['id'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'));  echo ']" id="mdb_sort';  echo ((is_array($_tmp=$this->_tpl_vars['id'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'));  echo '" name="sort_metadata" onchange="mdbCls[\'';  echo ((is_array($_tmp=$this->_tpl_vars['id'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'));  echo '\'].toPage(this, \'\')"><option value="';  echo ((is_array($_tmp=@MULTIDATABASE_DEFAULT_SEQUENCE_SORT)) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'));  echo '" ';  if (((is_array($_tmp=$this->_tpl_vars['action']['sort_metadata'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')) == "" || ((is_array($_tmp=$this->_tpl_vars['action']['sort_metadata'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')) == ((is_array($_tmp=@MULTIDATABASE_DEFAULT_SEQUENCE_SORT)) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'))):  echo ' selected="selected"';  endif;  echo '>';  echo $this->_tpl_vars['lang']['mdb_default_sort'];  echo '</option><option value="';  echo ((is_array($_tmp=@MULTIDATABASE_DEFAULT_DATE_SORT)) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'));  echo '" ';  if (((is_array($_tmp=$this->_tpl_vars['action']['sort_metadata'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')) == ((is_array($_tmp=@MULTIDATABASE_DEFAULT_DATE_SORT)) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'))):  echo ' selected="selected"';  endif;  echo '>';  echo $this->_tpl_vars['lang']['mdb_date_sort'];  echo '</option><option value="';  echo ((is_array($_tmp=@MULTIDATABASE_DEFAULT_DATE_ASC_SORT)) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'));  echo '" ';  if (((is_array($_tmp=$this->_tpl_vars['action']['sort_metadata'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')) == ((is_array($_tmp=@MULTIDATABASE_DEFAULT_DATE_ASC_SORT)) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'))):  echo ' selected="selected"';  endif;  echo '>';  echo $this->_tpl_vars['lang']['mdb_date_asc_sort'];  echo '</option>';  if (((is_array($_tmp=$this->_tpl_vars['action']['mdb_obj']['vote_flag'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')) == ((is_array($_tmp=@_ON)) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'))):  echo '<option value="';  echo ((is_array($_tmp=@MULTIDATABASE_DEFAULT_VOTE_SORT)) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'));  echo '" ';  if (((is_array($_tmp=$this->_tpl_vars['action']['sort_metadata'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')) == ((is_array($_tmp=@MULTIDATABASE_DEFAULT_VOTE_SORT)) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'))):  echo ' selected="selected"';  endif;  echo '>';  echo $this->_tpl_vars['lang']['mdb_vote_sort'];  echo '</option>';  endif;  echo '';  $_from = ((is_array($_tmp=$this->_tpl_vars['action']['sort_metadatas'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['selectloop'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['selectloop']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['option']):
        $this->_foreach['selectloop']['iteration']++;
 echo '<option value="';  echo ((is_array($_tmp=$this->_tpl_vars['option']['metadata_id'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'));  echo '" ';  if (((is_array($_tmp=$this->_tpl_vars['action']['sort_metadata'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')) == ((is_array($_tmp=$this->_tpl_vars['option']['metadata_id'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'))):  echo ' selected="selected"';  endif;  echo '>';  echo ((is_array($_tmp=$this->_tpl_vars['option']['name'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'));  echo '';  echo $this->_tpl_vars['lang']['mdb_sort_item'];  echo '</option>';  endforeach; endif; unset($_from);  echo '</select></span><select class="visible_item';  echo ((is_array($_tmp=$this->_tpl_vars['id'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'));  echo '" id="visible_item';  echo ((is_array($_tmp=$this->_tpl_vars['id'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'));  echo '" name="visible_item" onchange="mdbCls[\'';  echo ((is_array($_tmp=$this->_tpl_vars['id'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'));  echo '\'].toPage(this, \'\')"><option value="1" ';  if (( ((is_array($_tmp=$this->_tpl_vars['action']['visible_item'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')) == 1 )):  echo ' selected="selected"';  endif;  echo '>1';  echo $this->_tpl_vars['lang']['mdb_display_item'];  echo '</option><option value="5" ';  if (( ((is_array($_tmp=$this->_tpl_vars['action']['visible_item'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')) == 5 )):  echo ' selected="selected"';  endif;  echo '>5';  echo $this->_tpl_vars['lang']['mdb_display_item'];  echo '</option><option value="10" ';  if (( ((is_array($_tmp=$this->_tpl_vars['action']['visible_item'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')) == 10 )):  echo ' selected="selected"';  endif;  echo '>10';  echo $this->_tpl_vars['lang']['mdb_display_item'];  echo '</option><option value="20" ';  if (( ((is_array($_tmp=$this->_tpl_vars['action']['visible_item'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')) == 20 )):  echo ' selected="selected"';  endif;  echo '>20';  echo $this->_tpl_vars['lang']['mdb_display_item'];  echo '</option><option value="50" ';  if (( ((is_array($_tmp=$this->_tpl_vars['action']['visible_item'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')) == 50 )):  echo ' selected="selected"';  endif;  echo '>50';  echo $this->_tpl_vars['lang']['mdb_display_item'];  echo '</option><option value="100" ';  if (( ((is_array($_tmp=$this->_tpl_vars['action']['visible_item'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')) == 100 )):  echo ' selected="selected"';  endif;  echo '>100';  echo $this->_tpl_vars['lang']['mdb_display_item'];  echo '</option>';  echo '</select></td></tr></table>';  echo '<input type="hidden" name="multidatabase_id" value="';  echo ((is_array($_tmp=$this->_tpl_vars['action']['multidatabase_id'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'));  echo '" /><input type="hidden" name="now_page" value="';  echo ((is_array($_tmp=$this->_tpl_vars['action']['now_page'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'));  echo '" /></form></div>';  if (! ((is_array($_tmp=$this->_tpl_vars['action']['exists'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'))):  echo '<br />';  echo $this->_tpl_vars['lang']['mdb_noneexists_data'];  echo '';  else:  echo '';  if (((is_array($_tmp=$this->_tpl_vars['action']['mdblist']['metadata'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')) == ""):  echo '<br />';  echo $this->_tpl_vars['lang']['mdb_noneexists_list_metadata'];  echo '';  else:  echo '';  $this->assign('mode', 'list');  echo '';  $this->assign('data_pos_1', ((is_array($_tmp=$this->_tpl_vars['action']['mdblist']['metadata']['1'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')));  echo '';  $this->assign('data_pos_2', ((is_array($_tmp=$this->_tpl_vars['action']['mdblist']['metadata']['2'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')));  echo '';  $this->assign('data_pos_3', ((is_array($_tmp=$this->_tpl_vars['action']['mdblist']['metadata']['3'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')));  echo '';  $this->assign('data_pos_4', ((is_array($_tmp=$this->_tpl_vars['action']['mdblist']['metadata']['4'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')));  echo '';  $_from = ((is_array($_tmp=$this->_tpl_vars['action']['mdblist']['value'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['item']):
 echo '';  echo '';  $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "multidatabase_common_metadata.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
  echo '<br />';  endforeach; endif; unset($_from);  echo '';  endif;  echo '';  endif;  echo '';  endif;  echo '</div>';  $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "../multidatabase_script.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
  echo ''; ?>