<?php /* Smarty version Smarty-3.1.19, created on 2017-03-06 17:34:06
         compiled from "template__system/admin_admin:../pagination/pagination_top.tpl" */ ?>
<?php /*%%SmartyHeaderCode:69453828058bd9d8eb3b928-93746255%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '71821a9a17df7991b9ea220ab5eec49df7be97d5' => 
    array (
      0 => 'template__system/admin_admin:../pagination/pagination_top.tpl',
      1 => 1483999076,
      2 => 'template__system/admin_admin',
    ),
  ),
  'nocache_hash' => '69453828058bd9d8eb3b928-93746255',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'paginationInfo' => 0,
    'id' => 0,
    'param' => 0,
    'action' => 0,
    'value' => 0,
    'GLOBALS' => 0,
    'layout' => 0,
    'numberOfElement' => 0,
    'page' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.19',
  'unifunc' => 'content_58bd9d8eba7a17_23812428',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_58bd9d8eba7a17_23812428')) {function content_58bd9d8eba7a17_23812428($_smarty_tpl) {?><?php if (!is_callable('smarty_modifier_escape')) include '/home/itjobboard/public_html/constructionjobboard.co.uk/system/ext/Smarty/libs/plugins/modifier.escape.php';
?><?php $_smarty_tpl->_capture_stack[0][] = array("urlParams", null, null); ob_start(); ?><?php if (is_array($_smarty_tpl->tpl_vars['paginationInfo']->value['uniqueUrlParams'])) {?><?php  $_smarty_tpl->tpl_vars['param'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['param']->_loop = false;
 $_smarty_tpl->tpl_vars['id'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['paginationInfo']->value['uniqueUrlParams']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['param']->key => $_smarty_tpl->tpl_vars['param']->value) {
$_smarty_tpl->tpl_vars['param']->_loop = true;
 $_smarty_tpl->tpl_vars['id']->value = $_smarty_tpl->tpl_vars['param']->key;
?>&amp;<?php echo $_smarty_tpl->tpl_vars['id']->value;?>
=<?php if ($_smarty_tpl->tpl_vars['param']->value['escape']) {?><?php echo smarty_modifier_escape($_smarty_tpl->tpl_vars['param']->value['value'], ((string)$_smarty_tpl->tpl_vars['param']->value['escape']));?>
<?php } else { ?><?php echo $_smarty_tpl->tpl_vars['param']->value['value'];?>
<?php }?><?php } ?><?php } else { ?>&amp;<?php echo $_smarty_tpl->tpl_vars['paginationInfo']->value['uniqueUrlParams'];?>
<?php }?>
<?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
if (!empty($_capture_buffer)) {
 if (isset($_capture_assign)) $_smarty_tpl->assign($_capture_assign, ob_get_contents());
 if (isset( $_capture_append)) $_smarty_tpl->append( $_capture_append, ob_get_contents());
 Smarty::$_smarty_vars['capture'][$_capture_buffer]=ob_get_clean();
} else $_smarty_tpl->capture_error();?>
<div class="items-count"><strong><?php echo $_smarty_tpl->tpl_vars['paginationInfo']->value['itemsCount'];?>
</strong> <?php $_smarty_tpl->smarty->_tag_stack[] = array('tr', array()); $_block_repeat=true; echo $_smarty_tpl->smarty->registered_plugins['block']['tr'][0][0]->translate(array(), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>
<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['paginationInfo']->value['item'], ENT_QUOTES, 'UTF-8', true);?>
 found<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo $_smarty_tpl->smarty->registered_plugins['block']['tr'][0][0]->translate(array(), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack);?>
</div>
<?php if ($_smarty_tpl->tpl_vars['paginationInfo']->value['actionsForSelect']) {?>
    <?php if (count($_smarty_tpl->tpl_vars['paginationInfo']->value['actionsForSelect'])==1) {?>
        <div class="action-with-selected">
            <?php  $_smarty_tpl->tpl_vars['action'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['action']->_loop = false;
 $_smarty_tpl->tpl_vars['value'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['paginationInfo']->value['actionsForSelect']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['action']->key => $_smarty_tpl->tpl_vars['action']->value) {
$_smarty_tpl->tpl_vars['action']->_loop = true;
 $_smarty_tpl->tpl_vars['value']->value = $_smarty_tpl->tpl_vars['action']->key;
?>
                <input type="button" value="<?php $_smarty_tpl->smarty->_tag_stack[] = array('tr', array()); $_block_repeat=true; echo $_smarty_tpl->smarty->registered_plugins['block']['tr'][0][0]->translate(array(), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>
<?php echo $_smarty_tpl->tpl_vars['action']->value;?>
<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo $_smarty_tpl->smarty->registered_plugins['block']['tr'][0][0]->translate(array(), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack);?>
" class="<?php if ($_smarty_tpl->tpl_vars['value']->value=='delete') {?>btn btn--danger<?php } else { ?>btn btn--secondary<?php }?>" onclick="<?php if ($_smarty_tpl->tpl_vars['paginationInfo']->value['popUp']==true) {?>isPopUp('<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['paginationInfo']->value['translatedText']['chooseItem'], ENT_QUOTES, 'UTF-8', true);?>
', '<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['paginationInfo']->value['translatedText']['delete'], ENT_QUOTES, 'UTF-8', true);?>
');<?php } else { ?>goSingleButton('<?php echo $_smarty_tpl->tpl_vars['value']->value;?>
', '<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['paginationInfo']->value['translatedText']['chooseItem'], ENT_QUOTES, 'UTF-8', true);?>
', '<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['paginationInfo']->value['translatedText']['delete'], ENT_QUOTES, 'UTF-8', true);?>
');<?php }?>" />
            <?php } ?>
        </div>
    <?php } else { ?>
        <div class="bulk">
            <?php if ($_smarty_tpl->tpl_vars['GLOBALS']->value['user_page_uri']=="/manage-invoices/") {?>
                <button class="btn btn-default bulk-action" name="selectedAction_<?php echo $_smarty_tpl->tpl_vars['layout']->value;?>
" data-action="paid">
                    <?php $_smarty_tpl->smarty->_tag_stack[] = array('tr', array()); $_block_repeat=true; echo $_smarty_tpl->smarty->registered_plugins['block']['tr'][0][0]->translate(array(), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>
Mark paid<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo $_smarty_tpl->smarty->registered_plugins['block']['tr'][0][0]->translate(array(), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack);?>

                </button>
                <button class="btn btn-default bulk-action" name="selectedAction_<?php echo $_smarty_tpl->tpl_vars['layout']->value;?>
" data-action="unpaid">
                    <?php $_smarty_tpl->smarty->_tag_stack[] = array('tr', array()); $_block_repeat=true; echo $_smarty_tpl->smarty->registered_plugins['block']['tr'][0][0]->translate(array(), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>
Mark unpaid<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo $_smarty_tpl->smarty->registered_plugins['block']['tr'][0][0]->translate(array(), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack);?>

                </button>
            <?php } else { ?>
                <button class="btn btn-default bulk-action" name="selectedAction_<?php echo $_smarty_tpl->tpl_vars['layout']->value;?>
" data-action="activate">
                    <i class="fa fa-eye" aria-hidden="true"></i> <?php $_smarty_tpl->smarty->_tag_stack[] = array('tr', array()); $_block_repeat=true; echo $_smarty_tpl->smarty->registered_plugins['block']['tr'][0][0]->translate(array(), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>
Activate<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo $_smarty_tpl->smarty->registered_plugins['block']['tr'][0][0]->translate(array(), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack);?>

                </button>
                <button class="btn btn-default bulk-action" name="selectedAction_<?php echo $_smarty_tpl->tpl_vars['layout']->value;?>
" data-action="deactivate">
                    <i class="fa fa-eye-slash" aria-hidden="true"></i> <?php $_smarty_tpl->smarty->_tag_stack[] = array('tr', array()); $_block_repeat=true; echo $_smarty_tpl->smarty->registered_plugins['block']['tr'][0][0]->translate(array(), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>
Deactivate<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo $_smarty_tpl->smarty->registered_plugins['block']['tr'][0][0]->translate(array(), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack);?>

                </button>
            <?php }?>
            <button class="btn btn-default bulk-action" name="selectedAction_<?php echo $_smarty_tpl->tpl_vars['layout']->value;?>
" data-action="delete">
                <i class="fa fa-trash-o" aria-hidden="true"></i> <?php $_smarty_tpl->smarty->_tag_stack[] = array('tr', array()); $_block_repeat=true; echo $_smarty_tpl->smarty->registered_plugins['block']['tr'][0][0]->translate(array(), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>
Delete<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo $_smarty_tpl->smarty->registered_plugins['block']['tr'][0][0]->translate(array(), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack);?>

            </button>
        </div>
    <?php }?>
<?php }?>

<div class="pagination__right">
    <div class="number-per-page">
        <select id="itemsPerPage" name="itemsPerPage" onchange="window.location = '?<?php if ($_smarty_tpl->tpl_vars['paginationInfo']->value['restore']==1) {?>restore=1<?php }?><?php if ($_smarty_tpl->tpl_vars['paginationInfo']->value['sortingField']!=null) {?>&amp;sortingField=<?php echo $_smarty_tpl->tpl_vars['paginationInfo']->value['sortingField'];?>
<?php }?><?php if ($_smarty_tpl->tpl_vars['paginationInfo']->value['sortingOrder']!=null) {?>&amp;sortingOrder=<?php echo $_smarty_tpl->tpl_vars['paginationInfo']->value['sortingOrder'];?>
<?php }?>&amp;page=1<?php if ($_smarty_tpl->tpl_vars['paginationInfo']->value['uniqueUrlParams']) {?><?php echo Smarty::$_smarty_vars['capture']['urlParams'];?>
<?php }?>&amp;itemsPerPage=' + this.value;" class="per-page">
            <?php  $_smarty_tpl->tpl_vars['numberOfElement'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['numberOfElement']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['paginationInfo']->value['numberOfElementsPageSelect']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['numberOfElement']->key => $_smarty_tpl->tpl_vars['numberOfElement']->value) {
$_smarty_tpl->tpl_vars['numberOfElement']->_loop = true;
?>
                <option value="<?php echo $_smarty_tpl->tpl_vars['numberOfElement']->value;?>
" <?php if ($_smarty_tpl->tpl_vars['paginationInfo']->value['itemsPerPage']==$_smarty_tpl->tpl_vars['numberOfElement']->value) {?>selected<?php }?>><?php echo $_smarty_tpl->tpl_vars['numberOfElement']->value;?>
</option>
            <?php } ?>
        </select>
        <?php $_smarty_tpl->smarty->_tag_stack[] = array('tr', array()); $_block_repeat=true; echo $_smarty_tpl->smarty->registered_plugins['block']['tr'][0][0]->translate(array(), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>
per page<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo $_smarty_tpl->smarty->registered_plugins['block']['tr'][0][0]->translate(array(), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack);?>

    </div>
    <?php if (count($_smarty_tpl->tpl_vars['paginationInfo']->value['pages'])!=1) {?>
        <ul class="pagination row">
            <?php if ($_smarty_tpl->tpl_vars['paginationInfo']->value['currentPage']==1) {?>
                <li class="none">
                    <a href="#">&nbsp;<i class="fa fa-angle-left"></i></a>
                </li>
            <?php } else { ?>
                <li>
                    <a class="arrow-left"  href="?<?php if ($_smarty_tpl->tpl_vars['paginationInfo']->value['restore']==1) {?>restore=1<?php }?>&amp;page=<?php echo $_smarty_tpl->tpl_vars['paginationInfo']->value['currentPage']-1;?>
&amp;itemsPerPage=<?php echo $_smarty_tpl->tpl_vars['paginationInfo']->value['itemsPerPage'];?>
<?php if ($_smarty_tpl->tpl_vars['paginationInfo']->value['uniqueUrlParams']) {?><?php echo Smarty::$_smarty_vars['capture']['urlParams'];?>
<?php }?>">
                        &nbsp;<i class="fa fa-angle-left"></i>
                    </a>
                </li>
            <?php }?>
            <?php  $_smarty_tpl->tpl_vars['page'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['page']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['paginationInfo']->value['pages']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['page']->key => $_smarty_tpl->tpl_vars['page']->value) {
$_smarty_tpl->tpl_vars['page']->_loop = true;
?>
                <?php if ($_smarty_tpl->tpl_vars['page']->value==$_smarty_tpl->tpl_vars['paginationInfo']->value['currentPage']) {?>
                    <li class="active">
                        <a href="#"><?php echo $_smarty_tpl->tpl_vars['page']->value;?>
</a>
                    </li>
                <?php } else { ?>
                    <?php if ($_smarty_tpl->tpl_vars['page']->value==$_smarty_tpl->tpl_vars['paginationInfo']->value['totalPages']&&$_smarty_tpl->tpl_vars['paginationInfo']->value['currentPage']<$_smarty_tpl->tpl_vars['paginationInfo']->value['totalPages']-3) {?> <li><span>...</span></li> <?php }?>
                    <li><a href="?page=<?php echo $_smarty_tpl->tpl_vars['page']->value;?>
<?php if ($_smarty_tpl->tpl_vars['paginationInfo']->value['restore']==1) {?>&amp;restore=1<?php }?><?php if ($_smarty_tpl->tpl_vars['paginationInfo']->value['sortingField']!=null) {?>&amp;sortingField=<?php echo $_smarty_tpl->tpl_vars['paginationInfo']->value['sortingField'];?>
<?php }?><?php if ($_smarty_tpl->tpl_vars['paginationInfo']->value['sortingOrder']!=null) {?>&amp;sortingOrder=<?php echo $_smarty_tpl->tpl_vars['paginationInfo']->value['sortingOrder'];?>
<?php }?>&amp;itemsPerPage=<?php echo $_smarty_tpl->tpl_vars['paginationInfo']->value['itemsPerPage'];?>
<?php if ($_smarty_tpl->tpl_vars['paginationInfo']->value['uniqueUrlParams']) {?><?php echo Smarty::$_smarty_vars['capture']['urlParams'];?>
<?php }?>"><?php echo $_smarty_tpl->tpl_vars['page']->value;?>
</a></li>
                    <?php if ($_smarty_tpl->tpl_vars['page']->value==1&&$_smarty_tpl->tpl_vars['paginationInfo']->value['currentPage']>4) {?> <li><span>...</span></li> <?php }?>
                <?php }?>
            <?php } ?>


            <?php if ($_smarty_tpl->tpl_vars['paginationInfo']->value['currentPage']==$_smarty_tpl->tpl_vars['paginationInfo']->value['totalPages']) {?>
                <li>
                    <a href="#">&nbsp;<i class="fa fa-angle-right"></i></a>
                </li>
            <?php } else { ?>
                <li>
                    <a class="arrow-right" href="?<?php if ($_smarty_tpl->tpl_vars['paginationInfo']->value['restore']==1) {?>restore=1<?php }?>&amp;page=<?php echo $_smarty_tpl->tpl_vars['paginationInfo']->value['currentPage']+1;?>
&amp;itemsPerPage=<?php echo $_smarty_tpl->tpl_vars['paginationInfo']->value['itemsPerPage'];?>
<?php if ($_smarty_tpl->tpl_vars['paginationInfo']->value['uniqueUrlParams']) {?><?php echo Smarty::$_smarty_vars['capture']['urlParams'];?>
<?php }?>">
                        &nbsp;<i class="fa fa-angle-right"></i>
                    </a>
                </li>
            <?php }?>
        </ul>
    <?php }?>
</div>

<div class="modal fade" id="action-modal" role="dialog">
    <div class="modal-dialog modal-sm">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <br/>
            </div>
            <div class="modal-body text-center">
            </div>
        </div>
    </div>
</div><?php }} ?>
