-
Notifications
You must be signed in to change notification settings - Fork 0
/
funcoes.php
49 lines (33 loc) · 1.16 KB
/
funcoes.php
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
<?php
include_once(dirname(__FILE__).'/../../config/config.inc.php');
include_once(dirname(__FILE__).'/models/FKcustomersClass.php');
// Recupera a funcao a ser executada
$func = $_REQUEST['func'];
// Instancia FKcustomersClass
$fkcustomersClass = new FKcustomersClass();
switch ($func) {
case '1':
$cep = $_REQUEST['cep'];
echo $fkcustomersClass->pesquisaCepRV($cep);
break;
case '2':
$cep = $_REQUEST['cep'];
echo $fkcustomersClass->pesquisaCepBY($cep);
break;
case '3':
$cep = $_REQUEST['cep'];
echo $fkcustomersClass->pesquisaCepAC($cep);
break;
case '4':
$uf = $_REQUEST['uf'];
echo $fkcustomersClass->pesquisaUF($uf);
break;
case '5':
$endereco = $_REQUEST['endereco'];
echo $fkcustomersClass->validaEndereco($endereco);
break;
case '6':
$cep = $_REQUEST['cep'];
echo $fkcustomersClass->pesquisaCepCO($cep);
break;
}