|
| 1 | +<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="TL_App1" %> |
| 2 | + |
| 3 | +<!-- |
| 4 | +Licensed by AT&T under 'Software Development Kit Tools Agreement.' 2013 |
| 5 | +TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION: http://developer.att.com/sdk_agreement/ |
| 6 | +Copyright 2013 AT&T Intellectual Property. All rights reserved. http://developer.att.com |
| 7 | +For more information contact [email protected] |
| 8 | +--> |
| 9 | +<!--[if lt IE 7]> <html class="ie6" lang="en"> <![endif]--> |
| 10 | +<!--[if IE 7]> <html class="ie7" lang="en"> <![endif]--> |
| 11 | +<!--[if IE 8]> <html class="ie8" lang="en"> <![endif]--> |
| 12 | +<!--[if gt IE 8]><!--> |
| 13 | +<!DOCTYPE html> |
| 14 | +<html lang="en"> |
| 15 | +<head> |
| 16 | + <title>AT&T Sample Application - Location</title> |
| 17 | + <meta id="viewport" name="viewport" content="width=device-width,minimum-scale=1,maximum-scale=1" /> |
| 18 | + <link rel="stylesheet" type="text/css" href="style/common.css" /> |
| 19 | + <script type="text/javascript"> |
| 20 | + var _gaq = _gaq || []; |
| 21 | + _gaq.push(['_setAccount', 'UA-33466541-1']); |
| 22 | + _gaq.push(['_trackPageview']); |
| 23 | +
|
| 24 | + (function () { |
| 25 | + var ga = document.createElement('script'); |
| 26 | + ga.type = 'text/javascript'; |
| 27 | + ga.async = true; |
| 28 | + ga.src = ('https:' == document.location.protocol ? 'https://ssl' |
| 29 | + : 'http://www') |
| 30 | + + '.google-analytics.com/ga.js'; |
| 31 | + var s = document.getElementsByTagName('script')[0]; |
| 32 | + s.parentNode.insertBefore(ga, s); |
| 33 | + })(); |
| 34 | + </script> |
| 35 | +</head> |
| 36 | +<body> |
| 37 | + <form id="form1" runat="server"> |
| 38 | + <div id="pageContainer"> |
| 39 | + <div id="header"> |
| 40 | + <div class="logo"> |
| 41 | + </div> |
| 42 | + <div id="menuButton" class="hide"> |
| 43 | + <a id="jump" href="#nav">Main Navigation</a> |
| 44 | + </div> |
| 45 | + <ul class="links" id="nav"> |
| 46 | + <li><a href="#" target="_blank">Full Page<img alt="fullpage" src="images/max.png" /></a> |
| 47 | + <span class="divider">| </span> </li> |
| 48 | + <li><a runat="server" target="_blank" id="SourceLink">Source<img alt="source" src="images/opensource.png" /></a> |
| 49 | + <span class="divider">| </span> </li> |
| 50 | + <li><a runat="server" target="_blank" id="DownloadLink">Download<img alt="download" |
| 51 | + src="images/download.png" /></a> <span class="divider">| </span> </li> |
| 52 | + <li><a runat="server" target="_blank" id="HelpLink">Help</a> </li> |
| 53 | + <li id="back"><a href="#top">Back to top</a></li> |
| 54 | + </ul> |
| 55 | + <!-- end of links --> |
| 56 | + </div> |
| 57 | + <!-- end of header --> |
| 58 | + <div id="content"> |
| 59 | + <div id="contentHeading"> |
| 60 | + <h1> |
| 61 | + AT&T Sample Application - Location</h1> |
| 62 | + <div class="border"> |
| 63 | + </div> |
| 64 | + <div id="introtext"> |
| 65 | + <div> |
| 66 | + <b>Server Time: </b><%= String.Format("{0:ddd, MMMM dd, yyyy HH:mm:ss}", DateTime.UtcNow) + " UTC" %></div> |
| 67 | + <div> |
| 68 | + <b>Client Time:</b> |
| 69 | + <script language="JavaScript" type="text/javascript"> |
| 70 | + var myDate = new Date(); |
| 71 | + document.write(myDate); |
| 72 | + </script> |
| 73 | + </div> |
| 74 | + <div> |
| 75 | + <b>User Agent:</b> |
| 76 | + <script language="JavaScript" type="text/javascript"> |
| 77 | + document.write("" + navigator.userAgent); |
| 78 | + </script> |
| 79 | + </div> |
| 80 | + </div> |
| 81 | + <!-- end of introtext --> |
| 82 | + </div> |
| 83 | + <!-- end of contentHeading --> |
| 84 | + <!-- SAMPLE APP CONTENT STARTS HERE! --> |
| 85 | + <div class="lightBorder"> |
| 86 | + </div> |
| 87 | + <div class="formBox" id="formBox"> |
| 88 | + <div id="formContainer" class="formContainer"> |
| 89 | + <h2> |
| 90 | + Feature 1: Map of Location</h2> |
| 91 | + <div class="inputFields"> |
| 92 | + Requested Accuracy: |
| 93 | + <input type="radio" id="RA1" runat="server" name="requestedAccuracy" value="150" /> |
| 94 | + 150 m |
| 95 | + <input type="radio" name="requestedAccuracy" id="RA2" runat="server" value="1000" /> |
| 96 | + 1,000 m |
| 97 | + <input type="radio" name="requestedAccuracy" id="RA3" runat="server" value="10000" /> |
| 98 | + 10,000 m |
| 99 | + <br /> |
| 100 | + Acceptable Accuracy: |
| 101 | + <input type="radio" name="acceptableAccuracy" id="AA1" runat="server" value="150" /> |
| 102 | + 150 m |
| 103 | + <input type="radio" name="acceptableAccuracy" id="AA2" runat="server" value="1000" /> |
| 104 | + 1,000 m |
| 105 | + <input type="radio" name="acceptableAccuracy" id="AA3" runat="server" value="10000" /> |
| 106 | + 10,000 m |
| 107 | + <br /> |
| 108 | + Delay Tolerance: |
| 109 | + <input type="radio" name="tolerance" id="DT1" runat="server" value="NoDelay" />No |
| 110 | + Delay |
| 111 | + <input type="radio" name="tolerance" id="DT2" runat="server" value="LowDelay" />Low |
| 112 | + Delay |
| 113 | + <input type="radio" name="tolerance" id="DT3" runat="server" value="DelayTolerant" />Delay |
| 114 | + Tolerant |
| 115 | + <br /> |
| 116 | + <button type="submit" name="getLocation" runat="server" id="getLocation" onserverclick="GetDeviceLocation_Click"> |
| 117 | + Get Phone Location</button> |
| 118 | + </div> |
| 119 | + <!-- end of Device Location --> |
| 120 | + <!-- end of formContainer --> |
| 121 | + <!-- end of formBox --> |
| 122 | + <% if (!string.IsNullOrEmpty(getLocationSuccess)) |
| 123 | + {%> |
| 124 | + <div class="successWide"> |
| 125 | + <strong>SUCCESS:</strong> |
| 126 | + <br /> |
| 127 | + <strong>Latitude:</strong> |
| 128 | + <%= getLocationResponse.latitude %> |
| 129 | + <br /> |
| 130 | + <strong>Longitude:</strong> |
| 131 | + <%= getLocationResponse.longitude%> |
| 132 | + <br /> |
| 133 | + <strong>Accuracy:</strong> |
| 134 | + <%= getLocationResponse.accuracy%> |
| 135 | + <br /> |
| 136 | + <strong>Response Time:</strong> |
| 137 | + <%= responseTime.ToString() %> |
| 138 | + seconds |
| 139 | + </div> |
| 140 | + <div align="center"> |
| 141 | + <iframe width="600" height="400" frameborder="0" scrolling="no" marginheight="0" |
| 142 | + marginwidth="0" src="http://maps.google.com/?q=<%= getLocationResponse.latitude%>+<%= getLocationResponse.longitude%>&output=embed"> |
| 143 | + </iframe> |
| 144 | + </div> |
| 145 | + <%} %> |
| 146 | + <% if (!string.IsNullOrEmpty(getLocationError)) |
| 147 | + { %> |
| 148 | + <div class="errorWide"> |
| 149 | + <strong>ERROR:</strong> |
| 150 | + <br /> |
| 151 | + <%= getLocationError %> |
| 152 | + </div> |
| 153 | + <% } %> |
| 154 | + </div> |
| 155 | + <!-- SAMPLE APP CONTENT ENDS HERE! --> |
| 156 | + </div> |
| 157 | + <!-- end of content --> |
| 158 | + <div class="border"> |
| 159 | + </div> |
| 160 | + <div id="footer"> |
| 161 | + <div id="powered_by"> |
| 162 | + Powered by AT&T Cloud Architecture |
| 163 | + </div> |
| 164 | + <p> |
| 165 | + The Application hosted on this site are working examples intended to be used for |
| 166 | + reference in creating products to consume AT&T Services and not meant to be |
| 167 | + used as part of your product. The data in these pages is for test purposes only |
| 168 | + and intended only for use as a reference in how the services perform. |
| 169 | + <br /> |
| 170 | + <br /> |
| 171 | + For download of tools and documentation, please go to <a href="https://developer.att.com/" |
| 172 | + target="_blank">https://developer.att.com</a> |
| 173 | + <br /> |
| 174 | + For more information contact < a href= "mailto:[email protected]"> [email protected]</ a> |
| 175 | + <br /> |
| 176 | + <br /> |
| 177 | + © 2013 AT&T Intellectual Property. All rights reserved. <a href="https://developer.att.com/" |
| 178 | + target="_blank">https://developer.att.com</a> |
| 179 | + </p> |
| 180 | + </div> |
| 181 | + <!-- end of footer --> |
| 182 | + </div> |
| 183 | + <!-- end of page_container --> |
| 184 | + </div> |
| 185 | + </form> |
| 186 | +</body> |
| 187 | +</html> |
0 commit comments