Advertisement
Guest User

Untitled

a guest
Oct 19th, 2011
720
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.48 KB | None | 0 0
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
  2. "http://www.w3.org/TR/html4/strict.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head>
  5. <title>New</title>
  6. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  7. <script type="text/javascript" src="template_dir/script.js"></script>
  8. </head>
  9. <body>
  10.  
  11. <hr>type={$type}<hr>
  12. {if $type=='main'}
  13. <div class="main">
  14. <div class="menu">
  15. <a href="index.php?action=add">Add new record</a>
  16. </div>
  17. <div class="mainTable">
  18. <form name="mainTable" method="post">
  19. <table border="1">
  20. <tr>
  21. <td width="120px">
  22. <input type="checkbox" name="selectAll" onClick="setChecked(this);">
  23. <span id="text_checked">Note</span> All
  24. </td>
  25. <td>id</td>
  26. {for $i=1 to 4}
  27. <td>field_{$i}</td>
  28. {/for}<td>Action</td>
  29. </tr>
  30.  
  31. {foreach $table as $e_value}
  32. <tr>
  33. <td><input type="checkbox" name="checkbox[]" value="{$e_value['id']}" onClick=""></td>
  34. {foreach $e_value as $i_value}
  35. <td>{$i_value}</td>
  36. {/foreach}
  37. <td>
  38. <a href="index.php?action=edit&id={$e_value['id']}">Edit</a>
  39. <br>
  40. <a href="index.php?action=delete&id={$e_value['id']}">Delete</a>
  41. </td>
  42. </tr>
  43. {/foreach}
  44. </table>
  45. <input type="submit" name="submit" value="send">
  46. </form>
  47. </div>
  48. </div>
  49. {elseif $type=='add'}
  50. <div class="add">
  51. <p>Add new record</p>
  52. <form name="addForms" method="post">
  53. {for $i=1 to 3}
  54. <p>field_{$i} : <input type="text" name="field[{$i}]"></p>
  55. {/for}
  56. <p><input type="submit" name="submit" value="add"></p>
  57. </form>
  58. </div>
  59. {elseif $type=='edit'}
  60.  
  61. {/if}
  62. </body>
  63. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement