PageRenderTime 41ms CodeModel.GetById 10ms RepoModel.GetById 1ms app.codeStats 0ms

/scripts/feeds/scripts_vb6/scripts/trailer/trailer.php

http://eboda-hd-for-all-500.googlecode.com/
PHP | 248 lines | 231 code | 17 blank | 0 comment | 21 complexity | 96df4be70b0be14e518dc084b7b59d64 MD5 | raw file
Possible License(s): GPL-3.0, GPL-2.0
  1. <?php echo "<?xml version='1.0' encoding='UTF8' ?>";
  2. $host = "http://127.0.0.1:82";
  3. ?>
  4. <rss version="2.0">
  5. <onEnter>
  6. startitem = "middle";
  7. setRefreshTime(1);
  8. </onEnter>
  9. <onRefresh>
  10. setRefreshTime(-1);
  11. itemCount = getPageInfo("itemCount");
  12. redrawDisplay();
  13. </onRefresh>
  14. <mediaDisplay name=photoView
  15. centerXPC=7
  16. centerYPC=25
  17. centerHeightPC=40
  18. columnCount=4
  19. rowCount=1
  20. menuBorderColor="55:55:55"
  21. sideColorBottom="0:0:0"
  22. sideColorTop="0:0:0"
  23. backgroundColor="0:0:0"
  24. imageBorderColor="0:0:0"
  25. itemBackgroundColor="0:0:0"
  26. itemGapXPC=0
  27. itemGapYPC=1
  28. sideTopHeightPC=22
  29. bottomYPC=85
  30. sliding=yes
  31. showHeader=no
  32. showDefaultInfo=no
  33. idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10">
  34. <text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="20" fontSize="30" backgroundColor="10:105:150" foregroundColor="100:200:255">
  35. <script>getPageInfo("pageTitle");</script>
  36. </text>
  37. <text redraw="yes" offsetXPC="85" offsetYPC="12" widthPC="10" heightPC="6" fontSize="20" backgroundColor="10:105:150" foregroundColor="60:160:205">
  38. <script>sprintf("%s / ", focus-(-1))+itemCount;</script>
  39. </text>
  40. <!-- lines="5" fontSize=15 -->
  41. <text align="center" redraw="yes"
  42. lines=3 fontSize=17
  43. offsetXPC=5 offsetYPC=65 widthPC=90 heightPC=20
  44. backgroundColor=0:0:0 foregroundColor=120:120:120>
  45. <script>print(annotation); annotation;</script>
  46. </text>
  47. <text align="center" redraw="yes" offsetXPC=10 offsetYPC=85 widthPC=80 heightPC=10 fontSize=15 backgroundColor=0:0:0 foregroundColor=75:75:75>
  48. <script>print(location); location;</script>
  49. </text>
  50. <idleImage>image/POPUP_LOADING_01.png</idleImage>
  51. <idleImage>image/POPUP_LOADING_02.png</idleImage>
  52. <idleImage>image/POPUP_LOADING_03.png</idleImage>
  53. <idleImage>image/POPUP_LOADING_04.png</idleImage>
  54. <idleImage>image/POPUP_LOADING_05.png</idleImage>
  55. <idleImage>image/POPUP_LOADING_06.png</idleImage>
  56. <idleImage>image/POPUP_LOADING_07.png</idleImage>
  57. <idleImage>image/POPUP_LOADING_08.png</idleImage>
  58. <itemDisplay>
  59. <image>
  60. <script>
  61. idx = getQueryItemIndex();
  62. focus = getFocusItemIndex();
  63. if(focus==idx)
  64. {
  65. location = getItemInfo(idx, "location");
  66. annotation = getItemInfo(idx, "annotation");
  67. }
  68. getItemInfo(idx, "image");
  69. </script>
  70. <offsetXPC>
  71. <script>
  72. idx = getQueryItemIndex();
  73. focus = getFocusItemIndex();
  74. if(focus==idx) 0; else 12;
  75. </script>
  76. </offsetXPC>
  77. <offsetYPC>
  78. <script>
  79. idx = getQueryItemIndex();
  80. focus = getFocusItemIndex();
  81. if(focus==idx) 0; else 6;
  82. </script>
  83. </offsetYPC>
  84. <widthPC>
  85. <script>
  86. idx = getQueryItemIndex();
  87. focus = getFocusItemIndex();
  88. if(focus==idx) 100; else 75;
  89. </script>
  90. </widthPC>
  91. <heightPC>
  92. <script>
  93. idx = getQueryItemIndex();
  94. focus = getFocusItemIndex();
  95. if(focus==idx) 50; else 37;
  96. </script>
  97. </heightPC>
  98. </image>
  99. <text align="center" lines="4" offsetXPC=0 offsetYPC=55 widthPC=100 heightPC=45 backgroundColor=-1:-1:-1>
  100. <script>
  101. idx = getQueryItemIndex();
  102. getItemInfo(idx, "title");
  103. </script>
  104. <fontSize>
  105. <script>
  106. idx = getQueryItemIndex();
  107. focus = getFocusItemIndex();
  108. if(focus==idx) "18"; else "14";
  109. </script>
  110. </fontSize>
  111. <foregroundColor>
  112. <script>
  113. idx = getQueryItemIndex();
  114. focus = getFocusItemIndex();
  115. if(focus==idx) "255:255:255"; else "75:75:75";
  116. </script>
  117. </foregroundColor>
  118. </text>
  119. </itemDisplay>
  120. <onUserInput>
  121. <script>
  122. ret = "false";
  123. userInput = currentUserInput();
  124. if (userInput == "pagedown" || userInput == "pageup")
  125. {
  126. idx = Integer(getFocusItemIndex());
  127. if (userInput == "pagedown")
  128. {
  129. idx -= -4;
  130. if(idx &gt;= itemCount)
  131. idx = itemCount-1;
  132. }
  133. else
  134. {
  135. idx -= 4;
  136. if(idx &lt; 0)
  137. idx = 0;
  138. }
  139. print("new idx: "+idx);
  140. setFocusItemIndex(idx);
  141. setItemFocus(0);
  142. redrawDisplay();
  143. "true";
  144. }
  145. ret;
  146. </script>
  147. </onUserInput>
  148. </mediaDisplay>
  149. <item_template>
  150. <mediaDisplay name="threePartsView" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10">
  151. <idleImage>image/POPUP_LOADING_01.png</idleImage>
  152. <idleImage>image/POPUP_LOADING_02.png</idleImage>
  153. <idleImage>image/POPUP_LOADING_03.png</idleImage>
  154. <idleImage>image/POPUP_LOADING_04.png</idleImage>
  155. <idleImage>image/POPUP_LOADING_05.png</idleImage>
  156. <idleImage>image/POPUP_LOADING_06.png</idleImage>
  157. <idleImage>image/POPUP_LOADING_07.png</idleImage>
  158. <idleImage>image/POPUP_LOADING_08.png</idleImage>
  159. </mediaDisplay>
  160. </item_template>
  161. <channel>
  162. <title>Trailere filme şi jocuri</title>
  163. <item>
  164. <title>www.cinemarx.ro</title>
  165. <link><?php echo $host; ?>/scripts/trailer/php/cinemarx.php</link>
  166. <media:thumbnail url="/scripts/trailer/image/cinemax.jpg"/>
  167. <image>/scripts/trailer/image/cinemax.jpg</image>
  168. <location>http://www.cinemarx.ro/</location>
  169. <annotation>Filme noi, program cinema, trailere, filme 2011, filme 2010, box office, premiere cinema, filme, seriale tv - Radiografia cinematografiei - CinemaRx</annotation>
  170. <mediaDisplay name="threePartsView"/>
  171. </item>
  172. <item>
  173. <title>filme2011.ro</title>
  174. <link><?php echo $host; ?>/scripts/trailer/php/filme2011.php?query=1,</link>
  175. <media:thumbnail url="image/trailerb.png"/>
  176. <image>/scripts/image/trailerb.png</image>
  177. <location>http://www.filme2011.ro/</location>
  178. <annotation>Filme 2011: Va punem la dispozitie interaga colectie de filme lansate in anul 2011.</annotation>
  179. <mediaDisplay name="threePartsView"/>
  180. </item>
  181. <item>
  182. <title>movienews.ro - trailers</title>
  183. <link>http://movienews.ro/trailers/feed/</link>
  184. <media:thumbnail url="/scripts/trailer/image/movienews.png" />
  185. <image>/scripts/trailer/image/movienews.png</image>
  186. <location>http://movienews.ro</location>
  187. <annotation>Trailers MovieNews.ro | Sursa ta zilnica de stiri din lumea filmului!</annotation>
  188. <mediaDisplay name="threePartsView"
  189. itemBackgroundColor="0:0:0"
  190. backgroundColor="0:0:0"
  191. sideLeftWidthPC="0"
  192. itemImageXPC="5"
  193. itemXPC="20"
  194. itemYPC="20"
  195. itemWidthPC="65"
  196. capWidthPC="70"
  197. unFocusFontColor="101:101:101"
  198. focusFontColor="255:255:255"
  199. idleImageWidthPC="8"
  200. idleImageHeightPC="10">
  201. <idleImage>image/POPUP_LOADING_01.png</idleImage>
  202. <idleImage>image/POPUP_LOADING_02.png</idleImage>
  203. <idleImage>image/POPUP_LOADING_03.png</idleImage>
  204. <idleImage>image/POPUP_LOADING_04.png</idleImage>
  205. <idleImage>image/POPUP_LOADING_05.png</idleImage>
  206. <idleImage>image/POPUP_LOADING_06.png</idleImage>
  207. <idleImage>image/POPUP_LOADING_07.png</idleImage>
  208. <idleImage>image/POPUP_LOADING_08.png</idleImage>
  209. <backgroundDisplay>
  210. <image offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100>
  211. image/mele/backgd.jpg
  212. </image>
  213. </backgroundDisplay>
  214. <image offsetXPC=0 offsetYPC=2.8 widthPC=100 heightPC=15.6>
  215. image/mele/rss_title.jpg
  216. </image>
  217. <text offsetXPC=40 offsetYPC=8 widthPC=35 heightPC=10 fontSize=20 backgroundColor=-1:-1:-1 foregroundColor=255:255:255>
  218. movienews.ro - trailers
  219. </text>
  220. </mediaDisplay>
  221. </item>
  222. <item>
  223. <title>Gametrailers</title>
  224. <link><?php echo $host; ?>/scripts/trailer/gt.php</link>
  225. <media:thumbnail url="/scripts/trailer/image/gt.jpg" />
  226. <image>/scripts/trailer/image/gt.jpg</image>
  227. <location>http://www.gametrailers.com/</location>
  228. <annotation>Watch new video game trailers, read reviews and previews of upcoming video games at GameTrailers.com. Video game demos, online gameplay, game cheats or view movies and media on the GameTrailers website.</annotation>
  229. </item>
  230. </channel>
  231. </rss>