This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function enviaEmail () { | |
$this->set(compact('msg', $this->data['Contato']['msg'])); | |
Controller::loadModel('Membro'); | |
Controller::loadModel('Igreja'); | |
Controller::loadModel('ComissaoExecutiva'); | |
Controller::loadModel('PresbiterioCargo'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
public function view($codigo = null) { | |
// Encontra a notícia pelo campo código | |
$noticia = $this->Noticia->findByCodigo($codigo); | |
// Não encontrou? | |
if (empty($noticia)) | |
throw new NotFoundException(__('Invalid noticia')); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
Router::connect( | |
'/projetos/:categoria' , | |
array('controller' => 'projetos', 'action' => 'index'), // Local à ser redirecionado | |
array('pass' => array('categoria'), 'categoria' => '[a-zA-Z-0-9_]*') | |
); | |
Router::connect( | |
'/projetos/:categoria/:codigo:titulo' , | |
array('controller' => 'projetos', 'action' => 'view'), // Local à ser redirecionado | |
array('pass' => array('codigo'), 'categoria' => '[a-zA-Z-0-9_]*', 'codigo' => '[a-zA-Z-0-9_]{7}', 'titulo' => '(-[a-zA-Z0-9_-]*)?') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* This file is loaded automatically by the app/webroot/index.php file after core.php | |
* | |
* This file should load/create any application wide configuration settings, such as | |
* Caching, Logging, loading additional configuration files. | |
* | |
* You should also use this file to include any files that provide global functions/constants | |
* that your application uses. | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
App::uses('AppController','Controller'); | |
class FrontEndController extends AppController { | |
public $uses = array('Categoria', 'Modelo', 'Cliente', 'Marca', 'Anuncio'); | |
public $components = array('Buscas'); | |
public $helpers = array('Imagem', 'Number', 'Media', 'Cache'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* This is core configuration file. | |
* | |
* Use it to configure core behavior of Cake. | |
* | |
* PHP 5 | |
* | |
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org) | |
* Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Client extends AppModel { | |
public $validate = array( | |
'responsavel'=> array( | |
array( | |
'rule' => 'maiorDeIdade', | |
'message' => 'Campo deve ser preenchido' | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('html').click(function() { | |
$('#top .open').removeClass('open'); | |
}); | |
$('.categories').click(function(event) { | |
event.preventPropagation(); | |
}); | |
$('.with-submenu a').click(function(event) { | |
event.preventDefault(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// adicionando e removendo a class "OPEN" para os submenus com click no link | |
$('html').click(function() { | |
$('#top .open').removeClass('open'); | |
}); | |
$('.with-submenu > a').click(function(event) { | |
event.preventDefault(); | |
event.stopPropagation(); | |
var $this_parent = $(this).parent(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$sql = sprintf("SELECT * FROM `NFE_ENTRADA` WHERE `CHAVENFE` = '%s'", $CHAVENFE); | |
$query = mysql_query($sql); | |
$i = 0; | |
while ($produto = mysql_fetch_object($sql)) { ?> | |
<tr> | |
<td height="17" bgcolor="#FFFFFF" class="style7" align="center"><?php echo $produto->cProd ?></td> | |
<td width="35%" bgcolor="#FFFFFF" class="style7" align="center"><?php echo $produto->xProd . ' / ' . $produto->infAdProd ?></td> |
OlderNewer