maralvic commited on
Commit
910aa1e
·
verified ·
1 Parent(s): 05952b1

Utilze o mesmo padrão para colocar no corpo da página o seguinte: Criar uma página de formulário para que sejam preenchidos os campos “CNPJ”, “DIG”, “DDD” e “EMAIL” e, após o usuário clicar em um botão “Gerar Relatório”, ser direcionado para a URL seguinte: http://kitldcg.receita.fazenda.gov.br/visualizarRelatorioEstatico.asp?relatURL=DDD/CNPJDIG/_DIR/RELDETDIV/20030601&relat=RELDETDIV&resumoURL=DDD/CNPJDIG/_DIR/RESUMO/20030601&tipoID=1&source=1 . Validar o endereço de e-mail. Encaminhar o endereço de e-mail para o email relacionamento@contribuinte.legal. Retirar o conteudo do corpo atual. Alterar o título para "Gerar Relatório DEBCAD / Dívida Ativa Previdenciária". Subtitulo "Acesse o relatório de débitos previdenciários inscritos ou não inscritos em Dívida Ativa" - Follow Up Deployment

Browse files
Files changed (1) hide show
  1. index.html +87 -106
index.html CHANGED
@@ -5,7 +5,7 @@
5
  <head>
6
  <meta charset="UTF-8">
7
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
8
- <title>Dação em Pagamento em Bens Imóveis | Prof. Marcelo Vicente</title>
9
  <script src="https://cdn.tailwindcss.com"></script>
10
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
11
  <style>
@@ -74,41 +74,73 @@
74
  <section class="text-white bg-cover bg-center" style="background-image: url('https://www.regularize.online/wp-content/uploads/2023/08/Sem-nome-680-×-456-px-1910-×-376-px-4.png')">
75
  <div class="bg-blue-900 bg-opacity-70 py-32">
76
  <div class="container mx-auto px-4 text-center py-8">
77
- <h1 class="text-4xl md:text-5xl mb-6">Negociações nos Estados e no DF</h1>
78
- <p class="text-xl md:text-2xl mb-8">Pesquise as modalidades de Negociação de Débitos Inscritos na Dívida Ativa (Procuradorias das Fazendas)</p>
79
- <a href="https://marcelovicente.prof/live1947" class="profmarcelovicente-btn px-8 py-3 rounded-lg font-bold text-white hover:shadow-lg transition inline-block">
80
- Quero garantir minha vaga!
81
- </a>
82
  </div>
83
  </div>
84
  </section>
85
 
86
- <!-- State Search Form -->
87
  <section class="container mx-auto px-4 py-12">
88
  <div class="max-w-4xl mx-auto bg-white rounded-lg shadow-lg p-8">
89
- <h1 class="profmarcelovicente-text text-3xl mb-6 text-center">Digite a sigla ou o nome do Estado</h1>
90
-
91
- <form class="search-form" onsubmit="buscarEstado(event)">
92
- <div class="flex">
93
  <input
94
  type="text"
95
- id="estadoInput"
96
- class="flex-grow px-4 py-3 border border-gray-300 rounded-l-lg focus:outline-none focus:ring-2 focus:ring-blue-500"
97
- placeholder="Digite a sigla (ex: SP) ou nome do estado (ex: São Paulo)"
98
- autocomplete="off"
 
 
99
  >
100
- <button
101
- type="submit"
102
- class="profmarcelovicente-btn px-6 py-3 rounded-r-lg font-bold text-white hover:shadow-lg transition"
 
 
 
 
 
 
 
 
 
103
  >
104
- Acessar
105
- </button>
106
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
107
  </form>
108
-
109
- <div class="text-gray-500 text-sm mt-2 text-center">
110
- Você será redirecionado para o portal da Procuradoria da Fazenda
111
- </div>
112
  </div>
113
  </section>
114
 
@@ -159,99 +191,48 @@
159
  </footer>
160
 
161
  <script>
