PageRenderTime 7ms CodeModel.GetById 1ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/scripts/feeds/scripts_vb6/scripts/tv/nationale.php

http://eboda-hd-for-all-500.googlecode.com/
PHP | 406 lines | 380 code | 26 blank | 0 comment | 84 complexity | a6ffd6db489b61ebc0e518c518b2cb94 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 nationale</title>
263
264<item>
265<title>Antena 1</title>
266<link><?php echo $host; ?>/scripts/tv/php/antena1_main.php</link>
267<media:thumbnail url="/scripts/tv/image/antena1.jpg" />
268<image>/scripts/tv/image/antena1.jpg</image>
269<location>http://www.a1.ro/</location>
270<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>
271<mediaDisplay name="photoView"/>
272</item>
273
274<item>
275<title>Antena2</title>
276<link><?php echo $host; ?>/scripts/tv/php/antena2_main.php</link>
277<media:thumbnail url="/scripts/tv/image/antena2.jpg" />
278<image>/scripts/tv/image/antena2.jpg</image>
279<location>http://antena2.ro/</location>
280<annotation>Programe LIVE,  reactii, replici, emotii, nervii, toate autentice si necenzurate</annotation>
281</item>
282<!--
283<item>
284<title>Antena3</title>
285<link><?php echo $host; ?>/scripts/tv/php/ant3_main.php</link>
286<media:thumbnail url="/scripts/tv/image/antena3.jpg" />
287<image>/scripts/tv/image/antena3.jpg</image>
288<location>http://www.antena3.ro/</location>
289<annotation>Specialisti in stiri, prima optiune pentru stiri online in timp real din Romania si din lume</annotation>
290</item>
291-->
292<item>
293<title>ProTV</title>
294<link><?php echo $host; ?>/scripts/tv/php/protv_main.php</link>
295<media:thumbnail url="/scripts/tv/image/protv.jpg" />
296<image>/scripts/tv/image/protv.jpg</image>
297<location>http://www.protv.ro/</location>
298<annotation>Vezi aici emisiuni inregistrate ale postului TV ProTV</annotation>
299</item>
300
301<item>
302<title>AcasaTV</title>
303<link><?php echo $host; ?>/scripts/tv/acasatv.php</link>
304<media:thumbnail url="/scripts/tv/image/acasatv.jpg" />
305<image>/scripts/tv/image/acasatv.jpg</image>
306<location>http://www.acasatv.ro/</location>
307<annotation>Ultimele stiri despre telenovele, vedete, moda, frumusete, dieta si  familie</annotation>
308</item>
309
310<item>
311<title>EuforiaTV</title>
312<link><?php echo $host; ?>/scripts/tv/php/euforiatv.php</link>
313<media:thumbnail url="/scripts/tv/image/euforiatv.gif" />
314<image>/scripts/tv/image/euforiatv.gif</image>
315<location>http://www.euforia.tv/</location>
316<annotation>Euforia, lifestyle, hobby, fashion, retete culinare, sanatate, community</annotation>
317</item>
318
319<item>
320<title>RealitateaTV</title>
321<link><?php echo $host; ?>/scripts/tv/php/realitateatv_main.php</link>
322<media:thumbnail url="/scripts/tv/image/realitateatv.gif" />
323<image>/scripts/tv/image/realitateatv.gif</image>
324<location>http://www.realitatea.net/tv</location>
325<annotation>Site-ul de stiri nr. 1 in Romania iti ofera informatia proaspata corecta obiectiva si documentata despre stirile de ultima ora.</annotation>
326</item>
327
328<item>
329<title>Money.ro WebTV</title>
330<link><?php echo $host; ?>/scripts/tv/php/money.php</link>
331<media:thumbnail url="/scripts/tv/image/money.gif" />
332<image>/scripts/tv/image/money.gif</image>
333<location>http://webtv.money.ro/</location>
334<annotation>Site-ul de stiri nr. 1 in Romania iti ofera informatia proaspata corecta obiectiva si documentata despre stirile de ultima ora.</annotation>
335</item>
336
337<item>
338<title>SensoTV</title>
339<link><?php echo $host; ?>/scripts/tv/sensotv.php</link>
340<media:thumbnail url="/scripts/tv/image/sensotv.png" />
341<image>/scripts/tv/image/sensotv.png</image>
342<location>http://www.sensotv.ro/</location>
343<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>
344</item>
345
346<item>
347<title>Publika.Md</title>
348<link><?php echo $host; ?>/scripts/tv/php/publika.php</link>
349<media:thumbnail url="/scripts/tv/image/publika.jpg" />
350<image>/scripts/tv/image/publika.jpg</image>
351<location>http://publika.md/</location>
352<annotation>Site-ul de stiri care iti ofera informatia proaspata corecta obiectiva si documentata despre stirile de ultima ora.</annotation>
353</item>
354
355<item>
356<title>JurnalTV</title>
357<link><?php echo $host; ?>/scripts/tv/php/jurnaltv_main.php</link>
358<media:thumbnail url="/scripts/tv/image/jurnaltv.jpg" />
359<image>/scripts/tv/image/jurnaltv.jpg</image>
360<location>http://jurnaltv.md/</location>
361<annotation>JurnalTV - Prima televiziune de stiri din Republica Moldova</annotation>
362</item>
363
364<item>
365<title>Cronica Carcotasilor</title>
366<link>http://cronica.primatv.ro/podcast/podcast.xml</link>
367<media:thumbnail url="image/tv_radio.png" />
368<image>/scripts/image/tv_radio.png</image>
369<location>http://cronica.primatv.ro/</location>
370<annotation>Site dedicat emisiunii de divertisment Cronica Carcotasilor difuzata pe PrimaTV si prezentata de Serban Huidu si Mihai Gainusa.</annotation>
371<mediaDisplay name="threePartsView"
372	itemBackgroundColor="0:0:0"
373	backgroundColor="0:0:0"
374	sideLeftWidthPC="0"
375	itemImageXPC="5"
376	itemXPC="20"
377	itemYPC="20"
378	itemWidthPC="65"
379	capWidthPC="70"
380	unFocusFontColor="101:101:101"
381	focusFontColor="255:255:255"
382	idleImageWidthPC="8"
383	idleImageHeightPC="10">
384        <idleImage>image/POPUP_LOADING_01.png</idleImage>
385        <idleImage>image/POPUP_LOADING_02.png</idleImage>
386        <idleImage>image/POPUP_LOADING_03.png</idleImage>
387        <idleImage>image/POPUP_LOADING_04.png</idleImage>
388        <idleImage>image/POPUP_LOADING_05.png</idleImage>
389        <idleImage>image/POPUP_LOADING_06.png</idleImage>
390        <idleImage>image/POPUP_LOADING_07.png</idleImage>
391        <idleImage>image/POPUP_LOADING_08.png</idleImage>
392		<backgroundDisplay>
393			<image  offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100>
394			image/mele/backgd.jpg
395			</image>
396		</backgroundDisplay>
397		<image  offsetXPC=0 offsetYPC=2.8 widthPC=100 heightPC=15.6>
398		image/mele/rss_title.jpg
399		</image>
400		<text  offsetXPC=20 offsetYPC=8 widthPC=70 heightPC=10 fontSize=20 backgroundColor=-1:-1:-1 foregroundColor=255:255:255>
401           Cronica Carcotasilor KissFM
402		</text>
403</mediaDisplay>
404</item>
405</channel>
406</rss>