app/Controller/AviseMeController.php 1 location
|
@@ 33-48 (lines=16) @@
|
| 30 |
|
$this->layout = 'wadmin'; |
| 31 |
|
} |
| 32 |
|
|
| 33 |
|
public function excluir_cadastro($id) |
| 34 |
|
{ |
| 35 |
|
$this->loadModel('AviseMe'); |
| 36 |
|
$this->layout = 'ajax'; |
| 37 |
|
|
| 38 |
|
$id = $this->request->data('id'); |
| 39 |
|
|
| 40 |
|
$dados = array ('ativo' => '0'); |
| 41 |
|
$parametros = array ('id' => $id); |
| 42 |
|
|
| 43 |
|
if ($this->AviseMe->updateAll($dados, $parametros)) { |
| 44 |
|
echo json_encode(true); |
| 45 |
|
} else { |
| 46 |
|
echo json_encode(false); |
| 47 |
|
} |
| 48 |
|
} |
| 49 |
|
|
| 50 |
|
/** |
| 51 |
|
* @return boolean |
app/Controller/BannerController.php 1 location
|
@@ 123-136 (lines=14) @@
|
| 120 |
|
return array('nome' => $nameImage, 'status' => true); |
| 121 |
|
} |
| 122 |
|
|
| 123 |
|
public function excluir_cadastro() { |
| 124 |
|
$this->layout = 'ajax'; |
| 125 |
|
|
| 126 |
|
$id = $this->request->data('id'); |
| 127 |
|
|
| 128 |
|
$dados = array ('ativo' => '0'); |
| 129 |
|
$parametros = array ('id' => $id); |
| 130 |
|
|
| 131 |
|
if ($this->Banner->updateAll($dados, $parametros)) { |
| 132 |
|
echo json_encode(true); |
| 133 |
|
} else { |
| 134 |
|
echo json_encode(false); |
| 135 |
|
} |
| 136 |
|
} |
| 137 |
|
|
| 138 |
|
} |
app/Controller/ClienteController.php 1 location
|
@@ 40-53 (lines=14) @@
|
| 37 |
|
} |
| 38 |
|
} |
| 39 |
|
|
| 40 |
|
function excluir_cliente() { |
| 41 |
|
$this->layout = 'ajax'; |
| 42 |
|
|
| 43 |
|
$id = $this->request->data('id'); |
| 44 |
|
|
| 45 |
|
$dados = array ('ativo' => '0'); |
| 46 |
|
$parametros = array ('id' => $id); |
| 47 |
|
|
| 48 |
|
if ($this->Cliente->updateAll($dados,$parametros)) { |
| 49 |
|
echo json_encode(true); |
| 50 |
|
} else { |
| 51 |
|
echo json_encode(false); |
| 52 |
|
} |
| 53 |
|
} |
| 54 |
|
|
| 55 |
|
function listar_cadastros() { |
| 56 |
|
$this->layout = 'wadmin'; |
app/Controller/ConsultaController.php 1 location
|
@@ 18-32 (lines=15) @@
|
| 15 |
|
$this->layout = 'wadmin'; |
| 16 |
|
} |
| 17 |
|
|
| 18 |
|
function excluir_consulta() { |
| 19 |
|
$this->layout = 'ajax'; |
| 20 |
|
|
| 21 |
|
$id = $this->request->data('id'); |
| 22 |
|
$this->loadModel('Consulta'); |
| 23 |
|
|
| 24 |
|
$dados = array ('ativo' => '0'); |
| 25 |
|
$parametros = array ('id' => $id); |
| 26 |
|
|
| 27 |
|
if ($this->Consulta->updateAll($dados,$parametros)) { |
| 28 |
|
echo json_encode(true); |
| 29 |
|
} else { |
| 30 |
|
echo json_encode(false); |
| 31 |
|
} |
| 32 |
|
} |
| 33 |
|
|
| 34 |
|
} |
app/Controller/ProdutoController.php 1 location
|
@@ 225-238 (lines=14) @@
|
| 222 |
|
} |
| 223 |
|
} |
| 224 |
|
|
| 225 |
|
public function excluir_cadastro() { |
| 226 |
|
$this->layout = 'ajax'; |
| 227 |
|
|
| 228 |
|
$id = $this->request->data('id'); |
| 229 |
|
|
| 230 |
|
$dados = array('ativo' => '0'); |
| 231 |
|
$parametros = array('id' => $id); |
| 232 |
|
|
| 233 |
|
if ($this->Produto->updateAll($dados, $parametros)) { |
| 234 |
|
echo json_encode(true); |
| 235 |
|
} else { |
| 236 |
|
echo json_encode(false); |
| 237 |
|
} |
| 238 |
|
} |
| 239 |
|
|
| 240 |
|
public function id_alias() { |
| 241 |
|
$id_alias = $this->Produto->find('first', array( |