displaystories1.php 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  1. <!DOCTYPE html>
  2. <html>
  3. <meta charset="utf-8">
  4. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  5. <link rel="stylesheet" type="text/css" href="css/style.css">
  6. <head>
  7. <title>An African Language Short Story Competition</title>
  8. </head>
  9. <body>
  10. <ul>
  11. <li><a id="home" href="index1.php">Home</a></li>
  12. <li><a id="original" href="submit1.php">Original Story Submission</a></li>
  13. <li><a id="translation" href="submittranslation1.php">Translated Story Submission</a></li>
  14. <li><a id="stories" class=active href="#">Submitted Stories</a></li>
  15. <li><a id="statistics" href="submissionstatistics1.php">Submissions per Language</a></li>
  16. <li><a id="coordinate" href="coordinator1.php">Coordinator Application</a></li>
  17. <li><a id="contact" href="contact1.php">Contact</a></li>
  18. <li><a id="resources" href="resources1.php">Resources</a></li>
  19. <li><a id="flyers" href="flyers1.php">Flyers</a></li>
  20. <li><a id="faq" href="faq1.php">Frequently Asked Questions</a></li>
  21. <li><a id="privacy" href="privacy1.php">Privacy</a></li>
  22. </ul>
  23. <header>
  24. <h1>Tuvute Pamoja
  25. <a href="https://deeplearningindaba.com">
  26. <img src="images/deeplearningindaba.svg" alt="Deeplearning Indaba" style="height:60px">
  27. </a></h1>
  28. </header>
  29. <?php include 'submitdatabaseinfo.php';?>
  30. <?php include 'submitsetup.php';?>
  31. <h1 id="title">An African Language Short Story Competition</h1>
  32. <div>
  33. <p>The stories are provided under a creative commons attribution license that allows others to distribute, remix, adapt and build upon the work, even commercially, as long as they credit the authors for the original creation. For more on this license see <a href="https://creativecommons.org/licenses/by/4.0/">https://creativecommons.org/licenses/by/4.0/</a>. The submitted stories are provided here to allow for translation and evaluation. To enable a fairer evaluation of the stories, the authors and translators will remain unknown until after the evaluation process. Should you wish to reuse and redistribute the stories please be sure to do so once you can attribute the authors and translators.</p>
  34. </div>
  35. <div>
  36. <h3 id="languageselection">Choose a language you want to read stories in</h3>
  37. </div>
  38. <div>
  39. <select class="language" id="languagefromoptions" name="languagefromoptions"
  40. onchange="getstorytitles(this.value)">
  41. <option data-language="Amharic" value="amh">አማርኛ</option>
  42. <optgroup label="اَلْعَرَبِيَّةُ">
  43. <option data-language="Egyptian Arabic" value="arz">العامية المصرية</option>
  44. <option data-language="Standard Arabic" value="arb">العربية الفصحى</option>
  45. <option data-language="Sudanese Arabic" value="apd">لهجة سودانية</option>
  46. </optgroup>
  47. <option data-language="Afrikaans" value="afr">Afrikaans</option>
  48. <option data-language="Bangime" value="dba">Bangime</option>
  49. <option data-language="Basaa" value="bas">Basaa</option>
  50. <option data-language="Bemba" value="ben">Bemba</option>
  51. <option data-language="Chichewa" value="nya">Chichewa</option>
  52. <option data-language="Dagbani" value="dag">Dagbani</option>
  53. <option data-language="Dholuo" value="luo">Dholuo</option>
  54. <optgroup label="Dogon">
  55. <option data-language="Ben Tey Dogon" value="BTD">Ben Tey Dogon</option>
  56. <option data-language="Najamba-Kindige" value="N-K">Najamba-Kindige</option>
  57. </optgroup>
  58. <option data-language="Douala" value="dua">Douala</option>
  59. <option data-language="Ewondo" value="ewo">Ewondo</option>
  60. <option data-language="Fefe" value="fmp">Féfé</option>
  61. <optgroup label="Fulfulde">
  62. <option data-language="Adamawa Fulfulde" value="fub">Adamawa Fulfulde</option>
  63. <option data-language="Bagirmi Fulfulde" value="fui">Bagirmi Fulfulde</option>
  64. <option data-language="Borgu Fulfulde" value="fue">Borgu Fulfulde</option>
  65. <option data-language="Central Eastern Niger Fulfulde" value="fuq">Central Eastern Niger Fulfulde</option>
  66. <option data-language="Maasina Fulfulde" value="ffm">Maasina Fulfulde</option>
  67. <option data-language="Nigerian Fulfulde" value="fuv">Nigerian Fulfulde</option>
  68. <option data-language="Pulaar" value="fuc">Pulaar</option>
  69. <option data-language="Pular" value="fuf">Pular</option>
  70. <option data-language="Western Niger Fulfulde" value="fuh">Western Niger Fulfulde</option>
  71. </optgroup>
  72. <option data-language="Ga" value="gaa">Ga</option>
  73. <option data-language="Ghomala" value="gho">Ghomala</option>
  74. <option data-language="Kikuyu" value="kik">Gĩkũyũ</option>
  75. <option data-language="Gonja" value="gjn">Gonja</option>
  76. <option data-language="Hausa" value="hau">Hausa</option>
  77. <option data-language="Igbo" value="ibo">Igbo</option>
  78. <optgroup label="Ndebele">
  79. <option data-language="IsiNdebele saseNyakatho" value="nde">IsiNdebele saseNyakatho</option>
  80. <option data-language="IsiNdebele seSewula" value="nbl">IsiNdebele seSewula</option>
  81. </optgroup>
  82. <option data-language="Xhosa" value="xho">isiXhosa</option>
  83. <option data-language="Zulu" value="zul">isiZulu</option>
  84. <optgroup label="Jóola">
  85. <option data-language="Bandial" value="bqj">Bandial</option>
  86. <option data-language="Karon" value="krx">Karon</option>
  87. </optgroup>
  88. <optgroup label="Kamba">
  89. <option data-language="Dhaiso" value="dhs">Dhaiso</option>
  90. <option data-language="Kamba" value="kam">Kamba</option>
  91. </optgroup>
  92. <option data-language="Kidawida" value="dav">Kidawida</option>
  93. <option data-language="Kigiriyama" value="nyf">Kigiriyama</option>
  94. <optgroup label="Kimeru (Kenya)">
  95. <option data-language="Kimeru" value="mer">Meru</option>
  96. <option data-language="Tharaka" value="thk">Tharaka</option>
  97. <option data-language="Mwimbi-Muthambi" value="mws">Mwimbi-Muthambi</option>
  98. <option data-language="Cuka" value="cuh">Cuka</option>
  99. </optgroup>
  100. <option data-language="Kinyarwanda" value="kin">Kinyarwanda</option>
  101. <option data-language="Kipsigis" value="sgc">Kipsigis</option>
  102. <option data-language="Kiswahili" value="swa">Kiswahili</option>
  103. <option data-language="Kom" value="bkm">Kom</option>
  104. <option data-language="Konkomba" value="xon">Konkomba</option>
  105. <option data-language="Lingala" value="lin">Lingala</option>
  106. <option data-language="Luganda" value="lug">Luganda</option>
  107. <optgroup label="Luhya">
  108. <option data-language="Lubukusu" value="bsk">Lubukusu</option>
  109. <option data-language="Luidhako" value="ida">Luidhako</option>
  110. <option data-language="Lulogoli" value="rag">Lulogoli</option>
  111. <option data-language="Lukabrasi" value="lkb">Lukabrasi</option>
  112. <option data-language="Lunyala" value="nle">Lunyala</option>
  113. <option data-language="Lusamia" value="lsm">Lusamia</option>
  114. <option data-language="Lutachoni" value="lts">Lutachoni</option>
  115. <option data-language="Olukhayo" value="lko">Olukhayo</option>
  116. <option data-language="Olukisa" value="lks">Olukisa</option>
  117. <option data-language="Olumarama" value="lrm">Olumarama</option>
  118. <option data-language="Olunyole" value="nyd">Olunyole</option>
  119. <option data-language="Olutsotso" value="lto">Olutsotso</option>
  120. <option data-language="Oluwanga" value="lwa">Oluwanga</option>
  121. </optgroup>
  122. <option data-language="Medumba" value="byv">Medumba</option>
  123. <option data-language="Mende" value="men">Mende</option>
  124. <optgroup label="Meru (Tanzania)">
  125. <option data-language="Machame" value="imc">Machame</option>
  126. <option data-language="Rwa" value="rwk">Rwa</option>
  127. </optgroup>
  128. <option data-language="Nda\'nda\'" value="nnz">Nda'nda'</option>
  129. <option data-language="Ngiemboon" value="nnh">Ngiemboon</option>
  130. <option data-language="Nigerian Pidgin" value="pcm">Nigerian Pidgin</option>
  131. <option data-language="Nuasue" value="yav">Nuasue</option>
  132. <option data-language="Ŋgə̂mbà" value="nge">Ŋgə̂mbà</option>
  133. <option data-language="Runyakitara" value="213">Runyakitara</option>
  134. <option data-language="Safaliba" value="saf">Safaliba</option>
  135. <optgroup label="Sena">
  136. <option data-language="Barwe" value="bwg">Barwe</option>
  137. <option data-language="Malawian Sena" value="swk">Malawian Sena</option>
  138. <option data-language="Mozambiquean Sena" value="seh">Mozambiquean Sena</option>
  139. </optgroup>
  140. <option data-language="Sesotho" value="sot">Sesotho</option>
  141. <option data-language="Setswana" value="tsn">Setswana</option>
  142. <option data-language="Shü Pamom" value="bax">Shü Pamom</option>
  143. <option data-language="siSwati" value="ssw">siSwati</option>
  144. <option data-language="Twi" value="twi">Twi</option>
  145. <option data-language="Urhobo" value="urh">Urhobo</option>
  146. <option data-language="Wolaytta" value="wal">Wolaytta</option>
  147. <option data-language="Wolof" value="wol">Wolof</option>
  148. <option data-language="Xitsonga" value="tso">Xitsonga</option>
  149. <option data-language="Yambeta" value="yat">Yambeta</option>
  150. <option data-language="Yoruba" value="yor">Yorùbá</option>
  151. <option data-language="Zarma" value="dje">Zarma</option>
  152. </select>
  153. </p>
  154. </div>
  155. </section>
  156. <section>
  157. <div>
  158. <table id="titles"></table>
  159. </div>
  160. </section>
  161. <section>
  162. <p id="story">
  163. </p>
  164. </section>
  165. </body>
  166. <?php include 'footer.php';?>
  167. <script>
  168. function getstorytitles(lang) {
  169. //use ajax to get stories from database in that language
  170. var xmlhttp = new XMLHttpRequest();
  171. xmlhttp.onreadystatechange = function() {
  172. if (this.readyState == 4 && this.status == 200) {
  173. document.getElementById("titles").innerHTML = this.responseText;
  174. }
  175. };
  176. xmlhttp.open("GET","gettitles1.php?lang="+lang,true);
  177. xmlhttp.send();
  178. }
  179. function getstory(storyid) {
  180. //use ajax to get stories from database in that language
  181. var xmlhttp = new XMLHttpRequest();
  182. xmlhttp.onreadystatechange = function() {
  183. if (this.readyState == 4 && this.status == 200) {
  184. document.getElementById("story").innerHTML = this.responseText;
  185. }
  186. };
  187. xmlhttp.open("GET","getstory1.php?primarykey="+storyid,true);
  188. xmlhttp.send();
  189. }
  190. </script>
  191. </html>