<%@ page import="java.util.Vector, java.util.List, java.util.HashMap, com.trieste.Configuration, com.trieste.objects.enumerations.SubCategoryType, com.trieste.process.FormErrorProcess, com.trieste.objects.enumerations.LinkRequestStatus, com.trieste.process.StringProcess, org.apache.torque.*" %> <% String siteid = Configuration.getSiteId(); String header1 = "/sites/" + siteid + "/includes/templates/subcat_header1.html"; String header2 = "/sites/" + siteid + "/includes/templates/subcat_header2.html"; String footer1 = "/sites/" + siteid + "/includes/templates/subcat_footer1.html"; %> <% String secretid = request.getParameter("id"); LinkRequest lr = LinkRequest.getBySecretId(secretid); Vector errorVector = (Vector) session.getAttribute("errorvector"); HashMap errorMap = FormErrorProcess.getErrorMapFromErrorVector(errorVector); String errormsg = null; String divappend = null; session.removeAttribute("errorvector"); String siteName = Configuration.getSiteName(); String siteHost = Configuration.getHost(); %> Edit Your Link



<% if (lr == null) { %> <% } else if (lr.getStatus() != LinkRequestStatus.ACCEPTED.getValue()) { %> <% } else { String firstname = (String) session.getAttribute("firstname"); String lastname = (String) session.getAttribute("lastname"); String email = (String) session.getAttribute("email"); String url = (String) session.getAttribute("url"); String title = (String) session.getAttribute("title"); String desc = (String) session.getAttribute("description"); String reciprocal = (String) session.getAttribute("reciprocal"); int catid = lr.getParentcategoryid(); SubCategory cat = SubCategory.getById(catid); CompetitorAnalysis ca = CompetitorAnalysis.getById(lr.getCompetitorAnalysisId()); if (firstname == null) { firstname = (lr.getFirstName() == null) ? "" : lr.getFirstName(); } if (lastname == null) { lastname = (lr.getLastName() == null) ? "" : lr.getLastName(); } if (email == null) { email = (lr.getEmail() == null) ? "" : lr.getEmail(); } if (url == null) { url = (lr.getUrl() == null) ? "http://" : lr.getUrl(); } if (title == null) { title = (lr.getTitle() == null) ? "" : lr.getTitle(); } if (desc == null) { desc = (lr.getDescription() == null) ? "" : lr.getDescription(); } if (reciprocal == null) { reciprocal = (lr.getReciprocalUrl() == null) ? "http://" : lr.getReciprocalUrl(); } PageAnchor pa = PageAnchor.getById(lr.getPageAnchorId()); String oururl = null; String baseurl = Configuration.getBaseUrl(); String ourdesc = null; if (ca == null) { ourdesc = cat.getDescription(); oururl = baseurl + cat.getActualFilepath(); } else { oururl = Page.getById(ca.getPageId()).getFilepath(); ourdesc = lr.getOurDescription(); if (oururl.equals("/")) { oururl = baseurl; } else { oururl = baseurl + oururl; } } String htmlcode = "" + pa.getAnchor() + ""; if (ourdesc != null && !ourdesc.trim().equals("")) { htmlcode += " - " + ourdesc; } if (ca != null) { String banner = ""; htmlcode = StringProcess.replace(htmlcode, "[[IMAGE]]", banner); } %> <% errormsg = FormErrorProcess.getErrorMessageHTML("firstname", errorMap); divappend = FormErrorProcess.getErrorMessageDivAppend(errormsg); %> <% errormsg = FormErrorProcess.getErrorMessageHTML("lastname", errorMap); divappend = FormErrorProcess.getErrorMessageDivAppend(errormsg); %> <% errormsg = FormErrorProcess.getErrorMessageHTML("email", errorMap); divappend = FormErrorProcess.getErrorMessageDivAppend(errormsg); %> <% errormsg = FormErrorProcess.getErrorMessageHTML("url", errorMap); divappend = FormErrorProcess.getErrorMessageDivAppend(errormsg); %> <% errormsg = FormErrorProcess.getErrorMessageHTML("title", errorMap); divappend = FormErrorProcess.getErrorMessageDivAppend(errormsg); %> <% errormsg = FormErrorProcess.getErrorMessageHTML("description", errorMap); divappend = FormErrorProcess.getErrorMessageDivAppend(errormsg); %> <% errormsg = FormErrorProcess.getErrorMessageHTML("reciprocal", errorMap); divappend = FormErrorProcess.getErrorMessageDivAppend(errormsg); %> <% } %>
We could not find that reciprocal link.
Your reciprocal link for the site located at <%= lr.getUrl() %> is currently waiting for approval from our staff.

Once your link request has been approved you will be able to edit it on this page.

Our Reciprocal Link

Please place the following HTML on your site:
 

Edit Your Link

Your link has been approved and is visible at the category shown below
Category: (View)
First Name:  ><%= errormsg %>
Last Name:  ><%= errormsg %>
Email:  ><%= errormsg %>
Your URL:  ><%= errormsg %>
Your Website Title:  ><%= errormsg %>
Your Website's Description:  ><%= errormsg %>
Reciprocal Link URL:
(URL of the page you
are linking to us from)
><%= errormsg %>