PageRenderTime 22ms CodeModel.GetById 15ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 1ms

/scripts/feeds/scripts_vb6/scripts/tv/tv_live.php

http://eboda-hd-for-all-500.googlecode.com/
PHP | 293 lines | 264 code | 29 blank | 0 comment | 15 complexity | 5aca1d69aae94303f09687ffdbdf126c 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</onRefresh>
 14
 15<mediaDisplay name="threePartsView"
 16	sideLeftWidthPC="0"
 17	sideRightWidthPC="0"
 18
 19	headerImageWidthPC="0"
 20	selectMenuOnRight="no"
 21	autoSelectMenu="no"
 22	autoSelectItem="no"
 23	itemImageHeightPC="0"
 24	itemImageWidthPC="0"
 25	itemXPC="8"
 26	itemYPC="25"
 27	itemWidthPC="50"
 28	itemHeightPC="8"
 29	capXPC="8"
 30	capYPC="25"
 31	capWidthPC="50"
 32	capHeightPC="64"
 33	itemBackgroundColor="0:0:0"
 34	itemPerPage="8"
 35  itemGap="0"
 36	bottomYPC="90"
 37	backgroundColor="0:0:0"
 38	showHeader="no"
 39	showDefaultInfo="no"
 40	imageFocus=""
 41	sliding="no"
 42>
 43
 44  	<text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="20" fontSize="30" backgroundColor="10:105:150" foregroundColor="100:200:255">
 45		  <script>getPageInfo("pageTitle");</script>
 46		</text>
 47
 48  	<text redraw="yes" offsetXPC="85" offsetYPC="12" widthPC="10" heightPC="6" fontSize="20" backgroundColor="10:105:150" foregroundColor="60:160:205">
 49		  <script>sprintf("%s / ", focus-(-1))+itemCount;</script>
 50		</text>
 51  	<text  redraw="yes" align="center" offsetXPC="0" offsetYPC="90" widthPC="100" heightPC="8" fontSize="17" backgroundColor="10:105:150" foregroundColor="100:200:255">
 52		  <script>print(annotation); annotation;</script>
 53		</text>
 54		<image  redraw="yes" offsetXPC=60 offsetYPC=35 widthPC=30 heightPC=30>
 55  image/tv_radio.png
 56		</image>
 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
 66		<itemDisplay>
 67			<text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100>
 68				<script>
 69					idx = getQueryItemIndex();
 70					focus = getFocusItemIndex();
 71					if(focus==idx)
 72					{
 73					  annotation = getItemInfo(idx, "title");
 74					}
 75					getItemInfo(idx, "title");
 76				</script>
 77				<fontSize>
 78  				<script>
 79  					idx = getQueryItemIndex();
 80  					focus = getFocusItemIndex();
 81  			    if(focus==idx) "16"; else "14";
 82  				</script>
 83				</fontSize>
 84			  <backgroundColor>
 85  				<script>
 86  					idx = getQueryItemIndex();
 87  					focus = getFocusItemIndex();
 88  			    if(focus==idx) "10:80:120"; else "-1:-1:-1";
 89  				</script>
 90			  </backgroundColor>
 91			  <foregroundColor>
 92  				<script>
 93  					idx = getQueryItemIndex();
 94  					focus = getFocusItemIndex();
 95  			    if(focus==idx) "255:255:255"; else "140:140:140";
 96  				</script>
 97			  </foregroundColor>
 98			</text>
 99
