PageRenderTime 55ms CodeModel.GetById 31ms app.highlight 19ms RepoModel.GetById 1ms app.codeStats 1ms

/tv/nationale.php

https://code.google.com/p/hdforall/
PHP | 456 lines | 420 code | 35 blank | 1 comment | 84 complexity | 8cf2933441feea01ce9acf907ec07260 MD5 | raw file
  1#!/usr/local/bin/Resource/www/cgi-bin/php
  2<?php echo "<?xml version='1.0' encoding='UTF8' ?>";
  3$host = "http://127.0.0.1/cgi-bin";
  4?>
  5<rss version="2.0">
  6<onEnter>
  7  startitem = "middle";
  8  setRefreshTime(1);
  9</onEnter>
 10
 11<onRefresh>
 12  setRefreshTime(-1);
 13  itemCount = getPageInfo("itemCount");
 14  middleItem = Integer(itemCount / 2);
 15  redrawDisplay();
 16</onRefresh>
 17
 18	<mediaDisplay name=photoView
 19	  centerXPC=7
 20		centerYPC=30
 21		centerHeightPC=40
 22columnCount=5
 23	  rowCount=1
 24		menuBorderColor="55:55:55"
 25		sideColorBottom="0:0:0"
 26		sideColorTop="0:0:0"
 27	  backgroundColor="0:0:0"
 28		imageBorderColor="0:0:0"
 29		itemBackgroundColor="0:0:0"
 30		itemGapXPC=0
 31		itemGapYPC=1
 32		sideTopHeightPC=22
 33		bottomYPC=85
 34		sliding=yes
 35		showHeader=no
 36		showDefaultInfo=no
 37		idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10">
 38
 39  	<text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="20" fontSize="30" backgroundColor="10:105:150" foregroundColor="100:200:255">
 40		  <script>getPageInfo("pageTitle");</script>
 41		</text>
 42
 43  	<text redraw="yes" offsetXPC="85" offsetYPC="12" widthPC="10" heightPC="6" fontSize="20" backgroundColor="10:105:150" foregroundColor="60:160:205">
 44		  <script>sprintf("%s / ", focus-(-1))+itemCount;</script>
 45		</text>
 46
 47		<!--  lines="5" fontSize=15 -->
 48		<text align="center" redraw="yes"
 49  lines=3 fontSize=17
 50		      offsetXPC=5 offsetYPC=65 widthPC=90 heightPC=20
 51		      backgroundColor=0:0:0 foregroundColor=120:120:120>
 52			<script>print(annotation); annotation;</script>
 53		</text>
 54
 55		<text align="center" redraw="yes" offsetXPC=10 offsetYPC=85 widthPC=80 heightPC=10 fontSize=15 backgroundColor=0:0:0 foregroundColor=75:75:75>
 56			<script>print(location); location;</script>
 57		</text>
 58        <idleImage>image/POPUP_LOADING_01.png</idleImage>
 59        <idleImage>image/POPUP_LOADING_02.png</idleImage>
 60        <idleImage>image/POPUP_LOADING_03.png</idleImage>
 61        <idleImage>image/POPUP_LOADING_04.png</idleImage>
 62        <idleImage>image/POPUP_LOADING_05.png</idleImage>
 63        <idleImage>image/POPUP_LOADING_06.png</idleImage>
 64        <idleImage>image/POPUP_LOADING_07.png</idleImage>
 65        <idleImage>image/POPUP_LOADING_08.png</idleImage>
 66		<itemDisplay>
 67			<image>
 68				<script>
 69					idx = getQueryItemIndex();
 70					focus = getFocusItemIndex();
 71					if(focus==idx)
 72					{
 73					  location = getItemInfo(idx, "location");
 74					  annotation = getItemInfo(idx, "annotation");
 75					}
 76					getItemInfo(idx, "image");
 77				</script>
 78			 <offsetXPC>
 79			   <script>
 80					idx = getQueryItemIndex();
 81					focus = getFocusItemIndex();
 82			    if(focus==idx) 0; else 12;
 83			   </script>
 84			 </offsetXPC>
 85			 <offsetYPC>
 86			   <script>
 87					idx = getQueryItemIndex();
 88					focus = getFocusItemIndex();
 89			    if(focus==idx) 0; else 6;
 90			   </script>
 91			 </offsetYPC>
 92			 <widthPC>
 93			   <script>
 94					idx = getQueryItemIndex();
 95					focus = getFocusItemIndex();
 96			    if(focus==idx) 100; else 75;
 97			   </script>
 98			 </widthPC>
 99			 <heightPC>