162
- // Dados dos estados brasileiros
163
- const statesData = {
164
- 'AC': 'www.pge.ac.gov.br/', 'ACRE': 'www.pge.ac.gov.br/',
165
- 'AL': 'http://www.pge.al.gov.br/', 'ALAGOAS': 'http://www.pge.al.gov.br/',
166
- 'AM': 'http://www.pge.am.gov.br/', 'AMAZONAS': 'http://www.pge.am.gov.br/',
167
- 'AP': 'http://www.pge.ap.gov.br/', 'AMAPÁ': 'http://www.pge.ap.gov.br/', 'AMAPA': 'http://www.pge.ap.gov.br/',
168
- 'BA': 'http://www.pge.ba.gov.br/', 'BAHIA': 'http://www.pge.ba.gov.br/',
169
- 'CE': 'http://www.pge.ce.gov.br/', 'CEARÁ': 'http://www.pge.ce.gov.br/', 'CEARA': 'http://www.pge.ce.gov.br/',
170
- 'DF': 'http://www.pg.df.gov.br/', 'DISTRITO FEDERAL': 'http://www.pg.df.gov.br/',
171
- 'ES': 'http://www.pge.es.gov.br/', 'ESPÍRITO SANTO': 'http://www.pge.es.gov.br/', 'ESPIRITO SANTO': 'http://www.pge.es.gov.br/',
172
- 'GO': 'http://www.procuradoria.go.gov.br/', 'GOIÁS': 'http://www.procuradoria.go.gov.br/', 'GOIAS': 'http://www.procuradoria.go.gov.br/',
173
- 'MA': 'http://www.pge.ma.gov.br/', 'MARANHÃO': 'http://www.pge.ma.gov.br/', 'MARANHAO': 'http://www.pge.ma.gov.br/',
174
- 'MG': 'http://www.pge.mg.gov.br/', 'MINAS GERAIS': 'http://www.pge.mg.gov.br/',
175
- 'MS': 'http://www.pge.ms.gov.br/', 'MATO GROSSO DO SUL': 'http://www.pge.ms.gov.br/',
176
- 'MT': 'http://www.pge.mt.gov.br/', 'MATO GROSSO': 'http://www.pge.mt.gov.br/',
177
- 'PA': 'http://www.pge.pa.gov.br/', 'PARÁ': 'http://www.pge.pa.gov.br/', 'PARA': 'http://www.pge.pa.gov.br/',
178
- 'PB': 'http://www.pge.pb.gov.br/', 'PARAÍBA': 'http://www.pge.pb.gov.br/', 'PARAIBA': 'http://www.pge.pb.gov.br/',
179
- 'PE': 'http://www.pge.pe.gov.br/', 'PERNAMBUCO': 'http://www.pge.pe.gov.br/',
180
- 'PI': 'http://www.pge.pi.gov.br/', 'PIAUÍ': 'http://www.pge.pi.gov.br/', 'PIAUI': 'http://www.pge.pi.gov.br/',
181
- 'PR': 'http://www.pge.pr.gov.br/', 'PARANÁ': 'http://www.pge.pr.gov.br/', 'PARANA': 'http://www.pge.pr.gov.br/',
182
- 'RJ': 'http://www.pge.rj.gov.br/', 'RIO DE JANEIRO': 'http://www.pge.rj.gov.br/',
183
- 'RN': 'http://www.pge.rn.gov.br/', 'RIO GRANDE DO NORTE': 'http://www.pge.rn.gov.br/',
184
- 'RO': 'http://www.pge.ro.gov.br/', 'RONDÔNIA': 'http://www.pge.ro.gov.br/', 'RONDONIA': 'http://www.pge.ro.gov.br/',
185
- 'RR': 'http://www.pge.rn.gov.br/', 'RORAIMA': 'http://www.pge.rn.gov.br/',
186
- 'RS': 'http://www.pge.rs.gov.br/', 'RIO GRANDE DO SUL': 'http://www.pge.rs.gov.br/',
187
- 'SC': 'http://www.pge.sc.gov.br/', 'SANTA CATARINA': 'http://www.pge.sc.gov.br/',
188
- 'SE': 'http://www.pge.se.gov.br/', 'SERGIPE': 'http://www.pge.se.gov.br/',
189
- 'SP': 'http://www.pge.sp.gov.br/', 'SÃO PAULO': 'http://www.pge.sp.gov.br/', 'SAO PAULO': 'http://www.pge.sp.gov.br/',
190
- 'TO': 'http://www.pge.to.gov.br/', 'TOCANTINS': 'http://www.pge.to.gov.br/'
191
- };
192
-
193
- function buscarEstado(event) {
194
  event.preventDefault();
195
 
196
- const input = document.getElementById('estadoInput');
197
- const busca = input.value.trim().toUpperCase();
 
 
 
198
 
199
- if (!busca) {
200
- mostrarModal();
 
201
  return;
202
  }
203
 
204
- const url = statesData[busca];
 
205
 
206
- if (url) {
207
- // Adiciona protocolo se não existir
208
- const urlCompleta = url.startsWith('http') ? url : 'http://' + url;
209
- window.open(urlCompleta, '_blank');
210
- input.value = ''; // Limpa o campo após busca bem-sucedida
211
- } else {
212
- mostrarModal();
213
- }
214
- }
215
-
216
- function mostrarModal() {
217
- document.getElementById('errorModal').classList.remove('hidden');
218
- }
219
 
