[再次求助万能的tg众] 网页是asp模板的,我想专门修改某一个页面,咋整?
- dreamcasty[再次求助万能的tg众] 网页是asp模板的,我想专门修改某一个页面,咋整?
例如
http://www.tgfcer.com/club/post.php?action=newthread&fid=25&extra=page%3D1
红色部分应该是固定的模板,由一个php文件,设定了所有的格式。 后面的?action= 指向了一个固定的连接
现在我想要把指向的这个连接修改为一个别的连接 ,但是如果在之前的php上修改,那么其他的连接将受到牵连,
那我怎么办?
老天阿,为什么让我这个2把刀负责修改公司的网页 - keelzhangif(action = ???){ response.redirect aaaaaaaaaaaa.asp} else {}
这样? - dreamcasty<%if request("companyId") <> "" then
strSql = "Select companyId,name_tw,des_tw,logo,url,swidth,sheight" &_
" from company where companyId=" & request("companyId")
Set rs = server.createobject("adodb.recordset")
rs.Open strSql,conn,1,1
if not rs.eof then
%>那么我是不是在
Set rs = server.createobject("adodb.recordset")
之前添加那个语句 ???
- jinniaction是一个变量名,action=后面的是action的值。你想要改什么?变量名?
- dreamcasty<%if request("companyId") <这里么?着急的脑袋上长疙瘩> "" then
- keelzhang倒。。。。 还是先看些基础的书吧。。。
- dreamcastyhttp://quadrep.cn/products_page.asp?companyId=25
这个是我们的公司那个需要修改为 原厂 的连接的地址,我想把它改成
http://portal1.fciconnect.com/po ... cntPublic/Brochures
if语句添加到哪里?才能在主页上点击companyid为25的页面 不显示目前叶面,而直接到
http://portal1.fciconnect.com/po ... cntPublic/Brochures - voodoo在开头加
<%
if request("companyId")=25 then
response.redirect "http://portal1.fciconnect.com/portal/page/portal/FcicntPublic/Brochures"
response.end
end if
%> - dreamcasty感谢老大都出来帮忙,我刚才看了一下,我应该在这个页的上一页做修改才对
贴出原码
<%
strSql = "Select companyId,name_tw,shortDes_tw,logo,swidth,sheight from company where name_tw<>''"
Set rs = server.createobject("adodb.recordset")
rs.Open strSql,conn,1,1
cur = 1
do while not rs.eof
%>
<tr>
<td width="155" style="padding-left:5px;"><a href="products_page.asp?companyId=<%=rs("companyId")%>"><img src="upload/<%=rs("logo")%>" width="<%=rs("swidth")%>" height="<%=rs("sheight")%>" border="0"></a></td>
<td><a href="products_page.asp?companyId=<%=rs("companyId")%>" class="products_name"><%=rs("shortDes_tw")%></a></td>
</tr>
<%
rs.moveNext
cur = cur + 1
loop
set rs = nothing
%>
</table></td>
</tr>
<tr>
<td><img src="images/kr_bottom.gif" width=568 height=8 alt=""></td>
</tr>
</table></td>
</tr>
<tr>
<td> </td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table>
<!--#include file="botton.asp"-->
</BODY>
</HTML>
<%call endConnection()%>
照这个情况,请问voodoo 大神 是不是在<a href="products_page.asp?companyId=<%=rs("companyId")%>" class="products_name"><%=rs("shortDes_tw")%></a> 这句之前加上一个if 语句,把<a href> 前面加上else 就能够完成呢?
麻烦您了 - voodoo改这个页面的话
把
<td width="155" style="padding-left:5px;"><a href="products_page.asp?companyId=<%=rs("companyId")%>"><img src="upload/<%=rs("logo")%>" width="<%=rs("swidth")%>" height="<%=rs("sheight")%>" border="0"></a></td>
<td><a href="products_page.asp?companyId=<%=rs("companyId")%>" class="products_name"><%=rs("shortDes_tw")%></a></td>
改成
<%if rs("companyId")=52 then%>
<td width="155" style="padding-left:5px;"><a href="http://portal1.fciconnect.com/portal/page/portal/FcicntPublic/Brochures"><img src="upload/<%=rs("logo")%>" width="<%=rs("swidth")%>" height="<%=rs("sheight")%>" border="0"></a></td>
<td><a href="http://portal1.fciconnect.com/portal/page/portal/FcicntPublic/Brochures" class="products_name"><%=rs("shortDes_tw")%></a></td>
<%else%>
<td width="155" style="padding-left:5px;"><a href="products_page.asp?companyId=<%=rs("companyId")%>"><img src="upload/<%=rs("logo")%>" width="<%=rs("swidth")%>" height="<%=rs("sheight")%>" border="0"></a></td>
<td><a href="products_page.asp?companyId=<%=rs("companyId")%>" class="products_name"><%=rs("shortDes_tw")%></a></td>
<%end if%> - dreamcasty神 阿 !!!!!!!
搞定了!!!万分感谢