| 1 | <% do_pagehead("anchorfree.title"); %> |
|---|
| 2 | <script type="text/javascript"> |
|---|
| 3 | //<![CDATA[ |
|---|
| 4 | |
|---|
| 5 | function validate_anchorfree(F) |
|---|
| 6 | { |
|---|
| 7 | if (F.af_enable) |
|---|
| 8 | { |
|---|
| 9 | if (valid_email(F.af_email.value,1,1)==false) |
|---|
| 10 | { |
|---|
| 11 | return false; |
|---|
| 12 | } |
|---|
| 13 | if (F.af_publish.value=="1") |
|---|
| 14 | { |
|---|
| 15 | if (F.af_address.value.length==0) |
|---|
| 16 | { |
|---|
| 17 | alert("a valid address field must be provided if this hotspot should be published on the wifi hotspot map!"); |
|---|
| 18 | return false; |
|---|
| 19 | } |
|---|
| 20 | if (F.af_city.value.length == 0 && F.af_zip.value.length == 0) |
|---|
| 21 | { |
|---|
| 22 | alert("a valid city or zip/postal code must be provided if this hotspot should be published on the wifi hotspot map!"); |
|---|
| 23 | return false; |
|---|
| 24 | } |
|---|
| 25 | } |
|---|
| 26 | if (F.af_category.value=="0") |
|---|
| 27 | { |
|---|
| 28 | alert("please select a advertising category for your hotspot"); |
|---|
| 29 | return false; |
|---|
| 30 | } |
|---|
| 31 | if (F.af_country.value=="null") |
|---|
| 32 | { |
|---|
| 33 | alert("please select a country for your hotspot"); |
|---|
| 34 | return false; |
|---|
| 35 | } |
|---|
| 36 | } |
|---|
| 37 | return true; |
|---|
| 38 | } |
|---|
| 39 | |
|---|
| 40 | function to_submit(F) { |
|---|
| 41 | if (validate_anchorfree(F)==true) |
|---|
| 42 | { |
|---|
| 43 | F.change_action.value = ""; |
|---|
| 44 | F.submit_type.value = ""; |
|---|
| 45 | F.save_button.value = sbutton.saving; |
|---|
| 46 | apply(F); |
|---|
| 47 | } |
|---|
| 48 | } |
|---|
| 49 | function to_apply(F) { |
|---|
| 50 | if (validate_anchorfree(F)==true) |
|---|
| 51 | { |
|---|
| 52 | F.change_action.value = ""; |
|---|
| 53 | F.submit_type.value = ""; |
|---|
| 54 | F.save_button.value = sbutton.saving; |
|---|
| 55 | applytake(F); |
|---|
| 56 | } |
|---|
| 57 | } |
|---|
| 58 | |
|---|
| 59 | |
|---|
| 60 | var update; |
|---|
| 61 | |
|---|
| 62 | addEvent(window, "load", function() { |
|---|
| 63 | show_layer_ext(document.setup.af_enable, 'idanchorfree', <% nvram_else_match("af_enable", "1", "1", "0"); %> == 1); |
|---|
| 64 | show_layer_ext(document.setup.af_ssid, 'idanchorfreessid', <% nvram_else_match("af_ssid", "1", "1", "0"); %> == 1); |
|---|
| 65 | update = new StatusUpdate("AnchorFree.live.asp", <% nvram_get("refresh_time"); %>); |
|---|
| 66 | update.start(); |
|---|
| 67 | |
|---|
| 68 | }); |
|---|
| 69 | |
|---|
| 70 | addEvent(window, "unload", function() { |
|---|
| 71 | update.stop(); |
|---|
| 72 | |
|---|
| 73 | }); |
|---|
| 74 | |
|---|
| 75 | //]]> |
|---|
| 76 | </script> |
|---|
| 77 | </head> |
|---|
| 78 | |
|---|
| 79 | <body class="gui"> |
|---|
| 80 | <% showad(); %> |
|---|
| 81 | <div id="wrapper"> |
|---|
| 82 | <div id="content"> |
|---|
| 83 | <div id="header"> |
|---|
| 84 | <div id="logo"><h1><% show_control(); %></h1></div> |
|---|
| 85 | <% do_menu("Services.asp","AnchorFree.asp"); %> |
|---|
| 86 | </div> |
|---|
| 87 | <div id="main"> |
|---|
| 88 | <div id="contents"> |
|---|
| 89 | <form name="setup" action="apply.cgi" method="<% get_http_method(); %>"> |
|---|
| 90 | <input type="hidden" name="submit_button" value="AnchorFree" /> |
|---|
| 91 | <input type="hidden" name="action" value="Apply" /> |
|---|
| 92 | <input type="hidden" name="change_action" /> |
|---|
| 93 | <input type="hidden" name="submit_type" /> |
|---|
| 94 | <input type="hidden" name="commit" value="1"/> |
|---|
| 95 | |
|---|
| 96 | <h2><% tran("anchorfree.anchorfree_revenue"); %></h2> |
|---|
| 97 | <fieldset> |
|---|
| 98 | <legend><% tran("anchorfree.anchorfree_revenue"); %></legend> |
|---|
| 99 | <div class="setting"> |
|---|
| 100 | <div class="label"><% tran("anchorfree.anchorfree"); %></div> |
|---|
| 101 | <input class="spaceradio" type="radio" value="1" name="af_enable" <% nvram_selmatch("af_enable","1", "checked"); %> onclick="show_layer_ext(this, 'idanchorfree', true)" /><% tran("share.enable"); %> |
|---|
| 102 | <input class="spaceradio" type="radio" value="0" name="af_enable" <% nvram_selmatch("af_enable","0", "checked"); %> onclick="show_layer_ext(this, 'idanchorfree', false)" /><% tran("share.disable"); %> |
|---|
| 103 | </div> |
|---|
| 104 | <div id="idanchorfree" > |
|---|
| 105 | <div class="setting"> |
|---|
| 106 | <div class="label"><% tran("anchorfree.email"); %></div> |
|---|
| 107 | <input class="text" maxLength="100" size="25" name="af_email" value="<% nvram_get("af_email"); %>" /> |
|---|
| 108 | </div> |
|---|
| 109 | <div class="setting"> |
|---|
| 110 | <div class="label"><% tran("anchorfree.ssid"); %></div> |
|---|
| 111 | <input class="spaceradio" type="radio" value="1" name="af_ssid" <% nvram_selmatch("af_ssid","1", "checked"); %> onclick="show_layer_ext(this, 'idanchorfreessid', true)" /><% tran("share.enable"); %> |
|---|
| 112 | <input class="spaceradio" type="radio" value="0" name="af_ssid" <% nvram_selmatch("af_ssid","0", "checked"); %> onclick="show_layer_ext(this, 'idanchorfreessid', false)" /><% tran("share.disable"); %> |
|---|
| 113 | </div> |
|---|
| 114 | <div id="idanchorfreessid"> |
|---|
| 115 | <div class="setting"> |
|---|
| 116 | <div class="label"><% tran("anchorfree.ssid_name"); %></div> |
|---|
| 117 | <input class="text" maxLength="32" size="32" name="af_ssid_name" value="<% nvram_get("af_ssid_name"); %>" /> |
|---|
| 118 | </div> |
|---|
| 119 | </div> |
|---|
| 120 | <div class="setting"> |
|---|
| 121 | <div class="label"><% tran("anchorfree.address_1"); %></div> |
|---|
| 122 | <input class="text" maxLength="100" size="64" name="af_address" value="<% nvram_get("af_address"); %>" /> |
|---|
| 123 | </div> |
|---|
| 124 | <div class="setting"> |
|---|
| 125 | <div class="label"><% tran("anchorfree.address_2"); %></div> |
|---|
| 126 | <input class="text" maxLength="100" size="64" name="af_address_2" value="<% nvram_get("af_address_2"); %>" /> |
|---|
| 127 | </div> |
|---|
| 128 | <div class="setting"> |
|---|
| 129 | <div class="label"><% tran("anchorfree.city"); %></div> |
|---|
| 130 | <input class="text" maxLength="100" size="32" name="af_city" value="<% nvram_get("af_city"); %>" /> |
|---|
| 131 | </div> |
|---|
| 132 | <div class="setting"> |
|---|
| 133 | <div class="label"><% tran("anchorfree.zip"); %></div> |
|---|
| 134 | <input class="text" maxLength="6" size="6" name="af_zip" value="<% nvram_get("af_zip"); %>" /> |
|---|
| 135 | </div> |
|---|
| 136 | <div class="setting"> |
|---|
| 137 | <div class="label"><% tran("anchorfree.state"); %></div> |
|---|
| 138 | <input class="text" maxLength="32" size="32" name="af_state" value="<% nvram_get("af_state"); %>" /> |
|---|
| 139 | </div> |
|---|
| 140 | <div class="setting"> |
|---|
| 141 | <div class="label"><% tran("anchorfree.country"); %></div> |
|---|
| 142 | <% show_countrylist("af_country"); %> |
|---|
| 143 | </div> |
|---|
| 144 | <div class="setting"> |
|---|
| 145 | <div class="label"><% tran("anchorfree.category"); %></div> |
|---|
| 146 | <select name="af_category" > |
|---|
| 147 | <option value="0" <% nvram_selected("af_category", "0"); %> >Please choose...</option> |
|---|
| 148 | <option value="112" <% nvram_selected("af_category", "112"); %> >Airports</option> |
|---|
| 149 | <option value="115" <% nvram_selected("af_category", "115"); %> >Bars, Pubss, & Clubs</option> |
|---|
| 150 | <option value="118" <% nvram_selected("af_category", "118"); %> >Law Firms</option> |
|---|
| 151 | <option value="127" <% nvram_selected("af_category", "127"); %> >Apartments</option> |
|---|
| 152 | <option value="137" <% nvram_selected("af_category", "137"); %> >Art Museums & Galleries</option> |
|---|
| 153 | <option value="145" <% nvram_selected("af_category", "145"); %> >Auto Sales & Services</option> |
|---|
| 154 | <option value="171" <% nvram_selected("af_category", "171"); %> >Bakeries</option> |
|---|
| 155 | <option value="174" <% nvram_selected("af_category", "174"); %> >Banks</option> |
|---|
| 156 | <option value="175" <% nvram_selected("af_category", "175"); %> >Convention, Conference, & Banquet</option> |
|---|
| 157 | <option value="187" <% nvram_selected("af_category", "187"); %> >Billiards</option> |
|---|
| 158 | <option value="195" <% nvram_selected("af_category", "195"); %> >Bookstores</option> |
|---|
| 159 | <option value="214" <% nvram_selected("af_category", "214"); %> >Cafes</option> |
|---|
| 160 | <option value="215" <% nvram_selected("af_category", "215"); %> >Campgrounds</option> |
|---|
| 161 | <option value="247" <% nvram_selected("af_category", "247"); %> >Churches & Religious Organisations</option> |
|---|
| 162 | <option value="257" <% nvram_selected("af_category", "257"); %> >Schools & Universities</option> |
|---|
| 163 | <option value="266" <% nvram_selected("af_category", "266"); %> >Computer Sales & Services</option> |
|---|
| 164 | <option value="304" <% nvram_selected("af_category", "304"); %> >Spas & Massage Therapy</option> |
|---|
| 165 | <option value="317" <% nvram_selected("af_category", "317"); %> >Healthcare</option> |
|---|
| 166 | <option value="338" <% nvram_selected("af_category", "338"); %> >Movies, Theatres, & Entertainment Venues</option> |
|---|
| 167 | <option value="370" <% nvram_selected("af_category", "370"); %> >Gas Stations</option> |
|---|
| 168 | <option value="376" <% nvram_selected("af_category", "376"); %> >Retail</option> |
|---|
| 169 | <option value="379" <% nvram_selected("af_category", "379"); %> >Golf Courses</option> |
|---|
| 170 | <option value="383" <% nvram_selected("af_category", "383"); %> >Government</option> |
|---|
| 171 | <option value="386" <% nvram_selected("af_category", "386"); %> >Grocery & Food Stores</option> |
|---|
| 172 | <option value="391" <% nvram_selected("af_category", "391"); %> >Health & Fitness Clubs</option> |
|---|
| 173 | <option value="410" <% nvram_selected("af_category", "410"); %> >Hotels,Motels & Lodging</option> |
|---|
| 174 | <option value="415" <% nvram_selected("af_category", "415"); %> >Ice Cream & Yogurt</option> |
|---|
| 175 | <option value="416" <% nvram_selected("af_category", "416"); %> >Ice Rinks</option> |
|---|
| 176 | <option value="425" <% nvram_selected("af_category", "425"); %> >Internet Access Provider</option> |
|---|
| 177 | <option value="442" <% nvram_selected("af_category", "442"); %> >Laundry Services</option> |
|---|
| 178 | <option value="449" <% nvram_selected("af_category", "449"); %> >Libraries</option> |
|---|
| 179 | <option value="469" <% nvram_selected("af_category", "469"); %> >Mass Transit</option> |
|---|
| 180 | <option value="486" <% nvram_selected("af_category", "486"); %> >Mobile Home Parks</option> |
|---|
| 181 | <option value="533" <% nvram_selected("af_category", "533"); %> >Outdoor Parks</option> |
|---|
| 182 | <option value="549" <% nvram_selected("af_category", "549"); %> >Pharmacies</option> |
|---|
| 183 | <option value="589" <% nvram_selected("af_category", "589"); %> >Restaurants</option> |
|---|
| 184 | <option value="650" <% nvram_selected("af_category", "650"); %> >Tourist Attractions</option> |
|---|
| 185 | <option value="654" <% nvram_selected("af_category", "654"); %> >Travel Agents</option> |
|---|
| 186 | <option value="745" <% nvram_selected("af_category", "745"); %> >Office Building</option> |
|---|
| 187 | <option value="746" <% nvram_selected("af_category", "746"); %> >Other</option> |
|---|
| 188 | <option value="747" <% nvram_selected("af_category", "747"); %> >Mall, Outlet</option> |
|---|
| 189 | <option value="748" <% nvram_selected("af_category", "748"); %> >Hospital, Clinic</option> |
|---|
| 190 | <option value="749" <% nvram_selected("af_category", "749"); %> >Drink Stand</option> |
|---|
| 191 | <option value="750" <% nvram_selected("af_category", "750"); %> >Homeoffice</option> |
|---|
| 192 | </select> |
|---|
| 193 | </div> |
|---|
| 194 | <div class="setting"> |
|---|
| 195 | <div class="label"><% tran("anchorfree.publish"); %></div> |
|---|
| 196 | <input class="spaceradio" type="radio" value="1" name="af_publish" <% nvram_selmatch("af_publish","1", "checked"); %> /><% tran("share.enable"); %> |
|---|
| 197 | <input class="spaceradio" type="radio" value="0" name="af_publish" <% nvram_selmatch("af_publish","0", "checked"); %> /><% tran("share.disable"); %> |
|---|
| 198 | </div> |
|---|
| 199 | <div class="setting"> |
|---|
| 200 | <div class="label"><% tran("anchorfree.serviceid"); %></div> |
|---|
| 201 | <span id="af_serviceid"><% nvram_get("af_serviceid"); %></span> |
|---|
| 202 | </div> |
|---|
| 203 | <div class="setting"> |
|---|
| 204 | <div class="label"><% tran("anchorfree.servicestatus"); %></div> |
|---|
| 205 | <span id="af_servicestatus"><% nvram_get("af_servicestatus"); %></span> |
|---|
| 206 | </div> |
|---|
| 207 | </div> |
|---|
| 208 | </fieldset><br /> |
|---|
| 209 | <div class="submitFooter"> |
|---|
| 210 | <script type="text/javascript"> |
|---|
| 211 | //<![CDATA[ |
|---|
| 212 | var autoref = <% nvram_else_match("refresh_time","0","sbutton.refres","sbutton.autorefresh"); %>; |
|---|
| 213 | submitFooterButton(1,1,0,autoref); |
|---|
| 214 | //]]> |
|---|
| 215 | </script> |
|---|
| 216 | </div> |
|---|
| 217 | </form> |
|---|
| 218 | </div> |
|---|
| 219 | </div> |
|---|
| 220 | <div id="helpContainer"> |
|---|
| 221 | <div id="help"> |
|---|
| 222 | <div><h2><% tran("share.help"); %></h2></div><br/> |
|---|
| 223 | <a href="javascript:openHelpWindow<% ifdef("MICRO","Ext"); %>('HAnchorFree.asp');"><% tran("share.more"); %></a> |
|---|
| 224 | </div> |
|---|
| 225 | </div> |
|---|
| 226 | <div id="floatKiller"></div> |
|---|
| 227 | <div id="statusInfo"> |
|---|
| 228 | <div class="info"><% tran("share.firmware"); %>: |
|---|
| 229 | <script type="text/javascript"> |
|---|
| 230 | //<![CDATA[ |
|---|
| 231 | document.write("<a title=\"" + share.about + "\" href=\"javascript:openAboutWindow()\"><% get_firmware_version(); %></a>"); |
|---|
| 232 | //]]> |
|---|
| 233 | </script> |
|---|
| 234 | </div> |
|---|
| 235 | <div class="info"><% tran("share.time"); %>: <span id="uptime"><% get_uptime(); %></span></div> |
|---|
| 236 | <div class="info">WAN<span id="ipinfo"><% show_wanipinfo(); %></span></div> |
|---|
| 237 | </div> |
|---|
| 238 | </div> |
|---|
| 239 | </div> |
|---|
| 240 | </body> |
|---|
| 241 | </html> |
|---|