Você está na página 1de 8

<?

$nome $cargo $telefone $celular $email $empregado = = = = = = $_POST["nome"]; $_POST["cargo"]; $_POST["telefone"]; $_POST["celular"]; $_POST["email"]; $_POST["empregado"];

if($nome!=""){ $email_from = "email@dominio.com.br "; $assunto = "Cadastro de currculo"; $mensagem = " Nome: $nome E-mail: $email Telefone: $telefone Celular: $celular Cargo: $cargo Empregado: $empregado ";

$arquivo = isset($_FILES["curriculo"]) ? $_FILES["curriculo"] : FALSE; $fp = fopen($_FILES["curriculo"]["tmp_name"],"rb"); $anexo = fread($fp,filesize($_FILES["curriculo"]["tmp_name"])); $anexo = base64_encode($anexo); fclose($fp); $anexo = chunk_split($anexo); $boundary = "XYZ-" . date("dmYis") . "-ZYX"; $mens $mens $mens $mens $mens $mens $mens ."\"\n"; $mens .= "Content-Transfer-Encoding: base64\n\n"; $mens .= "$anexo\n"; $mens .= "--$boundary--\r\n"; $headers = "MIME-Version: 1.0\n"; $headers .= "From: \"$nome\" <$email_from>\r\n"; $headers .= "Content-type: multipart/mixed; boundary=\"$boundary\"\r\n"; $headers .= "$boundary\n"; mail($email_from,$assunto,$mens,$headers); } ?> = "--$boundary\n"; .= "Content-Transfer-Encoding: 8bits\n"; .= "Content-Type: text/html; charset=\"ISO-8859-1\"\n\n"; .= "$mensagem\n"; .= "--$boundary\n"; .= "Content-Type: ".$arquivo["type"]."\n"; .= "Content-Disposition: attachment; filename=\"".$arquivo["name"]

<html> <head> <title>TR Consultoria - Recursos Humanos</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <style type="text/css"> @import URL("text.css"); </style> &lt;script> function vEmail(email){ inca =" /:,;" if (email ==""){ return false } for (i=0;i<inca.length;i++){ ruim = inca.charAt(i) if (email.indexOf(ruim,0)>-1){ return false } } atPos=email.indexOf("@",1) if (atPos==-1){ return false } if (email.indexOf("@",atPos +1)>-1){ return false } pPos=email.indexOf(".",atPos) if (pPos==-1){ return false } if (pPos+3>email.length){ return false } return true } function cad(formV){ if (formV.nome.value==""){ alert ("Preencha o campo Nome ") formV.nome.focus() formV.nome.select() return false } if (formV.cargo.value==""){ alert ("Preencha o campo Cargo") formV.cargo.focus() formV.cargo.select() return false } if (formV.telefone.value==""){ alert ("Preencha o campo Telefone") formV.telefone.focus() formV.telefone.select() return false } if (formV.telefone.value.length <= 8) {

alert("Por favor, digite um telefone de no mnimo 8 dgitos"); formV.telefone.focus(); return false; } if (formV.celular.value==""){ alert ("Preencha o campo Celular") formV.celular.focus() formV.celular.select() return false } if (formV.celular.value.length <= 8) { alert("Por favor, digite um celular de no mnimo 8 dgitos"); formV.celular.focus(); return false; } if (formV.email.value==""){ alert ("Preencha o campo Email") formV.email.focus() formV.email.select() return false } if (!vEmail(formV.email.value)){ alert ("Endereo de e-mail invlido") formV.email.focus() formV.email.select() return false } if (formV.curriculo.value==""){ alert ("Por favor, anexe seu currculo.") formV.curriculo.focus() formV.curriculo.select() return false } return true } </script> </head> <body> <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0" bgc olor="#dddddd"> <tr> <td height="32" background="images/top_bg.gif"><table width="770" border="0" cellpadding="0" cellspacing="0" class="text"> <tr class="text"> <td width="50" height="32" align="right"><a href="index.html" style="b ackground:none"><strong><font color="#FFFFFF">HOME </font></strong></a></td> <td height="32" align="right"><strong><font color="#FFFFFF"> &lt;script language="JavaScript1.2"> <!-- Begin var months=new Array(13); months[1]="Janeiro"; months[2]="Fevereiro"; months[3]="Maro"; months[4]="Abril"; months[5]="Maio"; months[6]="Junho";

