PageRenderTime 28ms CodeModel.GetById 19ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 1ms

/scripts/feeds/scripts_vb6/scripts/tv/tv_sport.php

http://eboda-hd-for-all-500.googlecode.com/
PHP | 365 lines | 340 code | 25 blank | 0 comment | 84 complexity | 0a24ca52b618f3b3bd3ff12862ae82dc MD5 | raw file
  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
 10<onRefresh>
 11  setRefreshTime(-1);
 12  itemCount = getPageInfo("itemCount");
 13  middleItem = Integer(itemCount / 2);
 14  redrawDisplay();
 15</onRefresh>
 16
 17	<mediaDisplay name=photoView
 18	  centerXPC=7
 19		centerYPC=25
 20		centerHeightPC=40
 21columnCount=5
 22	  rowCount=1
 23		menuBorderColor="55:55:55"
 24		sideColorBottom="0:0:0"
 25		sideColorTop="0:0:0"
 26	  backgroundColor="0:0:0"
 27		imageBorderColor="0:0:0"
 28		itemBackgroundColor="0:0:0"
 29		itemGapXPC=0
 30		itemGapYPC=1
 31		sideTopHeightPC=22
 32		bottomYPC=85
 33		sliding=yes
 34		showHeader=no
 35		showDefaultInfo=no
 36		idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10">
 37
 38  	<text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="20" fontSize="30" backgroundColor="10:105:150" foregroundColor="100:200:255">
 39		  <script>getPageInfo("pageTitle");</script>
 40		</text>
 41
 42  	<text redraw="yes" offsetXPC="85" offsetYPC="12" widthPC="10" heightPC="6" fontSize="20" backgroundColor="10:105:150" foregroundColor="60:160:205">
 43		  <script>sprintf("%s / ", focus-(-1))+itemCount;</script>
 44		</text>
 45
 46		<!--  lines="5" fontSize=15 -->
 47		<text align="center" redraw="yes"
 48  lines=3 fontSize=17
 49		      offsetXPC=5 offsetYPC=65 widthPC=90 heightPC=20
 50		      backgroundColor=0:0:0 foregroundColor=120:120:120>
 51			<script>print(annotation); annotation;</script>
 52		</text>
 53
 54		<text align="center" redraw="yes" offsetXPC=10 offsetYPC=85 widthPC=80 heightPC=10 fontSize=15 backgroundColor=0:0:0 foregroundColor=75:75:75>
 55			<script>print(location); location;</script>
 56		</text>
 57        <idleImage>image/POPUP_LOADING_01.png</idleImage>
 58        <idleImage>image/POPUP_LOADING_02.png</idleImage>
 59        <idleImage>image/POPUP_LOADING_03.png</idleImage>
 60        <idleImage>image/POPUP_LOADING_04.png</idleImage>
 61        <idleImage>image/POPUP_LOADING_05.png</idleImage>
 62        <idleImage>image/POPUP_LOADING_06.png</idleImage>
 63        <idleImage>image/POPUP_LOADING_07.png</idleImage>
 64        <idleImage>image/POPUP_LOADING_08.png</idleImage>
 65		<itemDisplay>
 66			<image>
 67				<script>
 68					idx = getQueryItemIndex();
 69					focus = getFocusItemIndex();
 70					if(focus==idx)
 71					{
 72					  location = getItemInfo(idx, "location");
 73					  annotation = getItemInfo(idx, "annotation");
 74					}
 75					getItemInfo(idx, "image");
 76				</script>
 77			 <offsetXPC>
 78			   <script>
 79					idx = getQueryItemIndex();
 80					focus = getFocusItemIndex();
 81			    if(focus==idx) 0; else 12;
 82			   </script>
 83			 </offsetXPC>
 84			 <offsetYPC>
 85			   <script>
 86					idx = getQueryItemIndex();
 87					focus = getFocusItemIndex();
 88			    if(focus==idx) 0; else 6;
 89			   </script>
 90			 </offsetYPC>
 91			 <widthPC>
 92			   <script>
 93					idx = getQueryItemIndex();
 94					focus = getFocusItemIndex();
 95			    if(focus==idx) 100; else 75;
 96			   </script>
 97			 </widthPC>
 98			 <heightPC>
 99			   <script>
