Unsupported scripts and control panel web app for a hosting company
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

admin.addfinances.php 995B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <form action="." method="post">
  2. <div class="block" id="add">
  3. <h2>Add transaction</h2>
  4. <div class="innerblock">
  5. <table class="form">
  6. <tr>
  7. <th>Date</th>
  8. <td>
  9. <input type="text" name="date" value="<?PHP echo date('Y-m-d'); ?>" class="inflat">
  10. </td>
  11. </tr>
  12. <tr>
  13. <th>Description</th>
  14. <td>
  15. <input type="text" name="desc" class="inflat">
  16. </td>
  17. </tr>
  18. <tr>
  19. <th>User</th>
  20. <td>
  21. <select name="user" class="inflat">
  22. <option value="5">N/A</option>
  23. <?PHP
  24. $sql = 'SELECT user_id, user_name FROM users WHERE user_pass != \'invalid\' ORDER BY user_name';
  25. $res = mysql_query($sql);
  26. while ($row = mysql_fetch_array($res)) {
  27. echo '<option value="'.$row[0].'">'.$row[1].'</option>';
  28. }
  29. ?>
  30. </select>
  31. </td>
  32. </tr>
  33. <tr>
  34. <th>Amount</th>
  35. <td><input type="text" name="amount" value="35" class="inflat"></td>
  36. </tr>
  37. <tr>
  38. <td></td><td><input type="submit" value="Add"></td>
  39. </tr>
  40. </table>
  41. </div>
  42. </div>
  43. </form>