index.html 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  1. <!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.2//EN" "http://www.openmobilealliance.org/tech/DTD/xhtml-mobile12.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <title>Calendar Service</title>
  5. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  6. <script type="text/javascript" src="script/platformservices.js" charset="utf-8"></script>
  7. <script type="text/javascript" src="script/templates.js" charset="utf-8"></script>
  8. <script type="text/javascript" src="script/platformservices_20_specific.js" charset="utf-8"></script>
  9. <script type="text/javascript" src="script/basic.js" charset="utf-8"></script>
  10. <link href="styles/reset.css" rel="stylesheet" type="text/css" />
  11. <link href="styles/baseStyles.css" rel="stylesheet" type="text/css" />
  12. </head>
  13. <body>
  14. <div id="wraper">
  15. <div id="content">
  16. <h1 id="header" class="top-aligned">Calendar Events</h1>
  17. <div id="eventListContainer">
  18. <form id="f1" name="f1">
  19. <ul class="nav-horizontal-rounded stack">
  20. <li class="first two-piece">
  21. <a href="#" onclick="newEntry();">New Event</a>
  22. </li>
  23. <li class="last two-piece">
  24. <a href="#" onclick="startEditor();">Start Editor</a>
  25. </li>
  26. </ul>
  27. <div style="display:block">
  28. <br />
  29. <br />
  30. <br />
  31. </div>
  32. <table>
  33. <tr>
  34. <th>
  35. <label for="filterType">
  36. Event type:
  37. </label>
  38. </th>
  39. <th>
  40. <label for="filterStartDate">
  41. Start date:
  42. </label>
  43. </th>
  44. <th>
  45. <label for="filterEndDate">
  46. End date:
  47. </label>
  48. </th>
  49. </tr>
  50. <tr>
  51. <td>
  52. <select onchange="list();" name="filterType" id="filterType" size="1">
  53. <option value="">All</option>
  54. <option value="Meeting">Meeting</option>
  55. <option value="DayEvent">Memo</option>
  56. <option value="ToDo">ToDo</option>
  57. <option value="Anniversary">Anniversary</option>
  58. </select>
  59. </td>
  60. <td>
  61. <input onchange="list();" type="text" name="filterStartDate" size="10" id="filterStartDate" value=""/>
  62. </td>
  63. <td>
  64. <input onchange="list();" type="text" name="filterEndDate" size="10" id="filterEndDate" value=""/>
  65. </td>
  66. </tr>
  67. </table>
  68. <div id="entryList">
  69. </div>
  70. </form>
  71. </div>
  72. <div id="newEventFormContainer" style="display:none">
  73. <form id="f2">
  74. <table>
  75. <tr>
  76. <td>
  77. <label for="type">
  78. Event type:
  79. </label>
  80. </td>
  81. <td>
  82. <select onchange="adjustForm(this.options[this.selectedIndex].value)" name="type" id="type" size="1">
  83. <option value="Meeting">Meeting</option>
  84. <option value="DayEvent">Memo</option>
  85. <option value="ToDo">ToDo</option>
  86. <option value="Anniversary">Anniversary</option>
  87. </select>
  88. </td>
  89. </tr>
  90. <tr>
  91. <th id="descriptionContainer" colspan="2">
  92. <label for="description">
  93. Description:
  94. </label>
  95. </th>
  96. </tr>
  97. <tr>
  98. <td colspan="2">
  99. <textarea name="description" id="description" rows="1"></textarea>
  100. </td>
  101. </tr>
  102. <tr>
  103. <th id="locationContainerL" colspan="2">
  104. <label for="location">
  105. Location:
  106. </label>
  107. </th>
  108. </tr>
  109. <tr id="locationContainer">
  110. <td colspan="2">
  111. <input type="text" name="location" id="location" size="15" value=""/>
  112. </td>
  113. </tr>
  114. <tr id="startDateContainerL">
  115. <th>
  116. <label for="startDate">
  117. Start date:
  118. </label>
  119. </th>
  120. <th id="startTimeContainerL">
  121. <label for="startTime">
  122. Start time :
  123. </label>
  124. </th>
  125. </tr>
  126. <tr id="startDateContainer">
  127. <td>
  128. <input style="-wap-input-format: '*n'" type="text" name="startDate" id="startDate" size="10" value=""/>
  129. </td>
  130. <td id="startTimeContainer">
  131. <input style="-wap-input-format: '*n'" type="text" name="startTime" id="startTime" size="5" value=""/>
  132. </td>
  133. </tr>
  134. <tr id="endDateContainerL">
  135. <th>
  136. <label for="endDate">
  137. End date:
  138. </label>
  139. </th>
  140. <th id="endTimeContainerL">
  141. <label for="endTime">
  142. End time:
  143. </label>
  144. </th>
  145. </tr>
  146. <tr id="endDateContainer">
  147. <td>
  148. <input style="-wap-input-format: '*n'" type="text" name="endDate" id="endDate" size="10" value=""/>
  149. </td>
  150. <td id="endTimeContainer">
  151. <input style="-wap-input-format: '*n'" type="text" name="endTime" id="endTime" size="5" value=""/>
  152. </td>
  153. </tr>
  154. <tr>
  155. <td colspan="2">
  156. <label for="alarmOnOff">
  157. Alarm:
  158. </label>
  159. <input type="radio" onchange="showHideAlarm(this);" name="alarmOnOff" id="alarmOn" value="on"/>On<input type="radio" name="alarmOnOff" id="alarmOff" onchange="showHideAlarm(this)" value="off" checked/>Off
  160. </td>
  161. </tr>
  162. <!-- style="display:none" -->
  163. <tr id="alarmContainerL" style="display:none">
  164. <th>
  165. <label for="alarmDate">Alarm date:</label>
  166. </th>
  167. <th>
  168. <label for="alarmTime">
  169. Alarm time:
  170. </label>
  171. </th>
  172. </tr>
  173. <tr id="alarmContainer" style="display:none">
  174. <td>
  175. <input style="-wap-input-format: '*n'" type="text" name="alarmDate" size="10" id="alarmDate" value=""/>
  176. </td>
  177. <td>
  178. <input style="-wap-input-format: '*n'" type="text" name="alarmTime" id="alarmTime" size="5" value=""/>
  179. </td>
  180. </tr>
  181. </table>
  182. <ul class="nav-horizontal-rounded stack">
  183. <li class="first two-piece">
  184. <a href="#" onclick="add();">Save</a>
  185. </li>
  186. <li class="last two-piece">
  187. <a href="#" onclick="showEventList();">Cancel</a>
  188. </li>
  189. </ul>
  190. </form>
  191. </div>
  192. </div>
  193. </div>
  194. </body>
  195. </html>