PageRenderTime 19ms CodeModel.GetById 1ms app.highlight 14ms RepoModel.GetById 1ms app.codeStats 0ms

/clip/220.php

https://code.google.com/p/hdforall/
PHP | 288 lines | 248 code | 39 blank | 1 comment | 17 complexity | ee00e99d358622d3ccc4a4a294e61fc5 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$img = "/usr/local/etc/www/cgi-bin/scripts/clip/image/220.jpg";
  5?>
  6<rss version="2.0">
  7<onEnter>
  8  startitem = "middle";
  9  setRefreshTime(1);
 10</onEnter>
 11
 12<onRefresh>
 13  setRefreshTime(-1);
 14  itemCount = getPageInfo("itemCount");
 15</onRefresh>
 16
 17<mediaDisplay name="threePartsView"
 18	sideLeftWidthPC="0"
 19	sideRightWidthPC="0"
 20
 21	headerImageWidthPC="0"
 22	selectMenuOnRight="no"
 23	autoSelectMenu="no"
 24	autoSelectItem="no"
 25	itemImageHeightPC="0"
 26	itemImageWidthPC="0"
 27	itemXPC="8"
 28	itemYPC="25"
 29	itemWidthPC="50"
 30	itemHeightPC="8"
 31	capXPC="8"
 32	capYPC="25"
 33	capWidthPC="50"
 34	capHeightPC="64"
 35	itemBackgroundColor="0:0:0"
 36	itemPerPage="8"
 37  itemGap="0"
 38	bottomYPC="90"
 39	backgroundColor="0:0:0"
 40	showHeader="no"
 41	showDefaultInfo="no"
 42	imageFocus=""
 43	sliding="no"
 44   idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10"
 45>
 46
 47  	<text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="20" fontSize="30" backgroundColor="10:105:150" foregroundColor="100:200:255">
 48		  <script>getPageInfo("pageTitle");</script>
 49		</text>
 50
 51  	<text redraw="yes" offsetXPC="85" offsetYPC="12" widthPC="10" heightPC="6" fontSize="20" backgroundColor="10:105:150" foregroundColor="60:160:205">
 52		  <script>sprintf("%s / ", focus-(-1))+itemCount;</script>
 53		</text>
 54  	<text  redraw="yes" align="center" offsetXPC="0" offsetYPC="90" widthPC="100" heightPC="8" fontSize="17" backgroundColor="10:105:150" foregroundColor="100:200:255">
 55		  <script>print(annotation); annotation;</script>
 56		</text>
 57		<image  redraw="yes" offsetXPC=60 offsetYPC=35 widthPC=30 heightPC=30>
 58  <?php echo $img; ?>
 59		</image>
 60        <idleImage>image/POPUP_LOADING_01.png</idleImage>
 61        <idleImage>image/POPUP_LOADING_02.png</idleImage>
 62        <idleImage>image/POPUP_LOADING_03.png</idleImage>
 63        <idleImage>image/POPUP_LOADING_04.png</idleImage>
 64        <idleImage>image/POPUP_LOADING_05.png</idleImage>
 65        <idleImage>image/POPUP_LOADING_06.png</idleImage>
 66        <idleImage>image/POPUP_LOADING_07.png</idleImage>
 67        <idleImage>image/POPUP_LOADING_08.png</idleImage>
 68
 69		<itemDisplay>
 70			<text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100>
 71				<script>
 72					idx = getQueryItemIndex();
 73					focus = getFocusItemIndex();
 74					if(focus==idx)
 75					{
 76					  location = getItemInfo(idx, "location");
 77					  annotation = getItemInfo(idx, "title");
 78					}
 79					getItemInfo(idx, "title");
 80				</script>
 81				<fontSize>
 82  				<script>
 83  					idx = getQueryItemIndex();
 84  					focus = getFocusItemIndex();
 85  			    if(focus==idx) "16"; else "14";
 86  				</script>
 87				</fontSize>
 88			  <backgroundColor>
 89  				<script>
 90  					idx = getQueryItemIndex();
 91  					focus = getFocusItemIndex();
 92  			    if(focus==idx) "10:80:120"; else "-1:-1:-1";
 93  				</script>
 94			  </backgroundColor>
 95			  <foregroundColor>
 96  				<script>
 97  					idx = getQueryItemIndex();
 98  					focus = getFocusItemIndex();
 99  			    if(focus==idx) "255:255:255"; else "140:140:140";
