| View previous topic :: View next topic |
| Author |
Message |
escobar479
Joined: 04 May 2009
Posts: 1
|
| Posted: Mon May 04, 2009 5:13 pm How to copy php code from template |
|
|
Hello,
I downloaded a store locator web app built on php that I downloaded from http://www.escaperadius.com/. It is a great program but Im having trouble getting the code to work on my index.html file. Does anyone have experience with this program or maybe doing something similar
I attached the template file where the app is installed on in case you need to take a look at it.
Thank you so much in advance.
Chris
Code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html><head>
<!-- CHANGE THE NEXT THREE LINES -->
<title>LiteRadius Geographic Locator</title>
<meta name="Description" content="Place your website description in this area. This is read by some search engines.">
<meta name="KeyWords" content="add, your, keywords and phrases in this area, seperated, by, commas, this, is read by only a, few search, engines">
<!-- CHANGE THE ABOVE THREE LINES -->
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<META http-equiv="Content-Language" content="en">
<META name="revisit-after" content="15 days">
<META name="robots" content="index, follow">
<META name="rating" content="General">
<META name="robots" content="All">
<link rel="StyleSheet" href="golf_graphics/corporatestyle.css" type="text/css">
<link rel="StyleSheet" href="lr_v30/system/literadius/views/map_assets/js_css/green.css" type="text/css">
<script src="http://maps.google.com/maps?file=api&v=2&key=INSERT_YOUR_API_KEY_HERE" type="text/javascript"></script>
<script language="JavaScript" type="text/javascript" src="lr_v30/system/literadius/views/map_assets/js_css/xml_g_maps.js"></script>
<script language="JavaScript" type="text/javascript" src="lr_v30/system/literadius/views/map_assets/js_css/elabel.js"></script>
</head>
<!-- -->
<BODY onload="load()" onunload="GUnload()" BGCOLOR="#FFFFFF" TEXT="#000000" leftmargin="0" rightmargin="0" topmargin="0" bottommargin="0" marginheight="0" marginwidth="0">
<!-- PAGE TABLE-->
<TABLE cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td align="left" valign="top">
<script language="JavaScript" type="text/javascript" src="golf_graphics/header.js"></script>
<!-- IMAGE TABLE AREA -->
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
<td background="golf_graphics/bar.gif" colspan="3" height="17"> <img src="golf_graphics/spacer.gif" height="17" width="15" border="0" alt="image" /><br />
</td>
</tr>
<tr>
<td width="720"> <img src="golf_graphics/golf_header.jpg" width="720" height="80" /><br />
</td>
<td bgcolor="#000000" width="1"> <img src="golf_graphics/spacer.gif" height="10" width="1" border="0" alt="image" /><br />
</td>
<td background="golf_graphics/background-picture-end.gif"> <img src="golf_graphics/spacer.gif" height="80" width="15" border="0" alt="image" /><br />
</td>
</tr>
<tr>
<td background="golf_graphics/bar.gif" colspan="3" height="17"> <img src="golf_graphics/spacer.gif" height="17" width="15" border="0" alt="image" /><br />
</td>
</tr>
</table>
<!-- IMAGE TABLE AREA -->
<!-- SPLIT TABLE-->
<TABLE cellpadding="0" cellspacing="0" border="0">
<tr>
<td align="left" valign="top" background="golf_graphics/background-menu.gif" class="printhide">
<script language="JavaScript" type="text/javascript" src="golf_graphics/menu.js"></script>
<IMG SRC="golf_graphics/spacer.gif" height="10" width="175" border="0"><br>
</td>
<td align="center" valign="top" class="page-borders"> <img src="golf_graphics/spacer.gif" width="1" height="15" alt="image"><br>
</td>
<td align="left" valign="top" class="backgrounds">
<!-- CONTENT TABLE -->
<table border="0" cellspacing="0" cellpadding="5">
<tr>
<td valign="top"><p align="center">Enter Address:
<input name="addressInput" type="text" id="addressInput" onKeyPress="enterOverride(event)"/>
<input name="button" type="submit" onclick="searchLocations()" value="Search Locations"/>
<select onchange="initMapView(this.options[this.selectedIndex].value)" name="region_id" id="region_id">
<option value="us" selected="selected">USA</option>
<option value="ca">Canada</option>
<option value="wrld">World</option>
</select>
</p>
<form name="filter_form" id="filter_form" method="post" action="">
<table width="381" border="0" align="center" cellpadding="2">
<tr align="center" valign="middle">
<td align="left"> <input name="filter" type="checkbox" id="cart" onClick="checkboxClick(this.form, 'cart')" value="cart" checked="checked"/>
<img src="golf_graphics/icon_cart.gif" align="absmiddle" />
Carts </td>
<td align="left"><input name="filter" type="checkbox" id="food" onclick="checkboxClick(this.form, 'food')" value="food" checked="checked" />
<img src="golf_graphics/icon_food.gif" align="absmiddle" />
Fine Dining </td>
<td align="left"> <input name="filter" type="checkbox" id="pro" onclick="checkboxClick(this.form, 'pro')" value="pro" checked="checked"/>
<img src="golf_graphics/icon_pro.gif" align="absmiddle" />
Pro Shop </td>
</tr>
</table>
</form>
</td>
<td></td>
</tr>
<tr>
<td valign="top"><div id="map" style="width:500px; height:400px; border:1px solid black"></div> </td>
<td width="200" valign="top"> <div id="data_list" class="scrollPane"></div></td>
</tr>
</table>
<p>
<!-- CONTENT TABLE -->
</p>
</td>
<td>
<script language="JavaScript" type="text/javascript" src="golf_graphics/pageheight.js"></script>
</td></tr></table>
<!-- SPLIT TABLE -->
<!-- PAGE TABLE-->
</TD></TR><TR><TD valign="bottom" height="1" class="page-borders">
<img src="golf_graphics/spacer.gif" width="10" height="1" alt="image"><br>
</TD></TR><TR><TD valign="top">
<!-- COPYRIGHT -->
<TABLE cellpadding="0" cellspacing="6" border="0" width="100%" background="golf_graphics/background-bottom-shade.gif"><tr><td align="left" valign="top">
<script language="JavaScript" type="text/javascript" src="golf_graphics/copyright.js"></script>
</td><td align="right" valign="top">
</td></tr></table>
<!-- COPYRIGHT -->
</td></tr></table>
<!-- END PAGE TABLE-->
</BODY>
</HTML> |
|
|
|
Corey Bryant
Joined: 15 May 2004
Posts: 8748
Location: Castle Pines North, CO USA
|
| Posted: Tue May 05, 2009 3:56 am |
|
|
Just have to ask - if you are wanting some PHP code to work, the page needs to be named with a php extension, like index.php, index.phtml, index.phtm or set up the server to process the .html file extension as PHP.
_________________
Corey
Toll Free Solutions | Mile High Merchant Accounts | Expression Web Blog |
|
|
JenniC
Joined: 17 Mar 2009
Posts: 6
|
| Posted: Sun May 24, 2009 7:33 am Template substitution with biterscripting |
|
|
I am not familiar with escaperadius. But if it is a template, I am generally aware of how web pages are generated from teplates. Templates generally require substituting markers with other text. (That text can be constant, can be a variable, can be the contents of a file, etc.)
For example, if your template is at "template_path" (whatever extension) and you want to change the marker "INSERT_YOUR_API_KEY_HERE" with "12345678", you can do it as below in biterscripting ( http://www.biterscripting.com/install.html ) .
Code: var str content ; cat "template_path" > $content
var str substitute ; set $substitute="12345678"
# To substitute with contents of a file use, set $substitute = { cat "file" }
sal "^INSERT_YOUR_API_KEY_HERE^" $substitute $content ; echo $content
J |
|
|
| |
|
|
|