Skip to content
Newer
Older
100644 79 lines (68 sloc) 2.58 KB
341eef1 @cfjedimaster Initial
authored Mar 21, 2011
1 <cfparam name="url.start" default="1">
2
3 <cfif not isNumeric(url.start) or url.start lte 0 or url.start neq round(url.start)>
4 <cfset url.start = 1>
5 </cfif>
d45e3a9 @cfjedimaster Pagination
authored Apr 6, 2011
6
341eef1 @cfjedimaster Initial
authored Mar 21, 2011
7 <cfset data = application.entries.getEntries(url.start,request.perpage)>
8 <cfset entries = data.entries>
9 <!DOCTYPE html>
10 <html>
11
12 <head>
0a62bce Improved mobile support, allow for you to leave, new icon by Andy Mat…
unknown authored Jul 25, 2011
13 <meta name="viewport" content="width=device-width, initial-scale=1">
ac19feb @boyzoid Updated index.cfm in /mobile to use application.siteTitle instead of
boyzoid authored Mar 23, 2011
14 <cfoutput><title>#application.siteTitle# Mobile</title></cfoutput>
0a62bce Improved mobile support, allow for you to leave, new icon by Andy Mat…
unknown authored Jul 25, 2011
15 <link rel="stylesheet" href="http://code.jquery.com/mobile/1.0b1/jquery.mobile-1.0b1.min.css" />
16 <script src="http://code.jquery.com/jquery-1.6.1.min.js"></script>
17 <script src="http://code.jquery.com/mobile/1.0b1/jquery.mobile-1.0b1.min.js"></script>
18 <style>
19 .ui-icon-blogger-leave {
20 background: url("/images/iconExternal.png") no-repeat rgba(0, 0, 0, 0.4);
21 }
22 </style>
341eef1 @cfjedimaster Initial
authored Mar 21, 2011
23 </head>
24
25 <body>
26
27 <div data-role="page" id="intro">
28
d45e3a9 @cfjedimaster Pagination
authored Apr 6, 2011
29 <div data-role="header" data-backbtn="false">
0a62bce Improved mobile support, allow for you to leave, new icon by Andy Mat…
unknown authored Jul 25, 2011
30 <a href="http://#application.siteUrl#/index.cfm?nomobile=1" class="ui-btn-right" rel="external" data-icon="blogger-leave" data-iconpos="notext">Leave Mobile</a>
d45e3a9 @cfjedimaster Pagination
authored Apr 6, 2011
31 <cfoutput><h1>#application.siteTitle# Mobile [#url.start#-#url.start+request.perpage-1#]</h1></cfoutput>
341eef1 @cfjedimaster Initial
authored Mar 21, 2011
32 </div>
33
34 <div data-role="content">
35 <ul data-role="listview" data-split-icon="gear">
d45e3a9 @cfjedimaster Pagination
authored Apr 6, 2011
36 <cfoutput query="entries" >
341eef1 @cfjedimaster Initial
authored Mar 21, 2011
37 <cfset myurl = listFirst(entries.url)>
38 <li>
39 <a href="display.cfm?entry=#id#">#title#</a>
40 <a href="/click.cfm?entry=#id#&entryurl=#urlEncodedFormat(myurl)#" data-rel="dialog" rel="external">View Full Entry</a>
41 </li>
42 </cfoutput>
43 </ul>
44 </div>
d45e3a9 @cfjedimaster Pagination
authored Apr 6, 2011
45 <div data-role="controlgroup" data-type="horizontal" align="center">
46 <cfoutput>
47 <cfif url.start gt 1>
48 <a href="index.cfm?start=#max(url.start-request.perpage,1)#" data-role="button" data-theme="b">Previous</a>
49 <cfelse>
50 <a href="" data-role="button">Previous</a>
51 </cfif>
52 <cfif url.start + request.perpage lt data.total>
53 <a href="index.cfm?start=#url.start+request.perpage#" data-role="button" data-theme="b">Next</a>
54 <cfelse>
55 <a href="" data-role="button">Next</a>
56 </cfif>
57 </cfoutput>
58 </div>
59
341eef1 @cfjedimaster Initial
authored Mar 21, 2011
60
61 <div data-role="footer">
62 <h4>Created by Raymond Camden, coldfusionjedi.com</h4>
63 </div>
64
65 </div>
66
67 <cfif not application.dev>
68 <script type="text/javascript">
69 var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
70 document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
71 </script>
72 <script type="text/javascript">
73 var pageTracker = _gat._getTracker("UA-70863-11");
74 pageTracker._initData();
75 pageTracker._trackPageview();
76 </script>
77 </cfif>
78 </body>
79 </html>
Something went wrong with that request. Please try again.