PageRenderTime 25ms CodeModel.GetById 2ms app.highlight 18ms RepoModel.GetById 1ms app.codeStats 0ms

/scripts/feeds/scripts_vb6/scripts/mini1.php

http://eboda-hd-for-all-500.googlecode.com/
PHP | 345 lines | 334 code | 11 blank | 0 comment | 83 complexity | 6645ec6f03af58764f134ac37e06f60b 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);
  8columnCount=3
  9</onEnter>
 10
 11<onRefresh>
 12  setRefreshTime(-1);
 13  itemCount = getPageInfo("itemCount");
 14  redrawDisplay();
 15</onRefresh>
 16
 17	<mediaDisplay name=photoView 
 18	    centerXPC=7
 19		centerYPC=25
 20		centerHeightPC=60
 21        columnCount=3
 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="8" idleImageHeightPC="10" idleImageXPC="80" idleImageYPC="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		<text align="left" offsetXPC=5 offsetYPC=5 widthPC=75 heightPC=5 fontSize=15 backgroundColor=0:0:0 foregroundColor=120:120:120>
 47   Tips: Folositi tastele 1-9, Prev si Next pentru o navigare mai usoara! Apasati 0 pentru help.
 48		</text>
 49		<text align="center" redraw="yes" lines="4" offsetXPC=10 offsetYPC=85 widthPC=75 heightPC=15 fontSize=15 backgroundColor=0:0:0 foregroundColor=120:120:120>
 50			<script>print(annotation); annotation;</script>
 51		</text>		
 52        <idleImage>image/POPUP_LOADING_01.png</idleImage>
 53        <idleImage>image/POPUP_LOADING_02.png</idleImage>
 54        <idleImage>image/POPUP_LOADING_03.png</idleImage>
 55        <idleImage>image/POPUP_LOADING_04.png</idleImage>
 56        <idleImage>image/POPUP_LOADING_05.png</idleImage>
 57        <idleImage>image/POPUP_LOADING_06.png</idleImage>
 58        <idleImage>image/POPUP_LOADING_07.png</idleImage>
 59        <idleImage>image/POPUP_LOADING_08.png</idleImage>
 60		<itemDisplay>
 61			<image>
 62				<script>
 63					idx = getQueryItemIndex();
 64					focus = getFocusItemIndex();
 65					if(focus==idx) 
 66					{
 67					  annotation = getItemInfo(idx, "annotation");
 68					}
 69					getItemInfo(idx, "image");
 70				</script>
 71			 <offsetXPC>
 72			   <script>
 73					idx = getQueryItemIndex();
 74					focus = getFocusItemIndex();
 75			    if(focus==idx) 0; else 15;
 76			   </script>
 77			 </offsetXPC>
 78			 <offsetYPC>
 79			   <script>
 80					idx = getQueryItemIndex();
 81					focus = getFocusItemIndex();
 82			    if(focus==idx) 0; else 8;
 83			   </script>
 84			 </offsetYPC>
 85			 <widthPC>
 86			   <script>
 87					idx = getQueryItemIndex();
 88					focus = getFocusItemIndex();
 89			    if(focus==idx) 100; else 70;
 90			   </script>
 91			 </widthPC>
 92			 <heightPC>
 93			   <script>
 94					idx = getQueryItemIndex();
 95					focus = getFocusItemIndex();
 96			    if(focus==idx) 60; else 42;
 97			   </script>
 98			 </heightPC>
 99			</image>
