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

/filme/990.php

https://code.google.com/p/hdforall/
PHP | 191 lines | 171 code | 19 blank | 1 comment | 15 complexity | 56240904b6dc7e085dac87db2627eedb 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		image/movies.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		<itemDisplay>
 68			<text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100>
 69				<script>
 70					idx = getQueryItemIndex();
 71					focus = getFocusItemIndex();
 72					if(focus==idx) 
 73					{
 74					  location = getItemInfo(idx, "location");
 75					  annotation = getItemInfo(idx, "title");
 76					}
 77					getItemInfo(idx, "title");
 78				</script>
 79				<fontSize>
 80  				<script>
 81  					idx = getQueryItemIndex();
 82  					focus = getFocusItemIndex();
 83  			    if(focus==idx) "16"; else "14";
 84  				</script>
 85				</fontSize>
 86			  <backgroundColor>
 87  				<script>
 88  					idx = getQueryItemIndex();
 89  					focus = getFocusItemIndex();
 90  			    if(focus==idx) "10:80:120"; else "-1:-1:-1";
 91  				</script>
 92			  </backgroundColor>
 93			  <foregroundColor>
 94  				<script>
 95  					idx = getQueryItemIndex();
 96  					focus = getFocusItemIndex();
 97  			    if(focus==idx) "255:255:255"; else "140:140:140";
 98  				</script>
 99			  </foregroundColor>
100			</text>
101
102		</itemDisplay>
103		
104<onUserInput>
105<script>
106ret = "false";
107userInput = currentUserInput();
108
109if (userInput == "pagedown" || userInput == "pageup")
110{
111  idx = Integer(getFocusItemIndex());
112  if (userInput == "pagedown")
113  {
114    idx -= -8;
115    if(idx &gt;= itemCount)
116      idx = itemCount-1;
117  }
118  else
119  {
120    idx -= 8;
121    if(idx &lt; 0)
122      idx = 0;
123  }
124
125  print("new idx: "+idx);
126  setFocusItemIndex(idx);
127	setItemFocus(0);
128  redrawDisplay();
129  "true";
130}
131ret;
132</script>
133</onUserInput>
134		
135	</mediaDisplay>
136	
137	<item_template>
138		<mediaDisplay  name="threePartsView" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10">
139        <idleImage>image/POPUP_LOADING_01.png</idleImage>
140        <idleImage>image/POPUP_LOADING_02.png</idleImage>
141        <idleImage>image/POPUP_LOADING_03.png</idleImage>
142        <idleImage>image/POPUP_LOADING_04.png</idleImage>
143        <idleImage>image/POPUP_LOADING_05.png</idleImage>
144        <idleImage>image/POPUP_LOADING_06.png</idleImage>
145        <idleImage>image/POPUP_LOADING_07.png</idleImage>
146        <idleImage>image/POPUP_LOADING_08.png</idleImage>
147		</mediaDisplay>
148
149	</item_template>
150<channel>
151	<title>www.990.ro - categorii</title>
152	<menu>main menu</menu>
153
154<item>
155<title>Filme</title>
156<link><?php echo $host; ?>/scripts/filme/php/990_filme.php</link>
157<media:thumbnail url="image/movies.png" />
158</item>
159
160<item>
161<title>Filme: sortare dup? ani</title>
162<link><?php echo $host; ?>/scripts/filme/php/990_filme1.php</link>
163<media:thumbnail url="image/movies.png" />
164</item>
165
166<item>
167<title>Filme: sortare dup? gen</title>
168<link><?php echo $host; ?>/scripts/filme/php/990_filme2.php</link>
169<media:thumbnail url="image/movies.png" />
170</item>
171
172<item>
173<title>Seriale</title>
174<link><?php echo $host; ?>/scripts/filme/php/990_seriale_main.php</link>
175<media:thumbnail url="image/movies.png" />
176</item>
177
178<item>
179<title>Comedii vechi</title>
180<link><?php echo $host; ?>/scripts/filme/php/990_special_main.php</link>
181<media:thumbnail url="image/movies.png" />
182</item>
183
184<item>
185<title>Desene animate</title>
186<link><?php echo $host; ?>/scripts/filme/php/990_desene_main.php</link>
187<media:thumbnail url="image/movies.png" />
188</item>
189
190</channel>
191</rss>