$class = $class == 'row2' ? 'row1' : 'row2';
    }
    //end of while.
} else {
    //not tickets found!!
    ?>
 
            <tr class="<?php 
    echo $class;
    ?>
"><td colspan=7><strong>No se ha encontrado ningun Ticket.</strong></td></tr>
        <?php 
}
?>
     </table>
     <div class="pagination">
    <ul>
    <?php 
if ($num > 0 && $pageNav->getNumPages() > 1) {
    //if we actually had any tickets returned
    ?>
     <li>P&aacute;gina:<?php 
    echo $pageNav->getPageLinks();
    ?>
&nbsp;</li>
    <?php 
}
?>
    </ul>
    </div>
Esempio n. 2
0
?>
</td>
                <td>&nbsp;<?php 
echo Format::truncate($row['email'], 40);
?>
</td>
            </tr>
            <?
            $class = ($class =='row2') ?'row1':'row2';
            } //end of while.
        else: //not tickets found!! ?> 
            <tr class="<?php 
echo $class;
?>
"><td colspan=7><b>NO tickets found.</b></td></tr>
        <?
        endif; ?>
     </table>
    </td></tr>
    <tr><td>
    <?
    if($num>0 && $pageNav->getNumPages()>1){ //if we actually had any tickets returned?>
     <tr><td style="text-align:left;padding-left:20px">page:<?php 
echo $pageNav->getPageLinks();
?>
&nbsp;</td></tr>
    <?}?>
 </table>
</div>
<?
Esempio n. 3
0
echo $rowcount;
?>
 resultados
        </td>
     </tr>
    </tfoot>
</table>
<br>
<?php 
//Inicio Billy 22/02/2016 Paginador de la auditoria//
if ($pageNav->getPage() - 1 <= 0) {
    $pagea = 1;
} else {
    $pagea = $pageNav->getPage() - 1;
}
if ($pageNav->getPage() + 1 >= $pageNav->getNumPages()) {
    $pages = $pageNav->getNumPages();
} else {
    $pages = $pageNav->getPage() + 1;
}
$primero = "auditoria.php?p=1";
$anterior = "auditoria.php?p={$pagea}";
$siguiente = "auditoria.php?p={$pages}";
$ultimo = "auditoria.php?p=" . $pageNav->getNumPages();
echo '  <div style="text-align:center;">
                <a href="' . $primero . '"><span class="glyphicon glyphicon-backward"></span></a>&nbsp;
                <a href="' . $anterior . '"><span class="glyphicon glyphicon-chevron-left"></span></a>&nbsp;
                ' . __('Page') . '' . $pageNav->getPageLinks() . '&nbsp;
                <a href="' . $siguiente . '"><span class="glyphicon glyphicon-chevron-right"></span></a>&nbsp;
                <a href="' . $ultimo . '"><span class="glyphicon glyphicon-forward"></span></a>&nbsp;</div>';
//Fin Billy 23/02/2016 paginador de la auditoria//
Esempio n. 4
0
} else {
    echo '<tr><td colspan="9">' . __('Your query did not match any records') . '</td></tr>';
}
?>
    </tbody>
</table>

