PageRenderTime 12ms CodeModel.GetById 2ms app.highlight 2ms RepoModel.GetById 2ms app.codeStats 0ms

/filme/desene.php

https://code.google.com/p/hdforall/
PHP | 213 lines | 192 code | 20 blank | 1 comment | 15 complexity | 458c4e8f9776b6aa6bd241b5c82e9535 MD5 | raw file
  1#!/usr/local/bin/Resource/www/cgi-bin/php
  2<?php echo "<?xml version='1.0' encoding='UTF-8' ?>";
  3$host = "http://127.0.0.1/cgi-bin";
  4?>
  5<rss version="2.0">
  6<onEnter>
  7  startitem = "middle";
  8  setRefreshTime(1);
  9</onEnter>
 10
 11<onRefresh>
 12  setRefreshTime(-1);
 13  itemCount = getPageInfo("itemCount");
 14</onRefresh>
 15
 16<mediaDisplay name="threePartsView"
 17	sideLeftWidthPC="0"
 18	sideRightWidthPC="0"
 19	
 20	headerImageWidthPC="0"
 21	selectMenuOnRight="no"
 22	autoSelectMenu="no"
 23	autoSelectItem="no"
 24	itemImageHeightPC="0"
 25	itemImageWidthPC="0"
 26	itemXPC="8"
 27	itemYPC="25"
 28	itemWidthPC="50"
 29	itemHeightPC="8"
 30	capXPC="8"
 31	capYPC="25"
 32	capWidthPC="50"
 33	capHeightPC="64"
 34	itemBackgroundColor="0:0:0"
 35	itemPerPage="8"
 36  itemGap="0"
 37	bottomYPC="90"
 38	backgroundColor="0:0:0"
 39	showHeader="no"
 40	showDefaultInfo="no"
 41	imageFocus=""
 42	sliding="no"
 43	idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10"
 44>
 45		
 46  	<text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="20" fontSize="30" backgroundColor="10:105:150" foregroundColor="100:200:255">
 47		  <script>getPageInfo("pageTitle");</script>
 48		</text>
 49
 50  	<text redraw="yes" offsetXPC="85" offsetYPC="12" widthPC="10" heightPC="6" fontSize="20" backgroundColor="10:105:150" foregroundColor="60:160:205">
 51		  <script>sprintf("%s / ", focus-(-1))+itemCount;</script>
 52		</text>
 53  	<text  redraw="yes" align="center" offsetXPC="0" offsetYPC="90" widthPC="100" heightPC="8" fontSize="17" backgroundColor="10:105:150" foregroundColor="100:200:255">
 54		  <script>print(annotation); annotation;</script>
 55		</text>
 56		<image  redraw="yes" offsetXPC=60 offsetYPC=35 widthPC=30 heightPC=30>
 57		/usr/local/etc/www/cgi-bin/scripts/filme/image/desene.png
 58		</image>
 59        <idleImage>image/POPUP_LOADING_01.png</idleImage>
 60        <idleImage>image/POPUP_LOADING_02.png</idleImage>
 61        <idleImage>image/POPUP_LOADING_03.png</idleImage>
 62        <idleImage>image/POPUP_LOADING_04.png</idleImage>
 63        <idleImage>image/POPUP_LOADING_05.png</idleImage>
 64        <idleImage>image/POPUP_LOADING_06.png</idleImage>
 65        <idleImage>image/POPUP_LOADING_07.png</idleImage>
 66        <idleImage>image/POPUP_LOADING_08.png</idleImage>
 67
 68		<itemDisplay>
 69			<text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100>
 70				<script>
 71					idx = getQueryItemIndex();
 72					focus = getFocusItemIndex();
 73					if(focus==idx) 
 74					{
 75					  location = getItemInfo(idx, "location");
 76					  annotation = getItemInfo(idx, "annotation");
 77					}
 78					getItemInfo(idx, "title");
 79				</script>
 80				<fontSize>
 81  				<script>
 82  					idx = getQueryItemIndex();
 83  					focus = getFocusItemIndex();
 84  			    if(focus==idx) "16"; else "14";
 85  				</script>
 86				</fontSize>
 87			  <backgroundColor>
 88  				<script>
 89  					idx = getQueryItemIndex();
 90  					focus = getFocusItemIndex();
 91  			    if(focus==idx) "10:80:120"; else "-1:-1:-1";
 92  				</script>
 93			  </backgroundColor>
 94			  <foregroundColor>
 95  				<script>
 96  					idx = getQueryItemIndex();
 97  					focus = getFocusItemIndex();
 98  			    if(focus==idx) "255:255:255"; else "140:140:140";
 99  				</script>