100		</itemDisplay>
101
102<onUserInput>
103<script>
104ret = "false";
105userInput = currentUserInput();
106
107if (userInput == "pagedown" || userInput == "pageup")
108{
109  idx = Integer(getFocusItemIndex());
110  if (userInput == "pagedown")
111  {
112    idx -= -8;
113    if(idx &gt;= itemCount)
114      idx = itemCount-1;
115  }
116  else
117  {
118    idx -= 8;
119    if(idx &lt; 0)
120      idx = 0;
121  }
122
123  print("new idx: "+idx);
124  setFocusItemIndex(idx);
125	setItemFocus(0);
126  redrawDisplay();
127  "true";
128}
129ret;
130</script>
131</onUserInput>
132
133	</mediaDisplay>
134
135	<item_template>
136		<mediaDisplay  name="threePartsView" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10">
137        <idleImage>image/POPUP_LOADING_01.png</idleImage>
138        <idleImage>image/POPUP_LOADING_02.png</idleImage>
139        <idleImage>image/POPUP_LOADING_03.png</idleImage>
140        <idleImage>image/POPUP_LOADING_04.png</idleImage>
141        <idleImage>image/POPUP_LOADING_05.png</idleImage>
142        <idleImage>image/POPUP_LOADING_06.png</idleImage>
143        <idleImage>image/POPUP_LOADING_07.png</idleImage>
144        <idleImage>image/POPUP_LOADING_08.png</idleImage>
145		</mediaDisplay>
146
147	</item_template>
148  <channel>
149
150    <title>TV Live</title>
151
152<item>
153<title>TV Live - Romania</title>
154<link><?php echo $host; ?>/scripts/tv/tv_rom.php</link>
155<media:thumbnail url="image/tv_radio.png" />
156<mediaDisplay name="threePartsView"/>
157</item>
158
159<item>
160<title>TV Live - PBX Romania</title>
161<link><?php echo $host; ?>/scripts/tv/pbx.php</link>
162<media:thumbnail url="image/tv_radio.png" />
163<mediaDisplay name="threePartsView"/>
164</item>
165<!--
166<item>
167<title>Dolce TV</title>
168<link><?php echo $host; ?>/scripts/tv/dolce.php</link>
169<media:thumbnail url="image/tv_radio.png" />
170<mediaDisplay name="threePartsView"/>
171</item>
172
173<item>
174<title>Mediadirect</title>
175<link><?php echo $host; ?>/scripts/tv/mediadirect.php</link>
176<media:thumbnail url="image/tv_radio.png" />
177<mediaDisplay name="threePartsView"/>
178</item>
179
180<item>
181<title>TV Live - pe tari</title>
182<link><?php echo $host; ?>/scripts/tv/tv.php</link>
183<media:thumbnail url="image/tv_radio.png" />
184<mediaDisplay name="threePartsView"/>
185</item>
186-->
187<item>
188<title>TV Live - Muzica</title>
189<link><?php echo $host; ?>/scripts/tv/music_tv.php</link>
190<media:thumbnail url="image/tv_radio.png" />
191<mediaDisplay name="threePartsView"/>
192</item>
193
194<item>
195<title>TV Live - Sport</title>
196<link><?php echo $host; ?>/scripts/tv/tv_sport_live.php</link>
197<media:thumbnail url="image/tv_radio.png" />
198<mediaDisplay name="threePartsView"/>
199</item>
200
201<item>
202<title>TV Live - Canale Noi</title>
203<link><?php echo $host; ?>/scripts/tv/tv_new.php</link>
204<media:thumbnail url="image/tv_radio.png" />
205<mediaDisplay name="threePartsView"/>
206</item>
207
208<item>
209<title>Seeon TV</title>
210<link><?php echo $host; ?>/scripts/tv/seeontv.php?query=1,</link>
211<media:thumbnail url="image/tv_radio.png" />
212<mediaDisplay name="threePartsView"/>
213</item>
214<!--
215<item>
216<title>TV Live by vetem.shqiptv-ks.net</title>
217<link><?php echo $host; ?>/scripts/tv/vetem.php</link>
218<media:thumbnail url="image/tv_radio.png" />
219<mediaDisplay name="threePartsView"/>
220</item>
221-->
222<item>
223<title>TV Live from veetle.com (only LQ)</title>
224<link>/scripts/tv/veetle_main.rss</link>
225<media:thumbnail url="image/tv_radio.png" />
226<mediaDisplay name="threePartsView"/>
227</item>
228<!--
229<item>
230<title>TV Live from www.tvdez.com</title>
231<link>/scripts/tv/tvdez.rss</link>
232<media:thumbnail url="image/tv_radio.png" />
233<mediaDisplay name="threePartsView"/>
234</item>
235-->
236<item>
237<title>TV Live - Canale diverse (by Darby_Crash)</title>
238<link><?php echo $host; ?>/scripts/tv/tv_diverse_live.php</link>
239<media:thumbnail url="image/tv_radio.png" />
240<mediaDisplay name="threePartsView"/>
241</item>
242
243<item>
244<title>TV Live from www.wii-cast.tv</title>
245<link><?php echo $host; ?>/scripts/tv/wii-cast.php?query=1</link>
246<media:thumbnail url="image/tv_radio.png" />
247<mediaDisplay name="threePartsView"/>
248</item>
249
250<item>
251<title>TV Live from sovok.tv</title>
252<link>/scripts/tv/sovok.rss</link>
253<media:thumbnail url="image/tv_radio.png" />
254<mediaDisplay name="threePartsView"/>
255</item>
256
257<item>
258<title>TV Live from weeb.tv (Polski)</title>
259<link><?php echo $host; ?>/scripts/tv/php/weeb.php</link>
260<media:thumbnail url="image/tv_radio.png" />
261<mediaDisplay name="threePartsView"/>
262</item>
263
264<item>
265<title>TV Live - Deutschland</title>
266<link><?php echo $host; ?>/scripts/tv/german_tv.php</link>
267<media:thumbnail url="image/tv_radio.png" />
268<mediaDisplay name="threePartsView"/>
269</item>
270
271<item>
272<title>TV Live - ohlulz.com</title>
273<link><?php echo $host; ?>/scripts/tv/ohlulz.php</link>
274<media:thumbnail url="image/tv_radio.png" />
275<mediaDisplay name="threePartsView"/>
276</item>
277
278<item>
279<title>Russian TV 1</title>
280<link>/scripts/tv/rus.rss</link>
281<media:thumbnail url="image/tv_radio.png" />
282<mediaDisplay name="threePartsView"/>
283</item>
284
285<item>
286<title>Russian TV 2</title>
287<link>/scripts/tv/rus2.rss</link>
288<media:thumbnail url="image/tv_radio.png" />
289<mediaDisplay name="threePartsView"/>
290</item>
291
292</channel>
293</rss>