Skip to content
Switch branches/tags
Go to file
Cannot retrieve contributors at this time
77 lines (67 sloc) 2.38 KB
<cfif structKeyExists(url, "page") and isNumeric(>
<cfset url.start = ( * request.perpage + 1>
<cfparam name="url.start" default="1">
<cfif not isNumeric(url.start) or url.start lte 0 or url.start neq round(url.start)>
<cfset url.start = 1>
<!--- to do - support search on mobile
<cfif structKeyExists(url, "search_query")>
<cfset form.search_query = url.search_query>
<cfif structKeyExists(form, "search_query") and len(trim(form.search_query))>
<cfset form.search_query = left(trim(htmlEditFormat(form.search_query)),255)>
<!--- was it a search we want to log? --->
<cfif structKeyExists(url, "log")>
<cfset log = true>
<cfset log = false>
<cfset data = application.entries.getEntries(url.start,request.perpage,form.search_query,log)>
<cfset data = application.entries.getEntries(url.start,request.perpage)>
<cfset data = application.entries.getEntries(url.start,request.perpage)>
<cfset entries = data.entries>
<!DOCTYPE html>
<cfoutput><title>#application.siteTitle# Mobile</title></cfoutput>
<link rel="stylesheet" href="" />
<script src=""></script>
<script src=""></script>
<div data-role="page" id="intro">
<div data-role="header">
<cfoutput><h1>#application.siteTitle# Mobile</h1></cfoutput>
<div data-role="content">
<ul data-role="listview" data-split-icon="gear">
<cfoutput query="entries">
<cfset myurl = listFirst(entries.url)>
<a href="display.cfm?entry=#id#">#title#</a>
<a href="/click.cfm?entry=#id#&entryurl=#urlEncodedFormat(myurl)#" data-rel="dialog" rel="external">View Full Entry</a>
<div data-role="footer">
<h4>Created by Raymond Camden,</h4>
<cfif not>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "' type='text/javascript'%3E%3C/script%3E"));
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-70863-11");