vacation.tpl 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. {literal}
  2. <script language="JavaScript" src="calendar.js" type="text/javascript"></script>
  3. {/literal}
  4. <div id="edit_form">
  5. <form name="edit-vacation" method="post" action=''>
  6. <table>
  7. <tr>
  8. <th colspan="3">{$PALANG.pUsersVacation_welcome}</th>
  9. </tr>
  10. {if !$authentication_has_role.user}
  11. <tr>
  12. <td class="label"><label>{$PALANG.pLogin_username}:</label></td>
  13. <td><em>{$tUseremail}</em></td>
  14. <td>&nbsp;</td>
  15. </tr>
  16. {/if}
  17. <tr>
  18. <td class="label"><label>{$PALANG.pUsersVacation_activefrom}:</label></td>
  19. <td><input class="flat readonly" name="fActiveFrom" value="{$tActiveFrom}" readonly="readonly" />
  20. {literal}
  21. <script language="JavaScript" type="text/javascript">
  22. new tcal ({
  23. 'formname': 'edit-vacation',
  24. 'controlname': 'fActiveFrom'
  25. });
  26. </script>
  27. {/literal}
  28. </td>
  29. <td>&nbsp;</td>
  30. </tr>
  31. <tr>
  32. <td class="label"><label>{$PALANG.pUsersVacation_activeuntil}:</label></td>
  33. <td><input class="flat readonly" name="fActiveUntil" value="{$tActiveUntil}" readonly="readonly" />
  34. {literal}
  35. <script language="JavaScript" type="text/javascript">
  36. new tcal ({
  37. 'formname': 'edit-vacation',
  38. 'controlname': 'fActiveUntil'
  39. });
  40. </script>
  41. {/literal}
  42. </td>
  43. <td>&nbsp;</td>
  44. </tr>
  45. <tr>
  46. <td class="label"><label>{$PALANG.pVacation_reply_type}:</label></td>
  47. <td>
  48. <select class="flat" name="fInterval_Time">
  49. {html_options options=$select_options selected=$tInterval_Time}
  50. </select>
  51. </td>
  52. <td>&nbsp;</td>
  53. </tr>
  54. <tr>
  55. <td class="label"><label>{$PALANG.subject}:</label></td>
  56. <td><textarea class="flat" rows="3" cols="60" name="fSubject" >{$tSubject}</textarea></td>
  57. <td>&nbsp;</td>
  58. </tr>
  59. <tr>
  60. <td class="label"><label>{$PALANG.message}:</label></td>
  61. <td><textarea class="flat" rows="10" cols="60" name="fBody" >{$tBody}</textarea></td>
  62. <td>&nbsp;</td>
  63. </tr>
  64. <tr>
  65. <td>&nbsp;</td>
  66. <td colspan="2">
  67. <input class="button" type="submit" name="fChange" value="{$PALANG.pEdit_vacation_set}" />
  68. <input class="button" type="submit" name="fBack" value="{$PALANG.pEdit_vacation_remove}" />
  69. <input class="button" type="submit" name="fCancel" value="{$PALANG.exit}" />
  70. </td>
  71. </tr>
  72. </table>
  73. </form>
  74. </div>