PageRenderTime 22ms CodeModel.GetById 13ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/scripts/feeds/scripts_vb6/scripts/tv/bing_sport.php

http://eboda-hd-for-all-500.googlecode.com/
PHP | 196 lines | 176 code | 20 blank | 0 comment | 15 complexity | d1ea8aa8832fd5068821b52a93e64c73 MD5 | raw file
  1<?php echo "<?xml version='1.0' encoding='UTF8' ?>";
  2$host = "http://127.0.0.1:82";
  3$img = "/scripts/tv/image/bing.jpg";
  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>
 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  <?php echo $img; ?>
 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
 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	<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>Bing</title>
151
152<item>
153<title>FOX Soccer Channel</title>
154<link><?php echo $host; ?>/scripts/tv/php/bing1.php</link>
155<media:thumbnail url="/scripts/tv/image/bing.jpg" />
156</item>
157
158<item>
159<title>NBA</title>
160<link><?php echo $host; ?>/scripts/tv/php/bing.php?file=http://www.bing.com/videos/browse/sports/nba?q=browse:sports/nba,NBA</link>
161<media:thumbnail url="/scripts/tv/image/bing.jpg" />
162</item>
163
164<item>
165<title>MLB</title>
166<link><?php echo $host; ?>/scripts/tv/php/bing.php?file=http://www.bing.com/videos/browse/sports/mlb?q=browse:sports/mlb,MLB</link>
167<media:thumbnail url="/scripts/tv/image/bing.jpg" />
168</item>
169
170<item>
171<title>NHL</title>
172<link><?php echo $host; ?>/scripts/tv/php/bing.php?file=http://www.bing.com/videos/browse/sports/nhl?q=browse:sports/nhl,NHL</link>
173<media:thumbnail url="/scripts/tv/image/bing.jpg" />
174</item>
175
176<item>
177<title>NFL</title>
178<link><?php echo $host; ?>/scripts/tv/php/bing.php?file=http://www.bing.com/videos/browse/sports/nfl?q=browse:sports/nfl,NFL</link>
179<media:thumbnail url="/scripts/tv/image/bing.jpg" />
180</item>
181
182<item>
183<title>College Football</title>
184<link><?php echo $host; ?>/scripts/tv/php/bing.php?file=http://www.bing.com/videos/browse/sports/college-football?q=browse:sports/college-football,College+football</link>
185<media:thumbnail url="/scripts/tv/image/bing.jpg" />
186</item>
187
188<item>
189<title>
190College Basketball</title>
191<link><?php echo $host; ?>/scripts/tv/php/bing.php?file=http://www.bing.com/videos/browse/sports/college-basketball?q=browse:sports/college-basketball,College+basketball</link>
192<media:thumbnail url="/scripts/tv/image/bing.jpg" />
193</item>
194
195</channel>
196</rss>