Guest User

Untitled

a guest
Jul 21st, 2018
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.82 KB | None | 0 0
  1. <input type='image' src='../images/add.png' name='FormDuplicate' value='" . $resInvoices['iProjectID']. "'>
  2.  
  3. <tr class='invoice-tr-standard' id='row2' onClick="FormTRClick(event, '2')"><td><input type='checkbox' name='strFormFactuur[]' value='19512' id='chk2'>&nbsp;<img src='../images/link.png' border='0'></td>
  4.  
  5. <td><a href='project_details.php?projectID=19512' target='_blank'>Project</a></td>
  6.  
  7. <td>Jobinfo</td>
  8.  
  9. <td>Customer</td>
  10.  
  11. <td><input type='text' name='FormTextStrPOnummer' value='324'> <img src='../images/b_save.png' border='0' height='13px' style='cursor: pointer;'></td>
  12.  
  13. <td>€ <input type='text' name='FormTextFltBedrag' value='999.000'> <img src='../images/b_save.png' border='0' height='13px' style='cursor: pointer;'></td>
  14.  
  15. <td><img src='../images/b_save.png' border='0' height='13px' style='cursor: pointer;'> <input type='image' src='../images/toevoegen.png' border='0' style='float: right; cursor: pointer;' name='FormDupliceer' value='19512'></td>
  16.  
  17. </tr>
  18.  
  19. <td><img src='../images/b_save.png' border='0' height='13px' style='cursor: pointer;'> <input type='image' src='../images/toevoegen.png' border='0' style='float: right; cursor: pointer;' name='FormDupliceer' value='19512'></td>
  20.  
  21. if(isset($_POST['FormDuplicate.x'])) {
  22. //submitted by FormDuplicate
  23. }
  24.  
  25. window.onload = function() {
  26. var arrInputs = document.getElementsByTagName("input");
  27. for (var i = 0; i < arrInputs.length; i++) {
  28. var oInput = arrInputs[i];
  29. if (oInput.type == "image") {
  30. oInput.onclick = function() {
  31. var oHidden = document.createElement("input");
  32. oHidden.type = "hidden";
  33. oHidden.name =this.name;
  34. oHidden.value = this.value;
  35. this.form.appendChild(oHidden);
  36. this.value = "";
  37. };
  38. }
  39. }
  40. };
Add Comment
Please, Sign In to add comment