220
- function fecharModal() {
221
- document.getElementById('errorModal').classList.add('hidden');
 
222
  }
223
 
224
- // Fechar modal ao clicar fora dele
225
- window.onclick = function(event) {
226
- const modal = document.getElementById('errorModal');
227
- if (event.target === modal) {
228
- fecharModal();
229
- }
 
 
 
 
 
230
  }
231
-
232
- // Permitir busca ao pressionar Enter
233
- document.getElementById('estadoInput').addEventListener('keypress', function(event) {
234
- if (event.key === 'Enter') {
235
- buscarEstado(event);
236
- }
237
- });
238
-
239
- // Smooth scrolling for anchor links
240
- document.querySelectorAll('a[href^="#"]').forEach(anchor => {
241
- anchor.addEventListener('click', function (e) {
242
- e.preventDefault();
243
- const targetId = this.getAttribute('href');
244
- if (targetId !== '#') {
245
- const targetElement = document.querySelector(targetId);
246
- if (targetElement) {
247
- targetElement.scrollIntoView({
248
- behavior: 'smooth',
249
- block: 'start'
250
- });
251
- }
252
- }
253
- });
254
- });
255
  </script>
256
  <p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=maralvic/tt2" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
257
  </html>
 
5
  <head>
6
  <meta charset="UTF-8">
7
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
8
+ <title>Gerar Relatório DEBCAD / Dívida Ativa Previdenciária</title>
9
  <script src="https://cdn.tailwindcss.com"></script>
10
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
11
  <style>
 
74
  <section class="text-white bg-cover bg-center" style="background-image: url('https://www.regularize.online/wp-content/uploads/2023/08/Sem-nome-680-×-456-px-1910-×-376-px-4.png')">
75
  <div class="bg-blue-900 bg-opacity-70 py-32">
76
  <div class="container mx-auto px-4 text-center py-8">
77
+ <h1 class="text-4xl md:text-5xl mb-6">Gerar Relatório DEBCAD / Dívida Ativa Previdenciária</h1>
78
+ <p class="text-xl md:text-2xl mb-8">Acesse o relatório de débitos previdenciários inscritos ou não inscritos em Dívida Ativa</p>
 
 
 
79
  </div>
80
  </div>
81
  </section>
82
 
83
+ <!-- Form Section -->
84
  <section class="container mx-auto px-4 py-12">
