⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 eventscheduler.cfm.txt

📁 google的gdata api包
💻 TXT
📖 第 1 页 / 共 2 页
字号:
    <option value="18">18</option>    <option value="19">19</option>    <option value="20">20</option>    <option value="21">21</option>    <option value="22">22</option>    <option value="23">23</option>    <option value="24">24</option>    <option value="25">25</option>    <option value="26">26</option>    <option value="27">27</option>    <option value="28">28</option>    <option value="29">29</option>    <option value="30">30</option>    <option value="31">31</option>   </select>      <select name="dateYr">    <option value="2006">2006</option>       <option value="2007">2007</option>    <option value="2008">2008</option>    <option value="2009">2009</option>    <option value="2010">2010</option>   </select>  </td></tr></table>    <input type=hidden name="token" <cfoutput>value="#token#"</cfoutput>>    <input type=hidden name="search" value="1"></FORM>    <cfif not isdefined("st")>															<!--- Set up the search index --->   <cfset st = "0">  </cfif><cfoutput>																				<!--- Initial query string setup --->  <cfset queryString="http://www.google.com/base/feeds/snippets?start-index=#1 + st * 15#&max-results=15&bq="></cfoutput>   <cfif isdefined("location")>															<!--- If this field is present, then we have an actual search query --->   <cfif isdefined("textQuery")>														<!--- If the user wants to refine by text, add it --->  	<cfset querystring = queryString & eventType & textQuery & " ">   </cfif>      <cfset queryString = queryString & "[item type:events and activities] ">				<!--- Restrict items to events ---><cfoutput>   <cfif location NEQ "">																<!--- If location actually has a value, add it --->    <cfset queryString = queryString & "%5Blocation%3A%40%22#location#%22%2B#miles#mi%5D">   </cfif></cfoutput>																						<!--- Only return items AFTER today --->   <cfset queryString = queryString & "[event_date_range > " & dateformat(now(), "YYYY-MM-DD") & "] ">   <cfif (dateDay EQ "00") or (dateMonth EQ "00") or (dateYr EQ "0000")>				<!--- If user specified a date range, add that too --->    <cfif (dateDay EQ "00") and (dateMonth EQ "00") and (dateYr EQ "0000")>     No date specified!<br>    <cfelseif (dateDay EQ "00") and (dateMonth EQ "00")>     <cfset queryString = queryString & "[event_date_range: #dateYr#Z]">    <cfelseif (dateDay EQ "00")>     <cfset queryString = queryString & "[event_date_range: #dateYr#-#dateMonth#Z]">    </cfif>      <cfelse>    <cfset queryString = queryString & "[event_date_range: #dateYr#-#dateMonth#-#dateDay#Z]">   </cfif>     <!--- If you want to restrict to results from one provider, you can enter the CID here. The easiest way to find the CID is to search for an item from them   		on Google Base, then click "all items from this author" then copy the value in the "authorid=" field in the URL. --->  <!--- <cfset queryString = queryString & " [customer id: CustomerIdValue]"> --->      <!--- Text used for debugging, shows entire query string --->    <!--- <cfoutput>#queryString#</cfoutput> --->    <cfoutput>    <br><br><center>    <cfhttp method="Get" url="#queryString#">											<!--- Send out the query to Base --->      <cfhttpparam name="X-Google-Key" type="Header" value="key=REPLACE WITH YOUR DEVELOPER KEY">    </cfhttp>    <cfset resultsList = xmlparse(cfhttp.fileContent)>    <!--- More debugging code, dumps the XML results --->  <!--- <cfdump var="#resultsList#"> --->    <br>  </cfoutput>   <cfif isdefined("resultsList.feed.entry")>											<!--- If there are results, display them --->    <div style='padding:0px; width: 72%;background-color:#555555;'>    <cfloop index="loopIndex" from="1" to="#arraylen(resultsList.feed.entry)#">     <cfset currentResult = resultsList.feed.entry[loopIndex]>							<!--- Store the current product in a temporary variable --->     <cfoutput>     <cfset addEventURL="http://www.dealmein.net/basecalendar/eventscheduler.cfm?addtocal=1&token=#token#&title=#urlencodedformat(currentResult.title.xmltext)#">     <cfif isdefined("currentResult.location")> 										<!--- If there's a location, add it to the query --->      <cfset addEventURL=(addEventURL & "&where=#urlencodedformat(currentResult.location.xmltext)#")>     </cfif>     <cfif isdefined("currentResult.event_date_range")>									<!--- If there's a date, add it to the query and format the dates for display --->      <cfset addEventURL=(addEventURL & "&when=#urlencodedformat(currentResult.event_date_range.xmltext)#")>      <cfset startdate=trim(mid(currentResult.event_date_range.xmltext, 1, find(" ", currentResult.event_date_range.xmltext)))>      <cfset enddate=trim(mid(currentResult.event_date_range.xmltext, find(" ", currentResult.event_date_range.xmltext) + 1, len(currentResult.event_date_range.xmltext)))>      <cfif startdate EQ "">       <cfset startdate = enddate>      </cfif>     </cfif>                 <cfif isdefined("currentResult.link")>												<!--- If there's a link, add it to the query --->      <cfset addEventURL=(addEventURL & "&link=#urlencodedformat(currentResult.link.xmlattributes.href)#")>     </cfif>                 <div style='padding:3px;border:1px solid darkblue;background-color:##AABBFF;text-align:left;position: relative;top: -5px;left: -3px;'><b> &nbsp; #currentResult.title.xmltext#</b></div>     <div style='background-color:##F1F1FF;border:1px solid gray;position: relative;top:-1px;left:-1px;'>     <table width="98%" cellpadding="2" cellspacing="2"><tr><td><font size=-1>          <b>Link:</b> <a href="#currentResult.link.xmlattributes.href#">#currentResult.link.xmlattributes.href#</a><br>     <cfif isdefined("currentResult.location")>											<!--- If there's a location, display it --->      <b>Where:</b> <a href="http://maps.google.com/maps?f=q&hl=en&q=#urlencodedformat(currentResult.location.xmltext)#">#currentResult.location.xmltext#</a><br>     </cfif>                   <cfif isdefined("currentResult.event_date_range")>									<!--- If there are dates, format and display them --->      <cfif startdate NEQ enddate>       <cfset startyear=mid(startdate, 1, 4)>       <cfset startmonth=mid(startdate, 6, 2)>       <cfset startday=mid(startdate, 9, 2)>       <cfset starttime=mid(startdate, 12,5)>       <cfset endyear=mid(enddate, 1, 4)>       <cfset endmonth=mid(enddate, 6, 2)>       <cfset endday=mid(enddate, 9, 2)>       <cfset endtime=mid(enddate, 12,5)>       <b>When:</b> #startmonth#/#startday#/#startyear# #starttime# - #endmonth#/#endday#/#endyear# #endtime#<br><br>      <cfelse>       <cfset startyear=mid(startdate, 1, 4)>       <cfset startmonth=mid(startdate, 6, 2)>       <cfset startday=mid(startdate, 9, 2)>       <b>When:</b> #startmonth#/#startday#/#startyear#<br><br>      </cfif>     </cfif>                 <cfif #currentResult.content.xmltext# EQ "">										<!--- If there is a value in the description, display it --->      <b>Description:</b> (no description given)     <cfelse>      <b>Description:</b> #currentResult.content.xmltext#     </cfif>                 </font><br><br></td><td rowspan="2" width="5%">     <center><a href="#addEventURL#"><img src="calendar.jpeg" alt="Add to calendar" border="0" align="center"><br><font size="-2" face="verdana">Add To<br>Calendar</font></a></center>     </td></tr></table>     </div>          </cfoutput>    </cfloop>   </div>   <cfoutput><br>   <cfif not st LT 1>																	<!--- Display "previous" and "next" links --->    <a href="eventscheduler.cfm?token=#token#&search=1&st=#st-1#&location=#location#&textQuery=#textQuery#&dateMonth=#dateMonth#&dateDay=#dateDay#&dateYr=#dateYr#&eventType=#eventType#&miles=#miles#"><font color="##111177">(Previous Page)</font></a>    </cfif>   <cfif ((st+1) * 15) LT #resultsList.feed.totalResults.XMLText#>   <a href="eventscheduler.cfm?token=#token#&search=1&st=#st+1#&location=#location#&textQuery=#textQuery#&dateMonth=#dateMonth#&dateDay=#dateDay#&dateYr=#dateYr#&eventType=#eventType#&miles=#miles#"><font color="##111177">(Next Page)</font></a>   </cfif>   </cfoutput>    <cfelse>																				<!--- If there are no results, tell the user --->   Unfortunately, no results matching your query were able to be found.<br><br>   <b>Tips:</b><br>   - Try using a more general search term, or a search category instead.<br>   - Make sure your date is not in the past, and not too far into the future.<br>   - Make sure your location is spelled correctly.<br>  </cfif><br><br><br><br>  <font size=-1>Search results by the awesome power of <a href="http://base.google.com">Google Base</a>!</font></cfif>    <cfelse><br><br>																		<!--- If there's not even an initial one-use token set up, authorize---><centeR>In order for the Google Base/Calendar event scheduler to work, you'll <br>need to approve access to your Calendar account for this website. <br>Please <a href="https://www.google.com/accounts/AuthSubRequest?next=http://www.dealmein.net/basecalendar/eventscheduler.cfm&scope=http%3A%2F%2Fwww.google.com%2Fcalendar%2Ffeeds%2F&session=1&secure=0">click here</A> to authorize.<br><hr width=20%><br><b>Security information:</b> This application uses Google Base to search for events, and allows you to add them to your Google Calendar by simply clicking a button next to the search listing. In order to do this, this site must be allowed write access to your Google Calendar account. We do this by redirecting you to an authorization page on Google.com, which will pass back to us a unique key that we can use to write to your Calendar. Our site will never see any part of your Google Account information, and we do not store access keys on our server - they're used only through URL parameters and local cookies. More information about Google Account Authentication can be found <a href="http://code.google.com/apis/accounts/AuthForWebApps.html">here</a>. Access can be revoked at any time through your "my accounts" page on Google.</cfif></body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -