<?php /* Smarty version 2.6.12, created on 2011-01-18 14:26:12
         compiled from multidatabase_view_main_sequence.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'escape', 'multidatabase_view_main_sequence.html', 2, false),)), $this); ?>
<?php echo '';  if (((is_array($_tmp=$this->_tpl_vars['action']['data_count'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')) == 0):  echo '&nbsp;&nbsp;';  echo $this->_tpl_vars['lang']['mdb_noneexists_data'];  echo '';  $_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 '';  else:  echo '<form id="form';  echo ((is_array($_tmp=$this->_tpl_vars['id'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'));  echo '" action="#" method="post" onsubmit="return false;"><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 '"><div class="mdb_chgseq">';  echo '<select id="mdb_chgseq';  echo ((is_array($_tmp=$this->_tpl_vars['id'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'));  echo '" onchange="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_sequence\', \'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 '\', \'sort\':this.value});"><option value=""';  if (((is_array($_tmp=$this->_tpl_vars['action']['sort'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')) == null):  echo ' selected="selected"';  endif;  echo '>';  echo $this->_tpl_vars['lang']['mdb_data_sort'];  echo '</option><option value="insert_time:DESC"';  if (((is_array($_tmp=$this->_tpl_vars['action']['sort'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')) == 'insert_time:DESC'):  echo ' selected="selected"';  endif;  echo '>';  echo $this->_tpl_vars['lang']['mdb_data_date_desc'];  echo '</option><option value="insert_time:ASC"';  if (((is_array($_tmp=$this->_tpl_vars['action']['sort'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')) == 'insert_time:ASC'):  echo ' selected="selected"';  endif;  echo '>';  echo $this->_tpl_vars['lang']['mdb_data_date_asc'];  echo '</option><option value="title:ASC"';  if (((is_array($_tmp=$this->_tpl_vars['action']['sort'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')) == 'title:ASC'):  echo ' selected="selected"';  endif;  echo '>';  echo $this->_tpl_vars['lang']['mdb_data_photo_name_asc'];  echo '</option><option value="vote_count:DESC"';  if (((is_array($_tmp=$this->_tpl_vars['action']['sort'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')) == 'vote_count:DESC'):  echo ' selected="selected"';  endif;  echo '>';  echo $this->_tpl_vars['lang']['mdb_data_vote_asc'];  echo '</option></select></div><div><table id="mdb_title_list';  echo ((is_array($_tmp=$this->_tpl_vars['id'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'));  echo '" class="mdb_sequence" summary="">';  $_from = ((is_array($_tmp=$this->_tpl_vars['action']['title_list'])) ? $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['item']):
 echo '<tr id="mdb_title_row';  echo ((is_array($_tmp=$this->_tpl_vars['item']['content_id'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'));  echo '';  echo ((is_array($_tmp=$this->_tpl_vars['id'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'));  echo '"><td class="comp_draganddrop"></td><td class="mdb_sequence_title mdb_sequence">';  echo ((is_array($_tmp=$this->_tpl_vars['item']['title'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'));  echo '<input type="hidden" name="content_id_arr[]" value="';  echo ((is_array($_tmp=$this->_tpl_vars['item']['content_id'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'));  echo '" /></td></tr>';  endforeach; endif; unset($_from);  echo '</table></div><div class="btn-bottom"><input class="btn-width" type="button" value="';  echo $this->_tpl_vars['lang']['_regist'];  echo '" onclick="mdbCls[\'';  echo ((is_array($_tmp=$this->_tpl_vars['id'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'));  echo '\'].closeDataSeqPop(this.form); return false;" /></div></form>';  $_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 '<script class="nc_script" type="text/javascript">dropZone = Class.create();dropZone.prototype = Object.extend((new compDropzone), {showHover: function(event) {this.showChgSeqHover(event);},hideHover: function(event) {this.hideChgSeqHover(event);},accept: function(draggableObjects) {this.acceptChgSeq(draggableObjects);},save: function(draggableObjects) {if(this.ChgSeqPosition == null) {return false;}var drag = draggableObjects[0].getHTMLElement();var drop = this.getHTMLElement();var id = this.getParams();mdbCls[id].changeSequence(drag.id, drop.id, this.ChgSeqPosition);return true;}});var dragArea = $("mdb_title_list';  echo ((is_array($_tmp=$this->_tpl_vars['id'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'));  echo '");dragDrop = new compDragAndDrop();dragDrop.registerDraggableRange(dragArea);var rows = dragArea.getElementsByTagName("tr");for (var i = 0; i < rows.length; i++) {dragDrop.registerDraggable(new compDraggable(rows[i], rows[i].firstChild));dragDrop.registerDropZone(new dropZone(rows[i], "';  echo ((is_array($_tmp=$this->_tpl_vars['id'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'));  echo '"));}dropZone = null;dragArea = null;dragDrop = null;rows = null;</script>';  endif;  echo ''; ?>