<br>
<?php 
if ($res && $num > 0) {
    if ($pageNav->getPage() - 1 <= 0) {
        $pagea = 1;
    } else {
        $pagea = $pageNav->getPage() - 1;
    }
    if ($pageNav->getPage() + 1 >= $pageNav->getNumPages()) {
        $pages = $pageNav->getNumPages();
    } else {
        $pages = $pageNav->getPage() + 1;
    }
    $primero = "tickets.php?est=" . $_GET["est"] . "&sort=" . $_GET["sort"] . "&order=" . $_GET["order"] . "&p=1&des=" . $_GET["des"] . "&has=" . $_GET["has"] . "&loc=" . $_GET["loc"] . "&top=" . $_GET["top"] . "&dep=" . $_GET["dep"] . "&sta=" . $_GET["sta"] . "&a=" . $_GET["a"] . "&t=" . $_GET["t"] . "&query=" . $_GET["query"];
    //Billy 12/02/2016 Se agrego al paginero el estatus
    $anterior = "tickets.php?est=" . $_GET["est"] . "&sort=" . $_GET["sort"] . "&order=" . $_GET["order"] . "&p={$pagea}&des=" . $_GET["des"] . "&has=" . $_GET["has"] . "&loc=" . $_GET["loc"] . "&top=" . $_GET["top"] . "&dep=" . $_GET["dep"] . "&sta=" . $_GET["sta"] . "&a=" . $_GET["a"] . "&t=" . $_GET["t"] . "&query=" . $_GET["query"];
    //Billy 12/02/2016 Se agrego al paginero el estatus
    $siguiente = "tickets.php?est=" . $_GET["est"] . "&sort=" . $_GET["sort"] . "&order=" . $_GET["order"] . "&p={$pages}&des=" . $_GET["des"] . "&has=" . $_GET["has"] . "&loc=" . $_GET["loc"] . "&top=" . $_GET["top"] . "&dep=" . $_GET["dep"] . "&sta=" . $_GET["sta"] . "&a=" . $_GET["a"] . "&t=" . $_GET["t"] . "&query=" . $_GET["query"];
    //Billy 12/02/2016 Se agrego al paginero el estatus
    $ultimo = "tickets.php?est=" . $_GET["est"] . "&sort=" . $_GET["sort"] . "&order=" . $_GET["order"] . "&p=" . $pageNav->getNumPages() . "&des=" . $_GET["des"] . "&has=" . $_GET["has"] . "&loc=" . $_GET["loc"] . "&top=" . $_GET["top"] . "&dep=" . $_GET["dep"] . "&sta=" . $_GET["sta"] . "&a=" . $_GET["a"] . "&t=" . $_GET["t"] . "&query=" . $_GET["query"];
    //Billy 12/02/2016 Se agrego al paginero el estatus
    //Inicio Billy 25/01/2016 Paginador del cliente//
    echo '  <div style="text-align:center;">
                <a href="' . $primero . '"><span class="glyphicon glyphicon-backward"></span></a>&nbsp;
Esempio n. 5
0
     </tr>
    </tfoot>
    </table>

    <!--////////////////////Inicio Billy 25/01/2016 Paginador Administrador/////////////////////////////////////////////-->

    <br>
    <?php 
if ($num > 0) {
    //if we actually had any tickets returned.
    if ($pageNav->getPage() - 1 <= 0) {
        $pagea = 1;
    } else {
        $pagea = $pageNav->getPage() - 1;
    }
    if ($pageNav->getPage() + 1 >= $pageNav->getNumPages()) {
        $pages = $pageNav->getNumPages();
    } else {
        $pages = $pageNav->getPage() + 1;
    }
    if (isset($_GET["advsid"])) {
        $advsid = "&advsid=" . $_GET["advsid"];
    }
    $primero = "tickets.php?status=" . $_GET["status"] . "&sort=" . $_GET["sort"] . "&order=" . $_GET["order"] . "&p=1&des=" . $_GET["des"] . "&has=" . $_GET["has"] . "&loc=" . $_GET["loc"] . "{$advsid}" . "&a=" . $_GET["a"] . "&t=" . $_GET["t"] . "&query=" . $_GET["query"] . "&vista=" . $_GET["vista"];
    //Billy 08/03/2016 Se agrego al paginero el estatus y el query del resultado de la busqueda avanzada
    $anterior = "tickets.php?status=" . $_GET["status"] . "&sort=" . $_GET["sort"] . "&order=" . $_GET["order"] . "&p={$pagea}&des=" . $_GET["des"] . "&has=" . $_GET["has"] . "&loc=" . $_GET["loc"] . "{$advsid}" . "&a=" . $_GET["a"] . "&t=" . $_GET["t"] . "&query=" . $_GET["query"] . "&vista=" . $_GET["vista"];
    //Billy 08/03/2016 Se agrego al paginero el estatus y el query del resultado de la busqueda avanzada
    $siguiente = "tickets.php?status=" . $_GET["status"] . "&sort=" . $_GET["sort"] . "&order=" . $_GET["order"] . "&p={$pages}&des=" . $_GET["des"] . "&has=" . $_GET["has"] . "&loc=" . $_GET["loc"] . "{$advsid}" . "&a=" . $_GET["a"] . "&t=" . $_GET["t"] . "&query=" . $_GET["query"] . "&vista=" . $_GET["vista"];
    //Billy 08/03/2016 Se agrego al paginero el estatus y el query del resultado de la busqueda avanzada
    $ultimo = "tickets.php?status=" . $_GET["status"] . "&sort=" . $_GET["sort"] . "&order=" . $_GET["order"] . "&p=" . $pageNav->getNumPages() . "&des=" . $_GET["des"] . "&has=" . $_GET["has"] . "&loc=" . $_GET["loc"] . "{$advsid}" . "&a=" . $_GET["a"] . "&t=" . $_GET["t"] . "&query=" . $_GET["query"] . "&vista=" . $_GET["vista"];
    //Billy 08/03/2016 Se agrego al paginero el estatus y el query del resultado de la busqueda avanzada
        <?php 
    }
} else {
    echo '<tr><td colspan="6">' . __('Your query did not match any records') . '</td></tr>';
}
?>
    </tbody>
</table>
<?php 
if ($res && $num > 0) {
    if ($pageNav->getPage() - 1 <= 0) {
        $pagea = 1;
    } else {
        $pagea = $pageNav->getPage() - 1;
    }
    if ($pageNav->getPage() + 1 >= $pageNav->getNumPages()) {
        $pages = $pageNav->getNumPages();
    } else {
        $pages = $pageNav->getPage() + 1;
    }
    $primero = "tickets.php?sort=" . $_GET["sort"] . "&order=" . $_GET["order"] . "&p=1&des=" . $_GET["des"] . "&has=" . $_GET["has"] . "&loc=" . $_GET["loc"];
    $anterior = "tickets.php?sort=" . $_GET["sort"] . "&order=" . $_GET["order"] . "&p={$pagea}&des=" . $_GET["des"] . "&has=" . $_GET["has"] . "&loc=" . $_GET["loc"];
    $siguiente = "tickets.php?sort=" . $_GET["sort"] . "&order=" . $_GET["order"] . "&p={$pages}&des=" . $_GET["des"] . "&has=" . $_GET["has"] . "&loc=" . $_GET["loc"];
    $ultimo = "tickets.php?sort=" . $_GET["sort"] . "&order=" . $_GET["order"] . "&p=" . $pageNav->getNumPages() . "&des=" . $_GET["des"] . "&has=" . $_GET["has"] . "&loc=" . $_GET["loc"];
    echo '  <div>
                &nbsp;' . __('Page') . ': 
                <a href="' . $primero . '">Primero</a>&nbsp;
                <a href="' . $anterior . '">Anterior</a>&nbsp;
                ' . $pageNav->getPageLinks() . '&nbsp;
                <a href="' . $siguiente . '">Siguiente</a>&nbsp;
                <a href="' . $ultimo . '">Ultimo</a>&nbsp;