<a id="selectAll" href="#ckb">All</a> <a id="selectNone" href="#ckb">None</a> <a id="selectToggle" href="#ckb">Toggle</a> <?php } else { echo 'No canned responses'; } ?> </td> </tr> </tfoot> </table> <?php if ($res && $num) { //Show options.. echo '<div> Page:' . $pageNav->getPageLinks() . ' </div>'; ?> <p class="centered" id="actions"> <input class="button" type="submit" name="enable" value="Enable" > <input class="button" type="submit" name="disable" value="Disable" > <input class="button" type="submit" name="delete" value="Delete" > </p> <?php } ?> </form> <div style="display:none;" class="dialog" id="confirm-action"> <h3>Please Confirm</h3> <a class="close" href="">×</a> <hr/> <p class="confirm-action" style="display:none;" id="enable-confirm">
<?php echo __('Select'); ?>: <a id="selectAll" href="#ckb"><?php echo __('All'); ?></a> <a id="selectNone" href="#ckb"><?php echo __('None'); ?></a> <a id="selectToggle" href="#ckb"><?php echo __('Toggle'); ?></a> <?php } else { echo __('No users found!'); } ?> </td> </tr> </tfoot> </table> <?php if ($res && $num) { //Show options.. echo '<div> '.__('Page').':'.$pageNav->getPageLinks().' </div>'; ?> <p class="centered" id="actions"> <input class="button" type="submit" name="remove-users" value="<?php echo __('Remove'); ?>" > </p> <?php } ?> </form> <?php } ?> <div style="display:none;" class="dialog" id="confirm-action"> <h3><?php echo __('Please Confirm'); ?></h3> <a class="close" href=""><i class="icon-remove-circle"></i></a>
echo Format::db_datetime($row['updated']); ?> </td> </tr> <?php } //end of while. } ?> </tbody> </table> <?php if ($res && $num) { //Show options.. echo sprintf('<div> ' . __('Page') . ': %s <a class="no-pjax" href="users.php?a=export&qh=%s">' . __('Export') . '</a></div>', $pageNav->getPageLinks(), $qhash); } ?> </form> <script type="text/javascript"> $(function() { $('input#basic-user-search').typeahead({ source: function (typeahead, query) { $.ajax({ url: "ajax.php/users/local?q="+query, dataType: 'json', success: function (data) { typeahead.process(data); } });
$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ágina:<?php echo $pageNav->getPageLinks(); ?> </li> <?php } ?> </ul> </div>
?> </td> <td><?php echo $status; ?></td> <td><?php echo Format::db_date($row['created']); ?></td> <td><?php echo Format::db_datetime($row['updated']); ?> </td> </tr> <?php } //end of while. endif; ?> </tbody> </table> <?php if($res && $num): //Show options.. echo sprintf('<div> '.__('Page').': %s <a class="no-pjax" href="users.php?a=export&qh=%s">'.__('Export').'</a></div>', $pageNav->getPageLinks(), $qhash); endif; ?> </form> <script type="text/javascript"> $(function() { $('input#basic-user-search').typeahead({ source: function (typeahead, query) { $.ajax({ url: "ajax.php/users/local?q="+query, dataType: 'json', success: function (data) { typeahead.process(data); }
echo Format::db_datetime($row['updated']); ?> </td> </tr> <?php } //end of while. } ?> </tbody> </table> <?php if ($res && $num) { //Show options.. echo sprintf('<div> Page: %s <a class="no-pjax" href="orgs.php?a=export&qh=%s">Export</a></div>', $pageNav->getPageLinks(), $qhash); } ?> </form> <script type="text/javascript"> $(function() { $('input#basic-org-search').typeahead({ source: function (typeahead, query) { $.ajax({ url: "ajax.php/orgs/search?q="+query, dataType: 'json', success: function (data) { typeahead.process(data); } });
<?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> <a href="' . $anterior . '"><span class="glyphicon glyphicon-chevron-left"></span></a> ' . __('Page') . '' . $pageNav->getPageLinks() . ' <a href="' . $siguiente . '"><span class="glyphicon glyphicon-chevron-right"></span></a> <a href="' . $ultimo . '"><span class="glyphicon glyphicon-forward"></span></a> </div>'; //Fin Billy 23/02/2016 paginador de la auditoria// while ($row = $result->fetch_array()) { } include STAFFINC_DIR . 'footer.inc.php'; ?> <script type="text/javascript"> </script>
echo Format::db_datetime($row['updated']); ?> </td> </tr> <?php } //end of while. } ?> </tbody> </table> <?php if ($res && $num) { //Show options.. echo sprintf('<div> %s: %s <a class="no-pjax" href="orgs.php?a=export&qh=%s">%s</a></div>', __('Page'), $pageNav->getPageLinks(), $qhash, __('Export')); } ?> </form> <script type="text/javascript"> $(function() { $('input#basic-org-search').typeahead({ source: function (typeahead, query) { $.ajax({ url: "ajax.php/orgs/search?q="+query, dataType: 'json', success: function (data) { typeahead.process(data); } });
<tr class="<?=$class?>"><td colspan=8><b>Query returned 0 results.</b></td></tr> <? endif; ?> </table> </td></tr> <? if($num>0){ //if we actually had any tickets returned. ?> <tr><td style="padding-left:20px"> <?if($canDelete || $canClose) { ?> Select: <a href="#" onclick="return select_all(document.forms['tickets'],true)">All</a> <a href="#" onclick="return reset_all(document.forms['tickets'])">None</a> <a href="#" onclick="return toogle_all(document.forms['tickets'],true)">Toggle</a> <?}?> page:<?=$pageNav->getPageLinks()?> </td></tr> <? if($canClose or $canDelete) { ?> <tr><td align="center"> <br> <? $status=$_REQUEST['status']?$_REQUEST['status']:$status; //If the user can close the ticket...mass reopen is allowed. //If they can delete tickets...they are allowed to close--reopen..etc. switch (strtolower($status)) { case 'closed': ?> <input class="button" type="submit" name="reopen" value="Reopen" onClick=' return confirm("Are you sure you want to reopen selected tickets?");'> <? break; case 'open':
} ?> <tr class="<?=$class?> " id="<?=$row['ticketID']?>"> <td align="center" title="<?=$row['email']?>" nowrap> <a class="Icon <?=strtolower($row['source'])?>Ticket" title="<?=$row['email']?>" href="view.php?id=<?=$row['ticketID']?>"> <?=$ticketID?></a></td> <td nowrap> <?=Format::db_date($row['created'])?></td> <td> <?=ucfirst($row['status'])?></td> <td> <a href="view.php?id=<?=$row['ticketID']?>"><?=$subject?></a> <?=$row['attachments']?"<span class='Icon file'> </span>":''?></td> <td nowrap> <?=Format::truncate($dept,30)?></td> <td> <?=Format::truncate($row['email'],40)?></td> </tr> <? $class = ($class =='row2') ?'row1':'row2'; } //end of while. else: //not tickets found!! ?> <tr class="<?=$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:<?=$pageNav->getPageLinks()?> </td></tr> <?}?> </table> </div> <?
$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> ' . __('Page') . ': <a href="' . $primero . '">Primero</a> <a href="' . $anterior . '">Anterior</a> ' . $pageNav->getPageLinks() . ' <a href="' . $siguiente . '">Siguiente</a> <a href="' . $ultimo . '">Ultimo</a> </div>'; } ?> <div class="dialog" style="display:none;" id="advanced-search"> <h3><?php echo __('Advanced Ticket Search'); ?> </h3> <a class="close" href=""><i class="icon-remove-circle"></i></a> <hr/> <form action="tickets.php" method="post" id="search" name="search"> <input type="hidden" name="a" value="search">