100					idx = getQueryItemIndex();
101					focus = getFocusItemIndex();
102			    if(focus==idx) 50; else 37;
103			   </script>
104			 </heightPC>
105			</image>
106
107			<text align="center" lines="4" offsetXPC=0 offsetYPC=55 widthPC=100 heightPC=45 backgroundColor=-1:-1:-1>
108				<script>
109					idx = getQueryItemIndex();
110					getItemInfo(idx, "title");
111				</script>
112				<fontSize>
113  				<script>
114  					idx = getQueryItemIndex();
115  					focus = getFocusItemIndex();
116  			    if(focus==idx) "18"; else "14";
117  				</script>
118				</fontSize>
119			  <foregroundColor>
120  				<script>
121  					idx = getQueryItemIndex();
122  					focus = getFocusItemIndex();
123  			    if(focus==idx) "255:255:255"; else "75:75:75";
124  				</script>
125			  </foregroundColor>
126			</text>
127
128		</itemDisplay>
129
130  <onUserInput>
131    <script>
132      ret = "false";
133      userInput = currentUserInput();
134      majorContext = getPageInfo("majorContext");
135
136      print("*** majorContext=",majorContext);
137      print("*** userInput=",userInput);
138
139      if(userInput == "one" || userInput == "1")
140      {
141        if(itemCount &gt;= 1)
142        {
143          setFocusItemIndex(0);
144          redrawDisplay();
145        }
146      }
147      else if(userInput == "two" || userInput == "2")
148      {
149        if(itemCount &gt;= 2)
150        {
151          setFocusItemIndex(1);
152          redrawDisplay();
153        }
154      }
155      else if(userInput == "three" || userInput == "3")
156      {
157        if(itemCount &gt;= 3)
158        {
159          setFocusItemIndex(2);
160          redrawDisplay();
161        }
162      }
163      else if(userInput == "four" || userInput == "4")
164      {
165        if(itemCount &gt;= 4)
166        {
167          setFocusItemIndex(3);
168          redrawDisplay();
169        }
170      }
171      else if(userInput == "five" || userInput == "5")
172      {
173        if(itemCount &gt;= 5)
174        {
175          setFocusItemIndex(4);
176          redrawDisplay();
177        }
178      }
179      else if(userInput == "six" || userInput == "6")
180      {
181        if(itemCount &gt;= 6)
182        {
183          setFocusItemIndex(5);
184          redrawDisplay();
185        }
186      }
187      else if(userInput == "seven" || userInput == "7")
188      {
189        if(itemCount &gt;= 7)
190        {
191          setFocusItemIndex(6);
192          redrawDisplay();
193        }
194      }
195      else if(userInput == "eight" || userInput == "8")
196      {
197        if(itemCount &gt;= 8)
198        {
199          setFocusItemIndex(7);
200          redrawDisplay();
201        }
202      }
203      else if(userInput == "nine" || userInput == "9")
204      {
205        if(itemCount &gt;= 9)
206        {
207          setFocusItemIndex(8);
208          redrawDisplay();
209        }
210      }
211      if(userInput == "zero" || userInput == "0")
212      {
213        if(itemCount &gt;= 10)
214        {
215          setFocusItemIndex(9);
216          redrawDisplay();
217        }
218      }
219      else if (userInput == "pagedown" || userInput == "pageup" || userInput == "PD" || userInput == "PG")
220      {
221        itemSize = getPageInfo("itemCount");
222        idx = Integer(getFocusItemIndex());
223        if (userInput == "pagedown")
224        {
225          idx -= -5;
226          if(idx &gt;= itemSize)
227            idx = itemSize-1;
228        }
229        else
230        {
231          idx -= 5;
232          if(idx &lt; 0)
233            idx = 0;
234        }
235        setFocusItemIndex(idx);
236        setItemFocus(idx);
237        redrawDisplay();
238        ret = "true";
239      }
240
241      ret;
242    </script>
243  </onUserInput>
244
245	</mediaDisplay>
246
247	<item_template>
248		<mediaDisplay  name="threePartsView" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10">
249        <idleImage>image/POPUP_LOADING_01.png</idleImage>
250        <idleImage>image/POPUP_LOADING_02.png</idleImage>
251        <idleImage>image/POPUP_LOADING_03.png</idleImage>
252        <idleImage>image/POPUP_LOADING_04.png</idleImage>
253        <idleImage>image/POPUP_LOADING_05.png</idleImage>
254        <idleImage>image/POPUP_LOADING_06.png</idleImage>
255        <idleImage>image/POPUP_LOADING_07.png</idleImage>
256        <idleImage>image/POPUP_LOADING_08.png</idleImage>
257		</mediaDisplay>
258
259	</item_template>
260  <channel>
261
262    <title>Emisiuni Sportive</title>
263<!--
264<item>
265<title>Sport.ro - Inregistrari</title>
266<link><?php echo $host; ?>/scripts/tv/sport_ro.php</link>
267<media:thumbnail url="/scripts/tv/image/sport_ro.gif" />
268<image></image>
269<location></location>
270<annotation></annotation>
271</item>
272-->
273<item>
274<title>Liga2.ro</title>
275<link><?php echo $host; ?>/scripts/tv/sport/liga2.php</link>
276<media:thumbnail url="/scripts/tv/image/liga2.gif" />
277<image>/scripts/tv/image/liga2.gif</image>
278<location>http://www.liga2.ro/</location>
279<annotation>Stiri din sport, informatii de ultima ora, comentarii si opinii din sport, bloguri de sport, clasamente actualizate, livescore, liga a doua, liga3</annotation>
280</item>
281
282<item>
283<title>sportgioco.it</title>
284<link><?php echo $host; ?>/scripts/tv/sport/sportgioco.php</link>
285<media:thumbnail url="/scripts/tv/image/sportgioco.jpg" />
286<image>/scripts/tv/image/sportgioco.jpg</image>
287<location>http://www.sportgioco.it/calcio/highlights.php</location>
288<annotation>Notizie sportive, informazioni, highlights video e tabelle comparative delle squadre di calcio. Tutti i calendari dei campionati di calcio con le quote dei bookmakers ed aggiornamenti sugli incontri di calcio</annotation>
289</item>
290
291<item>
292<title>www.footytube.com</title>
293<link><?php echo $host; ?>/scripts/tv/sport/footytube.php?query=0</link>
294<media:thumbnail url="/usr/local/etc/www/cgi-bin/scripts/tv/image/sportgioco.jpg" />
295<image>/usr/local/etc/www/cgi-bin/scripts/tv/image/footytube.png</image>
296<location>http://www.footytube.com</location>
297<annotation>footytube.com. Latest football highlights, clips and videos.</annotation>
298</item>
299
300<item>
301<title>DigiSport - youtube</title>
302<link><?php echo $host; ?>/scripts/php1/youtube_user.php?query=1,DigiSportTV</link>
303<image>/scripts/image/youtube.gif</image>
304<location>http://www.youtube.com/user/DigiSportTV</location>
305<annotation>DigiSport TV pe youtube</annotation>
306<media:thumbnail url="image/youtube.gif" />
307</item>
308
309<item>
310<title>Steaua Bucureşti</title>
311<link><?php echo $host; ?>/scripts/tv/sport/steaua.php</link>
312<media:thumbnail url="/scripts/tv/image/steaua.png" />
313<image>/scripts/tv/image/steaua.png</image>
314<location>http://www.steauafc.com/ro/arhiva_video/</location>
315<annotation>FCSB - site-ul oficial al FC Steaua Bucuresti.</annotation>
316</item>
317
318<item>
319<title>Dinamo Bucureşti</title>
320<link><?php echo $host; ?>/scripts/tv/sport/dinamo.php</link>
321<media:thumbnail url="/scripts/tv/image/dinamo.png" />
322<image>/scripts/tv/image/dinamo.png</image>
323<location>http://www.fcdinamo.ro/web/guest/galerii-video</location>
324<annotation>Site-ul oficial al echipei Dinamo Bucuresti. Include stiri, informatii, magazin virtual, fotografii, imnul Cainilor Rosii.</annotation>
325</item>
326
327<item>
328<title>CFR Cluj</title>
329<link><?php echo $host; ?>/scripts/tv/sport/cfr_cluj.php</link>
330<media:thumbnail url="/scripts/tv/image/cfr_cluj.png" />
331<image>/scripts/tv/image/cfr_cluj.png</image>
332<location>http://www.cfr1907.ro/ro/multimedia/video/</location>
333<annotation>CFR Cluj este un club de fotbal din Rom᭩a, ���iintat ���anul 1907 ���orasul Cluj</annotation>
334</item>
335<!--
336<item>
337<title>sportitalia</title>
338<link><?php echo $host; ?>/scripts/tv/sport/sportitalia.php</link>
339<media:thumbnail url="/scripts/tv/image/sportitalia.jpg" />
340<image></image>
341<location></location>
342<annotation></annotation>
343</item>
344-->
345<item>
346<title>Bing</title>
347<link><?php echo $host; ?>/scripts/tv/bing_sport.php</link>
348<media:thumbnail url="/scripts/tv/image/bing.jpg" />
349<image>/scripts/tv/image/bing.jpg</image>
350<location>http://www.bing.com/</location>
351<annotation>FOX Soccer Channel, NBA, NHL, NFL, MLB, College Football, College Basketball</annotation>
352</item>
353
354<item>
355<title>NBA</title>
356<link><?php echo $host; ?>/scripts/php1/youtube_user.php?query=1,nba</link>
357<media:thumbnail url="image/youtube.gif" />
358<image>/scripts/image/youtube.gif</image>
359<location>http://www.youtube.com/user/NBA</location>
360<annotation>Official channel of the NBA.</annotation>
361</item>
362
363
364</channel>
365</rss>