PageRenderTime 34ms CodeModel.GetById 20ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 0ms

/scripts/feeds/scripts_vb6/scripts/tv/locale.php

http://eboda-hd-for-all-500.googlecode.com/
PHP | 355 lines | 330 code | 25 blank | 0 comment | 84 complexity | bc2767701c1a1a1d455936c47a3d7554 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=30
 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 posturi locale</title>
263
264<item>
265<title>tvt89</title>
266<link><?php echo $host; ?>/scripts/tv/locale/tvt89.php</link>
267<media:thumbnail url="/scripts/tv/image/tvt89.jpg" />
268<image>/scripts/tv/image/tvt89.jpg</image>
269<location>http://tvt89.bridgeman.ro/index.php</location>
270<annotation>tvt89 a fost prima staţie de televiziune privată din România şi a rămas în conştiinţa publicului din vestul ţării, drept primul canal tv prin care s-au manifestat liber zilele revoluţiei române.</annotation>
271
272</item>
273
274<item>
275<title>1 TV Bacau</title>
276<link><?php echo $host; ?>/scripts/tv/locale/1tvbacau.php</link>
277<media:thumbnail url="/scripts/tv/image/1tvbacau.jpg" />
278<image>/scripts/tv/image/1tvbacau.jpg</image>
279<location>http://www.1tvbacau.ro/</location>
280<annotation>1 TV Bacau, post local de televiziune, prezintă evenimentele locale din ziua respectivă</annotation>
281</item>
282
283<item>
284<title>CTV media</title>
285<link><?php echo $host; ?>/scripts/tv/locale/ctvmedia.php</link>
286<media:thumbnail url="/scripts/tv/image/ctvmedia.jpg" />
287<image>/scripts/tv/image/ctvmedia.jpg</image>
288<location>http://www.ctvmedia.ro/</location>
289<annotation>CTV media, cel mai nou post de televiziune constantean</annotation>
290</item>
291
292<item>
293<title>TVSat</title>
294<link><?php echo $host; ?>/scripts/tv/locale/tvsatrm.php</link>
295<media:thumbnail url="/scripts/tv/image/tvsat.gif" />
296<image>/scripts/tv/image/tvsat.gif</image>
297<location>http://www.jurnal.tvsatrm.ro/</location>
298<annotation>Cele mai importante stiri din judetul Buzau. Jurnalul TVSat video, inregistrarile emisiunilor. TVSat Live!</annotation>
299</item>
300<!--
301<item>
302<title>Info TV</title>
303<link><?php echo $host; ?>/scripts/tv/locale/infotv.php</link>
304<media:thumbnail url="/scripts/tv/image/infotv.gif" />
305<image>/scripts/tv/image/infotv.gif</image>
306<location>http://www.infotv.ro/</location>
307<annotation>Info TV va ofera zilnic cele mai noi informatii din actualitatea locala Aradeana, incadrul jurnalului infotv. Emisiuni de actualitate, politica, social, cultura, sport, divertisment. Va oferim si micile informatii: meteo, curs valutar, tranzactii bursiere, anunturi.</annotation>
308</item>
309-->
310<item>
311<title>RTS</title>
312<link><?php echo $host; ?>/scripts/php1/youtube_user.php?query=1,rtseverin</link>
313<media:thumbnail url="/scripts/tv/image/televiziuneaseverin.png" />
314<image>/scripts/tv/image/televiziuneaseverin.png</image>
315<location>http://www.televiziuneaseverin.ro/rts4/</location>
316<annotation>RTS - Radioteleviziunea Severin</annotation>
317</item>
318
319<item>
320<title>Tele'M</title>
321<link><?php echo $host; ?>/scripts/tv/locale/telem_main.php</link>
322<media:thumbnail url="/scripts/tv/image/telem.png" />
323<image>/scripts/tv/image/telem.png</image>
324<location>http://www.telem.ro/telem/</location>
325<annotation>Televiziunea Tele'M Iaşi - informaţia deşteaptă</annotation>
326</item>
327
328<item>
329<title>BaricadaTV</title>
330<link><?php echo $host; ?>/scripts/clip/php/vimeo2.php?query=,4936621,BaricadaTV</link>
331<media:thumbnail url="/scripts/tv/image/baricadatv.jpg" />
332<image>/scripts/tv/image/baricadatv.jpg</image>
333<location>http://vimeo.com/user4936621/videos</location>
334<annotation>BaricadaTV. – revolutie in televiziune!</annotation>
335</item>
336
337<item>
338<title>eMaramures</title>
339<link><?php echo $host; ?>/scripts/tv/locale/emaramures.php</link>
340<media:thumbnail url="/scripts/tv/image/emaramures.jpg" />
341<image>/scripts/tv/image/emaramures.jpg</image>
342<location>http://www.emaramures.ro</location>
343<annotation>STIRI MARAMURES – ziar electronic actualizat non-stop cu stiri din Baia Mare, Sighet, Borsa, Targu Lapus...</annotation>
344</item>
345
346<item>
347<title>CNS Roman</title>
348<link><?php echo $host; ?>/scripts/php1/youtube_user.php?query=1,tvcns</link>
349<media:thumbnail url="/scripts/tv/image/cns.jpg" />
350<image>/scripts/tv/image/cns.jpg</image>
351<location>http://www.cnstv.ro/</location>
352<annotation>Televiziunea Roman CNS</annotation>
353</item>
354</channel>
355</rss>