<? if($_GET['home'] == "add") {
if (empty($_POST['nome'])) { // campos obrigatorios
echo "<script>window.location='evento.php';alert('Preencha todos os campos.');</script>";

	
} else {
	
$fp = fopen("../../dados/evento.txt","a");
$pula = "\r\n";
$linha=$valor.":".$vencimento.":\n";
fwrite($fp,"{$_POST['site']}|{$_POST['nome']}|{$_POST['pontos']}|{$_POST['autor']}|{$_POST['data']}|{$_POST['mensagem']}|{$_POST['linkimage1']}|{$_POST['linkimage2']}|{$_POST['download1']}|{$_POST['download2']}|{$_POST['sub']}|{$_POST['extras']}\r\n");
fclose($fp);

echo "<script>window.location='evento.php';alert('Administrador, seu evento foi enviado..');</script>";

}
} else {
?>
<HTML>
<HEAD>
<TITLE>::Criando Web - Hospedagem de Sites::</TITLE>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<link href="../styles.css" rel="stylesheet" type="text/css">
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->

</SCRIPT>
</HEAD>
<Script>
function FadeIn(objname){
var objholder=document.getElementById(objname)
objholder.filters[0].apply()
objholder.style.background="#B9EEFF"
objholder.filters[0].play()
}
function FadeOut(objname){
var objholder=document.getElementById(objname)
objholder.filters[0].apply()
objholder.style.background="#FFFFFF"
objholder.filters[0].play()
}
</Script>
<STYLE type="text/css"><!-- table, body  { font-size: 10px; margin-left: 2px; margin-top: 0px }
input, select { font-family: Arial Narrow; font-size: 10x; font-weight: bold }
-->
</STYLE>
<META content="MSHTML 6.00.2900.2963" name=GENERATOR>

<DIV align=left>
<body><center>
<TABLE height=101 cellSpacing=0 cellPadding=0 width="21%" border=0>

  <TBODY>
  <TR>
    <TD align=left width="96%" height=101>

      <FONT face=Verdana 
      color=#ff0000 size=7>
      <div align="center"><center>
      <table width='545' border='0' align="center" cellpadding='0' cellspacing='0'>
        <form name="add_home" method="post" action="?home=add" >
  <tr>
    <td width='545' height='58' background='imagens/ucer23/1_r1_c1.jpg'><table width='100%' border='0' cellpadding='0' cellspacing='0'>
      <tr>
        <td width='9%'>&nbsp;</td>
        <td width='72%'><strong>VOCE PODE HOSPEDAR NO IMGUR.COM</strong></td>
        <td width='16%' align='center'><strong>///</strong></td>
        <td width='3%'>&nbsp;</td>
      </tr>
    </table></td>
  </tr>
  <tr></tr>
  <tr>
    <td height='110' valign='top' background='imagens/ucer23/1_r4_c1.jpg'><table width='540' border='0' cellpadding='0' cellspacing='0'>
      <tr>
        <td width='3'></td>
        <td width='526' height='6'></td>
        <td width='11'></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td align='center'><table width='535' border='0' cellpadding='0' cellspacing='0'>
          <tr>
            <td width='10'></td>
            <td width='523' height='6'></td>
            <td width='10'></td>
          </tr>
          <tr>
            <td>&nbsp;</td>
            <td align="center"><table width='100%' border='0' cellspacing='0' cellpadding='0'>
              <tr>
                <td width='1%'>&nbsp;</td>
                <td width='18%'><table width='97' border='0' cellpadding='0' cellspacing='0' background='Downloads/season4/45_r2_c1_r12_c15.jpg'>
                  <tr></tr>
                </table></td>
                <td width='18%' valign="top"><table width='97' border='0' cellpadding='0' cellspacing='0' background='Downloads/season4/45_r2_c1_r12_c15.jpg'>
                </table>
                  LINK<span class="style18">
                  <span style="color: #F00">365x87 </span>
                  <input name="nome" type=text id="i2" style="Font:Normal 10px Verdana; Background:#FFFFFF; Filter:progid:DXImageTransform.Microsoft.Fade(duration=0.5); Border:1pt Double #AAAAAA;"
			  onFocus="JavaScript:FadeIn('i2')" onBlur="JavaScript:FadeOut('i2')" value="http://" size="32">
                  </span>
<table width='97' border='0' cellpadding='0' cellspacing='0' background='Downloads/season4/45_r2_c1_r12_c15.jpg'>
  <tr></tr>
              </table></td>
                <td width='37%'><table width='97' border='0' cellpadding='0' cellspacing='0' background='Downloads/season4/45_r2_c1_r12_c15.jpg'>
                  <tr></tr>
                </table></td>
                <td width='26%'>&nbsp;</td>
              </tr>
            </table>
              <img src="http://i.imgur.com/Z2EGiwB.jpg"  alt=""/>
              <table width='100%' border='0' cellspacing='0' cellpadding='0'>
                <tr>
                <td width='1%'>&nbsp;</td>
                <td width='18%'><table width='97' border='0' cellpadding='0' cellspacing='0' background='Downloads/season4/45_r2_c1_r12_c15.jpg'>
                  <tr></tr>
                  </table></td>
                <td width='18%' valign="top"><table width='97' border='0' cellpadding='0' cellspacing='0' background='Downloads/season4/45_r2_c1_r12_c15.jpg'>
                  </table>
                NOME DO EVENTO
                  <input name="download1" type=text id="s" style="Font:Normal 10px Verdana; Background:#FFFFFF; Filter:progid:DXImageTransform.Microsoft.Fade(duration=0.5); Border:1pt Double #AAAAAA;"
		onFocus="JavaScript:FadeIn('i5')" onBlur="JavaScript:FadeOut('i5')" size="32" maxlength="30">
                  <table width='97' border='0' cellpadding='0' cellspacing='0' background='Downloads/season4/45_r2_c1_r12_c15.jpg'>
                    <tr></tr>
                    </table></td>
                <td width='37%'><table width='97' border='0' cellpadding='0' cellspacing='0' background='Downloads/season4/45_r2_c1_r12_c15.jpg'>
                  <tr></tr>
                  </table></td>
                <td width='26%'>&nbsp;</td>
                </tr>
            </table>
              <table width='100%' border='0' cellspacing='0' cellpadding='0'>
                <tr>
                  <td width='1%'>&nbsp;</td>
                  <td width='18%'><table width='97' border='0' cellpadding='0' cellspacing='0' background='Downloads/season4/45_r2_c1_r12_c15.jpg'>
                    <tr></tr>
                    </table></td>
                  <td width='18%'><table width='97' border='0' cellpadding='0' cellspacing='0' background='Downloads/season4/45_r2_c1_r12_c15.jpg'>
                    <tr></tr>
                    </table>
                    MAIS INFO
                    <input name="download2" type=text id="a" style="Font:Normal 10px Verdana; Background:#FFFFFF; Filter:progid:DXImageTransform.Microsoft.Fade(duration=0.5); Border:1pt Double #AAAAAA;"
		onFocus="JavaScript:FadeIn('i5')" onBlur="JavaScript:FadeOut('i5')" size="32" maxlength="300"></td>
                  <td width='37%'><table width='97' border='0' cellpadding='0' cellspacing='0' background='Downloads/season4/45_r2_c1_r12_c15.jpg'>
                    <tr></tr>
                    </table></td>
                  <td width='26%'>&nbsp;</td>
                  </tr>
                </table></td>
            <td>&nbsp;</td>
          </tr>
        </table></td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td><input name="Enviar" type=submit value="Enviar Evento" width="200"></td>
        <td>&nbsp;</td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
  </tr></form>
</table></center>
    </body>
    </HTML>



<? } ?>