months[7]="Julho"; months[8]="Agosto"; months[9]="Setembro"; months[10]="Outubro"; months[11]="Novembro"; months[12]="Dezembro"; var time=new Date(); var lmonth=months[time.getMonth() + 1]; var date=time.getDate(); var year=time.getYear(); if (year < 2000) // Y2K Fix, Isaac Powell year = year + 1900; // http://onyx.idbsu.edu/~ipowell document.write("<right>" + date + " de "); document.write(lmonth + " de " + year + "</right>"); // End --> </script> </font></strong></td> </tr> </table></td> </tr> <tr> <td height="117" bgcolor="#C19999"><table width="770" border="0" cellspacing ="0" cellpadding="0"> <tr> <td width="491" valign="top"><img src="images/logo.jpg" width="491" he ight="117"></td> <td width="279" align="left" valign="top" bgcolor="#FFFFFF"><table wid th="279" border="0" cellpadding="0" cellspacing="0" class="menu"> <tr> <td height="20" background="images/but01.gif"><a href="estagios. html">ADMINISTRAO DE ESTGIOS</a></td> </tr> <tr> <td height="17" background="images/but02.gif"><a href="temporari os.html">ADMINISTRAO DE TEMPORRIOS</a></td> </tr> <tr> <td height="17" background="images/but03.gif"><a href="recrutame nto.html">RECRUTAMENTO E SELEO</a><a href="estagios.html"></a></td> </tr> <tr> <td height="18" background="images/but04.gif"><a href="maodeobra .html">TERCEIRIZAO DE MO-DE-OBRA</a></td> </tr> <tr> <td height="17" background="images/but05.gif"><a href="treinamen tos.html">TREINAMENTOS MOTIVACIONAIS</a></td> </tr> <tr> <td height="22" background="images/but06.gif"><a href="fale.html ">FALE CONOSCO</a></td> </tr> </table> <table width="258" border="0" align="right" cellpadding="0" cellsp acing="0" bgcolor="#C19999"> <tr> <td height="6"></td> </tr> </table></td> </tr>

</table></td> </tr> <tr> <td valign="top" background="images/bkg.gif"><table width="770" height="100% " border="0" cellpadding="0" cellspacing="0"> <tr> <td colspan="2" valign="top" bgcolor="#FFFFFF" class="text2"><h1>Cadas tre seu currculo</h1> <form action="<?php echo $editFormAction; ?>" onSubmit="return cad(t his)" method="POST" enctype="multipart/form-data" name="form1"> <table border="0" align="center" cellpadding="2" cellspacing="2" cl ass="text"> <tr> <td align="right" valign="middle" > </td> <td valign="middle" > </td> </tr> <tr> <td width="37%" align="right" valign="middle" >Nome:</td> <td width="63%" valign="middle" ><label> <input name="nome" type="text" class="text" id="nome" size="33 " /> </label></td> </tr> <tr> <td align="right" valign="middle" >Cargo Pretendido :</td> <td valign="middle" ><input name="cargo" type="text" class="text " id="cargo" size="33" /> <label></label></td> </tr> <tr> <td align="right" valign="middle" >Telefone:</td> <td valign="middle" ><input name="telefone" type="text" class="t ext" id="telefone" size="33" /></td> </tr> <tr> <td align="right" valign="middle" >Celular:</td> <td valign="middle" ><input name="celular" type="text" class="te xt" id="celular" size="33" /></td> </tr> <tr> <td align="right" valign="middle" >E-mail:</td> <td valign="middle" ><label> <input name="email" type="text" class="text" id="email" size=" 33" /> </label></td> </tr> <tr> <td align="right" valign="middle" >Empregado:</td> <td valign="middle" ><label> <select name="empregado" id="empregado"> <option value="no">no</option> <option value="sim">sim</option> </select> </label></td> </tr> <tr> <td align="right" valign="middle" >Curriculum:</td> <td valign="middle" ><input name="curriculo" type="file" class=" text" id="curriculo" /></td> </tr>

