0xV3NOMx
Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64



Your IP : 18.223.210.196


Current Path : /proc/thread-self/root/var/www/html/univadmin_bkp/univadmin/
Upload File :
Current File : //proc/thread-self/root/var/www/html/univadmin_bkp/univadmin/barcode_test.php

<html>
<head>

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>

<link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
<link rel="stylesheet" href="/resources/demos/style.css">
<script src="https://code.jquery.com/jquery-1.12.4.js"></script>
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>

<script type="text/javascript">
    $(function () {
        $('#datepicker').datepicker({ dateFormat: 'dd/mm/yy' });
    });
</script>

<!--<script>
    $( function() 
    {
      $( "#datepicker" ).datepicker();

    } );
</script>!-->

<script>
    function saveBarcodeDeatils()
    {
        var regno = $("#regno").val();
        var qpcode = $("#qpcode").val();
        var ansbook=$("#ansbook").val();
        var $host_url = "http://" + window.location.host + "/" + window.location.pathname.split('/')[1] + "/app.php?a=";
        $.ajax({
          type: "GET",
          async: false,
          data: "v1="+regno+"&v2="+qpcode+"&v3="+ansbook+"&univcode=041",
          url: $host_url + 'saveBarcodeDeatils',
          success: function(responce)
          {
            $("#tabledata").html(responce.data['msg']);
            $('#regno').val('');
            $('#ansbook').val('');
            $('#qpcode').val('');
            if(responce.error_code == 0){
              var html = `
              <tr>
                <td>
                ${responce.data.fregno}
                </td>
                <td>
                ${responce.data.fans}
                </td>
                <td>
                ${responce.data.fqpcode}
                </td>
              </tr>
              `
              $("#barcodes").append(html);
            }

          }
        });
    }

</script>

<style>
  input {
    height: 36px;
    width: 204px;
    font-size: 22px;
  }
  #contents td, th {
    border: 1px solid black;
    text-align: center;
  }
</style>
</head>

<body>
<div align="center" >
  
  <table style="width:50vw;font-size:24px">
    <tr>
      <td>
        Scan 1
      </td>
      <td>
        <input type = 'text' id = 'regno'>
      </td>
    </tr>
    <tr>
      <td>
      Scan 2
      </td>
      <td>
        <input type = 'text' id = 'ansbook'>
      </td>
    </tr>
    <tr>
      <td>
      Scan 3
      </td>
      <td>
        <input type = 'text' id = 'qpcode'>
      </td>
    </tr>
    <tr>
      <td>
        
      </td>
      <td>
        <button onclick = "saveBarcodeDeatils()">Submit</button>
      </td>
    </tr>
    <tr>
      <td colspan="2">
      <div id="tabledata" style="color:red">
      </div>
    </td>
    <tr>
  </table>

  <table id="contents" style="width:50vw;font-size:24px;border-collapse: collapse;border: 1px solid black;">
    <thead>
      <tr>
        <th> Reg. No. </th>
        <th> Ans. Book No. </th>
        <th> QPCode </th>
      </tr>
  </thead>
  <tbody id="barcodes">
    
  </tbody>

  </table>
</div>

<br><br>



<?php
  error_reporting(E_ALL);
  ini_set('display_errors', 'on');
?>

</body>
</html>