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 $current = $this->Paginator->counter(array('format' => '%page% ')); $Next = $current + 1; $Prev = $current - 1; ?> | |
<?php $numbers = $this->Paginator->numbers(array('separator' => '', 'tag'=>'li'));?> | |
<?php if($numbers): ?> | |
<div class="row"> | |
<ul class="pagination"> | |
<!-- prev --> | |
<?php if($this->Paginator->hasPrev()) : ?> | |
<li> | |
<?php echo $this->Paginator->link('«', array("page" => $Prev), array('escape' => false)); ?> | |
</li> |
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
<div class="alert-box alert"> | |
<?php echo $message ?> | |
<a href="" class="close">×</a> | |
</div> |
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
<div class="categorias index"> | |
<h2><?php __('Categorias');?></h2> | |
<table class="twelve"> | |
<thead> | |
<tr> | |
<th><?php echo $this->Paginator->sort('#','id');?></th> | |
<th><?php echo $this->Paginator->sort('categoria');?></th> | |
<th><?php echo $this->Paginator->sort('activo');?></th> | |
<th class="actions"><?php __('Actions');?></th> | |
</tr> |
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 | |
$formas_pago = array( | |
0 => 'No identificado', | |
1 => 'Transferencia', | |
2 => 'Cheque', | |
3 => 'Efectivo', | |
4 => 'Tarjeta', | |
); | |
?> | |
<script type="text/javascript"> |
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 echo $this->Form->create('Cliente', array('id' => 'empresa-add', 'class' => 'custom', 'inputDefaults' => array('div' => false, 'label' => false, 'class' => '', 'error' => array('wrap' => 'small', 'class' => '')))); ?> | |
<div class="row"> | |
<?php $input_error = $this->Form->isFieldError('telefono') ? 'error': ''; ?> | |
<div class="six columns <?php echo $input_error ?>"> | |
<?php echo $this->Form->input('telefono', array('type' => 'text', 'placeholder' => 'Teléfono', 'class' => '')); ?> | |
</div> | |
<?php $input_error = $this->Form->isFieldError('contacto') ? 'error': ''; ?> | |
<div class="six columns <?php echo $input_error ?>"> |
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 | |
/* separar el nombre completo en espacios */ | |
$tokens = explode(' ', trim($full_name)); | |
/* arreglo donde se guardan las "palabras" del nombre */ | |
$names = array(); | |
/* palabras de apellidos (y nombres) compuetos */ | |
$special_tokens = array('da', 'de', 'del', 'la', 'las', 'los', 'mac', 'mc', 'van', 'von', 'y', 'i', 'san', 'santa'); | |
$prev = ""; |
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
DROP TABLE IF EXISTS `applications`; | |
CREATE TABLE `applications` ( | |
`id` binary(36) NOT NULL, | |
`name` varchar(128) DEFAULT NULL, | |
`basename` varchar(32) DEFAULT NULL COMMENT 'URL BASENAME', | |
PRIMARY KEY (`id`) | |
) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
INSERT INTO `applications` (`id`, `name`, `basename`) VALUES | |
(UNHEX('35343764663937662D653431632D343030302D613662322D343866313530333039333633'), 'ASDF', 'asdf.com') |
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 create_dbs() { | |
$db_skel = TMP .DS. 'create_dbs.sql'; | |
$sql = file_get_contents($db_skel); | |
$config = $this->getDataSource()->config; | |
$sql = preg_replace('#/\*.*?\*/#s', '', $sql); | |
$sql = preg_replace('/^-- .*[\r\n]*/m', '', $sql); |
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
var widget = uploadcare.Widget('[role=uploadcare-uploader]'); | |
widget.onUploadComplete(function (response) { | |
if(response) { | |
uploadcare.loadFileGroup(response.uuid) | |
.done(function(fileGroup) { | |
// Group creation completed successfully. | |
var files = fileGroup.files(); | |
$.each(files, function(i, file) { | |
// Wait for file uploading. |
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
$scope.enviar = function() { | |
if($('#contactar form').form('is valid')) { | |
$('#contactar form').addClass('loading'); | |
var url = app_backend + '/contactar/post/' + id + '/post.json'; | |
var data = {}; | |
angular.forEach($scope.Contacto, function(field, value) { | |
console.log(field, value); | |
if(angular.isUndefined(value)) { |
OlderNewer