I need help on creating a new sub.
I want to have a new sub that will show out a html with this in it (details, go http://203.116.241.32/cgi-bin/db.cgi?db=default&uid=default click on view latest job ad..then click on apply) from there.. i want to have a page that shows the below table
<table border="0" width="60%" height="100" cellpadding="2" cellspacing="0">
<tr>
<td width="492" colspan="2" height="18">
<div align="center"><font face="Tahoma,Verdana,Arial" size="3"><b><font color="#3366FF">Please
email your resume as Word Attachment to us</font></b></font></div>
</td>
</tr>
<tr>
<td width="492" colspan="2" height="18">
<div align="center"><font face="Tahoma,Verdana,Arial" size="3"><a href="mailto:$rec{'Contact_Email'}">
<img src="http://203.116.241.32/okbutton.jpg" border=0></a> </font></div>
</td>
</tr>
<tr>
<td width="492" colspan="2" height="18"> </td>
</tr>
</table>
-------------------------------------------
This is to let user open up their email program and send it to the person's email (contact_email)
Below is the sub html_record {
----------------------------------------
sub html_record {
# --------------------------------------------------------
# How a record will be displayed. This is used primarily in
# returning search results and how it is formatted. The record to
# be displayed will be in the %rec hash.
# This is the "short display" -- the list of records that are returned
# from a search.
my (%rec) = @_;
$rec{$db_key} =~ s/<?.B>//g;
# create link to full display
$record_number = ((($nh - 1) * $db_max_hits) + $i);
$long_url = $ENV{'QUERY_STRING'};
$long_url =~ s/\&nh=\d+//;
$long_url =~ s/\&mh=\d+//;
$long_url = "$db_script_url?$long_url&nh=$record_number&mh=1";
print " <table border='0' width='500' height='5' cellpadding='2' cellspacing='0'><tr><td width='492' colspan='2' height='18'>"; # do not remove this! It is necessary to make the records display properly
# Below is where you define what you want to appear for each record in the "short" display.
# You can make this whatever you want, and display as many fields as you would like.
# Choose which of the fields you would like for users to click on to reach the full display
# of records and use that field name in place of "Title" below.
#
# Be sure that you use <a href="$long_url"> for the link to your full record display.
# <-- Start of short display formatting -- >
print qq|<font face="Tahoma,Verdana,Arial" size="2">Industry:
$rec{'Industry'}</font></td>
</tr>
<tr>
<td width="492" colspan="2" height="18"><font face="Tahoma,Verdana,Arial" size="2">Position:
$rec{'Position'}</font></td>
</tr>
<tr>
<td width="492" colspan="2" height="18"> </td>
</tr>
<tr>
<td width="492" height="18"><font face="Tahoma,Verdana,Arial" size="2"><b>Job
Title :</b><b>$rec{'Job_Title'}</b></font></td>
<td width="492" height="18"><a href="$db_script_link_url&$db_key=$rec{$db_key}&submit_application=1"><img src="http://203.116.241.32/applybutton.jpg" border=0></a></td>
</tr>
<tr>
<td width="498" height="1" colspan="2"><font face="Tahoma,Verdana,Arial" size="2">Employment
type: $rec{'Employment_Type'}</font></td>
</tr>
<tr>
<td width="498" height="1" colspan="2"><font face="Tahoma,Verdana,Arial" size="2">Work
location: $rec{'Work_Location'}</font></td>
</tr>
<tr>
<td width="498" height="1" colspan="2"><font face="Tahoma,Verdana,Arial" size="2">Min.
qualification: <b>$rec{'Min_Qualification'}</b></font></td>
</tr>
<tr>
<td width="498" height="1" colspan="2"><font face="Tahoma,Verdana,Arial" size="2">Job
Description & Requirements: $rec{'Additional_Remarks'}</font></td>
</tr>
<tr>
<td width="249" height="32"><font face="Tahoma,Verdana,Arial" size="2">posted
date: <b>$rec{'Date'}</b></font></td>
<td width="249" height="32"><font face="Tahoma,Verdana,Arial" size="2">Closing
date: <b>$rec{'Closing_Date'}</b></font>|;
print "</TD></TR></TABLE>"; # do not remove this! It is necessary to make the records display properly
}
I want to have a new sub that will show out a html with this in it (details, go http://203.116.241.32/cgi-bin/db.cgi?db=default&uid=default click on view latest job ad..then click on apply) from there.. i want to have a page that shows the below table
<table border="0" width="60%" height="100" cellpadding="2" cellspacing="0">
<tr>
<td width="492" colspan="2" height="18">
<div align="center"><font face="Tahoma,Verdana,Arial" size="3"><b><font color="#3366FF">Please
email your resume as Word Attachment to us</font></b></font></div>
</td>
</tr>
<tr>
<td width="492" colspan="2" height="18">
<div align="center"><font face="Tahoma,Verdana,Arial" size="3"><a href="mailto:$rec{'Contact_Email'}">
<img src="http://203.116.241.32/okbutton.jpg" border=0></a> </font></div>
</td>
</tr>
<tr>
<td width="492" colspan="2" height="18"> </td>
</tr>
</table>
-------------------------------------------
This is to let user open up their email program and send it to the person's email (contact_email)
Below is the sub html_record {
----------------------------------------
sub html_record {
# --------------------------------------------------------
# How a record will be displayed. This is used primarily in
# returning search results and how it is formatted. The record to
# be displayed will be in the %rec hash.
# This is the "short display" -- the list of records that are returned
# from a search.
my (%rec) = @_;
$rec{$db_key} =~ s/<?.B>//g;
# create link to full display
$record_number = ((($nh - 1) * $db_max_hits) + $i);
$long_url = $ENV{'QUERY_STRING'};
$long_url =~ s/\&nh=\d+//;
$long_url =~ s/\&mh=\d+//;
$long_url = "$db_script_url?$long_url&nh=$record_number&mh=1";
print " <table border='0' width='500' height='5' cellpadding='2' cellspacing='0'><tr><td width='492' colspan='2' height='18'>"; # do not remove this! It is necessary to make the records display properly
# Below is where you define what you want to appear for each record in the "short" display.
# You can make this whatever you want, and display as many fields as you would like.
# Choose which of the fields you would like for users to click on to reach the full display
# of records and use that field name in place of "Title" below.
#
# Be sure that you use <a href="$long_url"> for the link to your full record display.
# <-- Start of short display formatting -- >
print qq|<font face="Tahoma,Verdana,Arial" size="2">Industry:
$rec{'Industry'}</font></td>
</tr>
<tr>
<td width="492" colspan="2" height="18"><font face="Tahoma,Verdana,Arial" size="2">Position:
$rec{'Position'}</font></td>
</tr>
<tr>
<td width="492" colspan="2" height="18"> </td>
</tr>
<tr>
<td width="492" height="18"><font face="Tahoma,Verdana,Arial" size="2"><b>Job
Title :</b><b>$rec{'Job_Title'}</b></font></td>
<td width="492" height="18"><a href="$db_script_link_url&$db_key=$rec{$db_key}&submit_application=1"><img src="http://203.116.241.32/applybutton.jpg" border=0></a></td>
</tr>
<tr>
<td width="498" height="1" colspan="2"><font face="Tahoma,Verdana,Arial" size="2">Employment
type: $rec{'Employment_Type'}</font></td>
</tr>
<tr>
<td width="498" height="1" colspan="2"><font face="Tahoma,Verdana,Arial" size="2">Work
location: $rec{'Work_Location'}</font></td>
</tr>
<tr>
<td width="498" height="1" colspan="2"><font face="Tahoma,Verdana,Arial" size="2">Min.
qualification: <b>$rec{'Min_Qualification'}</b></font></td>
</tr>
<tr>
<td width="498" height="1" colspan="2"><font face="Tahoma,Verdana,Arial" size="2">Job
Description & Requirements: $rec{'Additional_Remarks'}</font></td>
</tr>
<tr>
<td width="249" height="32"><font face="Tahoma,Verdana,Arial" size="2">posted
date: <b>$rec{'Date'}</b></font></td>
<td width="249" height="32"><font face="Tahoma,Verdana,Arial" size="2">Closing
date: <b>$rec{'Closing_Date'}</b></font>|;
print "</TD></TR></TABLE>"; # do not remove this! It is necessary to make the records display properly
}