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
|
<? include_once("init.php"); ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="iso-8859-1"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content=""> <meta name="author" content=""> <link rel="icon" href="../../favicon.ico">
<title>Sivana | News</title> <base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>" /> <!-- Bootstrap core CSS --> <link href="dist/css/bootstrap.min.css" rel="stylesheet">
<!-- Custom styles for this template --> <link href="css/sivana.css" rel="stylesheet"> <!-- Owl Carousel Assets --> <link href="owl-carousel/owl.carousel.css" rel="stylesheet"> <link href="owl-carousel/owl.theme.css" rel="stylesheet"> <!-- Just for debugging purposes. Don't actually copy these 2 lines! --> <!--[if lt IE 9]><script src="../../assets/js/ie8-responsive-file-warning.js"></script><![endif]--> <script src="assets/js/ie-emulation-modes-warning.js"></script>
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug --> <script src="assets/js/ie10-viewport-bug-workaround.js"></script> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries --> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <![endif]--> </head>
<body> <? include ("topo.php") ?> <!-- Static navbar --> <? include ("menu.php") ?> <div class="conteudo"> <div class="container"> <? include ("aviso.php") ?> <div class="row"> <div class="col-md-8"> <div class="principal"> <?
if ($_POST['salvar']=='ok'){ $idcadastro_news= $_POST['idcadastro_news']; $idassociado= $_POST['idassociado']; $op = $_POST['op']; if ($_POST['sair']=='s'){ if ($op<>'1'){ $sql = mysql_query("update lista_associado set ativo='n' where idlista_associado='$idcadastro_news'") or die ("Erro ao busca registro"); }else{ $sql = mysql_query("update cadastro_news set ativo='n' where idcadastro_news='$idcadastro_news'") or die ("Erro ao busca registro"); } print "<script>window.location='sair_ok.php'</script>"; }else{ print "<script>window.location='/home/'</script>"; } } if(is_numeric(@base64_decode($_REQUEST['cli']))){ $id = base64_decode($_REQUEST['cli']); }else{ $id = ''; }
if ($_GET['op'] <> '1'){ $sql = mysql_query("select idlista_associado,associado_idassociado,empresa from lista_associado where idlista_associado='$id'") or die ("Erro ao busca registro"); $nome = mysql_result($sql,0,2).', '; }else{ $sql = mysql_query("select idcadastro_news,email from cadastro_news where idcadastro_news='$id'") or die ("Erro ao busca registro"); $nome = ''; } $contagem = mysql_num_rows($sql);
?>
<table width="90%" border="0" align="center" cellpadding="0" cellspacing="0" class="sair_lista"> <tr> <td align="center" class="titulo4">NEWSLETTER</td> </tr> <?php if ($contagem >0){ ?> <tr> <td> </td> </tr> <tr> <td align="center" class="texto"><strong> <?php echo $nome;?></strong>O Sivana respeita sua privacidade, você realmente deseja deixar de receber nossas novidades?</td> </tr> <tr> <td> </td> </tr> <tr> <td align="center"><form id="form1" name="form1" method="post" action=""> <p class="texto"> <input name="salvar" type="hidden" id="salvar" value="ok" /> <input name="idcadastro_news" type="hidden" value="<?php echo mysql_result($sql,0,0);?>" /> <input name="idassociado" type="hidden" value="<?php echo mysql_result($sql,0,1);?>" /> <input name="op" type="hidden" value="<?php $_GET['op'];?>" /> <label> <span class="texto"> <input type="radio" name="sair" value="s" id="sair_0" /> Sim</span></label> <span class="texto"> <label> <input type="radio" name="sair" value="n" id="sair_1" /> Não</label> </span></p> <p> <input type="submit" name="ok" id="ok" value="Gravar" /> <br /> </p> </form></td> </tr> <?php } ?> <tr> <td align="center"> </td> </tr> </table> </div>
</div> <!-- col 8 --> <div class="col-md-4"> <? include ("menu-rapido.php")?> </div>
</div> </div> <!-- /container --> <? include ("rodape.php") ?> </div><!-- Conteudo do site-->
<!-- Bootstrap core JavaScript ================================================== --> <!-- Placed at the end of the document so the pages load faster --> <script src="dist/js/bootstrap.min.js"></script> </body> </html>
|