ok
Direktori : /home2/selectio/www/lilyexpresslive/software/admin/ |
Current File : /home2/selectio/www/lilyexpresslive/software/admin/shipment_tracking.php |
<?php require_once('header.php'); ?> <script> function validatepaste(e) { //var ctrldown = e.ctrlKey ? e.ctrlKey : ((e.keyCode === 17) ? true : false); var pastedata = e.clipboardData.getData('text/plain'); if (isNaN(pastedata)) { e.preventDefault(); console.log("PASTE FAIL!"); console.log(pastedata); return false; } else { console.log("PASTE!"); console.log(pastedata); } get_excel(); } function validate(e) { //getting key code of pressed key var keycode = (e.which) ? e.which : e.keyCode; var phn = document.getElementById('textarea'); //comparing pressed keycodes get_excel(); } function get_excel() { var type = $('input[name="type"]:checked').val(); var track_id = $('textarea#textarea').val(); $('#types').val(type); $('textarea#t_ids').val(track_id); } </script> <section class="content-header"> <div class="content-header-left"> <h2>View Shipment Tracking</h2> </div> </section> <br> <div class="row"> <div class="col-md-12"> <div class="col-md-3"></div> <div class="col-md-6"> <div class="row"> <form action="single-tracking.php" method="POST"> <div class="col-md-12"> <div class="col-md-4"> <input type="radio" id="type" name="type" value="awb" checked> AWB NO: </div> <div class="col-md-2"></div> <div class="col-md-4"> <input type="radio" id="type" name="type" value="ref" checked> REF NO: </div> </div> <div class="col-md-12"> <div><textarea id="textarea" name="track_id" rows="4" cols="50" onKeyPress="validate(event)" onPaste="validatepaste(event)"></textarea></div> </div> <div class="col-md-12"> <div class="col-md-6"><input type="submit" class="btn btn-primary" value="Search" ></div> </form> <div class="col-md-6"> <form action="excel/excel-bulk-track.php" method="POST"> <input type="hidden" id="types" name="types"> <textarea id="t_ids" name="t_ids" rows="4" cols="50" style="display:none;"></textarea> <button type="submit" onclick="get_excel()" class="btn btn-md btn-success" >Export As Excel</button> </form> </div> </div><br> <div class="col-md-12"> <h6><span style="color:red;font-weight:bold;">Note:</span> Press <kbd>Enter</kbd> Button For Multiple Pickup Entry Track. Don't Add Any Spaces or Comma's</h6> </div> </div> </div> <div class="col-md-3"></div> </div> </div> <br> <?php require_once('footer.php'); ?>