<tr> <td align="right" valign="middle" ><input type="hidden" name="MM _insert" value="form1"></td> <td valign="middle" ><label> <div align="right"> <input name="Submit" type="submit" class="text" value="Env iar" /> </div> </label></td> </tr> </table> </form> <p> </p> </td> <td width="258" align="center" valign="top" background="images/blue_bg .gif"><table width="225" border="0" cellspacing="0" cellpadding="0"> <tr> <td height="10"></td> </tr> <tr> <td><table width="225" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="75"><a href="#" style="background:none"><img src= "images/anuncie.gif" alt="Anuncie sua vaga" width="66" height="83" border="0"></ a></td> <td width="150" valign="middle"><div align="justify"><font s ize="1" face="Arial, Helvetica, sans-serif"><a href="#" style="background:none; text-decoration:none; color:#333333;"><b><font size="2">Anuncie sua vaga</font> </b><br> Cliente TR, pode cadastrar suas Vagas diretamente em nosso site. Voc deve apenas digitar sua Senha e Editar o formulrio padro de cadastrament o. </a></font></div></td> </tr> </table></td> </tr> <tr> <td height="15"></td> </tr> <tr> <td><table width="225" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="75"><a href="cadastre_cv.php" style="background:n one"><img src="images/cadastre.gif" alt="Cadastre seu currculo" width="66" height ="83" border="0"></a></td> <td width="150" valign="middle"><div align="justify"><font s ize="1" face="Arial, Helvetica, sans-serif"><a href="cadastre_cv.php" style="ba ckground:none; text-decoration:none; color:#333333;"><b><font size="2">Cadastre seu currculo</font></b><br> Se voc deseja trabalhar conosco mas no encontrou uma vaga de seu interesse, cadastre seu currculo. Voc poder ser contatado em futuras oportunid ades.</a></font></div></td> </tr> </table></td> </tr> <tr> <td height="15"></td> </tr> <tr> <td><table width="225" border="0" cellspacing="0" cellpadding="0">

<tr> <td width="75"><a href="#" style="background:none"><img src= "images/opiniao.gif" alt="D sua opinio" width="66" height="83" border="0"></a></td > <td width="150" valign="middle"><div align="justify"><font s ize="1" face="Arial, Helvetica, sans-serif"><a href="#" style="background:none; text-decoration:none; color:#333333;"><b><font size="2">D sua opinio</font></b><b r> Se voc deseja fornecer opinio sobre nosso Site, Nossos Profi ssionais, Produtos e Servios, por favor, preencham o formulrio. </a></font></div>< /td> </tr> </table></td> </tr> <tr> <td height="15"></td> </tr> <tr> <td><table width="225" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="75"><a href="#" style="background:none"><img src= "images/clientes.gif" alt="Nossos clientes" width="66" height="83" border="0"></ a></td> <td width="150" valign="middle"><div align="justify"><font s ize="1" face="Arial, Helvetica, sans-serif"><a href="#" style="background:none; text-decoration:none; color:#333333;"><b><font size="2">Nossos Clientes</font>< /b><br> Nossos Clientes. <br> Confira aqui todos os clientes da TR Consultoria e acesse seus sites diretamente, clicando nos links disponveis.</a></font></div></td> </tr> </table></td> </tr> <tr> <td height="15"></td> </tr> <tr> <td><table width="225" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="75"><a href="#" style="background:none"><img src= "images/disponiveis.gif" alt="Vagas disponveis" width="66" height="83" border="0" ></a></td> <td width="150" valign="middle"><div align="justify"><font s ize="1" face="Arial, Helvetica, sans-serif"><a href="#" style="background:none; text-decoration:none; color:#333333;"><b><font size="2">Vagas Disponveis</font>< /b><br> Confiram aqui todas as oportunidades disponveis atualmente em nossa empresa. <br> </a></font></div></td> </tr> </table></td> </tr> <tr> <td height="15"></td> </tr> </table></td> </tr> </table></td> </tr>

<tr> <td height="29" background="images/bottom_bg.gif"><table width="770" border= "0" cellpadding="0" cellspacing="0" class="text"> <tr class="text"> <td height="30" align="center"><font color="#FFFFFF"> 2007 TR Consultor ia - Recursos Humanos</font></td> </tr> </table></td> </tr> </table> </body> </html>