PageRenderTime 27ms CodeModel.GetById 16ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 0ms

/scripts/feeds/scripts_vb6/scripts/tv/php/antena1_main.php

http://eboda-hd-for-all-500.googlecode.com/
PHP | 346 lines | 320 code | 26 blank | 0 comment | 84 complexity | b68647018b0f8a8fb6d386f5bc2c1586 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		idleImageWidthPC="10" 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>Antena1 - Emisiuni</title>
263
264<item>
265<title>In gura presei cu Mircea Badea</title>
266<link><?php echo $host; ?>/scripts/tv/php/antena1_igp_emisiuni.php</link>
267<media:thumbnail url="/scripts/tv/image/antena1_igp.jpg" />
268<image>/scripts/tv/image/antena1_igp.jpg</image>
269<location>http://ingurapresei.a1.ro/</location>
270<annotation>Despre politica, justitie, politia, pitipoance, Romania, viata de zi cu zi, ziare, autostrazi si multe multe altele. Cu comentariile lui amuzante sau amare, pornite de la subiectele abordate de presa in ziua respectiva, Mircea Badea spune ceea ce gandesc multi dintre romani, deranjand deseori mai-marii zilei si devenind una din vocile influente ale vietii publice.</annotation>
271</item>
272
273<item>
274<title>In puii mei cu Mihai Bendeac</title>
275<link><?php echo $host; ?>/scripts/tv/php/antena1_ipm_emisiuni.php</link>
276<media:thumbnail url="/scripts/tv/image/antena1_ipm.jpg" />
277<image>/scripts/tv/image/antena1_ipm.jpg</image>
278<location>http://inpuiimei.a1.ro/</location>
279<annotation>In pui mei, monden,florin piersic,inmormantare,reporteri,declaratii,afirmatii...</annotation>
280</item>
281
282<item>
283<title>Neatza cu Razvan si Dani</title>
284<link><?php echo $host; ?>/scripts/tv/php/antena1_neatza_emisiuni.php</link>
285<media:thumbnail url="/scripts/tv/image/antena1_neatza.jpg" />
286<image>/scripts/tv/image/antena1_neatza.jpg</image>
287<location>http://neatza.a1.ro/</location>
288<annotation>Neatza cu Razvan si Dani, Matinal Antena1</annotation>
289</item>
290
291<item>
292<title>Un show pacatos cu Dan Capatos</title>
293<link><?php echo $host; ?>/scripts/tv/php/antena1_pacatos_emisiuni.php</link>
294<media:thumbnail url="/scripts/tv/image/antena1_pacatos.jpg" />
295<image>/scripts/tv/image/antena1_pacatos.jpg</image>
296<location>http://unshowpacatos.a1.ro/</location>
297<annotation>Campionul noptilor albe face din nou Un Show Pacatos. De luni pana joi, cu un sfert de ora inainte de miezul noptii.</annotation>
298</item>
299
300<item>
301<title>Acces direct cu Simona Gherghe</title>
302<link><?php echo $host; ?>/scripts/tv/php/antena1_acces_emisiuni.php</link>
303<media:thumbnail url="/scripts/tv/image/antena1_acces.jpg" />
304<image>/scripts/tv/image/antena1_acces.jpg</image>
305<location>http://accesdirect.a1.ro/</location>
306<annotation>Acces direct cu Simona Gherghe, cel mai tare show de dupa-amiaza, Primii care au ajuns la adevaruri bine zavorate, Primii care ti-au oferit cu adevarat acces la toate chipurile vietii, Antena1</annotation>
307</item>
308
309<item>
310<title>Plasa de stele</title>
311<link><?php echo $host; ?>/scripts/tv/php/antena1_plasadestele.php</link>
312<media:thumbnail url="/scripts/tv/image/antena1.jpg" />
313<image>/scripts/tv/image/antena1.jpg</image>
314<location>http://plasadestele.a1.ro/</location>
315<annotation>Astazi la emisiunea lui Dan Negru, Plasa de stele de pe Antena 1, prima victima a fost Daniela Crudu. Aceasta s-a manifestat ca la ea in Ferentari... Oare de ce fac oamenii astia farse politicienilor  ca sa ii vedem in starea lor naturala.</annotation>
316</item>
317
318<item>
319<title>Next top model</title>
320<link><?php echo $host; ?>/scripts/tv/php/antena1_nexttopmodel.php</link>
321<media:thumbnail url="/scripts/tv/image/antena1.jpg" />
322<image>/scripts/tv/image/antena1.jpg</image>
323<location>http://nexttopmodel.a1.ro/</location>
324<annotation>Mii de fete au luptat pentru sansa vietii lor: un contract pe 4 ani, in valoare de 50.000 euro, cu cea mai mare agentie de modeling din Romania!</annotation>
325</item>
326
327<item>
328<title>Sa te prezint parintilor</title>
329<link><?php echo $host; ?>/scripts/tv/php/antena1_sa-te-prezint-parintilor.php</link>
330<media:thumbnail url="/scripts/tv/image/antena1.jpg" />
331<image>/scripts/tv/image/antena1.jpg</image>
332<location>http://www.a1.ro/emisiuni-tv/sa-te-prezint-parintilor-100276.html</location>
333<annotation>"Sa te prezint parintilor" a intrat, odata cu luna decembrie in cel de-al treilea sezon. Asa cum v-a obisnuit pana acum, veti avea parte de povesti tumultoase, situatii de viata dintre cele mai surprinzatoare si personaje inedite.</annotation>
334</item>
335
336<item>
337<title>Te pui cu blondele</title>
338<link><?php echo $host; ?>/scripts/tv/php/antena1_tepuicublondele.php</link>
339<media:thumbnail url="/scripts/tv/image/antena1.jpg" />
340<image>/scripts/tv/image/antena1.jpg</image>
341<location>http://tepuicublondele.a1.ro/</location>
342<annotation>Blondele au reusit sa-l invinga pe Prigoana si totodata au castigat si suma de bani pusa in joc.</annotation>
343</item>
344
345</channel>
346</rss>