100			  </foregroundColor>
101			</text>
102
103		</itemDisplay>
104		
105<onUserInput>
106<script>
107ret = "false";
108userInput = currentUserInput();
109
110if (userInput == "pagedown" || userInput == "pageup")
111{
112  idx = Integer(getFocusItemIndex());
113  if (userInput == "pagedown")
114  {
115    idx -= -8;
116    if(idx &gt;= itemCount)
117      idx = itemCount-1;
118  }
119  else
120  {
121    idx -= 8;
122    if(idx &lt; 0)
123      idx = 0;
124  }
125
126  print("new idx: "+idx);
127  setFocusItemIndex(idx);
128	setItemFocus(0);
129  redrawDisplay();
130  "true";
131}
132ret;
133</script>
134</onUserInput>
135		
136	</mediaDisplay>
137	
138	<item_template>
139		<mediaDisplay  name="threePartsView" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10">
140        <idleImage>image/POPUP_LOADING_01.png</idleImage>
141        <idleImage>image/POPUP_LOADING_02.png</idleImage>
142        <idleImage>image/POPUP_LOADING_03.png</idleImage>
143        <idleImage>image/POPUP_LOADING_04.png</idleImage>
144        <idleImage>image/POPUP_LOADING_05.png</idleImage>
145        <idleImage>image/POPUP_LOADING_06.png</idleImage>
146        <idleImage>image/POPUP_LOADING_07.png</idleImage>
147        <idleImage>image/POPUP_LOADING_08.png</idleImage>
148		</mediaDisplay>
149
150	</item_template>
151<channel>
152	<title>Pentru copii</title>
153
154<item>
155<title>DeseneAnimate</title>
156<link><?php echo $host; ?>/scripts/filme/php/deseneanimate_main.php?query=1,</link>
157<annotation>http://deseneanimate.tv</annotation>
158<mediaDisplay name="threePartsView"/>
159</item>
160<!--
161<item>
162<title>JocuriCuBarbie</title>
163<link><?php echo $host; ?>/scripts/filme/php/jocuricubarbie_main.php</link>
164<annotation>http://www.jocuricubarbie.info/desene_animate.html</annotation>
165<mediaDisplay name="threePartsView"/>
166</item>
167-->
168<!--
169<item>
170<title>desene.veziserialeonline</title>
171<link><?php echo $host; ?>/scripts/filme/php/desene_veziserialeonline_main.php</link>
172<annotation>http://desene.veziserialeonline.info/tv-shows</annotation>
173<mediaDisplay name="threePartsView"/>
174</item>
175-->
176<item>
177<title>desene-animate</title>
178<link><?php echo $host; ?>/scripts/filme/php/desenele-copilariei_main.php</link>
179<annotation>http://desene-animate.info/</annotation>
180<mediaDisplay name="threePartsView"/>
181</item>
182
183<item>
184<title>desenele-copil??iei</title>
185<link><?php echo $host; ?>/scripts/filme/php/desenele-copilariei_main_o.php</link>
186<annotation>http://desenele-copilariei.net</annotation>
187<mediaDisplay name="threePartsView"/>
188</item>
189
190<item>
191<title>990 - desene animate</title>
192<link><?php echo $host; ?>/scripts/filme/php/990_desene_main.php</link>
193<annotation>http://www.990.ro/desene-animate.html</annotation>
194<mediaDisplay name="threePartsView"/>
195</item>
196
197<item>
198<title>Kinderfilme</title>
199<link><?php echo $host; ?>/scripts/filme/php/Kinderfilme.php</link>
200<annotation>http://youtube.com</annotation>
201<mediaDisplay name="threePartsView"/>
202</item>
203
204<item>
205<title>watchcartoononline</title>
206<link><?php echo $host; ?>/scripts/filme/php/watchcartoononline_main1.php</link>
207<annotation>http://www.watchcartoononline.com</annotation>
208<mediaDisplay name="threePartsView"/>
209</item>
210
211
212</channel>
213</rss>