Guest User

Untitled

a guest
Nov 9th, 2012
88
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <script language="JavaScript">
  2. function mostra(id){
  3. if (!document.getElementById(id).style.display) {
  4. document.getElementById(id).style.display = '';
  5. } else{
  6. document.getElementById(id).style.display = '';
  7. }
  8. } function mostra2(id){
  9. if (!document.getElementById(id).style.display) {
  10. document.getElementById(id).style.display = 'none';
  11. }
  12. }
  13. </script>
  14.  
  15. <script src="js/jquery.min.js" type="text/javascript"></script>
  16. <script src="js/jquery.validate.js" type="text/javascript"></script>
  17. <link href="css/validate.css" type="text/css" media="screen" rel="stylesheet" />
  18.  
  19. <form id="f1" class="validate" action="" method="post">
  20. <b>TIPO DA ASSINATURA:</b>
  21. <hr style="border:1px solid #999" />
  22. <br />
  23. <table width="100%" border="0" cellpadding="0" cellspacing="0">
  24. <tr>
  25. <td width="22%" align="right">Selecione:&nbsp;</td>
  26. <td width="78%" height="30">
  27. &nbsp;<input type='radio' id="tipo" value='pf' onclick="javascript:mostra2('trUsuario2');" name='tipo' checked="checked"> <b>Pessoa Física</b> (para fazer um cadastro pessoal)</td>
  28. </tr>
  29. <tr>
  30. <td width="22%"></td>
  31. <td width="78%" height="30">
  32. &nbsp;<input type='radio' id="tipo" <? if($_POST[tipo] == "pj"){ print "checked"; }?>value='pj' onclick="javascript:mostra('trUsuario2');" name='tipo'> <b>Pessoa Jurídica</b> (para fazer o cadastro em nome de empresa)</td>
  33. </tr>
  34. </table>
  35. <br />
  36. <b>DADOS DO CONTRATANTE:</b>
  37. <hr style="border:1px solid #999" />
  38. <table width="100%" border="0" cellpadding="0" cellspacing="5">
  39. <tr>
  40. <td width="22%" align="right" id="dir"><font color="#FF0000">*</font> <b>Responsável:</b>&nbsp;</td>
  41. <td width="78%" id="esq" style="padding-top:5px">
  42. &nbsp;<input type='text' value='<?=$_POST[nome];?>' name='nome' id="nome" class="required" minlength="5" size='60' style="padding: 5px 5px"> <span></span></td>
  43. </tr>
  44. <tr>
  45. <td width="22%" align="right" id="dir"><font color="#FF0000">*</font> <b>RG:</b>&nbsp;</td>
  46. <td width="78%" id="esq" style="padding-top:5px">
  47. &nbsp;<input type='text' value='<?=$_POST[rg];?>' id="rg" class="required numeric" name='rg' minlength="5" size='17' style="padding: 5px 5px"> <span></span></td>
  48. </tr>
  49. <tr>
  50. <td width="22%" align="right" id="dir"><font color="#FF0000">*</font> <b>CPF:</b>&nbsp;</td>
  51. <td width="78%" id="esq" style="padding-top:5px">
  52. &nbsp;<input type="text" value="<?=$_POST[cpf];?>" name="cpf" id="cpf" class="required cpf" size="17" style="padding: 5px 5px"> <span></span></td>
  53. </tr>
  54. <tr>
  55. <td width="22%" align="right" id="dir"><font color="#FF0000">*</font> <b>Data de Nascimento:</b>&nbsp;</td>
  56. <td width="78%" id="esq" style="padding-top:5px">
  57. &nbsp;<input type='text' value="<?=$_POST[data];?>" id="data" class="required data" name='data' size='12' style="padding: 5px 5px"> <span></span></td>
  58. </tr>
  59. </table>
  60. <table width="100%" border="0" cellpadding="0" cellspacing="5" id="trUsuario2" style='DISPLAY: none; margin-top:-4px'>
  61. <tr>
  62. <td width="22%" align="right" id="dir"><font color="#FF0000">*</font> <b>Razão Social:</b>&nbsp;</td>
  63. <td width="78%" id="esq" style="padding-top:5px">
  64. &nbsp;<input type='text' value="<?=$_POST[razao];?>" name='razao' id="razao" class="required" minlength="6" size='60' style="padding: 5px 5px">
  65. <span></span></td>
  66. </tr>
  67. <tr>
  68. <td width="22%" align="right" id="dir"><font color="#FF0000">*</font> <b>CNPJ:</b>&nbsp;</td>
  69. <td width="78%" id="esq" style="padding-top:5px">
  70. &nbsp;<input type='text' value="<?=$_POST[cnpj];?>" name='cnpj' id="cnpj" size='22' class="required cnpj" style="padding: 5px 5px">
  71. <span></span></td>
  72. </tr>
  73. </table>
  74. <input type="submit" style="float:right" value="Enviar" class="button blue submit">
  75. </form>
RAW Paste Data