<a id="selectAll" href="#ckb">All</a>&nbsp;&nbsp;
            <a id="selectNone" href="#ckb">None</a>&nbsp;&nbsp;
            <a id="selectToggle" href="#ckb">Toggle</a>&nbsp;&nbsp;
            <?php 
} else {
    echo 'No canned responses';
}
?>
        </td>
     </tr>
    </tfoot>
</table>
<?php 
if ($res && $num) {
    //Show options..
    echo '<div>&nbsp;Page:' . $pageNav->getPageLinks() . '&nbsp;</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="">&times;</a>
    <hr/>
    <p class="confirm-action" style="display:none;" id="enable-confirm">
            <?php echo __('Select'); ?>:&nbsp;
            <a id="selectAll" href="#ckb"><?php echo __('All'); ?></a>&nbsp;&nbsp;
            <a id="selectNone" href="#ckb"><?php echo __('None'); ?></a>&nbsp;&nbsp;
            <a id="selectToggle" href="#ckb"><?php echo __('Toggle'); ?></a>&nbsp;&nbsp;
            <?php
            } else {
                echo __('No users found!');
            }
            ?>
        </td>
     </tr>
    </tfoot>
</table>
<?php
if ($res && $num) { //Show options..
    echo '<div>&nbsp;'.__('Page').':'.$pageNav->getPageLinks().'&nbsp;</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>
Esempio n. 3
0
        echo Format::db_datetime($row['updated']);
        ?>
&nbsp;</td>
               </tr>
            <?php 
    }
    //end of while.
}
?>
    </tbody>
</table>
<?php 
if ($res && $num) {
    //Show options..
    echo sprintf('<div>&nbsp;' . __('Page') . ': %s &nbsp; <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&aacute;gina:<?php 
    echo $pageNav->getPageLinks();
    ?>
&nbsp;</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']); ?>&nbsp;</td>
               </tr>
            <?php
            } //end of while.
        endif; ?>
    </tbody>
</table>
<?php
if($res && $num): //Show options..
    echo sprintf('<div>&nbsp;'.__('Page').': %s &nbsp; <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);
                }
Esempio n. 6
0
        echo Format::db_datetime($row['updated']);
        ?>
&nbsp;</td>
               </tr>
            <?php 
    }
    //end of while.
}
?>
    </tbody>
</table>
<?php 
if ($res && $num) {
    //Show options..
    echo sprintf('<div>&nbsp;Page: %s &nbsp; <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);
                }
            });
Esempio n. 7
0
<?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//
while ($row = $result->fetch_array()) {
}
include STAFFINC_DIR . 'footer.inc.php';
?>

<script type="text/javascript">
	
</script>
Esempio n. 8
0
        echo Format::db_datetime($row['updated']);
        ?>
&nbsp;</td>
               </tr>
            <?php 
    }
    //end of while.
}
?>
    </tbody>
</table>
<?php 
if ($res && $num) {
    //Show options..
    echo sprintf('<div>&nbsp;%s: %s &nbsp; <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);
                }
            });
Esempio n. 9
0
            <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>&nbsp;
                <a href="#" onclick="return reset_all(document.forms['tickets'])">None</a>&nbsp;
                <a href="#" onclick="return toogle_all(document.forms['tickets'],true)">Toggle</a>&nbsp;
            <?}?>
            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':
Esempio n. 10
0
                }
                ?>
            <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>&nbsp;<?=Format::db_date($row['created'])?></td>
                <td>&nbsp;<?=ucfirst($row['status'])?></td>
                <td>&nbsp;<a href="view.php?id=<?=$row['ticketID']?>"><?=$subject?></a>
                    &nbsp;<?=$row['attachments']?"<span class='Icon file'>&nbsp;</span>":''?></td>
                <td nowrap>&nbsp;<?=Format::truncate($dept,30)?></td>
                <td>&nbsp;<?=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()?>&nbsp;</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>
                &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;
            </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">