Source files of,,,,, and Contribute:
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.

pd.en.xhtml 8.8KB

  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <html>
  3. <head>
  4. <title>FSFE - Internal Tools - per diem calculator</title>
  5. <style type="text/css">
  6. tr.descr {
  7. font-style: italic;
  8. font-size: small;
  9. }
  10. #content input[type="radio"] {
  11. margin: 0 5px 0 15px;
  12. }
  13. label {
  14. font-weight: normal;
  15. margin-left: 5px;
  16. }
  17. </style>
  18. </head>
  19. <body>
  20. <!-- Originally coded by Max Mehl <max.mehl [at] fsfe [dot] org> for FSFE e.V. -->
  21. <h1>Calculate per diem charges (VKP)</h1>
  22. <p>Using this form you can calculate the amount of money you can claim as
  23. reimbursement when travelling as FSFE staff. With the checkboxes of the
  24. left column you can add a day in you calculation; the unchecked days will
  25. be ignored. For your travelled days you can mark which meal you paid with
  26. your own money; per default the calculator assumes you paid all meals
  27. yourself, so you will have to uncheck those meals which FSFE paid for, e.g.
  28. by paying the hotel room incl. breakfast.</p>
  29. <p>The outward and return travel day are calculated with a reduced per diem
  30. amount, according to the legislation of your residence (currently Sweden
  31. and Germany are pre-defined). Please make sure that you know whether a
  32. certain day counts as half/travel or full day.</p>
  33. <form action="/cgi-bin/perdiem.php" method="post">
  34. <h2>1. Select your own country</h2>
  35. <!-- if you add new countries, the respective settings have to be set in PHP file -->
  36. <input type="radio" id="home-de" name="home" value="de" checked="checked" /><label for="home-de"> Germany</label>
  37. <input type="radio" id="home-se" name="home" value="se" /><label for="home-se"> Sweden</label><br />
  38. <input type="radio" id="home-other" name="home" value="other" />Other <input type="text" name="home_other" placeholder="€/0.2/0.4/0.4/0" /><label>(Other: currency and percentage rates: currency/breakfast/lunch/dinner/flat (e.g. "€/0.2/0.4/0.4/0" for Germany). If <em>Other</em> is selected, you'll have to set the values in step 2 manually)</label>
  39. <h2>2. Select the destination country</h2>
  40. <!-- you can add new countries. For the individual amounts, set value="CC=$travel/$full,[...]" -->
  41. <input type="radio" id="dest-de" name="dest" value="de=12/24,se=314.5/629" checked="checked" /><label for="dest-de"> Germany</label>
  42. <input type="radio" id="dest-be" name="dest" value="de=28/42,se=344/688" /><label for="dest-be"> Belgium</label><br />
  43. <input type="radio" id="dest-other" name="dest" value="other" />Other <input type="text" name="dest_other" placeholder="12/24" /><label>(Other: per diem travel/full (e.g. "12/24" for Germany -> Germany). <a href="">(See the different rates per country.)</a></label>
  44. <h2>3. Which meal did you pay yourself?</h2>
  45. <table class="table table-striped">
  46. <tr>
  47. <th>Use</th>
  48. <th>Date</th>
  49. <th>Breakfast</th>
  50. <th>Lunch</th>
  51. <th>Dinner</th>
  52. </tr>
  53. <tr class="descr">
  54. <td>Calculate this day</td>
  55. <td>Name the day (e.g. by date) <br />Leave blank to autoname them</td>
  56. <td>Did you pay this meal yourself?</td>
  57. <td>Did you pay this meal yourself?</td>
  58. <td>Did you pay this meal yourself?</td>
  59. </tr>
  60. <tr>
  61. <td colspan="5"><strong>Outward travel day (or if you travelled only one day)</strong></td>
  62. </tr>
  63. <tr class="descr">
  64. <td colspan="5">Please be aware of when a day counts as travel or full day!</td>
  65. </tr>
  66. <tr>
  67. <td><input type="checkbox" name="use[out]" value="yes" checked="checked" /></td>
  68. <td><input type="date" name="date[out]" /></td>
  69. <td><input type="checkbox" name="break[out]" value="yes" checked="checked" /></td>
  70. <td><input type="checkbox" name="lunch[out]" value="yes" checked="checked" /></td>
  71. <td><input type="checkbox" name="dinner[out]" value="yes" checked="checked" /></td>
  72. </tr>
  73. <tr>
  74. <td colspan="5"><strong>Full days (only check those you travelled)</strong></td>
  75. </tr>
  76. <tr class="descr">
  77. <td colspan="5">Please be aware of when a day counts as travel/half or full day!</td>
  78. </tr>
  79. <tr>
  80. <td><input type="checkbox" name="use[1]" value="yes" /></td>
  81. <td><input type="date" name="date[1]" /></td>
  82. <td><input type="checkbox" name="break[1]" value="yes" checked="checked" /></td>
  83. <td><input type="checkbox" name="lunch[1]" value="yes" checked="checked" /></td>
  84. <td><input type="checkbox" name="dinner[1]" value="yes" checked="checked" /></td>
  85. </tr>
  86. <tr>
  87. <td><input type="checkbox" name="use[2]" value="yes" /></td>
  88. <td><input type="date" name="date[2]" /></td>
  89. <td><input type="checkbox" name="break[2]" value="yes" checked="checked" /></td>
  90. <td><input type="checkbox" name="lunch[2]" value="yes" checked="checked" /></td>
  91. <td><input type="checkbox" name="dinner[2]" value="yes" checked="checked" /></td>
  92. </tr>
  93. <tr>
  94. <td><input type="checkbox" name="use[3]" value="yes" /></td>
  95. <td><input type="date" name="date[3]" /></td>
  96. <td><input type="checkbox" name="break[3]" value="yes" checked="checked" /></td>
  97. <td><input type="checkbox" name="lunch[3]" value="yes" checked="checked" /></td>
  98. <td><input type="checkbox" name="dinner[3]" value="yes" checked="checked" /></td>
  99. </tr>
  100. <tr>
  101. <td><input type="checkbox" name="use[4]" value="yes" /></td>
  102. <td><input type="date" name="date[4]" /></td>
  103. <td><input type="checkbox" name="break[4]" value="yes" checked="checked" /></td>
  104. <td><input type="checkbox" name="lunch[4]" value="yes" checked="checked" /></td>
  105. <td><input type="checkbox" name="dinner[4]" value="yes" checked="checked" /></td>
  106. </tr>
  107. <tr>
  108. <td><input type="checkbox" name="use[5]" value="yes" /></td>
  109. <td><input type="date" name="date[5]" /></td>
  110. <td><input type="checkbox" name="break[5]" value="yes" checked="checked" /></td>
  111. <td><input type="checkbox" name="lunch[5]" value="yes" checked="checked" /></td>
  112. <td><input type="checkbox" name="dinner[5]" value="yes" checked="checked" /></td>
  113. </tr>
  114. <tr>
  115. <td><input type="checkbox" name="use[6]" value="yes" /></td>
  116. <td><input type="date" name="date[6]" /></td>
  117. <td><input type="checkbox" name="break[6]" value="yes" checked="checked" /></td>
  118. <td><input type="checkbox" name="lunch[6]" value="yes" checked="checked" /></td>
  119. <td><input type="checkbox" name="dinner[6]" value="yes" checked="checked" /></td>
  120. </tr>
  121. <tr>
  122. <td><input type="checkbox" name="use[7]" value="yes" /></td>
  123. <td><input type="date" name="date[7]" /></td>
  124. <td><input type="checkbox" name="break[7]" value="yes" checked="checked" /></td>
  125. <td><input type="checkbox" name="lunch[7]" value="yes" checked="checked" /></td>
  126. <td><input type="checkbox" name="dinner[7]" value="yes" checked="checked" /></td>
  127. </tr>
  128. <tr>
  129. <td colspan="5"><strong>Return travel day</strong></td>
  130. </tr>
  131. <tr class="descr">
  132. <td colspan="5">Please be aware of when a day counts as travel or full day!</td>
  133. </tr>
  134. <tr>
  135. <td><input type="checkbox" name="use[return]" value="yes" /></td>
  136. <td><input type="date" name="date[return]" /></td>
  137. <td><input type="checkbox" name="break[return]" value="yes" checked="checked" /></td>
  138. <td><input type="checkbox" name="lunch[return]" value="yes" checked="checked" /></td>
  139. <td><input type="checkbox" name="dinner[return]" value="yes" checked="checked" /></td>
  140. </tr>
  141. </table>
  142. <h2>4. Provide additional information for spreadsheet</h2>
  143. <p>If you want to copy&amp;paste the output directly to your Reimbursement Claim spreadsheet, please provide additional data of your trip.</p>
  144. <input type="text" name="rc_name" placeholder="Your Name" /><label>(Your name, as used in the spreadsheet)</label><br />
  145. <input type="text" name="rc_er" placeholder="er.xxxx-xx-xx.yyy.zzzz" /><label>(The ER number used for your trip)</label><br />
  146. <input type="text" name="rc_catch" placeholder="Catchy Phrase" /><label>(Catchphrase which will be used for your trip)</label><br />
  147. <button type="submit" name="action" value="calc">Calculate per diem</button>
  148. </form>
  149. </body>
  150. <timestamp>$Date$ $Author$</timestamp>
  151. </html>
  152. <!--
  153. Local Variables: ***
  154. mode: xml ***
  155. End: ***
  156. -->