Please help

Started on the old forum in October 2011 · view the original in the archive · old links redirect here

11 replies · 617 views · started 15 years ago · 1 min read

6 participants
bOrN2pwn Developer · 230 posts #1

Please help me my company asked me to update the website.

What I'm asking is that if you click on the image that it pops out and you can see the BIG Picture. Can any 1 please help me.

<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<!--#include file="../Connections/SMEI.asp" -->
<%
var SMEI = Server.CreateObject("ADODB.Recordset")
SMEI.ActiveConnection = MM_SMEI_STRING
SMEI.Source = "SELECT * FROM Project"
SMEI.CursorType = 0;
SMEI.CursorLocation = 2;
SMEI.LockType = 1;
SMEI.Open();
var SMEI_numRows = 0;
%>
<!--#include file="../Connections/smei.asp" -->

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>: SMEI PROJECTS :</title>
<style type="text/css">
<!--
.style3 {
	font-size: 24px;
	color: #000066;
	font-family: "Trebuchet MS";
	font-weight: bold;
}
.style4 {font-family: "Trebuchet MS"}
-->
</style>
</head>

<body>
<form name="form1" method="post" action="">
<p class="style3">Our Projects </p>

     <%
	 
	  If smei.eof = True Then
	  response.write "<div align='center'><font face='verdana' color='white'>No Projects Found"
	  response.write "<br>"

	  Else

	  %>
	  
	  
	   <%
Dim counter1
Counter1 = 0
While ((Repeat1__numRows <> 0) AND (NOT Smei.EOF))

Counter1 = Counter1 + 1
Response.write "<span class='style8'><b>Candidate Number "
Response.write counter1
Response.write "</span></b>"

%>
     <table width="565" border="1">
       <tr>
         <td width="136"><span class="style4">Client</span></td>
         <td width="205"><label></label>
             <%=(SMEI.Fields.Item("Client").Value)%></td>
         <td width="202" rowspan="5"><%=(SMEI.Fields.Item("Image").Value)%></td>
       </tr>
       <tr>
         <td><span class="style4">Project</span></td>
         <td><%=(SMEI.Fields.Item("Project").Value)%></td>
       </tr>
       <tr>
         <td><span class="style4">Project Scope </span></td>
         <td><%=(SMEI.Fields.Item("Project_scope").Value)%></td>
       </tr>
       <tr>
         <td><span class="style4">Contract Value </span></td>
         <td><%=(SMEI.Fields.Item("Contact Value").Value)%></td>
       </tr>
       <tr>
         <td><span class="style4">Completion</span></td>
         <td><%=(SMEI.Fields.Item("Completion_date").Value)%></td>
       </tr>
     </table>
	 <%

  Repeat1__index=Repeat1__index+1
  Repeat1__numRows=Repeat1__numRows-1
  Smei.MoveNext()

Wend
end if

%>
</form>
<p> </p>
<p class="style4" align="center"> </p>
</body>
</html>
<%
SMEI.Close();
%>
<%
smei.Close()
%>

BakGat

class Counter {
public:
  void Count();
  int  ReadDisplay();
private:
  int  CurrentCount;
};

External image (may be gone) External image (may be gone) External image (may be gone)

Back up my hard drive? How do I put it in reverse? http://www.hackthissite.org Profile…

arnage Lead · 811 posts #4

I saw that in js a long time ago at www.hotscripts.com, if it works for u js but really can't find it now.

<!DOCTYPE html PUBLIC "-//***WAPFORUM**.**RS***
metulj Super moderator Principal · 1,726 posts #6

something simple like this crap demo ?

It's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt. ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ ⓐⓡⓔ ⓐⓑⓛⓔ ⓣⓞ ⓗⓔⓐⓡ ! ιη тнєσяу, тнє ρяα¢тι¢є ιѕ α яєѕυℓт σƒ тнє тнєσяу, вυт ιη ρяα¢тι¢є ιѕ тнє σρρσѕιтє.

キノgんイノ刀g 4 ア乇ムc乇 ノ丂 レノズ乇 キucズノ刀g 4 √ノ尺gノ刀ノイリ!

something else Fellow · 2,296 posts #8

I dont really know to much asp but at a guess would say:

<td width="202" rowspan="5"><%=(Replace(SMEI.Fields.Item("Image").Value, "img", "img target=\"_blank\""))%> </td>
bOrN2pwn Developer · 230 posts #9

something else wrote: I dont really know to much asp but at a guess would say:

<td width="202" rowspan="5"><%=(Replace(SMEI.Fields.Item("Image").Value, "img", "img target=\"_blank\""))%> </td>

Gives an error.

Microsoft VBScript compilation error '800a0408' 

Invalid character 

/asp/project data.asp, line 76 
Response.Write((Replace(SMEI.Fields.Item("Image").Value, "img", "img target=\"_blank\"")))

BakGat

class Counter {
public:
  void Count();
  int  ReadDisplay();
private:
  int  CurrentCount;
};

External image (may be gone) External image (may be gone) External image (may be gone)

Back up my hard drive? How do I put it in reverse? http://www.hackthissite.org Profile…

something else Fellow · 2,296 posts #10

how about:

<td width="202" rowspan="5"><%=Replace(SMEI.Fields.Item("Image").Value, 'img', 'img target="_blank"')%> </td>
bOrN2pwn Developer · 230 posts #11

Same Error

Microsoft VBScript compilation error '800a03ea' 

Syntax error 

/asp/project data.asp, line 76 
Response.Write(Replace(SMEI.Fields.Item("Image").Value, 'img', 'img target="_blank"'))

BakGat

class Counter {
public:
  void Count();
  int  ReadDisplay();
private:
  int  CurrentCount;
};

External image (may be gone) External image (may be gone) External image (may be gone)

Back up my hard drive? How do I put it in reverse? http://www.hackthissite.org Profile…

something else Fellow · 2,296 posts #12

oops i was wrong anyway ..... adding target="_blank" wouldnt work to a html image code lol wth was i thinking .... guess would need the equivalent of php`s preg replace to use the image address twice once in the <a href and once in the <img src

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close