100			
101			<text align="center" lines="3" offsetXPC=0 offsetYPC=65 widthPC=100 heightPC=35 backgroundColor=-1:-1:-1>
102				<script>
103					idx = getQueryItemIndex();
104					getItemInfo(idx, "title");
105				</script>
106				<fontSize>
107  				<script>
108  					idx = getQueryItemIndex();
109  					focus = getFocusItemIndex();
110  			    if(focus==idx) "22"; else "18";
111  				</script>
112				</fontSize>
113			  <foregroundColor>
114  				<script>
115  					idx = getQueryItemIndex();
116  					focus = getFocusItemIndex();
117  			    if(focus==idx) "255:255:255"; else "75:75:75";
118  				</script>
119			  </foregroundColor>
120			</text>
121
122		</itemDisplay>
123		
124  <onUserInput>
125    <script>
126      ret = "false";
127      userInput = currentUserInput();
128      majorContext = getPageInfo("majorContext");
129
130      print("*** majorContext=",majorContext);
131      print("*** userInput=",userInput);
132      if(userInput == "one" || userInput == "1")
133      {
134        if(itemCount &gt;= 1)
135        {
136          setFocusItemIndex(0);
137          redrawDisplay();
138        }
139      }
140      else if(userInput == "two" || userInput == "2")
141      {
142        if(itemCount &gt;= 2)
143        {
144          setFocusItemIndex(1);
145          redrawDisplay();
146        }
147      }
148      else if(userInput == "three" || userInput == "3")
149      {
150        if(itemCount &gt;= 3)
151        {
152          setFocusItemIndex(2);
153          redrawDisplay();
154        }
155      }
156      else if(userInput == "four" || userInput == "4")
157      {
158        if(itemCount &gt;= 4)
159        {
160          setFocusItemIndex(3);
161          redrawDisplay();
162        }
163      }
164      else if(userInput == "five" || userInput == "5")
165      {
166        if(itemCount &gt;= 5)
167        {
168          setFocusItemIndex(4);
169          redrawDisplay();
170        }
171      }
172      else if(userInput == "six" || userInput == "6")
173      {
174        if(itemCount &gt;= 6)
175        {
176          setFocusItemIndex(5);
177          redrawDisplay();
178        }
179      }
180      else if(userInput == "seven" || userInput == "7")
181      {
182        if(itemCount &gt;= 7)
183        {
184          setFocusItemIndex(6);
185          redrawDisplay();
186        }
187      }
188      else if(userInput == "eight" || userInput == "8")
189      {
190        if(itemCount &gt;= 8)
191        {
192          setFocusItemIndex(7);
193          redrawDisplay();
194        }
195      }
196      else if(userInput == "nine" || userInput == "9")
197      {
198        if(itemCount &gt;= 9)
199        {
200          setFocusItemIndex(8);
201          redrawDisplay();
202        }
203      }
204      if(userInput == "zero" || userInput == "0")
205      {
206      doModalRss("/scripts/util/help.rss");
207      ret="true";
208      }
209      else if (userInput == "pagedown" || userInput == "pageup" || userInput == "PD" || userInput == "PG")
210      {
211        itemSize = getPageInfo("itemCount");
212        idx = Integer(getFocusItemIndex());
213        if (userInput == "pagedown")
214        {
215          idx -= -10;
216          if(idx &gt;= itemSize)
217            idx = itemSize-1;
218        }
219        else
220        {
221          idx -= 10;
222          if(idx &lt; 0)
223            idx = 0;
224        }
225        setFocusItemIndex(idx);
226        setItemFocus(idx);
227        redrawDisplay();
228        ret = "true";
229      }
230
231      ret;
232    </script>
233  </onUserInput>
234		
235	</mediaDisplay>
236	
237	<item_template>
238		<mediaDisplay  name="threePartsView" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10">
239        <idleImage>image/POPUP_LOADING_01.png</idleImage>
240        <idleImage>image/POPUP_LOADING_02.png</idleImage>
241        <idleImage>image/POPUP_LOADING_03.png</idleImage>
242        <idleImage>image/POPUP_LOADING_04.png</idleImage>
243        <idleImage>image/POPUP_LOADING_05.png</idleImage>
244        <idleImage>image/POPUP_LOADING_06.png</idleImage>
245        <idleImage>image/POPUP_LOADING_07.png</idleImage>
246        <idleImage>image/POPUP_LOADING_08.png</idleImage>
247		</mediaDisplay>
248		<link>
249		  <script>getItemInfo(getQueryItemIndex(), "location");</script>
250		</link>
251	</item_template>
252<adultlink>
253<mediaDisplay name="photoView"/>
254<link>
255  <?php echo $host; ?>/scripts/adult/adult1325.php
256</link>
257</adultlink>
258<adultpass>
259<mediaDisplay name="onePartView" />
260<link>
261/usr/local/etc/www/cgi-bin/scripts/adult/adult.rss
262</link>
263</adultpass>
264<destination>
265<link>http://127.0.0.1/cgi-bin/scripts/mini1.php</link>
266<mediaDisplay name="photoView"/>
267</destination>
268  <channel>
269    <title>HDD Links</title>
270  <item>
271    <link><?php echo $host; ?>/scripts/trailer/trailer.php</link>
272    <title>Trailere filme şi jocuri</title>
273    <annotation>Vedeţi aici ultimele trailere pentru filme sau jocuri...</annotation>
274    <image>/scripts/image/trailerb.png</image>
275    <mediaDisplay name="photoView"/>
276  </item>
277  <item>
278    <link><?php echo $host; ?>/scripts/filme/filme.php</link>
279    <title>Filme online subtitrate</title>
280    <annotation>Vedeţi aici filme online cu subtitrare...</annotation>
281    <image>/scripts/filme/image/movies.png</image>
282    <mediaDisplay name="threePartsView"/>
283  </item>
284  <item>
285    <link><?php echo $host; ?>/scripts/filme/seriale.php</link>
286    <title>Seriale TV subtitrate</title>
287    <annotation>Vedeţi aici seriale TV cu subtitrare...</annotation>
288    <image>/scripts/filme/image/series.png</image>
289    <mediaDisplay name="threePartsView"/>
290  </item>
291  <item>
292    <link><?php echo $host; ?>/scripts/filme/desene.php</link>
293    <title>Pentru copii...</title>
294    <annotation>Pentru copii avem desene animate, povesti...</annotation>
295    <image>/scripts/filme/image/desene.png</image>
296    <mediaDisplay name="threePartsView"/>
297  </item>
298  <item>
299    <link><?php echo $host; ?>/scripts/clip/clip.php</link>
300    <title>Videoclipuri şi altele</title>
301    <annotation>Filmuleţe nostime, clipuri video şi altele</annotation>
302    <image>/scripts/image/videoclip.png</image>
303    <mediaDisplay name="photoView"/>
304  </item>
305  <item>
306    <link><?php echo $host; ?>/scripts/news/news.php</link>
307    <title>Ştiri şi alte informaţii</title>
308    <annotation>Vezi orarul serialelor, cursul valutar sau alte informaţii utile</annotation>
309    <image>/scripts/news/image/news.png</image>
310    <mediaDisplay name="photoView"/>
311  </item>
312  <item>
313    <link><?php echo $host; ?>/scripts/tv/tv_radio.php</link>
314    <title>TV, Radio şi emisiuni Inregistrate</title>
315    <annotation>Ascultă sau vezi postul tău de radio sau TV favorit. Ai ratat o emisiune? Aici poţi s-o găseşti!</annotation>
316    <image>/scripts/image/tv_radio.png</image>
317    <mediaDisplay name="photoView"/>
318  </item>
319  <item>
320    <link><?php echo $host; ?>/scripts/user/users.php</link>
321    <title>Conturi personale metafeeds</title>
322    <annotation>Ai un cont pe metafeeds? Aici putem să-l adăugăm!</annotation>
323    <image>/scripts/image/users.png</image>
324    <mediaDisplay name="threePartsView"/>
325  </item>
326  <item>
327		<link>rss_command://search</link>
328		<search url="<?php echo $host; ?>/scripts/adult/adult%s.php" />
329    <title>Canal adulţi</title>
330    <annotation>Numai pentru 18++! Necesită parolă. Intră pe http://forum.softpedia.com/index.php?showforum=14 pentru mai multe informaţii</annotation>
331    <image>/scripts/image/adult.png</image>
332    <mediaDisplay name="photoView"/>
333  </item>
334<!--
335  <item>
336    <link><?php echo $host; ?>/scripts/util/system.php</link>
337    <title>Utilitare player</title>
338    <annotation>Pornire-Oprire sever FTP, redenumire fişiere si alte unelte utile.</annotation>
339    <image>/scripts/image/system.png</image>
340    <mediaDisplay name="threePartsView"/>
341  </item>
342-->
343</channel>
344
345</rss>