<?php /* Smarty version 2.6.25, created on 2012-08-26 20:09:19
         compiled from DefaultAdmin/dir_approve_links.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'escape', 'DefaultAdmin/dir_approve_links.tpl', 16, false),array('modifier', 'trim', 'DefaultAdmin/dir_approve_links.tpl', 16, false),array('modifier', 'urlwrap', 'DefaultAdmin/dir_approve_links.tpl', 102, false),array('modifier', 'date_format', 'DefaultAdmin/dir_approve_links.tpl', 110, false),array('modifier', 'cat', 'DefaultAdmin/dir_approve_links.tpl', 132, false),array('function', 'cycle', 'DefaultAdmin/dir_approve_links.tpl', 68, false),)), $this); ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "messages.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

<div class="block">
   <!-- Links Search Form -->
   <form action="<?php echo @DOC_ROOT; ?>
/dir_approve_links.php" method="get">
      <table class="list search-box">
      <thead>
         <tr>
            <th class="listHeader" colspan="4">Search Links</th>
         </tr>
      </thead>
      <tbody>
         <tr>
            <td id="searchbyid" <?php if (empty ( $this->_tpl_vars['searchbyid'] )): ?>class="hidden"<?php endif; ?>>
               ID:<input type="text" id="searchitemid" name="searchbyid" maxlength="255" value="<?php if (! empty ( $this->_tpl_vars['searchbyid'] )): ?><?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['searchbyid'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)))) ? $this->_run_mod_handler('trim', true, $_tmp) : trim($_tmp)); ?>
<?php endif; ?>" class="text searchinput searchid" title="Add ID to search for" />
            </td>
            <td>
               <input type="text" id="searchinput" name="search" maxlength="255" value="<?php if (! empty ( $this->_tpl_vars['search'] )): ?><?php echo ((is_array($_tmp=$this->_tpl_vars['search'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
<?php endif; ?>" class="text searchinput" title="Add your search keywords" />
               <p><a href="<?php echo @DOC_ROOT; ?>
/dir_approve_links.php" title="Search items by ID" onclick="togglesearchbyid(); return false;"><span>Search by ID</span></a></p>
            </td>
            <td>
               <input type="submit" value="Search" title="Click to start search" class="button" />
            </td>
            <td class="notice">
               <?php echo $this->_tpl_vars['min_keyword_length_comment']; ?>

            </td>
         </tr>
      </tbody>
      </table>
   </form>
   <!-- /Links Search Form -->
</div>

<?php if ($this->_tpl_vars['error']): ?>
<div class="block">
   <!-- Error -->
   <div class="error">
      <h2>Error</h2>
      <p><?php echo $this->_tpl_vars['error']; ?>
 error(s) occured while processing.</p>
      <?php if (! empty ( $this->_tpl_vars['sql_error'] )): ?>
         <p>The database server returned the following message:</p>
         <p class="sql_error"><?php echo $this->_tpl_vars['sql_error']; ?>
</p>
      <?php endif; ?>
   </div>
   <!-- /Error -->
</div>
<?php endif; ?>

<div class="block">
   <form action="<?php echo @DOC_ROOT; ?>
/dir_approve_links.php" method="post" id="multiselect_list" name="multiselect_list">
   <input type="hidden" name="submitAction" id="submitAction" value="" />
   <table class="list">
      <thead>
         <tr>
            <th id="select" class="first-child"></th>
            <?php $_from = $this->_tpl_vars['columns']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['col'] => $this->_tpl_vars['name']):
?>
               <?php if ($this->_tpl_vars['col'] != 'TITLE_URL'): ?>
                  <th class="listHeader" id="<?php echo $this->_tpl_vars['col']; ?>
"><a href="<?php echo @DOC_ROOT; ?>
/dir_approve_links.php<?php if (isset ( $this->_tpl_vars['columnURLs'] ) && is_array ( $this->_tpl_vars['columnURLs'] )): ?>?<?php echo $this->_tpl_vars['columnURLs'][$this->_tpl_vars['col']]; ?>
<?php endif; ?>" title="Sort by: <?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['name'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)))) ? $this->_run_mod_handler('trim', true, $_tmp) : trim($_tmp)); ?>
" class="sort<?php if ($this->_tpl_vars['SORT_FIELD'] == $this->_tpl_vars['col'] && $this->_tpl_vars['requestOrder'] == 1): ?> <?php echo @SORT_ORDER; ?>
<?php endif; ?>"><?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['name'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)))) ? $this->_run_mod_handler('trim', true, $_tmp) : trim($_tmp)); ?>
</a></th>
               <?php endif; ?>
            <?php endforeach; endif; unset($_from); ?>
            <th colspan="3" class="last-child">Action</th>
         </tr>
      </thead>

      <tbody>
      <?php $_from = $this->_tpl_vars['list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['id'] => $this->_tpl_vars['row']):
?>
         <tr class="<?php echo smarty_function_cycle(array('values' => "odd,even"), $this);?>
">
         <!-- <?php if ($this->_tpl_vars['row']['FEATURED'] == '1'): ?> featured<?php endif; ?> -->
            <td class="first-child">
               <label><input type="checkbox" name="multiselect_checkbox[]" value="<?php echo $this->_tpl_vars['id']; ?>
" title="Check box to select this item." /></label>
            </td>
            <?php $_from = $this->_tpl_vars['columns']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['col'] => $this->_tpl_vars['name']):
?>
               <?php $this->assign('val', $this->_tpl_vars['row'][$this->_tpl_vars['col']]); ?>
               <?php if ($this->_tpl_vars['col'] == 'STATUS'): ?>
                  <td class="status-<?php echo $this->_tpl_vars['val']; ?>
">
                     <span id="current-status-<?php echo $this->_tpl_vars['id']; ?>
" class="pop"><?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['stats'][$this->_tpl_vars['val']])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)))) ? $this->_run_mod_handler('trim', true, $_tmp) : trim($_tmp)); ?>
</span>
                     <div class="pop-list" id="pS<?php echo $this->_tpl_vars['id']; ?>
">
                        <h3>Set new status:</h3>
                        <ul class="list-status">
                        <?php $_from = $this->_tpl_vars['stats']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['k'] => $this->_tpl_vars['v']):
?>
                           <?php if ($this->_tpl_vars['k'] != $this->_tpl_vars['val']): ?>
                              <li><a href="<?php echo @DOC_ROOT; ?>
/dir_links_edit.php?action=S:<?php echo $this->_tpl_vars['id']; ?>
:<?php echo $this->_tpl_vars['k']; ?>
" class="status-<?php echo $this->_tpl_vars['k']; ?>
" title="Click to change status to: <?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['stats'][$this->_tpl_vars['k']])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)))) ? $this->_run_mod_handler('trim', true, $_tmp) : trim($_tmp)); ?>
"><?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['stats'][$this->_tpl_vars['k']])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)))) ? $this->_run_mod_handler('trim', true, $_tmp) : trim($_tmp)); ?>
</a></li>
                           <?php endif; ?>
                        <?php endforeach; endif; unset($_from); ?>
                        </ul>
                     </div>
               <?php elseif ($this->_tpl_vars['col'] == 'LINK_TYPE'): ?>
                  <td><?php echo $this->_tpl_vars['link_type_str'][$this->_tpl_vars['val']]; ?>

               <?php elseif ($this->_tpl_vars['col'] == 'PAGERANK'): ?>
                  <td><?php if ($this->_tpl_vars['row'][$this->_tpl_vars['col']] == -1): ?>N/A<?php else: ?><?php echo $this->_tpl_vars['row'][$this->_tpl_vars['col']]; ?>
<?php endif; ?>
               <?php elseif ($this->_tpl_vars['col'] == 'TITLE'): ?>
                  <td class="item-title">
					<?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['row'][$this->_tpl_vars['col']])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)))) ? $this->_run_mod_handler('trim', true, $_tmp) : trim($_tmp)); ?>

					<?php if (( $this->_tpl_vars['row']['FEATURED'] === '1' )): ?>
					<span class="featured_label">FEATURED</span>
					<?php endif; ?>
					<a href="<?php echo @DOC_ROOT; ?>
/link_details.php?id=<?php echo $this->_tpl_vars['id']; ?>
" title="View full info of this item" id="more-info-<?php echo $this->_tpl_vars['id']; ?>
" class="more-info" onclick="return false;"><span>More info</span></a>
               <?php elseif ($this->_tpl_vars['col'] == 'URL'): ?>
                  <?php $this->assign('s', $this->_tpl_vars['row']['VALID']); ?>
                  <td class="valid-<?php echo $this->_tpl_vars['s']; ?>
">
                     <a class="http" id="URL-<?php echo $this->_tpl_vars['id']; ?>
" href="<?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['row'][$this->_tpl_vars['col']])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)))) ? $this->_run_mod_handler('trim', true, $_tmp) : trim($_tmp)); ?>
" target="_blank"><?php echo ((is_array($_tmp=((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['row'][$this->_tpl_vars['col']])) ? $this->_run_mod_handler('urlwrap', true, $_tmp, 15, 15, "...") : smarty_modifier_urlwrap($_tmp, 15, 15, "...")))) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)))) ? $this->_run_mod_handler('trim', true, $_tmp) : trim($_tmp)); ?>
</a>
                     <span id="text-URL-<?php echo $this->_tpl_vars['id']; ?>
" class="full-url-text"><?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['row'][$this->_tpl_vars['col']])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)))) ? $this->_run_mod_handler('trim', true, $_tmp) : trim($_tmp)); ?>
</span>
               <?php elseif ($this->_tpl_vars['col'] == 'RECPR_URL'): ?>
                  <?php $this->assign('s', $this->_tpl_vars['row']['RECPR_VALID']); ?>
                  <td class="valid-URL-<?php echo $this->_tpl_vars['s']; ?>
">
                     <a class="rhttp" id="RURL-<?php echo $this->_tpl_vars['id']; ?>
" href="<?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['row'][$this->_tpl_vars['col']])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)))) ? $this->_run_mod_handler('trim', true, $_tmp) : trim($_tmp)); ?>
" target="_blank"><?php echo ((is_array($_tmp=((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['row'][$this->_tpl_vars['col']])) ? $this->_run_mod_handler('urlwrap', true, $_tmp, 15, 15, "...") : smarty_modifier_urlwrap($_tmp, 15, 15, "...")))) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)))) ? $this->_run_mod_handler('trim', true, $_tmp) : trim($_tmp)); ?>
</a>
                     <span id="text-rURL-<?php echo $this->_tpl_vars['id']; ?>
" class="full-url-text"><?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['row'][$this->_tpl_vars['col']])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)))) ? $this->_run_mod_handler('trim', true, $_tmp) : trim($_tmp)); ?>
</span>
               <?php elseif ($this->_tpl_vars['col'] == 'DATE_ADDED'): ?>
                  <td><?php echo ((is_array($_tmp=$this->_tpl_vars['row'][$this->_tpl_vars['col']])) ? $this->_run_mod_handler('date_format', true, $_tmp, $this->_tpl_vars['date_format']) : smarty_modifier_date_format($_tmp, $this->_tpl_vars['date_format'])); ?>

               <?php elseif ($this->_tpl_vars['col'] == 'CATEGORY'): ?>
                  <td><?php if ($this->_tpl_vars['row']['CATEGORY_ID'] == '-1'): ?><span class="orphan">Orphan</span><?php else: ?><a id="category-<?php echo $this->_tpl_vars['row']['CATEGORY_ID']; ?>
" href="<?php echo @DOC_ROOT; ?>
/dir_approve_links.php?category=<?php echo $this->_tpl_vars['row']['CATEGORY_ID']; ?>
" title="Browse links of category: <?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['row'][$this->_tpl_vars['col']])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)))) ? $this->_run_mod_handler('trim', true, $_tmp) : trim($_tmp)); ?>
" class="category-link" onclick="return false;"><?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['row'][$this->_tpl_vars['col']])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)))) ? $this->_run_mod_handler('trim', true, $_tmp) : trim($_tmp)); ?>
</a><a href="<?php echo @DOC_ROOT; ?>
/categ_details.php?id=<?php echo $this->_tpl_vars['row']['CATEGORY_ID']; ?>
" title="View full info of this item" id="more-info-categ-<?php echo $this->_tpl_vars['row']['CATEGORY_ID']; ?>
" class="more-info-categ" onclick="return false;"><span>More info</span></a><?php endif; ?>
               <?php elseif ($this->_tpl_vars['col'] == 'OWNER_EMAIL_CONFIRMED'): ?>
                  <td><?php if ($this->_tpl_vars['row']['OWNER_EMAIL_CONFIRMED'] == '1'): ?><span style="color: green;">YES</span><?php else: ?><span style="color: red;">NO</span><?php endif; ?>
<?php else: ?>
                  <td><?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['row'][$this->_tpl_vars['col']])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)))) ? $this->_run_mod_handler('trim', true, $_tmp) : trim($_tmp)); ?>

               <?php endif; ?>
               </td>
            <?php endforeach; endif; unset($_from); ?>
            <td class="noborder"><a id="approve-link-<?php echo $this->_tpl_vars['id']; ?>
" href="<?php echo @DOC_ROOT; ?>
/dir_links_edit.php?action=A:<?php echo $this->_tpl_vars['id']; ?>
" title="Approve Link: <?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['row']['TITLE'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)))) ? $this->_run_mod_handler('trim', true, $_tmp) : trim($_tmp)); ?>
" class="action approve"><span>Approve</span></a></td>
            <td class="noborder"><a id="edit-link-<?php echo $this->_tpl_vars['id']; ?>
" href="<?php echo @DOC_ROOT; ?>
/dir_links_edit.php?action=E:<?php echo $this->_tpl_vars['id']; ?>
" title="Edit Link: <?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['row']['TITLE'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)))) ? $this->_run_mod_handler('trim', true, $_tmp) : trim($_tmp)); ?>
" class="action edit"><span>Edit</span></a></td>
            <td class="noborder last-child"><a id="remove-link-<?php echo $this->_tpl_vars['id']; ?>
" href="<?php echo @DOC_ROOT; ?>
/dir_links_edit.php?action=D:<?php echo $this->_tpl_vars['id']; ?>
" onclick="return link_rm_confirm('Are you sure you want to remove this link?\nNote: links can not be restored after removal!');" title="Remove Link: <?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['row']['TITLE'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)))) ? $this->_run_mod_handler('trim', true, $_tmp) : trim($_tmp)); ?>
" class="action delete"><span>Delete</span></a></td>
         </tr>
         <?php endforeach; else: ?>
            <tr>
               <td colspan="<?php echo $this->_tpl_vars['col_count']; ?>
" class="norec">No records found.</td>
            </tr>
         <?php endif; unset($_from); ?>
      </tbody>
      </table>

      <?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ((is_array($_tmp=@ADMIN_TEMPLATE)) ? $this->_run_mod_handler('cat', true, $_tmp, "/list_pager.tpl") : smarty_modifier_cat($_tmp, "/list_pager.tpl")), 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

      <?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ((is_array($_tmp=@ADMIN_TEMPLATE)) ? $this->_run_mod_handler('cat', true, $_tmp, "/link_action_btn.tpl") : smarty_modifier_cat($_tmp, "/link_action_btn.tpl")), 'smarty_include_vars' => array('linkTypeButtons' => '1','linkNotifButtons' => $this->_tpl_vars['expired'])));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
   </form>
   <!-- /Links List -->
</div>