Hi all,
I hope I am not too far off the topic here. I actually need help with cgi,
and mysql.
Please refer to the this file to see the program itself:
http://www.jhanna.com/ExtraPage4.txt

What I need to do is to break apart the subroutine, and do some
manupulations on it before displaying the output and I just can't figure out
how to do it!

I basically want to accumplish 4 different tasks:
1. If an flag is set in the table to show the contact person, then I want
this line displayed:

If (IsContact=1) then show:
<TR VALIGN=TOP><TD>
Document Published by: $Announcement{'Contact'}, whose email address is:
$Announcement{'ContactEmail'}
</TD></TR>
Else, I don't want it there.


2.
<TR VALIGN=TOP><TD>
<B><FONT FACE=$PRO::config->{COLORS_ALL_FontFace}
COLOR=$PRO::config->{COLORS_ALL_TitleColor}
SIZE=$PRO::config->{COLORS_ALL_FontSizeSmall}>
$Announcement{'RelatedTitle'}</FONT></B><BR>
<A
HREF=\"$Announcement{'RelatedURL1'}\">$Announcement{'RelatedText1'}</A><BR>
<A
HREF=\"$Announcement{'RelatedURL2'}\">$Announcement{'RelatedText2'}</A><BR>
<A
HREF=\"$Announcement{'RelatedURL3'}\">$Announcement{'RelatedText3'}</A><BR>
<A
HREF=\"$Announcement{'RelatedURL4'}\">$Announcement{'RelatedText4'}</A><BR>
<A
HREF=\"$Announcement{'RelatedURL5'}\">$Announcement{'RelatedText5'}</A><BR>
<A HREF=\"$Announcement{'RelatedURL6'}\">$Announcement{'RelatedText6'}</A>
</TD></TR>

What I want to do here is to check for validity of the field
$Announcement{'RelatedTitle'}, and if this field is not empty, then outout a
list of the URL's and the Names in a row, and numbered from 1 to...
<A HREF=\"$Announcement{'RelatedURLX'}\">$Announcement{'RelatedTextX'}</A>


3. If the option is set in the configuration files, the I want to be able to
either disply/not display the following line:
<A HREF=\"$PRO::config->{'Urls_emailit.cgi'}\"><img border=0
src=$PRO::config->{ILP_All_RequestInfo_Icon}
alt='$PRO::config->{ILP_All_RequestInfoAlt}'></A>

4.
The line:
<img border=0 src=$Announcement{'ThirdIcon'}
width=$Announcement{'ThirdWidth'} height=$Announcement{'ThirdHeight'}
alt=$Announcement{'ThirdAltText'}>
I want to check the table first, and if there exists a
$Announcement{'ThirdIcon'}, then display this line. I know if the values are
not there, it doesn't display them automaticaly, but the problem is that if
that's the case, I get a lits of empty spaces in the page, and if I can do
some checking, I can eliminate those spaces.

P.S. I am willing to pay someone to advice me on how to do this

Thanks so much,
Soheil


---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to