Location: PHPKode > projects > Enzyme: PHP profile/object community mgr > Enzyme-0.6.3/main/edit/sendResumes.php3
<? page_open(array("sess" => "Poe_Session" ) ); //, "auth" => "Poe_Challenge_Auth", "perm" => "Cat_Perm", "user" => "Poe_User")); ?>
<? 
$PAGE_TITLE = "Report a Problem";
include "cat_header.inc"; 
//$cat_body = "#ffffff";
$no_menubar = TRUE;

define( EMPLOYER_COUNT, 5 );
?>
<?
if( empty( $report ) ):
?>
<script language="JavaScript1.2"><!--
function deleteCoverLetter()
	{
	document.sendResumes.cover_letter.value = "Start typing your new cover letter"
	document.sendResumes.cover_letter.select()
	}
// -->
		</script>
<TABLE border="0" cellpadding="3" cellspacing="0" frame width="100%">
        <TR>
                <TD width="112" colspan="3" bgcolor="#3130CE">
                        <IMG src="headerImages/sendResumes.gif">
        </TR>
</TABLE>

<table border="0" width="580">
<tr><td>
Your Catalyst profile can be made available for public view at a unique
URL based on your username. Employers don't need to subscribe to Catalyst
in order to access this URL, but they do need to be directed there by you.
 In order to let employers other than our ordinary subscribers know about
your profile, you will need to do two things:<p>
1. Allow public access to your profile by visiting our
<a href="settings.php3">settings page</a>.
<p>
2. Type in the e-mail addresses of people you'd like to have know about you. 
They will be sent a message containing a link to your profile and a cover 
letter explaining your interest in employment. If you don't like the 
cover letter we've provided, feel free to provide your own.<p>
</td>
</tr>
</table>

			<table border="0" width="100%">
			<td><b>Enter employer e-mail addresses below</b></td>
		</tr>
		<tr>
			<td><form name="sendResumes">

<ol>
<? 
for( $i = 1; $i<= EMPLOYER_COUNT; $i++ )
{
  printf( '<li><input type="text" name="sendTo%d" size="33"><br>',
	  $i
	  );
}
?>
</ol>
</td>
		</tr>
		<tr>
			<td>
				<hr>
			</td>
		</tr>
		<tr>
			<td>
<b>
					Type your cover letter here<br></b>
					<br>
					<? echo $cover_letter ?>
<textarea name="cover_letter" cols="57" rows="6">
<? include "defaultcoverletter.inc"; ?>
</textarea><br>
					<br>
<input type="button" value="Erase Cover Letter" name"erase" onmouseup="deleteCoverLetter()">
<P>
<input type="hidden" name="orig_ref" value="<? echo $HTTP_REFERER; ?>">

<input type="submit" name="report" value="Send Resum&eacute;s"></form>
			</td>
		</tr>
	</table>
	<? else: ?>
<TABLE border="0" cellpadding="3" cellspacing="0" frame width="100%">
        <TR>
                <TD width="112" colspan="3" bgcolor="#3130CE">
                        <IMG src="headerImages/sendResumes.gif">
        </TR>
</TABLE>
	
<? 
	$globals = "\$sendTo, \$cover_letter";
  include( "EmailTemplate.inc" );
  $e = new Email;

for( $i = 1; $i <= EMPLOYER_COUNT; $i++ )
{
  $sendTo = ${'sendTo'.$i};
  if( empty( $sendTo ) )
    continue;

  $e->load( "sendResumes_email.txt", $globals );
  $e->send();
}
?>
   <p>
<? printf("<table border=\"0\" cellpadding=\"0\" width=\"0\">
	<tr><td><font size=\"3\">Your cover letter has been sent to all of the selected employers. Good luck.</font>
<p>
<a href='/'>Return to the home page.</a>
	<p>
</font></td></tr></table>", $email); ?>
<img src="images/shim.gif" height="400" width="500">
<p>
<? endif; ?>

<? include "cat_footer.inc"; ?>
<? page_close(); ?>
Return current item: Enzyme: PHP profile/object community mgr