100  				</script>
101			  </foregroundColor>
102			</text>
103
104		</itemDisplay>
105
106<onUserInput>
107<script>
108ret = "false";
109userInput = currentUserInput();
110
111if (userInput == "pagedown" || userInput == "pageup")
112{
113  idx = Integer(getFocusItemIndex());
114  if (userInput == "pagedown")
115  {
116    idx -= -8;
117    if(idx &gt;= itemCount)
118      idx = itemCount-1;
119  }
120  else
121  {
122    idx -= 8;
123    if(idx &lt; 0)
124      idx = 0;
125  }
126
127  print("new idx: "+idx);
128  setFocusItemIndex(idx);
129	setItemFocus(0);
130  redrawDisplay();
131  "true";
132}
133ret;
134</script>
135</onUserInput>
136
137	</mediaDisplay>
138	<searchLink>
139	  <link>
140	    <script>"<?php echo $host; ?>/scripts/clip/php/220_search.php?query=1," + urlEncode(keyword) + "," + urlEncode(keyword);</script>
141	  </link>
142	</searchLink>
143	<item_template>
144		<mediaDisplay  name="threePartsView" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10">
145        <idleImage>image/POPUP_LOADING_01.png</idleImage>
146        <idleImage>image/POPUP_LOADING_02.png</idleImage>
147        <idleImage>image/POPUP_LOADING_03.png</idleImage>
148        <idleImage>image/POPUP_LOADING_04.png</idleImage>
149        <idleImage>image/POPUP_LOADING_05.png</idleImage>
150        <idleImage>image/POPUP_LOADING_06.png</idleImage>
151        <idleImage>image/POPUP_LOADING_07.png</idleImage>
152        <idleImage>image/POPUP_LOADING_08.png</idleImage>
153		</mediaDisplay>
154
155	</item_template>
156<channel>
157<title>220.ro</title>
158
159<item>
160<title>C?utare</title>
161<onClick>
162  keyword = getInput();
163  if (keyword != null)
164  {
165    jumpToLink("searchLink");
166  }
167</onClick>
168</item>
169
170
171<item>
172<title>200.ro - shows</title>
173<link><?php echo $host; ?>/scripts/clip/php/220_show_main.php</link>
174</item>
175
176<item>
177<title>200.ro - selec?ii</title>
178<link><?php echo $host; ?>/scripts/clip/php/220.php?query=,http://www.220.ro/,Selectii</link>
179</item>
180
181<item>
182<title>200.ro - filmele zilei</title>
183<link><?php echo $host; ?>/scripts/clip/php/220.php?query=,http://www.220.ro/filmele-zilei/,Filmele+zilei</link>
184</item>
185
186<item>
187<title>200.ro - cele mai recente</title>
188<link><?php echo $host; ?>/scripts/clip/php/220.php?query=,http://www.220.ro/cele-mai-noi/,Cele+mai+recente</link>
189</item>
190
191<item>
192<title>200.ro - cele mai vizionate</title>
193<link><?php echo $host; ?>/scripts/clip/php/220.php?query=,http://www.220.ro/cele-mai-vazute/,Cele+mai+vizionate</link>
194</item>
195
196<item>
197<title>200.ro - cele mai comentate</title>
198<link><?php echo $host; ?>/scripts/clip/php/220.php?query=,http://www.220.ro/cele-mai-comentate/,Cele+mai+comentate</link>
199</item>
200
201<item>
202<title>Toate filmele</title>
203<link><?php echo $host; ?>/scripts/clip/php/220.php?query=,http://www.220.ro/video/,Toate+filmele</link>
204</item>
205
206<item>
207<title>Animale</title>
208<link><?php echo $host; ?>/scripts/clip/php/220.php?query=,http://www.220.ro/animale/,Animale</link>
209</item>
210
211<item>
212<title>Auto, moto</title>
213<link><?php echo $host; ?>/scripts/clip/php/220.php?query=,http://www.220.ro/auto/,Auto</link>
214</item>
215
216<item>
217<title>Cinema, movie trailers</title>
218<link><?php echo $host; ?>/scripts/clip/php/220.php?query=,http://www.220.ro/trailer/,Cinema</link>
219</item>
220
221<item>
222<title>Comedie, umor românesc</title>
223<link><?php echo $host; ?>/scripts/clip/php/220.php?query=,http://www.220.ro/umor-romanesc/,Comedie</link>
224</item>
225
226<item>
227<title>Desene animate</title>
228<link><?php echo $host; ?>/scripts/clip/php/220.php?query=,http://www.220.ro/desene-animate/,Desene+animate</link>
229</item>
230
231<item>
232<title>Emisiuni TV</title>
233<link><?php echo $host; ?>/scripts/clip/php/220.php?query=,http://www.220.ro/emisiuni-tv/,Emisiuni+TV</link>
234</item>
235
236<item>
237<title>Farse</title>
238<link><?php echo $host; ?>/scripts/clip/php/220.php?query=,http://www.220.ro/farse/,Farse</link>
239</item>
240
241<item>
242<title>Faze tari</title>
243<link><?php echo $host; ?>/scripts/clip/php/220.php?query=,http://www.220.ro/faze-tari/,Faze+tari</link>
244</item>
245
246<item>
247<title>Funny</title>
248<link><?php echo $host; ?>/scripts/clip/php/220.php?query=,http://www.220.ro/funny/,Funny</link>
249</item>
250
251<item>
252<title>Interzis la birou</title>
253<link><?php echo $host; ?>/scripts/clip/php/220.php?query=,http://www.220.ro/sexy/,Interzis+la+birou</link>
254</item>
255
256<item>
257<title>Jocuri</title>
258<link><?php echo $host; ?>/scripts/clip/php/220.php?query=,http://www.220.ro/gaming/,Jocuri</link>
259</item>
260
261<item>
262<title>Muzic?, videoclipuri</title>
263<link><?php echo $host; ?>/scripts/clip/php/220.php?query=,http://www.220.ro/videoclipuri/,Muzica</link>
264</item>
265
266<item>
267<title>Prieteni, petreceri, clubbing</title>
268<link><?php echo $host; ?>/scripts/clip/php/220.php?query=,http://www.220.ro/party/,Prieteni</link>
269</item>
270
271<item>
272<title>Reclame</title>
273<link><?php echo $host; ?>/scripts/clip/php/220.php?query=,http://www.220.ro/reclame/,Reclame</link>
274</item>
275
276<item>
277<title>Sport</title>
278<link><?php echo $host; ?>/scripts/clip/php/220.php?query=,http://www.220.ro/sport/,Sport</link>
279</item>
280
281<item>
282<title>Vedete</title>
283<link><?php echo $host; ?>/scripts/clip/php/220.php?query=,http://www.220.ro/vedete/,Vedete</link>
284</item>
285
286
287</channel>
288</rss>