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

/scripts/feeds/scripts_vb6/scripts/filme/990.php

http://eboda-hd-for-all-500.googlecode.com/
PHP | 190 lines | 171 code | 19 blank | 0 comment | 15 complexity | 58801ebd2e89add6b9b6add01d7693aa 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	idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10"
 43>
 44		
 45  	<text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="20" fontSize="30" backgroundColor="10:105:150" foregroundColor="100:200:255">
 46		  <script>getPageInfo("pageTitle");</script>
 47		</text>
 48
 49  	<text redraw="yes" offsetXPC="85" offsetYPC="12" widthPC="10" heightPC="6" fontSize="20" backgroundColor="10:105:150" foregroundColor="60:160:205">
 50		  <script>sprintf("%s / ", focus-(-1))+itemCount;</script>
 51		</text>
 52  	<text  redraw="yes" align="center" offsetXPC="0" offsetYPC="90" widthPC="100" heightPC="8" fontSize="17" backgroundColor="10:105:150" foregroundColor="100:200:255">
 53		  <script>print(annotation); annotation;</script>
 54		</text>
 55		<image  redraw="yes" offsetXPC=60 offsetYPC=35 widthPC=30 heightPC=30>
 56		image/movies.png
 57		</image>
 58        <idleImage>image/POPUP_LOADING_01.png</idleImage>
 59        <idleImage>image/POPUP_LOADING_02.png</idleImage>
 60        <idleImage>image/POPUP_LOADING_03.png</idleImage>
 61        <idleImage>image/POPUP_LOADING_04.png</idleImage>
 62        <idleImage>image/POPUP_LOADING_05.png</idleImage>
 63        <idleImage>image/POPUP_LOADING_06.png</idleImage>
 64        <idleImage>image/POPUP_LOADING_07.png</idleImage>
 65        <idleImage>image/POPUP_LOADING_08.png</idleImage>
 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					  location = getItemInfo(idx, "location");
 74					  annotation = getItemInfo(idx, "title");
 75					}
 76					getItemInfo(idx, "title");
 77				</script>
 78				<fontSize>
 79  				<script>
 80  					idx = getQueryItemIndex();
 81  					focus = getFocusItemIndex();
 82  			    if(focus==idx) "16"; else "14";
 83  				</script>
 84				</fontSize>
 85			  <backgroundColor>
 86  				<script>
 87  					idx = getQueryItemIndex();
 88  					focus = getFocusItemIndex();
 89  			    if(focus==idx) "10:80:120"; else "-1:-1:-1";
 90  				</script>
 91			  </backgroundColor>
 92			  <foregroundColor>
 93  				<script>
 94  					idx = getQueryItemIndex();
 95  					focus = getFocusItemIndex();
 96  			    if(focus==idx) "255:255:255"; else "140:140:140";
 97  				</script>
 98			  </foregroundColor>
 99			</text>
100
101		</itemDisplay>
102		
103<onUserInput>
104<script>
105ret = "false";
106userInput = currentUserInput();
107
108if (userInput == "pagedown" || userInput == "pageup")
109{
110  idx = Integer(getFocusItemIndex());
111  if (userInput == "pagedown")
112  {
113    idx -= -8;
114    if(idx &gt;= itemCount)
115      idx = itemCount-1;
116  }
117  else
118  {
119    idx -= 8;
120    if(idx &lt; 0)
121      idx = 0;
122  }
123
124  print("new idx: "+idx);
125  setFocusItemIndex(idx);
126	setItemFocus(0);
127  redrawDisplay();
128  "true";
129}
130ret;
131</script>
132</onUserInput>
133		
134	</mediaDisplay>
135	
136	<item_template>
137		<mediaDisplay  name="threePartsView" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10">
138        <idleImage>image/POPUP_LOADING_01.png</idleImage>
139        <idleImage>image/POPUP_LOADING_02.png</idleImage>
140        <idleImage>image/POPUP_LOADING_03.png</idleImage>
141        <idleImage>image/POPUP_LOADING_04.png</idleImage>
142        <idleImage>image/POPUP_LOADING_05.png</idleImage>
143        <idleImage>image/POPUP_LOADING_06.png</idleImage>
144        <idleImage>image/POPUP_LOADING_07.png</idleImage>
145        <idleImage>image/POPUP_LOADING_08.png</idleImage>
146		</mediaDisplay>
147
148	</item_template>
149<channel>
150	<title>www.990.ro - categorii</title>
151	<menu>main menu</menu>
152
153<item>
154<title>Filme</title>
155<link><?php echo $host; ?>/scripts/filme/php/990_filme.php</link>
156<media:thumbnail url="image/movies.png" />
157</item>
158
159<item>
160<title>Filme - dupa ani</title>
161<link><?php echo $host; ?>/scripts/filme/php/990_filme1.php</link>
162<media:thumbnail url="image/movies.png" />
163</item>
164
165<item>
166<title>Filme - dupa gen</title>
167<link><?php echo $host; ?>/scripts/filme/php/990_filme2.php</link>
168<media:thumbnail url="image/movies.png" />
169</item>
170
171<item>
172<title>Seriale</title>
173<link><?php echo $host; ?>/scripts/filme/php/990_seriale_main.php</link>
174<media:thumbnail url="image/movies.png" />
175</item>
176
177<item>
178<title>Special</title>
179<link><?php echo $host; ?>/scripts/filme/php/990_special_main.php</link>
180<media:thumbnail url="image/movies.png" />
181</item>
182
183<item>
184<title>Desene animate</title>
185<link><?php echo $host; ?>/scripts/filme/php/990_desene_main.php</link>
186<media:thumbnail url="image/movies.png" />
187</item>
188
189</channel>
190</rss>