<div class="btn-bar">

    <!-- Browse buttons (hidden in add mode) -->
    <button id="hprevious" type="button" class="abtn abtn-prev"
        style="display:<?php echo $pdisabled; ?>;"
        data-tip="Previous"
        onclick="window.location.href='<?php echo $file . '?mode=edit&' . $keyfld . '=' . $prevvouch; ?>'"
        <?php echo $pdisabled1; ?>>
        <i class="fa fa-chevron-left"></i>
    </button>

    <button id="hnext" type="button" class="abtn abtn-next"
        style="display:<?php echo $ndisabled; ?>;"
        data-tip="Next"
        onclick="window.location.href='<?php echo $file . '?mode=edit&' . $keyfld . '=' . $nextvouch; ?>'"
        <?php echo $ndisabled1; ?>>
        <i class="fa fa-chevron-right"></i>
    </button>

    <button id="hsearch" type="button" class="abtn abtn-search"
        style="display:<?php echo $searchdisabled; ?>;"
        data-tip="Search"
        onclick="document.getElementById('searchModal').style.display='flex'">
        <i class="fa fa-search"></i>
    </button>

    <button id="hprint" type="button" class="abtn abtn-print"
        style="display:<?php echo $printdisabled; ?>;"
        data-tip="Print"
        onclick="window.open('<?php echo $printfile . '?' . $keyfld . '=' . $qvouch; ?>','_blank')">
        <i class="fa fa-print"></i>
    </button>

    <button id="hadd" type="button" class="abtn abtn-add"
        style="display:<?php echo $adddisabled; ?>;"
        data-tip="Add New"
        onclick="window.location.href='<?php echo $file . '?mode=true'; ?>'">
        <i class="fa fa-plus"></i>
    </button>

    <button id="hedit" type="button" class="abtn abtn-edit"
        style="display:<?php echo $editdisabled; ?>;"
        data-tip="Edit">
        <i class="fa fa-pencil"></i>
    </button>

    <a id="hdelete" class="abtn abtn-del"
        style="display:<?php echo $deletedisabled; ?>;"
        data-tip="Delete"
        href="javascript:void(0)"
        onclick="confirmDelete('?delete&<?php echo $keyfld . '=' . $qvouch; ?>')">
        <i class="fa fa-trash"></i>
    </a>

    <button id="hexit" type="button" class="abtn abtn-exit"
        style="display:<?php echo $exitdisabled; ?>;"
        data-tip="Exit"
        onclick="window.location.href='default.php'">
        <i class="fa fa-power-off"></i>
    </button>

    <!-- Save / Cancel (hidden in browse mode) -->
    <button id="ssubmit" type="submit" name="submit"
        value="<?php echo ($addflag == 1) ? 'Save' : 'Update'; ?>"
        class="abtn abtn-save"
        data-tip="<?php echo ($addflag == 1) ? 'Save' : 'Update'; ?>"
        style="display:<?php echo $savedisabled; ?>;">
        <i class="fa fa-check"></i>
        <?php echo ($addflag == 1) ? 'Save' : 'Update'; ?>
    </button>

    <button id="scancel" type="button"
        class="abtn abtn-cancel"
        data-tip="Cancel"
        style="display:<?php echo $canceldisabled; ?>;"
        onclick="window.location.href='<?php echo $file . '?mode=last'; ?>'">
        <i class="fa fa-times"></i> Cancel
    </button>

</div>
