1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
|
<?php if (($_SESSION['asso']=='asso_siv')) {
include_once("../_private/conectar.php"); include ("valida.jsp"); include ("mascara.jsp"); function gravar() { foreach ($_POST as $campo => $valor ){ $$campo = strip_tags(trim($valor)); } $data = date('Y-m-d'); $autor =$_SESSION['id_asso']; /*$dt=explode(":", $horai); $horai=$dt[2] .':' . $dt[2].':00'; $dt=explode("/", $horaf); $horaf=$dt[2] .':' . $dt[2].':00'; */ if ($qtde == 0){ $qtde=1; }
$query = mysql_query("insert into vagas value ('','$empresa','$fone','$email','$end','$funcao','$idade','$grau','$exp','$sexo','$horai','$horaf','$feriados','s','$data','$autor','$qtde')") or die ("erro ao selecionar a tabela");
if ($query) { echo "<script> alert('Conteúdo gravado com sucesso!') </script>"; print "<script>window.location='listar_vagas.php'</script>"; } }
if ($_POST['novo']=='salvar') { gravar(); } ?><table width="684" border="0" cellspacing="0" cellpadding="0"> <tr> <td><table width="684" border="0" cellspacing="0" cellpadding="0"> <tr> <td align="center" class="texto_escuro">Preencha o formulário abaixo para cadastrar sua vaga em nosso portal. <br /> O cadastro da vaga ficará em nosso bando de dados durante 30 dias, <br /> se a vaga for preenchida antes deste prazo por favor, <br /> acesse no menu ao lado - "Listar Vagas" e a exclua.</td> </tr> <tr> <td> </td> </tr> <tr> <td><form id="f_vagas" name="f_vagas" method="post" action="?p=10" onsubmit="return Formvagas()"> <table width="684" border="0" cellspacing="2" cellpadding="0"> <tr> <td height="30" colspan="2" class="titulo2B">INFORMAÇÕES DA EMPRESA</td> </tr> <tr> <td width="132" height="25" align="right" class="texto_escuro">Empresa:</td> <td width="552" height="25" class="texto_escuro"><label> <input name="empresa" type="text" id="empresa" size="50" /> <input name="novo" type="hidden" id="novo" value="salvar" /> </label></td> </tr> <tr> <td height="25" align="right" class="texto_escuro"> Telefone:</td> <td height="25" class="texto_escuro"><label> <input type="text" name="fone" id="fone" onkeypress="return txtBoxFormat(this, '(99) 9999-9999', event);" maxlength="14"/> ex.:(xx) xxxx-xxxx</label></td> </tr> <tr> <td height="25" align="right" class="texto_escuro">E-mail:</td> <td height="25" class="texto_escuro"><label> <input name="email" type="text" id="email" size="50" /> </label></td> </tr> <tr> <td height="25" align="right" class="texto_escuro"><font color="#FF0000">* </font>Endereço:</td> <td height="25"><label> <textarea name="end" id="end" cols="50" rows="3"></textarea> </label></td> </tr> <tr> <td height="30" colspan="2" class="titulo2B">DESCRIÇÃO VAGA</td> </tr> <tr> <td height="25" align="right" class="texto_escuro"><font color="#FF0000">*</font> Função:</td> <td height="25" class="texto_escuro"><label> <input name="funcao" type="text" id="funcao" size="50" /> </label></td> </tr> <tr> <td height="25" align="right" class="texto_escuro"><font color="#FF0000">*</font> Qtde de Vagas:</td> <td height="25" class="texto_escuro"><label> <input name="qtde" type="text" id="qtde" size="10" onkeypress='return SomenteNumero(event)' /> </label></td> </tr> <tr> <td height="25" align="right" class="texto_escuro"> Idade:</td> <td height="25" class="texto_escuro"><label> <select name="idade" id="idade"> <option value="0" selected="selected">Não mostrar</option> <option value="18">Maior de 18 anos</option> </select> </label></td> </tr> <tr> <td height="25" align="right" class="texto_escuro">Escolaridade:</td> <td height="25" class="texto_escuro"><span class="texto_escuro"> <select name="grau"> <option value="0" selected="selected">Não mostrar</option> <option value="1">Ensino Médio</option> <option value="2">Ensino Superior</option> </select> </span></td> </tr> <tr> <td height="25" align="right" class="texto_escuro">Experiência:</td> <td height="25" class="texto_escuro"><table width="200"> <tr> <td width="63"><label> <input type="radio" name="exp" value="s" id="exp_0" /> Sim</label></td> <td width="125"><input type="radio" name="exp" value="n" id="exp_1" /> Não necessária</td> </tr> </table> </td> </tr> <tr> <td height="25" align="right" class="texto_escuro"> Sexo:</td> <td height="25" class="texto_escuro"><label> <select name="sexo" id="sexo"> <option value="a" selected="selected">Ambos</option> <option value="f">Feminino</option> <option value="m">Masculino</option> </select> </label></td> </tr> <tr> <td height="30" colspan="2" class="titulo2B">INFORMAÇÕES TURNO:</td> </tr> <tr> <td height="25" colspan="2" class="texto_escuro">Horário das <label> <input name="horai" type="text" id="horai" size="8" /> </label> às hs <label> <input name="horaf" type="text" id="horaf" size="8" /> </label></td> </tr> <tr> <td height="5" colspan="2" class="texto_escuro"> </td> </tr> <tr> <td height="25" colspan="2" class="texto_escuro">Com Disponibilidade de Horário nos Domingos e Feriados? </td> </tr> <tr> <td height="25" colspan="2" class="texto_escuro"><table width="200"> <tr> <td width="63"><label> <input type="radio" name="feriados" value="s" id="exp_2" /> Sim</label></td> <td width="125"><input type="radio" name="feriados" value="n" id="exp_3" /> Não necessário</td> </tr> </table></td> </tr> <tr> <td> </td> <td> </td> </tr> <tr> <td> </td> <td><label> <input type="submit" name="Submit" id="Submit" value="Incluir Vaga" /> </label></td> </tr> </table> </form> </td> </tr> <tr> <td></td> </tr> </table></td> </tr> </table> <?php } else { print("<script language='javascript'>window.location ='index.php?login=no'</script>"); } ?>
|