85
  <div class="max-w-4xl mx-auto bg-white rounded-lg shadow-lg p-8">
86
+ <form id="relatorioForm" class="space-y-6">
87
+ <div>
88
+ <label for="cnpj" class="block text-gray-700 mb-2">CNPJ</label>
 
89
  <input
90
  type="text"
91
+ id="cnpj"
92
+ class="w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500"
93
+ placeholder="Digite o CNPJ (apenas números)"
94
+ required
95
+ pattern="\d{14}"
96
+ title="Digite os 14 dígitos do CNPJ"
97
  >
98
+ </div>
99
+
100
+ <div>
101
+ <label for="dig" class="block text-gray-700 mb-2">Dígito Verificador</label>
102
+ <input
103
+ type="text"
104
+ id="dig"
105
+ class="w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500"
106
+ placeholder="Digite o dígito verificador"
107
+ required
108
+ pattern="\d{2}"
109
+ title="Digite os 2 dígitos verificadores"
110
  >
 
 
111
  </div>
112
+
113
+ <div>
114
+ <label for="ddd" class="block text-gray-700 mb-2">DDD</label>
115
+ <input
116
+ type="text"
117
+ id="ddd"
118
+ class="w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500"
119
+ placeholder="Digite o DDD"
120
+ required
121
+ pattern="\d{2}"
122
+ title="Digite o DDD com 2 dígitos"
123
+ >
124
+ </div>
125
+
126
+ <div>
127
+ <label for="email" class="block text-gray-700 mb-2">E-mail</label>
128
+ <input
129
+ type="email"
130
+ id="email"
131
+ class="w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500"
132
+ placeholder="Digite seu e-mail"
133
+ required
134
+ >
135
+ </div>
136
+
137
+ <button
138
+ type="submit"
139
+ class="profmarcelovicente-btn w-full px-6 py-3 rounded-lg font-bold text-white hover:shadow-lg transition"
140
+ >
141
+ Gerar Relatório
142
+ </button>
143
  </form>
 
 
 
 
144
  </div>
145
  </section>
146
 
 
191
  </footer>
192
 
193
  <script>
194
+ document.getElementById('relatorioForm').addEventListener('submit', function(event) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
195
  event.preventDefault();
196
 
197
+ // Get form values
198
+ const cnpj = document.getElementById('cnpj').value;
199
+ const dig = document.getElementById('dig').value;
200
+ const ddd = document.getElementById('ddd').value;
201
+ const email = document.getElementById('email').value;
202
 
203
+ // Validate email
204
+ if (!validateEmail(email)) {
205
+ alert('Por favor, insira um e-mail válido.');
206
  return;
207
  }
208
 
209
+ // Construct URL
210
+ const url = `http://kitldcg.receita.fazenda.gov.br/visualizarRelatorioEstatico.asp?relatURL=${ddd}/${cnpj}${dig}/_DIR/RELDETDIV/20030601&relat=RELDETDIV&resumoURL=${ddd}/${cnpj}${dig}/_DIR/RESUMO/20030601&tipoID=1&source=1`;
211
 
212
+ // Send email data (simplified example)
213
+ sendEmailData(email);
214
+
215
+ // Open report in new tab
216
+ window.open(url, '_blank');
217
+ });
 
 
 
 
 
 
 
218
 
219
+ function validateEmail(email) {
220
+ const re = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
221
+ return re.test(email);
222
  }
223
 
224
+ function sendEmailData(email) {
225
+ // In a real implementation, this would be an AJAX call to your server
226
+ console.log(`E-mail ${email} enviado para relacionamento@contribuinte.legal`);
227
+ // Example using fetch:
228
+ // fetch('/api/send-email', {
229
+ // method: 'POST',
230
+ // headers: {
231
+ // 'Content-Type': 'application/json',
232
+ // },
233
+ // body: JSON.stringify({ email: email }),
234
+ // });
235
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
236
  </script>
237
  <p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=maralvic/tt2" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
238
  </html>