mrkryz
Posts: 4
|
| Posted: 02/17/2005, 7:21 PM |
|
Hi everyone,
Noob to CodeCharge Studio... lol
Ive created a web application (IIS/ASP/SQL SERVER 2K) for managing affiliates cobranded web pages which does the following.
1) Logs http referer on entry to site.
2) Checks the referer against the DB to see if there is a match.
3) If no match the displays default.asp
4) If matched, then pulls content from DB to display their website (staticly saved in DB) + our dynamic asp content.
Problem is: I created the add/delete/search pages via CCS and everything works perfectly. However when a user builds the affiliate page they view source of the affiliates real site and inserts it into multiple textareas (top table, left table, right table, bottom table). I'd like to be able to automatically update all relative links ina ll textareas with absolute links. The actual domain name is in an input field named {CB_ForeignID} . Any help would be greatly appreciated as I am at a loss with ASP (PHP programmer here) .
html:
<html>
<head>
<meta name="GENERATOR" content="CodeCharge Studio 2.3.2.24">
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
<title>Add/Edit Co-Brand Partner</title>
<link rel="stylesheet" type="text/css" href="Themes/RockIt/Style.css">
</head>
<body bgcolor="#ffffff" link="#000099" alink="#ff0000" vlink="#000099" text="#000000" class="RockItPageBODY">
<p align="center"><img id="Image1" src="http://www.vanlines.com/images/vanlines.gif" name="Image1"></p>
<p align="center">
<!-- BEGIN Record tbl_CoBrandPartners --></p>
<div align="center">
<form method="post" action="{Action}" name="{HTMLFormName}">
<font class=""><strong><font size="5">Add/Edit Co-Brand Partners</font></strong> </font>
<table cellpadding="4" cellspacing="0" class="RockItFormTABLE" style="WIDTH: 860px; HEIGHT: 628px" border="2">
<!-- BEGIN Error -->
<tr>
<td colspan="2" class="RockItErrorDataTD">
<p align="center"><strong>{Error}</strong></p>
</td>
</tr>
<!-- END Error -->
<tr>
<td class="RockItFieldCaptionTD">
<p align="center"><strong>Domain:</strong></p>
</td>
<td class="RockItDataTD"><input name="{CB_domain_Name}" value="{CB_domain}" maxlength="250" size="50" class="RockItInput"> </td>
</tr>
<tr>
<td class="RockItFieldCaptionTD">
<p align="center"><strong>Username:</strong></p>
</td>
<td class="RockItDataTD"><input name="{CB_UserName_Name}" value="{CB_UserName}" maxlength="50" size="50" class="RockItInput"> </td>
</tr>
<tr>
<td class="RockItFieldCaptionTD">
<p align="center"><strong>Password:</strong></p>
</td>
<td class="RockItDataTD"><input name="{CB_Password_Name}" value="{CB_Password}" maxlength="50" size="50" class="RockItInput"> </td>
</tr>
<tr>
<td class="RockItFieldCaptionTD">
<p align="center"><strong>Active?:</strong></p>
</td>
<td class="RockItDataTD"><input name="{Is4test_Name}" value="{Is4test}" maxlength="2" size="2" class="RockItInput"> </td>
</tr>
<tr>
<td class="RockItFieldCaptionTD">
<p align="center"><strong>Backlink URL:</strong></p>
</td>
<td class="RockItDataTD"><input name="{CB_ForeignID_Name}" value="{CB_ForeignID}" maxlength="250" size="50" class="RockItInput" title="Include www."> </td>
</tr>
<tr>
<td class="RockItFieldCaptionTD">
<p align="center"><strong>Is Master:</strong></p>
</td>
<td class="RockItDataTD"><input name="{IsParent_Name}" value="{IsParent}" maxlength="10" size="10" class="RockItInput"> </td>
</tr>
<tr>
<td class="RockItFieldCaptionTD">
<p align="center"><strong>Parent ID:</strong></p>
</td>
<td class="RockItDataTD"><input name="{ParentID_Name}" value="{ParentID}" maxlength="10" size="10" class="RockItInput"> </td>
</tr>
<tr>
<td class="RockItFieldCaptionTD">
<p align="center"><strong>New System:</strong></p>
</td>
<td class="RockItDataTD"><input name="{Fullpage_Name}" value="{Fullpage}" maxlength="10" size="10" class="RockItInput"> </td>
</tr>
<tr>
<td class="RockItFieldCaptionTD">
<p align="center"><strong>Page Top:</strong></p>
</td>
<td class="RockItDataTD"><textarea class="RockItTextarea" style="WIDTH: 715px; HEIGHT: 117px" name="{CB_page_top_Name}" rows="6" cols="110">{CB_page_top}</textarea> </td>
</tr>
<tr>
<td class="RockItFieldCaptionTD">
<p align="center"><strong>Page Left:</strong></p>
</td>
<td class="RockItDataTD"><textarea class="RockItTextarea" style="WIDTH: 715px; HEIGHT: 110px" name="{CB_page_left_Name}" rows="6" cols="111">{CB_page_left}</textarea> </td>
</tr>
<tr>
<td class="RockItFieldCaptionTD">
<p align="center"><strong>Page Right:</strong></p>
</td>
<td class="RockItDataTD"><textarea class="RockItTextarea" style="WIDTH: 714px; HEIGHT: 110px" name="{CB_page_right_Name}" rows="6" cols="110">{CB_page_right}</textarea> </td>
</tr>
<tr>
<td class="RockItFieldCaptionTD">
<p align="center"><strong>Page Bottom:</strong></p>
</td>
<td class="RockItDataTD"><textarea class="RockItTextarea" style="WIDTH: 714px; HEIGHT: 111px" name="{CB_Page_bottom_Name}" rows="6" cols="110">{CB_Page_bottom}</textarea> </td>
</tr>
<tr>
<td class="RockItFieldCaptionTD">
<p align="center"><strong>Page Tags:</strong></p>
</td>
<td class="RockItDataTD"><textarea class="RockItTextarea" style="WIDTH: 713px; HEIGHT: 115px" name="{CB_Page_Tags_Name}" rows="6" cols="110">{CB_Page_Tags}</textarea> </td>
</tr>
<tr>
<td class="RockItFieldCaptionTD">
<p align="center"><strong>Group ID:</strong></p>
</td>
<td class="RockItDataTD"><input name="{CB_gid_Name}" value="{CB_gid}" maxlength="4" size="4" class="RockItInput"> </td>
</tr>
<tr>
<td colspan="2" align="right" nowrap class="RockItFooterTD">
<p align="center">
<!-- BEGIN Button Button_Insert --><input name="{Button_Name}" type="submit" value="Add" class="RockItButton"><!-- END Button Button_Insert -->
<!-- BEGIN Button Button_Update --><input name="{Button_Name}" type="submit" value="Submit" class="RockItButton"><!-- END Button Button_Update -->
<!-- BEGIN Button Button_Delete --><input name="{Button_Name}" type="submit" value="Delete" class="RockItButton"><!-- END Button Button_Delete --> </p>
</td>
</tr>
</table>
</form>
</div>
<p align="center"><!-- END Record tbl_CoBrandPartners --></p>
</body>
</html>
|