Server IP : 162.240.98.243 / Your IP : 3.144.31.163 Web Server : Apache System : Linux server.bti.yaw.mybluehostin.me 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64 User : btiyawmy ( 1003) PHP Version : 7.2.34 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/btiyawmy/www/login.easenup.in/ |
Upload File : |
[11:51 am, 03/05/2022] +91 93352 23022: <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Test</title> <style> form{ margin: 20px 0; } form input,select, button { padding: 5px; } table{ width: 100%; margin-bottom: 20px; border-collapse: collapse; } table, th, td{ border: 1px solid #cdcdcd; } table th, table td{ padding: 10px; text-align: left; } </style> <script src="https://code.jquery.com/jquery-3.5.1.min.js"></script> <script> $(document).ready(function(){ $(".add-row").click(function(){ var requesttestid = $("#requesttestid").val(); var testid = $("#testid").val(); var markup = "<tr><td><input type='checkbox' name='record'></… [11:29 am, 19/05/2022] +91 93352 23022: <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Test</title> <style> form{ margin: 20px 0; } form input,select, button { padding: 5px; } table{ width: 100%; margin-bottom: 20px; border-collapse: collapse; } table, th, td{ border: 1px solid #cdcdcd; } table th, table td{ padding: 10px; text-align: left; } </style> <script src="https://code.jquery.com/jquery-3.5.1.min.js"></script> <script> $(document).ready(function(){ $(".add-row").click(function(){ var requesttestid = $("#requesttestid").val(); var testid = $("#testid").val(); var markup = "<tr><td><input type='checkbox' name='record'></td><td>" + requesttestid + "</td><td>" + testid + "</td></tr>"; $("#table2 tbody").append(markup); }); // Find and remove selected table rows $(".delete-row").click(function(){ $("#table2 tbody").find('input[name="record"]').each(function(){ if($(this).is(":checked")){ $(this).parents("tr").remove(); } }); }); }); </script> </head> <body> <form action="actionfinal.php" method="POST"> <table> <tr> <?php session_start(); include('dbconnection.php'); $sql1 ="SELECT * FROM patient WHERE patientid='$_GET[patientid]'"; $qsql1 = mysqli_query($con,$sql1); while($rspi1 = mysqli_fetch_array($qsql1)) { echo" <input type='hidden' name='prescriptionid[]' value='$_GET[prescriptionid]'> <input type='hidden' name='patientid[]' value='$_GET[patientid]'> "; } ?> <td width='25%'> <div class="form-group"> <label>Investigation Type </label> <select class="form-control" id='requesttestid' name="requesttestid"> <option value="44">Radiology</option> <option value="45">Pathology</option> </select> </div> </td> <td width='25%'> <select name='testid[]'> <option value="" selected="selected">Select Investigation</option> <option value="10">Ultrasound & Doppler</option> <option value="11">MRI</option> <option value="12"> CT + 3D</option> <option value="13"> X RAYS</option> <option value="14"> Fluoroscopy</option> <option value="15">Mammography</option> <option value="16"> Biometry</option> </select> </td> <td width='25%'> </td> </td><td width='13%'> <select name="Priority_slip"> <option value="">Priority slip </option> <option value="Urgent">Urgent </option> <option value="Normal">Normal </option> </td> <td width='12%'> <input type="reset" class="add-row" onclick="clearTheTextField()" value="Add Row"></td> </tr> </table> <table id='table2'> <thead> <tr> <th>Select</th> <th>Name</th> <th>Email</th> </tr> </thead> <tbody> <tr> <td><input type="checkbox" name="record"></td> <td>pavan</td> <td>pavan@mail.com</td> </tr> <tr> <td><input type="checkbox" name="record"></td> <td>suryavanshi</td> <td>pavansuryavnshi@mail.com</td> </tr> <tr> <td><input type="checkbox" name="record"></td> <td>ABC</td> <td>ABC@mail.com</td> </tr> </tbody> </table> <button type="button" class="delete-row">Delete Row</button> </body> </html> <input type="submit" value="Submit"> </form>