PageRenderTime 47ms CodeModel.GetById 17ms RepoModel.GetById 1ms app.codeStats 0ms

/scripts/feeds/scripts_vb6/scripts/tv/tv_radio.php

http://eboda-hd-for-all-500.googlecode.com/
PHP | 325 lines | 304 code | 21 blank | 0 comment | 84 complexity | 3b904f92fb28bd75baa7f320654769be 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=5
  16. centerYPC=5
  17. centerHeightPC=70
  18. columnCount=3
  19. rowCount=2
  20. menuBorderColor="55:55:55"
  21. sideColorBottom="0:0:0"
  22. sideColorTop="0:0:0"
  23. backgroundColor="0:0:0"
  24. imageBorderColor="10:105:150"
  25. imageBorderPC="0"
  26. itemBackgroundColor="0:0:0"
  27. itemGapXPC=5
  28. itemGapYPC=0
  29. sideTopHeightPC=0
  30. bottomYPC=100
  31. sliding=yes
  32. showHeader=no
  33. showDefaultInfo=no
  34. idleImageWidthPC="8" idleImageHeightPC="10" idleImageXPC="5" idleImageYPC="5">
  35. <!--
  36. <text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="20" fontSize="30" backgroundColor="10:105:150" foregroundColor="100:200:255">
  37. <script>getPageInfo("pageTitle");</script>
  38. </text>
  39. <text redraw="yes" offsetXPC="85" offsetYPC="12" widthPC="10" heightPC="6" fontSize="20" backgroundColor="10:105:150" foregroundColor="60:160:205">
  40. <script>sprintf("%s / ", focus-(-1))+itemCount;</script>
  41. </text>
  42. -->
  43. <!-- lines="5" fontSize=15 -->
  44. <text align="center" redraw="yes"
  45. lines=3 fontSize=17
  46. offsetXPC=5 offsetYPC=80 widthPC=90 heightPC=15
  47. backgroundColor=0:0:0 foregroundColor=120:120:120>
  48. <script>print(annotation); annotation;</script>
  49. </text>
  50. <!--
  51. <text align="center" redraw="yes" offsetXPC=10 offsetYPC=85 widthPC=80 heightPC=10 fontSize=15 backgroundColor=0:0:0 foregroundColor=75:75:75>
  52. <script>print(location); location;</script>
  53. </text>
  54. -->
  55. <idleImage>image/POPUP_LOADING_01.png</idleImage>
  56. <idleImage>image/POPUP_LOADING_02.png</idleImage>
  57. <idleImage>image/POPUP_LOADING_03.png</idleImage>
  58. <idleImage>image/POPUP_LOADING_04.png</idleImage>
  59. <idleImage>image/POPUP_LOADING_05.png</idleImage>
  60. <idleImage>image/POPUP_LOADING_06.png</idleImage>
  61. <idleImage>image/POPUP_LOADING_07.png</idleImage>
  62. <idleImage>image/POPUP_LOADING_08.png</idleImage>
  63. <itemDisplay>
  64. <image>
  65. <script>
  66. idx = getQueryItemIndex();
  67. focus = getFocusItemIndex();
  68. if(focus==idx)
  69. {
  70. location = getItemInfo(idx, "location");
  71. annotation = getItemInfo(idx, "annotation");
  72. }
  73. getItemInfo(idx, "image");
  74. </script>
  75. <offsetXPC>
  76. <script>
  77. idx = getQueryItemIndex();
  78. focus = getFocusItemIndex();
  79. if(focus==idx) 5; else 12;
  80. </script>
  81. </offsetXPC>
  82. <offsetYPC>
  83. <script>
  84. idx = getQueryItemIndex();
  85. focus = getFocusItemIndex();
  86. if(focus==idx) 4; else 6;
  87. </script>
  88. </offsetYPC>
  89. <widthPC>
  90. <script>
  91. idx = getQueryItemIndex();
  92. focus = getFocusItemIndex();
  93. if(focus==idx) 90; else 75;
  94. </script>
  95. </widthPC>
  96. <heightPC>
  97. <script>
  98. idx = getQueryItemIndex();
  99. focus = getFocusItemIndex();
  100. if(focus==idx) 70; else 60;
  101. </script>
  102. </heightPC>
  103. </image>
  104. <text align="center" lines="1" offsetXPC=0 offsetYPC=82 widthPC=100 heightPC=12 useBackgroundSurface=yes>
  105. <script>
  106. idx = getQueryItemIndex();
  107. getItemInfo(idx, "title");
  108. </script>
  109. <fontSize>
  110. <script>
  111. idx = getQueryItemIndex();
  112. focus = getFocusItemIndex();
  113. if(focus==idx) "18"; else "14";
  114. </script>
  115. </fontSize>
  116. <foregroundColor>
  117. <script>
  118. idx = getQueryItemIndex();
  119. focus = getFocusItemIndex();
  120. if(focus==idx) "255:255:255"; else "75:75:75";
  121. </script>
  122. </foregroundColor>
  123. </text>
  124. </itemDisplay>
  125. <onUserInput>
  126. <script>
  127. ret = "false";
  128. userInput = currentUserInput();
  129. majorContext = getPageInfo("majorContext");
  130. print("*** majorContext=",majorContext);
  131. print("*** userInput=",userInput);
  132. if(userInput == "one" || userInput == "1")
  133. {
  134. if(itemCount &gt;= 1)
  135. {
  136. setFocusItemIndex(0);
  137. redrawDisplay();
  138. }
  139. }
  140. else if(userInput == "two" || userInput == "2")
  141. {
  142. if(itemCount &gt;= 2)
  143. {
  144. setFocusItemIndex(1);
  145. redrawDisplay();
  146. }
  147. }
  148. else if(userInput == "three" || userInput == "3")
  149. {
  150. if(itemCount &gt;= 3)
  151. {
  152. setFocusItemIndex(2);
  153. redrawDisplay();
  154. }
  155. }
  156. else if(userInput == "four" || userInput == "4")
  157. {
  158. if(itemCount &gt;= 4)
  159. {
  160. setFocusItemIndex(3);
  161. redrawDisplay();
  162. }
  163. }
  164. else if(userInput == "five" || userInput == "5")
  165. {
  166. if(itemCount &gt;= 5)
  167. {
  168. setFocusItemIndex(4);
  169. redrawDisplay();
  170. }
  171. }
  172. else if(userInput == "six" || userInput == "6")
  173. {
  174. if(itemCount &gt;= 6)
  175. {
  176. setFocusItemIndex(5);
  177. redrawDisplay();
  178. }
  179. }
  180. else if(userInput == "seven" || userInput == "7")
  181. {
  182. if(itemCount &gt;= 7)
  183. {
  184. setFocusItemIndex(6);
  185. redrawDisplay();
  186. }
  187. }
  188. else if(userInput == "eight" || userInput == "8")
  189. {
  190. if(itemCount &gt;= 8)
  191. {
  192. setFocusItemIndex(7);
  193. redrawDisplay();
  194. }
  195. }
  196. else if(userInput == "nine" || userInput == "9")
  197. {
  198. if(itemCount &gt;= 9)
  199. {
  200. setFocusItemIndex(8);
  201. redrawDisplay();
  202. }
  203. }
  204. if(userInput == "zero" || userInput == "0")
  205. {
  206. if(itemCount &gt;= 10)
  207. {
  208. setFocusItemIndex(9);
  209. redrawDisplay();
  210. }
  211. }
  212. else if (userInput == "pagedown" || userInput == "pageup" || userInput == "PD" || userInput == "PG")
  213. {
  214. itemSize = getPageInfo("itemCount");
  215. idx = Integer(getFocusItemIndex());
  216. if (userInput == "pagedown")
  217. {
  218. idx -= -5;
  219. if(idx &gt;= itemSize)
  220. idx = itemSize-1;
  221. }
  222. else
  223. {
  224. idx -= 5;
  225. if(idx &lt; 0)
  226. idx = 0;
  227. }
  228. setFocusItemIndex(idx);
  229. setItemFocus(idx);
  230. redrawDisplay();
  231. ret = "true";
  232. }
  233. ret;
  234. </script>
  235. </onUserInput>
  236. </mediaDisplay>
  237. <item_template>
  238. <mediaDisplay name="threePartsView" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10">
  239. <idleImage>image/POPUP_LOADING_01.png</idleImage>
  240. <idleImage>image/POPUP_LOADING_02.png</idleImage>
  241. <idleImage>image/POPUP_LOADING_03.png</idleImage>
  242. <idleImage>image/POPUP_LOADING_04.png</idleImage>
  243. <idleImage>image/POPUP_LOADING_05.png</idleImage>
  244. <idleImage>image/POPUP_LOADING_06.png</idleImage>
  245. <idleImage>image/POPUP_LOADING_07.png</idleImage>
  246. <idleImage>image/POPUP_LOADING_08.png</idleImage>
  247. </mediaDisplay>
  248. </item_template>
  249. <channel>
  250. <title>TV, Radio şi emisiuni Inregistrate</title>
  251. <item>
  252. <title>TV Live</title>
  253. <link><?php echo $host; ?>/scripts/tv/tv_live.php</link>
  254. <media:thumbnail url="/scripts/tv/image/tvlive.png" />
  255. <image>/scripts/tv/image/tvlive.png</image>
  256. <location></location>
  257. <annotation>Posturi TV din Romania sau din alte tari. Canale de stiri, muzica sau sport.</annotation>
  258. </item>
  259. <item>
  260. <title>Radio On Line</title>
  261. <link>/scripts/tv/radio.rss</link>
  262. <media:thumbnail url="/scripts/image/radio_online.png" />
  263. <image>/scripts/image/radio_online.png</image>
  264. <location></location>
  265. <annotation>Posturi de radio pe alese....</annotation>
  266. <mediaDisplay name="photoView" />
  267. </item>
  268. <item>
  269. <title>OneHD</title>
  270. <link><?php echo $host; ?>/scripts/tv/prahovahd.php</link>
  271. <media:thumbnail url="/scripts/tv/image/onehd.png" />
  272. <image>/scripts/tv/image/onehd.png</image>
  273. <location>http://live.1hd.ro/</location>
  274. <annotation>One HD - prima televiziune online HD - o alternativa la televiziunea clasica, promoveaza emisiuni culturale, de divertisment, business, turism, experimentale, disponibile atat live cat si on-demand (VOD).</annotation>
  275. </item>
  276. <item>
  277. <title>Posturi nationale</title>
  278. <link><?php echo $host; ?>/scripts/tv/nationale.php</link>
  279. <media:thumbnail url="image/tv_radio.png" />
  280. <image>/scripts/image/tv_radio.png</image>
  281. <location></location>
  282. <annotation>Inregistrari emisiuni TV ale posturilor nationale.</annotation>
  283. <mediaDisplay name="photoView"/>
  284. </item>
  285. <item>
  286. <title>Posturi locale</title>
  287. <link><?php echo $host; ?>/scripts/tv/locale.php</link>
  288. <media:thumbnail url="image/tv_radio.png" />
  289. <image>/scripts/image/tv_radio.png</image>
  290. <location></location>
  291. <annotation>Stiri si emisiuni inregistrate, difuzate de posturile TV locale.</annotation>
  292. <mediaDisplay name="photoView"/>
  293. </item>
  294. <item>
  295. <title>Emisiuni Sportive</title>
  296. <link><?php echo $host; ?>/scripts/tv/tv_sport.php</link>
  297. <media:thumbnail url="/scripts/tv/image/sport.jpg" />
  298. <image>/scripts/tv/image/sport.jpg</image>
  299. <location></location>
  300. <annotation>Inregistrari evenimente sportive. Fotbal si nu numai...</annotation>
  301. <mediaDisplay name="photoView"/>
  302. </item>
  303. </channel>
  304. </rss>