100			   <script>
101					idx = getQueryItemIndex();
102					focus = getFocusItemIndex();
103			    if(focus==idx) 50; else 37;
104			   </script>
105			 </heightPC>
106			</image>
107
108			<text align="center" lines="4" offsetXPC=0 offsetYPC=55 widthPC=100 heightPC=45 backgroundColor=-1:-1:-1>
109				<script>
110					idx = getQueryItemIndex();
111					getItemInfo(idx, "title");
112				</script>
113				<fontSize>
114  				<script>
115  					idx = getQueryItemIndex();
116  					focus = getFocusItemIndex();
117  			    if(focus==idx) "18"; else "14";
118  				</script>
119				</fontSize>
120			  <foregroundColor>
121  				<script>
122  					idx = getQueryItemIndex();
123  					focus = getFocusItemIndex();
124  			    if(focus==idx) "255:255:255"; else "75:75:75";
125  				</script>
126			  </foregroundColor>
127			</text>
128
129		</itemDisplay>
130
131  <onUserInput>
132    <script>
133      ret = "false";
134      userInput = currentUserInput();
135      majorContext = getPageInfo("majorContext");
136
137      print("*** majorContext=",majorContext);
138      print("*** userInput=",userInput);
139
140      if(userInput == "one" || userInput == "1")
141      {
142        if(itemCount &gt;= 1)
143        {
144          setFocusItemIndex(0);
145          redrawDisplay();
146        }
147      }
148      else if(userInput == "two" || userInput == "2")
149      {
150        if(itemCount &gt;= 2)
151        {
152          setFocusItemIndex(1);
153          redrawDisplay();
154        }
155      }
156      else if(userInput == "three" || userInput == "3")
157      {
158        if(itemCount &gt;= 3)
159        {
160          setFocusItemIndex(2);
161          redrawDisplay();
162        }
163      }
164      else if(userInput == "four" || userInput == "4")
165      {
166        if(itemCount &gt;= 4)
167        {
168          setFocusItemIndex(3);
169          redrawDisplay();
170        }
171      }
172      else if(userInput == "five" || userInput == "5")
173      {
174        if(itemCount &gt;= 5)
175        {
176          setFocusItemIndex(4);
177          redrawDisplay();
178        }
179      }
180      else if(userInput == "six" || userInput == "6")
181      {
182        if(itemCount &gt;= 6)
183        {
184          setFocusItemIndex(5);
185          redrawDisplay();
186        }
187      }
188      else if(userInput == "seven" || userInput == "7")
189      {
190        if(itemCount &gt;= 7)
191        {
192          setFocusItemIndex(6);
193          redrawDisplay();
194        }
195      }
196      else if(userInput == "eight" || userInput == "8")
197      {
198        if(itemCount &gt;= 8)
199        {
200          setFocusItemIndex(7);
201          redrawDisplay();
202        }
203      }
204      else if(userInput == "nine" || userInput == "9")
205      {
206        if(itemCount &gt;= 9)
207        {
208          setFocusItemIndex(8);
209          redrawDisplay();
210        }
211      }
212      if(userInput == "zero" || userInput == "0")
213      {
214        if(itemCount &gt;= 10)
215        {
216          setFocusItemIndex(9);
217          redrawDisplay();
218        }
219      }
220      else if (userInput == "pagedown" || userInput == "pageup" || userInput == "PD" || userInput == "PG")
221      {
222        itemSize = getPageInfo("itemCount");
223        idx = Integer(getFocusItemIndex());
224        if (userInput == "pagedown")
225        {
226          idx -= -5;
227          if(idx &gt;= itemSize)
228            idx = itemSize-1;
229        }
230        else
231        {
232          idx -= 5;
233          if(idx &lt; 0)
234            idx = 0;
235        }
236        setFocusItemIndex(idx);
237        setItemFocus(idx);
238        redrawDisplay();
239        ret = "true";
240      }
241
242      ret;
243    </script>
244  </onUserInput>
245
246	</mediaDisplay>
247
248	<item_template>
249		<mediaDisplay  name="threePartsView" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10">
250        <idleImage>image/POPUP_LOADING_01.png</idleImage>
251        <idleImage>image/POPUP_LOADING_02.png</idleImage>
252        <idleImage>image/POPUP_LOADING_03.png</idleImage>
253        <idleImage>image/POPUP_LOADING_04.png</idleImage>
254        <idleImage>image/POPUP_LOADING_05.png</idleImage>
255        <idleImage>image/POPUP_LOADING_06.png</idleImage>
256        <idleImage>image/POPUP_LOADING_07.png</idleImage>
257        <idleImage>image/POPUP_LOADING_08.png</idleImage>
258		</mediaDisplay>
259
260	</item_template>
261  <channel>
262
263    <title>Emisiuni posturi nationale</title>
264
265<item>
266<title>Antena 1</title>
267<link><?php echo $host; ?>/scripts/tv/php/antena1_main.php</link>
268<media:thumbnail url="/usr/local/etc/www/cgi-bin/scripts/tv/image/antena1.jpg" />
269<image>/usr/local/etc/www/cgi-bin/scripts/tv/image/antena1.jpg</image>
270<location>http://www.a1.ro/</location>
271<annotation>Tot ce va intereseaza: stiri, vedete, program tv, evenimente, noutati auto, sport si nu numai. O colectie de informatii necesara oricarui roman. Antena 1 - Mereu Aproape</annotation>
272<mediaDisplay name="photoView"/>
273</item>
274
275<item>
276<title>Antena2</title>
277<link><?php echo $host; ?>/scripts/tv/php/antena2_main.php</link>
278<media:thumbnail url="/usr/local/etc/www/cgi-bin/scripts/tv/image/antena2.jpg" />
279<image>/usr/local/etc/www/cgi-bin/scripts/tv/image/antena2.jpg</image>
280<location>http://antena2.ro/</location>
281<annotation>Programe LIVE,  reactii, replici, emotii, nervii, toate autentice si necenzurate</annotation>
282</item>
283
284<item>
285<title>Antena3</title>
286<link><?php echo $host; ?>/scripts/tv/php/ant3_main.php</link>
287<media:thumbnail url="/usr/local/etc/www/cgi-bin/scripts/tv/image/antena3.jpg" />
288<image>/usr/local/etc/www/cgi-bin/scripts/tv/image/antena3.jpg</image>
289<location>http://www.antena3.ro/</location>
290<annotation>Specialisti in stiri, prima optiune pentru stiri online in timp real din Romania si din lume</annotation>
291</item>
292
293<item>
294<title>ProTV</title>
295<link>/usr/local/etc/www/cgi-bin/scripts/tv/php/protv_main.rss</link>
296<media:thumbnail url="/usr/local/etc/www/cgi-bin/scripts/tv/image/protv.jpg" />
297<image>/usr/local/etc/www/cgi-bin/scripts/tv/image/protv.jpg</image>
298<location>http://www.protv.ro/</location>
299<annotation>Vezi aici emisiuni inregistrate ale postului TV ProTV</annotation>
300</item>
301
302<item>
303<title>AcasaTV</title>
304<link><?php echo $host; ?>/scripts/tv/acasatv.php</link>
305<media:thumbnail url="/usr/local/etc/www/cgi-bin/scripts/tv/image/acasatv.jpg" />
306<image>/usr/local/etc/www/cgi-bin/scripts/tv/image/acasatv.jpg</image>
307<location>http://www.acasatv.ro/</location>
308<annotation>Ultimele stiri despre telenovele, vedete, moda, frumusete, dieta si  familie</annotation>
309</item>
310
311<item>
312<title>National 24 Plus</title>
313<link><?php echo $host; ?>/scripts/tv/php/n24_main.php</link>
314<media:thumbnail url="/usr/local/etc/www/cgi-bin/scripts/tv/image/n24.png" />
315<image>/usr/local/etc/www/cgi-bin/scripts/tv/image/n24.png</image>
316<location>http://www.n24plus.ro/</location>
317<annotation>National TV - mai ceva ca-n viata!</annotation>
318</item>
319
320<item>
321<title>Na??ional TV</title>
322<link><?php echo $host; ?>/scripts/tv/php/national_main.php</link>
323<media:thumbnail url="/usr/local/etc/www/cgi-bin/scripts/tv/image/national.jpg" />
324<image>/usr/local/etc/www/cgi-bin/scripts/tv/image/national.jpg</image>
325<location>http://www.nationaltv.ro/</location>
326<annotation>Na??ional 24 Plus : filmele rom??ne?&#x;ti, emisiunile ?&#x;i serialele tale preferate</annotation>
327</item>
328
329<item>
330<title>DolceTV - Emisiuni</title>
331<link><?php echo $host; ?>/scripts/tv/php/dolce_e_main.php</link>
332<media:thumbnail url="/usr/local/etc/www/cgi-bin/scripts/tv/image/dolce.jpg" />
333<image>/usr/local/etc/www/cgi-bin/scripts/tv/image/dolce.jpg</image>
334<location>http://www.dolcetv.ro/emisiuni-tv</location>
335<annotation>Emisiuni TV - Dolce WebTV: - Prima, Realitatea si altele</annotation>
336<mediaDisplay name="threePartsView"/>
337</item>
338
339<item>
340<title>RealitateaTV</title>
341<link><?php echo $host; ?>/scripts/tv/php/realitateatv_main.php</link>
342<media:thumbnail url="/usr/local/etc/www/cgi-bin/scripts/tv/image/realitateatv.gif" />
343<image>/usr/local/etc/www/cgi-bin/scripts/tv/image/realitateatv.gif</image>
344<location>http://www.realitatea.net/tv</location>
345<annotation>Site-ul de stiri nr. 1 in Romania iti ofera informatia proaspata corecta obiectiva si documentata despre stirile de ultima ora.</annotation>
346</item>
347
348<item>
349<title>Romania TV</title>
350<link><?php echo $host; ?>/scripts/tv/php/rtv_main.php</link>
351<media:thumbnail url="/usr/local/etc/www/cgi-bin/scripts/tv/image/rtv.png" />
352<image>/usr/local/etc/www/cgi-bin/scripts/tv/image/rtv.png</image>
353<location>http://www.rtv.net/</location>
354<annotation>RTV.NET | Romania TV | Noi dam stirea exacta!:</annotation>
355</item>
356
357<item>
358<title>B1 TV</title>
359<link><?php echo $host; ?>/scripts/tv/php/b1_main.php</link>
360<media:thumbnail url="/usr/local/etc/www/cgi-bin/scripts/tv/image/b1.png" />
361<image>/usr/local/etc/www/cgi-bin/scripts/tv/image/b1.png</image>
362<location>http://inregistrari.b1.ro</location>
363<annotation>stiri tv, stiri online, breaking news, news alert,  stiri mobile, stiri Romania, actualitate, politica, economie, life-show, meteo, auto, high-tech, opinii, sport, externe, shopping, tabloid, vedete, filme gratis, radio online</annotation>
364</item>
365
366<item>
367<title>Digi24</title>
368<link><?php echo $host; ?>/scripts/tv/php/digi24_main.php</link>
369<media:thumbnail url="/usr/local/etc/www/cgi-bin/scripts/tv/image/digi24.png" />
370<image>/usr/local/etc/www/cgi-bin/scripts/tv/image/digi24.png</image>
371<location>http://www.digi24.ro/video</location>
372<annotation>DIGI 24 | Articole video si stiri video</annotation>
373</item>
374
375<item>
376<title>Zona IT</title>
377<link><?php echo $host; ?>/scripts/php1/youtube_user.php?query=1,ArealIT</link>
378<media:thumbnail url="/usr/local/etc/www/cgi-bin/scripts/tv/image/zonait.jpg" />
379<image>/usr/local/etc/www/cgi-bin/scripts/tv/image/zonait.jpg</image>
380<location>http://www.arealit.tv/</location>
381<annotation>Zona IT este singura emisiune de IT difuzata in HD din Romania. Aici veti gasi teste Hardware si Software, Jocuri si Concursuri.</annotation>
382</item>
383
384<item>
385<title>tele-tv.info</title>
386<link><?php echo $host; ?>/scripts/tv/php/tele-tv.php?file=1,emisiuni,Emisiuni</link>
387<media:thumbnail url="/usr/local/etc/www/cgi-bin/scripts/tv/image/tele-tv.png" />
388<image>/usr/local/etc/www/cgi-bin/scripts/tv/image/tele-tv.png</image>
389<location>http://www.tele-tv.info</location>
390<annotation>Tv online, tv live, tv online gratis, webcam online, jocuri online, broadcast, programe tv online! - www.tele-tv.info:</annotation>
391</item>
392
393<item>
394<title>CancanTV</title>
395	<link><?php echo $host; ?>/scripts/clip/php/cancantv.php</link>
396	<location>http://www.kanald.ro/Emisiuni/Cancan-TV/</location>
397	<image>/usr/local/etc/www/cgi-bin/scripts/clip/image/cancan.jpg</image>
398	<media:thumbnail url="/usr/local/etc/www/cgi-bin/scripts/clip/image/cancan.jpg" />
399	<annotation>CANCAN TV, cel mai fierbinte show monden al momentului, se va difuza de luni pana joi de la 22.30. | Emisiunile Kanal D - Cancan TV - prezint? Andreea Mantea, Adrian Artene - edi?ii online, galerii foto si video, noutati.</annotation>
400</item>
401
402<item>
403<title>SensoTV</title>
404<link><?php echo $host; ?>/scripts/tv/php/sensotv.php?query=,http://www.sensotv.ro/arte/arte-vizuale/clipa-de-arta</link>
405<media:thumbnail url="/usr/local/etc/www/cgi-bin/scripts/tv/image/sensotv.png" />
406<image>/usr/local/etc/www/cgi-bin/scripts/tv/image/sensotv.png</image>
407<location>http://www.sensotv.ro/</location>
408<annotation>Senso TV este o televiziune online ce face parte dintr-un trust media, compus din 6 canale TV online: Arts Channel, Health Channel, Music Channel, Politic Channel, Extrem Sports Channel si Lifestyle Channel.</annotation>
409</item>
410
411<item>
412<title>Publika.Md</title>
413<link><?php echo $host; ?>/scripts/tv/php/publika.php</link>
414<media:thumbnail url="/usr/local/etc/www/cgi-bin/scripts/tv/image/publika.jpg" />
415<image>/usr/local/etc/www/cgi-bin/scripts/tv/image/publika.jpg</image>
416<location>http://publika.md/</location>
417<annotation>Site-ul de stiri care iti ofera informatia proaspata corecta obiectiva si documentata despre stirile de ultima ora.</annotation>
418</item>
419
420<item>
421<title>JurnalTV</title>
422<link><?php echo $host; ?>/scripts/tv/php/jurnaltv_main.php</link>
423<media:thumbnail url="/usr/local/etc/www/cgi-bin/scripts/tv/image/jurnaltv.jpg" />
424<image>/usr/local/etc/www/cgi-bin/scripts/tv/image/jurnaltv.jpg</image>
425<location>http://jurnaltv.md/</location>
426<annotation>JurnalTV - Prima televiziune de stiri din Republica Moldova</annotation>
427</item>
428
429<item>
430<title>privesc.eu</title>
431<link><?php echo $host; ?>/scripts/tv/php/privesc_main.php</link>
432<media:thumbnail url="/usr/local/etc/www/cgi-bin/scripts/tv/image/privesc.jpg" />
433<image>/usr/local/etc/www/cgi-bin/scripts/tv/image/privesc.jpg</image>
434<location>http://www.privesc.eu</location>
435<annotation>Privesc.eu</annotation>
436</item>
437<!--
438<item>
439<title>Curaj.TV</title>
440<link><?php echo $host; ?>/scripts/tv/php/curaj.php?query=1</link>
441<media:thumbnail url="/usr/local/etc/www/cgi-bin/scripts/tv/image/curaj.png" />
442<image>/usr/local/etc/www/cgi-bin/scripts/tv/image/curaj.png</image>
443<location>http://curaj.tv</location>
444<annotation>Curaj.TV - Media alternativa:</annotation>
445</item>
446-->
447<item>
448<title>EuforiaTV</title>
449<link><?php echo $host; ?>/scripts/tv/php/euforiatv.php</link>
450<media:thumbnail url="/usr/local/etc/www/cgi-bin/scripts/tv/image/euforiatv.gif" />
451<image>/usr/local/etc/www/cgi-bin/scripts/tv/image/euforiatv.gif</image>
452<location>http://www.euforia.tv/</location>
453<annotation>Euforia, lifestyle, hobby, fashion, retete culinare, sanatate, community</annotation>
454</item>
455</channel>
456</rss>