diff --git a/www/protected/components/UsuarioWeb.php b/www/protected/components/UsuarioWeb.php index 36e2bbf..42898db 100644 --- a/www/protected/components/UsuarioWeb.php +++ b/www/protected/components/UsuarioWeb.php @@ -47,10 +47,8 @@ class UsuarioWeb extends CWebUser { */ public function getTieneEquipo() { $subscripcion = $this->loadSubscripcion(); - Yii::log(CVarDumper::dumpAsString($subscripcion), CLogger::LEVEL_ERROR); - if ($subscripcion) - return ($subscripcion->producto->n_agentes > 0); + return ($subscripcion->producto->max_agentes > 0); else return false; } @@ -74,6 +72,15 @@ class UsuarioWeb extends CWebUser { return ($usuario && $usuario->nombre) ? $usuario->nombreCompleto : parent::getName(); } + /** + * @brief Devuelve el email del usuario que está en sesión. + * @return string + */ + public function getEmail() { + $usuario = $this->loadUser(); + return $usuario->email; + } + /** * @brief Devuelve el usuario que ha hecho sesión. * @return Usuario diff --git a/www/protected/config/mode_development.php b/www/protected/config/mode_development.php index 2e1c90a..96df857 100644 --- a/www/protected/config/mode_development.php +++ b/www/protected/config/mode_development.php @@ -87,14 +87,14 @@ $configSpecific = array( // Save log messages on file array( 'class' => 'CFileLogRoute', - 'levels' => 'error, warning, trace, info', - //'categories' => '*', + 'levels' => 'error, trace', + 'categories' => 'application.*', ), // Show log messages on web pages array( 'class' => 'CWebLogRoute', - 'levels' => 'error, warning, trace', - //'categories' => 'application.*', + 'levels' => 'error, trace', + 'categories' => 'application.*', 'showInFireBug' => true, ), ), diff --git a/www/protected/controllers/EmpresaController.php b/www/protected/controllers/EmpresaController.php index 1cb2bc7..2edf74b 100644 --- a/www/protected/controllers/EmpresaController.php +++ b/www/protected/controllers/EmpresaController.php @@ -39,7 +39,7 @@ class EmpresaController extends Controller { */ public function actionModificar($id, $provider = '') { if ($id != Yii::app()->user->id_empresa) - throw new CHttpException(404, Yii::t('profind', 'La página solicitada no existe.')); + throw new CHttpException(401, Yii::t('profind', 'Acceso no autorizado.')); if (($provider != '') && (!isset($_POST['Empresa']))) { switch ($provider) { @@ -62,10 +62,6 @@ class EmpresaController extends Controller { $empresa->attributes = $_POST['Empresa']; $ficheroLogotipo = CUploadedFile::getInstance($empresa, 'ficheroLogotipo'); - Yii::log(CVarDumper::dumpAsString($_POST['Empresa']), CLogger::LEVEL_ERROR); - Yii::log(CVarDumper::dumpAsString($empresa->attributes), CLogger::LEVEL_ERROR); - Yii::log(CVarDumper::dumpAsString($ficheroLogotipo), CLogger::LEVEL_ERROR); - $quitarLogotipo = Yii::app()->request->getParam('quitar_logotipo', '0'); if ($empresa->save()) { diff --git a/www/protected/controllers/EquipoController.php b/www/protected/controllers/EquipoController.php index 06ee80e..68f82b8 100644 --- a/www/protected/controllers/EquipoController.php +++ b/www/protected/controllers/EquipoController.php @@ -61,7 +61,7 @@ class EquipoController extends Controller { $agentes = Usuario::model()->equipo()->findAll(); - if (count($agentes) >= Yii::app()->user->subscripcion->producto->n_agentes) + if (count($agentes) >= Yii::app()->user->subscripcion->producto->max_agentes) $invitacion = NULL; $this->render('index', array( diff --git a/www/protected/controllers/SubscripcionController.php b/www/protected/controllers/SubscripcionController.php index 3518d32..ab3668e 100644 --- a/www/protected/controllers/SubscripcionController.php +++ b/www/protected/controllers/SubscripcionController.php @@ -1,7 +1,9 @@ loadModel($id); + public function actionModificar($id) { + Yii::trace('Ver/modificar la subscripción del usuario', 'application.controllers.SubscripcionController'); + + if ($id != Yii::app()->user->subscripcion->id) + throw new CHttpException(401, Yii::t('profind', 'Acceso no autorizado.')); + + $subscripcion = $this->loadModel($id); + $criterial = new CDbCriteria(); + $criterial->order = 'tipo DESC, id'; + $productos = Producto::model()->findAll($criterial); if (isset($_POST['Subscripcion'])) { - $model->attributes = $_POST['Subscripcion']; + $subscripcion->attributes = $_POST['Subscripcion']; - if ($model->id_producto < 10) - $model->id_producto = 1; - else - $model->id_producto = 2; - - if ($model->save()) { - Yii::app()->user->setFlash('success', Yii::t('profind', 'Se ha actualizado de producto')); - $this->redirect(array('modificar', 'id' => $model->id)); + if ($subscripcion->save()) { + Yii::trace('Se ha modificado la subscripción del usuario', 'application.controllers.UsuarioController'); + EMail::enviarNotificacionCambioProducto(Yii::app()->user->email, $subscripcion->producto->id); + Yii::app()->user->setFlash('success', Yii::t('profind', 'Se ha actualizado su producto')); + $this->redirect(array('modificar', 'id' => $id)); } } - $this->render('modificar', array( - 'model' => $model, + $this->render('index', array( + 'subscripcion' => $subscripcion, + 'productos' => $productos, )); } diff --git a/www/protected/controllers/UsuarioController.php b/www/protected/controllers/UsuarioController.php index 9286a37..7ef383e 100644 --- a/www/protected/controllers/UsuarioController.php +++ b/www/protected/controllers/UsuarioController.php @@ -126,7 +126,7 @@ class UsuarioController extends Controller { Yii::trace('Cambiar la password del usuario', 'application.controllers.UsuarioController'); if ($id != Yii::app()->user->id) - throw new CHttpException(404, Yii::t('profind', 'La página solicitada no existe.')); + throw new CHttpException(401, Yii::t('profind', 'Acceso no autorizado.')); $formulario = new FormularioCambiarPassword; $this->performAjaxValidation($formulario, 'cambiar-password-form'); @@ -456,7 +456,7 @@ class UsuarioController extends Controller { */ public function actionModificar($id, $provider = '') { if ($id != Yii::app()->user->id) - throw new CHttpException(404, Yii::t('profind', 'La página solicitada no existe.')); + throw new CHttpException(401, Yii::t('profind', 'Acceso no autorizado.')); if (($provider != '') && (!isset($_POST['Usuario']))) { switch ($provider) { @@ -504,7 +504,7 @@ class UsuarioController extends Controller { */ public function actionDelete($id) { if ($id != Yii::app()->user->id) - throw new CHttpException(404, Yii::t('profind', 'La página solicitada no existe.')); + throw new CHttpException(401, Yii::t('profind', 'Acceso no autorizado.')); if (Yii::app()->request->isAjaxRequest) { $resultado = array(); diff --git a/www/protected/data/tbl_productos.sql b/www/protected/data/tbl_productos.sql index 3032eb7..395a4b6 100644 --- a/www/protected/data/tbl_productos.sql +++ b/www/protected/data/tbl_productos.sql @@ -1,47 +1,3 @@ --- phpMyAdmin SQL Dump --- version 3.4.5 --- http://www.phpmyadmin.net --- --- Servidor: localhost --- Tiempo de generación: 28-09-2012 a las 15:29:17 --- Versión del servidor: 5.5.16 --- Versión de PHP: 5.3.8 - -SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; -SET time_zone = "+00:00"; - - -/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; -/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; -/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; -/*!40101 SET NAMES utf8 */; - --- --- Base de datos: `usuarios_dev` --- - --- -------------------------------------------------------- - --- --- Estructura de tabla para la tabla `tbl_productos` --- - -CREATE TABLE IF NOT EXISTS `tbl_productos` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `titulo` varchar(255) DEFAULT NULL, - `n_agentes` int(11) DEFAULT NULL, - `n_publicaciones` int(11) DEFAULT NULL, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ; - --- --- Volcado de datos para la tabla `tbl_productos` --- - INSERT INTO `tbl_productos` (`id`, `titulo`, `n_agentes`, `n_publicaciones`) VALUES (1, '1 Publicación - Gratis', NULL, 1), (2, 'Hasta 5 Agentes - 500 euros/mes', 5, NULL); - -/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; -/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; -/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; diff --git a/www/protected/extensions/yii-socialconnect/YiiSocialConnect.php b/www/protected/extensions/yii-socialconnect/YiiSocialConnect.php index 009dfb3..0ce422a 100644 --- a/www/protected/extensions/yii-socialconnect/YiiSocialConnect.php +++ b/www/protected/extensions/yii-socialconnect/YiiSocialConnect.php @@ -143,7 +143,7 @@ class YiiSocialConnect extends CApplicationComponent { } if ($this->errorCode) - Yii::log($this->getErrorMessage(), CLogger::LEVEL_ERROR); + Yii::log($this->getErrorMessage(), CLogger::LEVEL_TRACE); return !$this->errorCode; } diff --git a/www/protected/helpers/EMail.php b/www/protected/helpers/EMail.php index e4cb318..8f59a86 100644 --- a/www/protected/helpers/EMail.php +++ b/www/protected/helpers/EMail.php @@ -137,5 +137,24 @@ class EMail { 'solicitud_cancelacion_usuario', array('email' => $destino, 'url' => $url_cancelacion)); } + + /** + * @brief Envía un correo confirmando el cambio de producto. + * @param string $destino dirección de destino + * @param string $id_producto identificación del producto + * @return boolean + */ + public static function enviarNotificacionCambioProducto($destino, $id_producto) { + Yii::trace('Enviando correo confirmando el cambio de producto', 'application.helpers.EMail'); + $producto = Producto::model()->findByPk($id_producto); + return self::_enviar($destino, + Yii::t('profind', 'Se ha modificado su producto en PROFIND'), + 'notificacion_cambio_producto', array( + 'email' => $destino, + 'producto' => $producto->titulo, + 'importe' => $producto->coste_mensual, + )); + } + } ?> diff --git a/www/protected/migrations/m121010_091340_tbl_productos.php b/www/protected/migrations/m121010_091340_tbl_productos.php new file mode 100644 index 0000000..763f36d --- /dev/null +++ b/www/protected/migrations/m121010_091340_tbl_productos.php @@ -0,0 +1,25 @@ +dropColumn('tbl_productos', 'n_agentes'); + $this->dropColumn('tbl_productos', 'n_publicaciones'); + + $this->addColumn('tbl_productos', 'tipo', 'string'); + $this->addColumn('tbl_productos', 'coste_mensual', 'decimal(10,2)'); + $this->addColumn('tbl_productos', 'max_agentes', 'decimal(2,0)'); + $this->addColumn('tbl_productos', 'max_publicaciones', 'decimal(4,0)'); + $this->addColumn('tbl_productos', 'predeterminado', 'boolean'); // tinyint(1) + } + + public function safeDown() { + $this->dropColumn('tbl_productos', 'tipo'); + $this->dropColumn('tbl_productos', 'coste_mensual'); + $this->dropColumn('tbl_productos', 'max_agentes'); + $this->dropColumn('tbl_productos', 'max_publicaciones'); + $this->dropColumn('tbl_productos', 'predeterminado'); + + $this->addColumn('tbl_productos', 'n_agentes', 'integer'); + $this->addColumn('tbl_productos', 'n_publicaciones', 'integer'); + } +} \ No newline at end of file diff --git a/www/protected/models/Producto.php b/www/protected/models/Producto.php index b2ea6cb..703c676 100644 --- a/www/protected/models/Producto.php +++ b/www/protected/models/Producto.php @@ -6,8 +6,12 @@ * The followings are the available columns in table 'tbl_productos': * @property integer $id * @property string $titulo - * @property integer $n_agentes - * @property integer $n_publicaciones + * @property string $max_agentes + * @property string $max_publicaciones + * @property integer $predeterminado + * + * The followings are the available model relations: + * @property TblSubscripciones[] $tblSubscripciones */ class Producto extends CActiveRecord { @@ -37,22 +41,24 @@ class Producto extends CActiveRecord // NOTE: you should only define rules for those attributes that // will receive user inputs. return array( - array('n_agentes, n_publicaciones', 'numerical', 'integerOnly'=>true), + array('predeterminado', 'boolean', 'allowEmpty'=>false), array('titulo', 'length', 'max'=>255), + array('max_agentes', 'length', 'max'=>2), + array('max_publicaciones', 'length', 'max'=>4), // The following rule is used by search(). // Please remove those attributes that should not be searched. - array('id, titulo, n_agentes, n_publicaciones', 'safe', 'on'=>'search'), + array('id, titulo, max_agentes, max_publicaciones, predeterminado', 'safe', 'on'=>'search'), ); } public function scopes() { return array( 'productoInicial' => array( - 'condition' => 'id = 1', + 'condition' => 'predeterminado = 1', 'limit' => 1, ), ); - } + } /** * @return array relational rules. @@ -62,7 +68,7 @@ class Producto extends CActiveRecord // NOTE: you may need to adjust the relation name and the related // class name for the relations automatically generated below. return array( - 'subscripciones' => array(self::HAS_MANY, 'Subscripcion', 'id_producto'), + 'subscripciones' => array(self::HAS_MANY, 'Subscripcion', 'id_producto'), ); } @@ -74,8 +80,9 @@ class Producto extends CActiveRecord return array( 'id' => 'ID', 'titulo' => 'Titulo', - 'n_agentes' => 'N Agentes', - 'n_publicaciones' => 'N Publicaciones', + 'max_agentes' => 'Max Agentes', + 'max_publicaciones' => 'Max Publicaciones', + 'predeterminado' => 'Predeterminado', ); } @@ -92,8 +99,9 @@ class Producto extends CActiveRecord $criteria->compare('id',$this->id); $criteria->compare('titulo',$this->titulo,true); - $criteria->compare('n_agentes',$this->n_agentes); - $criteria->compare('n_publicaciones',$this->n_publicaciones); + $criteria->compare('max_agentes',$this->max_agentes,true); + $criteria->compare('max_publicaciones',$this->max_publicaciones,true); + $criteria->compare('predeterminado',$this->predeterminado); return new CActiveDataProvider($this, array( 'criteria'=>$criteria, diff --git a/www/protected/views/mails/notificacion_cambio_producto.php b/www/protected/views/mails/notificacion_cambio_producto.php new file mode 100644 index 0000000..6e12b1a --- /dev/null +++ b/www/protected/views/mails/notificacion_cambio_producto.php @@ -0,0 +1,21 @@ + +
+Ha recibido este correo como confirmación de su cambio de producto en http://www.profindtic.com.
+Su nuevo producto es:
+Datos para realizar el pago:
+ Forma de pago: Transferencia bancaria
+ Código de cuenta: XXXX-XXXX-XX-XXXXXXXXX
+ Importe: numberFormatter->formatCurrency($importe, 'EUR'); ?>
+
+ Este correo se ha enviado desde http://www.profindtic.com.
+ No responda a este correo ya que ha sido generado automáticamente para su información.
+
El equipo de PROFIND
+ + diff --git a/www/themes/profind/css/productos.css b/www/themes/profind/css/productos.css new file mode 100644 index 0000000..783877a --- /dev/null +++ b/www/themes/profind/css/productos.css @@ -0,0 +1,64 @@ +.table-comparison { + text-align: center; +} + +.table-comparison th { + background-color: #D1D1D1; + background-image: -moz-linear-gradient(center top , #D1D1D1, #ABABAB); + background-repeat: repeat-x; + border-color: #ABABAB #ABABAB #A1A1A1; + text-shadow: 0 -1px 0 #D1D1D1; +} + +.table-comparison th.equipo { + background-color: #0088CC; + background-image: -moz-linear-gradient(center top , #0088CC, #0044CC); + background-repeat: repeat-x; + border-color: #ABABAB; + color: #FFFFFF; + text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); +} + +.table-comparison th.personal { + background-color: #FAA732; + background-image: -moz-linear-gradient(center top , #FBB450, #F89406); + background-repeat: repeat-x; + border-color: #eee; + color: #FFFFFF; + text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); +} + + +.table-comparison, .table-comparison td, .table-comparison th { + border-color: #ABABAB; +} +.table-comparison tr th { + padding: 15px; + width: 145px; +} +.table-comparison tr td { + font-size: 1.1em; +} +.table-comparison tr td:first-child { + font-size: 1em; + padding: 15px; + text-align: left; +} +.table-comparison .icon-ok, .table-comparison .icon-ok-circle { + color: #51A351; +} +.table-comparison .icon-remove, .table-comparison .icon-remove-circle { + color: #BD362F; +} +.table-comparison .icon-star { + color: #F89406; +} +.table-comparison .icon-star-half { + color: #FBB450; +} +.table-comparison .icon-star-empty { + color: #ABABAB; +} +.table-comparison td a { + margin-bottom: 5px; +} diff --git a/www/themes/profind/css/profind.css b/www/themes/profind/css/profind.css index 6efcd53..9ad7257 100644 --- a/www/themes/profind/css/profind.css +++ b/www/themes/profind/css/profind.css @@ -158,7 +158,7 @@ form .row-fluid + .row-fluid { margin-top: 10px !important } .main_content .row-fluid + .row-fluid { - margin-top: 10px + margin-top: 30px } .nav-pills + .nav-pills { margin-left: 20px; diff --git a/www/themes/profind/images/gCons/ID.png b/www/themes/profind/images/gCons/ID.png new file mode 100644 index 0000000..5a1d816 Binary files /dev/null and b/www/themes/profind/images/gCons/ID.png differ diff --git a/www/themes/profind/images/gCons/Scissors.png b/www/themes/profind/images/gCons/Scissors.png new file mode 100644 index 0000000..ec04369 Binary files /dev/null and b/www/themes/profind/images/gCons/Scissors.png differ diff --git a/www/themes/profind/images/gCons/add-item.png b/www/themes/profind/images/gCons/add-item.png new file mode 100644 index 0000000..21cc984 Binary files /dev/null and b/www/themes/profind/images/gCons/add-item.png differ diff --git a/www/themes/profind/images/gCons/addressbook.png b/www/themes/profind/images/gCons/addressbook.png new file mode 100644 index 0000000..54508ac Binary files /dev/null and b/www/themes/profind/images/gCons/addressbook.png differ diff --git a/www/themes/profind/images/gCons/agent.png b/www/themes/profind/images/gCons/agent.png new file mode 100644 index 0000000..c4b0955 Binary files /dev/null and b/www/themes/profind/images/gCons/agent.png differ diff --git a/www/themes/profind/images/gCons/apple.png b/www/themes/profind/images/gCons/apple.png new file mode 100644 index 0000000..cb5717c Binary files /dev/null and b/www/themes/profind/images/gCons/apple.png differ diff --git a/www/themes/profind/images/gCons/arrow-round.png b/www/themes/profind/images/gCons/arrow-round.png new file mode 100644 index 0000000..362a0d5 Binary files /dev/null and b/www/themes/profind/images/gCons/arrow-round.png differ diff --git a/www/themes/profind/images/gCons/badge.png b/www/themes/profind/images/gCons/badge.png new file mode 100644 index 0000000..9f1c719 Binary files /dev/null and b/www/themes/profind/images/gCons/badge.png differ diff --git a/www/themes/profind/images/gCons/bar-chart-02.png b/www/themes/profind/images/gCons/bar-chart-02.png new file mode 100644 index 0000000..40e8a0a Binary files /dev/null and b/www/themes/profind/images/gCons/bar-chart-02.png differ diff --git a/www/themes/profind/images/gCons/bar-chart.png b/www/themes/profind/images/gCons/bar-chart.png new file mode 100644 index 0000000..1e9480a Binary files /dev/null and b/www/themes/profind/images/gCons/bar-chart.png differ diff --git a/www/themes/profind/images/gCons/battery-full.png b/www/themes/profind/images/gCons/battery-full.png new file mode 100644 index 0000000..b1f6724 Binary files /dev/null and b/www/themes/profind/images/gCons/battery-full.png differ diff --git a/www/themes/profind/images/gCons/bird.png b/www/themes/profind/images/gCons/bird.png new file mode 100644 index 0000000..5b1754b Binary files /dev/null and b/www/themes/profind/images/gCons/bird.png differ diff --git a/www/themes/profind/images/gCons/boat.png b/www/themes/profind/images/gCons/boat.png new file mode 100644 index 0000000..afaf0c8 Binary files /dev/null and b/www/themes/profind/images/gCons/boat.png differ diff --git a/www/themes/profind/images/gCons/bookmark.png b/www/themes/profind/images/gCons/bookmark.png new file mode 100644 index 0000000..95c5309 Binary files /dev/null and b/www/themes/profind/images/gCons/bookmark.png differ diff --git a/www/themes/profind/images/gCons/briefcase.png b/www/themes/profind/images/gCons/briefcase.png new file mode 100644 index 0000000..6a1bd45 Binary files /dev/null and b/www/themes/profind/images/gCons/briefcase.png differ diff --git a/www/themes/profind/images/gCons/calculator.png b/www/themes/profind/images/gCons/calculator.png new file mode 100644 index 0000000..1d0203b Binary files /dev/null and b/www/themes/profind/images/gCons/calculator.png differ diff --git a/www/themes/profind/images/gCons/calendar.png b/www/themes/profind/images/gCons/calendar.png new file mode 100644 index 0000000..d3190b9 Binary files /dev/null and b/www/themes/profind/images/gCons/calendar.png differ diff --git a/www/themes/profind/images/gCons/cassette.png b/www/themes/profind/images/gCons/cassette.png new file mode 100644 index 0000000..59e4e02 Binary files /dev/null and b/www/themes/profind/images/gCons/cassette.png differ diff --git a/www/themes/profind/images/gCons/chain.png b/www/themes/profind/images/gCons/chain.png new file mode 100644 index 0000000..9ac19d2 Binary files /dev/null and b/www/themes/profind/images/gCons/chain.png differ diff --git a/www/themes/profind/images/gCons/chat-.png b/www/themes/profind/images/gCons/chat-.png new file mode 100644 index 0000000..aad86a0 Binary files /dev/null and b/www/themes/profind/images/gCons/chat-.png differ diff --git a/www/themes/profind/images/gCons/chat-02.png b/www/themes/profind/images/gCons/chat-02.png new file mode 100644 index 0000000..a764c33 Binary files /dev/null and b/www/themes/profind/images/gCons/chat-02.png differ diff --git a/www/themes/profind/images/gCons/cloud-filled.png b/www/themes/profind/images/gCons/cloud-filled.png new file mode 100644 index 0000000..5983e99 Binary files /dev/null and b/www/themes/profind/images/gCons/cloud-filled.png differ diff --git a/www/themes/profind/images/gCons/cloud-outline.png b/www/themes/profind/images/gCons/cloud-outline.png new file mode 100644 index 0000000..ab4d47e Binary files /dev/null and b/www/themes/profind/images/gCons/cloud-outline.png differ diff --git a/www/themes/profind/images/gCons/computer.png b/www/themes/profind/images/gCons/computer.png new file mode 100644 index 0000000..613acb9 Binary files /dev/null and b/www/themes/profind/images/gCons/computer.png differ diff --git a/www/themes/profind/images/gCons/configuration.png b/www/themes/profind/images/gCons/configuration.png new file mode 100644 index 0000000..874197f Binary files /dev/null and b/www/themes/profind/images/gCons/configuration.png differ diff --git a/www/themes/profind/images/gCons/configuration02.png b/www/themes/profind/images/gCons/configuration02.png new file mode 100644 index 0000000..39f8f06 Binary files /dev/null and b/www/themes/profind/images/gCons/configuration02.png differ diff --git a/www/themes/profind/images/gCons/connected.png b/www/themes/profind/images/gCons/connected.png new file mode 100644 index 0000000..48c7f5f Binary files /dev/null and b/www/themes/profind/images/gCons/connected.png differ diff --git a/www/themes/profind/images/gCons/connections.png b/www/themes/profind/images/gCons/connections.png new file mode 100644 index 0000000..ae7370a Binary files /dev/null and b/www/themes/profind/images/gCons/connections.png differ diff --git a/www/themes/profind/images/gCons/container.png b/www/themes/profind/images/gCons/container.png new file mode 100644 index 0000000..7b9cf97 Binary files /dev/null and b/www/themes/profind/images/gCons/container.png differ diff --git a/www/themes/profind/images/gCons/copy-item.png b/www/themes/profind/images/gCons/copy-item.png new file mode 100644 index 0000000..a74c946 Binary files /dev/null and b/www/themes/profind/images/gCons/copy-item.png differ diff --git a/www/themes/profind/images/gCons/database.png b/www/themes/profind/images/gCons/database.png new file mode 100644 index 0000000..37f3615 Binary files /dev/null and b/www/themes/profind/images/gCons/database.png differ diff --git a/www/themes/profind/images/gCons/delete-item.png b/www/themes/profind/images/gCons/delete-item.png new file mode 100644 index 0000000..7b37ed9 Binary files /dev/null and b/www/themes/profind/images/gCons/delete-item.png differ diff --git a/www/themes/profind/images/gCons/disc.png b/www/themes/profind/images/gCons/disc.png new file mode 100644 index 0000000..8ab92fe Binary files /dev/null and b/www/themes/profind/images/gCons/disc.png differ diff --git a/www/themes/profind/images/gCons/dollar.png b/www/themes/profind/images/gCons/dollar.png new file mode 100644 index 0000000..9732929 Binary files /dev/null and b/www/themes/profind/images/gCons/dollar.png differ diff --git a/www/themes/profind/images/gCons/download.png b/www/themes/profind/images/gCons/download.png new file mode 100644 index 0000000..d28dbaf Binary files /dev/null and b/www/themes/profind/images/gCons/download.png differ diff --git a/www/themes/profind/images/gCons/edit.png b/www/themes/profind/images/gCons/edit.png new file mode 100644 index 0000000..9994f59 Binary files /dev/null and b/www/themes/profind/images/gCons/edit.png differ diff --git a/www/themes/profind/images/gCons/email.png b/www/themes/profind/images/gCons/email.png new file mode 100644 index 0000000..ac69850 Binary files /dev/null and b/www/themes/profind/images/gCons/email.png differ diff --git a/www/themes/profind/images/gCons/fan.png b/www/themes/profind/images/gCons/fan.png new file mode 100644 index 0000000..5bc5692 Binary files /dev/null and b/www/themes/profind/images/gCons/fan.png differ diff --git a/www/themes/profind/images/gCons/fancy-globe.png b/www/themes/profind/images/gCons/fancy-globe.png new file mode 100644 index 0000000..60d56fc Binary files /dev/null and b/www/themes/profind/images/gCons/fancy-globe.png differ diff --git a/www/themes/profind/images/gCons/female-user.png b/www/themes/profind/images/gCons/female-user.png new file mode 100644 index 0000000..3a29c80 Binary files /dev/null and b/www/themes/profind/images/gCons/female-user.png differ diff --git a/www/themes/profind/images/gCons/fire.png b/www/themes/profind/images/gCons/fire.png new file mode 100644 index 0000000..3055df9 Binary files /dev/null and b/www/themes/profind/images/gCons/fire.png differ diff --git a/www/themes/profind/images/gCons/first-aid.png b/www/themes/profind/images/gCons/first-aid.png new file mode 100644 index 0000000..1f7466d Binary files /dev/null and b/www/themes/profind/images/gCons/first-aid.png differ diff --git a/www/themes/profind/images/gCons/flag.png b/www/themes/profind/images/gCons/flag.png new file mode 100644 index 0000000..2e7658b Binary files /dev/null and b/www/themes/profind/images/gCons/flag.png differ diff --git a/www/themes/profind/images/gCons/flower.png b/www/themes/profind/images/gCons/flower.png new file mode 100644 index 0000000..5755a9c Binary files /dev/null and b/www/themes/profind/images/gCons/flower.png differ diff --git a/www/themes/profind/images/gCons/full-screen.png b/www/themes/profind/images/gCons/full-screen.png new file mode 100644 index 0000000..65083b0 Binary files /dev/null and b/www/themes/profind/images/gCons/full-screen.png differ diff --git a/www/themes/profind/images/gCons/glasses.png b/www/themes/profind/images/gCons/glasses.png new file mode 100644 index 0000000..521d525 Binary files /dev/null and b/www/themes/profind/images/gCons/glasses.png differ diff --git a/www/themes/profind/images/gCons/globe.png b/www/themes/profind/images/gCons/globe.png new file mode 100644 index 0000000..4120a0d Binary files /dev/null and b/www/themes/profind/images/gCons/globe.png differ diff --git a/www/themes/profind/images/gCons/happy-face.png b/www/themes/profind/images/gCons/happy-face.png new file mode 100644 index 0000000..d431f45 Binary files /dev/null and b/www/themes/profind/images/gCons/happy-face.png differ diff --git a/www/themes/profind/images/gCons/headphone.png b/www/themes/profind/images/gCons/headphone.png new file mode 100644 index 0000000..bd3ca51 Binary files /dev/null and b/www/themes/profind/images/gCons/headphone.png differ diff --git a/www/themes/profind/images/gCons/heart.png b/www/themes/profind/images/gCons/heart.png new file mode 100644 index 0000000..18df7e0 Binary files /dev/null and b/www/themes/profind/images/gCons/heart.png differ diff --git a/www/themes/profind/images/gCons/home.png b/www/themes/profind/images/gCons/home.png new file mode 100644 index 0000000..5256013 Binary files /dev/null and b/www/themes/profind/images/gCons/home.png differ diff --git a/www/themes/profind/images/gCons/ipod.png b/www/themes/profind/images/gCons/ipod.png new file mode 100644 index 0000000..55c2126 Binary files /dev/null and b/www/themes/profind/images/gCons/ipod.png differ diff --git a/www/themes/profind/images/gCons/lab.png b/www/themes/profind/images/gCons/lab.png new file mode 100644 index 0000000..72d8b33 Binary files /dev/null and b/www/themes/profind/images/gCons/lab.png differ diff --git a/www/themes/profind/images/gCons/lady.png b/www/themes/profind/images/gCons/lady.png new file mode 100644 index 0000000..51c3878 Binary files /dev/null and b/www/themes/profind/images/gCons/lady.png differ diff --git a/www/themes/profind/images/gCons/lamp.png b/www/themes/profind/images/gCons/lamp.png new file mode 100644 index 0000000..d444b7c Binary files /dev/null and b/www/themes/profind/images/gCons/lamp.png differ diff --git a/www/themes/profind/images/gCons/leaves.png b/www/themes/profind/images/gCons/leaves.png new file mode 100644 index 0000000..6f6f501 Binary files /dev/null and b/www/themes/profind/images/gCons/leaves.png differ diff --git a/www/themes/profind/images/gCons/light.png b/www/themes/profind/images/gCons/light.png new file mode 100644 index 0000000..9258e48 Binary files /dev/null and b/www/themes/profind/images/gCons/light.png differ diff --git a/www/themes/profind/images/gCons/line-globe.png b/www/themes/profind/images/gCons/line-globe.png new file mode 100644 index 0000000..d69e90f Binary files /dev/null and b/www/themes/profind/images/gCons/line-globe.png differ diff --git a/www/themes/profind/images/gCons/lock.png b/www/themes/profind/images/gCons/lock.png new file mode 100644 index 0000000..293fd6b Binary files /dev/null and b/www/themes/profind/images/gCons/lock.png differ diff --git a/www/themes/profind/images/gCons/lookup.png b/www/themes/profind/images/gCons/lookup.png new file mode 100644 index 0000000..0c2ce44 Binary files /dev/null and b/www/themes/profind/images/gCons/lookup.png differ diff --git a/www/themes/profind/images/gCons/male-user.png b/www/themes/profind/images/gCons/male-user.png new file mode 100644 index 0000000..0ab0057 Binary files /dev/null and b/www/themes/profind/images/gCons/male-user.png differ diff --git a/www/themes/profind/images/gCons/microphone.png b/www/themes/profind/images/gCons/microphone.png new file mode 100644 index 0000000..3bdec20 Binary files /dev/null and b/www/themes/profind/images/gCons/microphone.png differ diff --git a/www/themes/profind/images/gCons/mobile.png b/www/themes/profind/images/gCons/mobile.png new file mode 100644 index 0000000..41866fa Binary files /dev/null and b/www/themes/profind/images/gCons/mobile.png differ diff --git a/www/themes/profind/images/gCons/mobile2.png b/www/themes/profind/images/gCons/mobile2.png new file mode 100644 index 0000000..3ea23fa Binary files /dev/null and b/www/themes/profind/images/gCons/mobile2.png differ diff --git a/www/themes/profind/images/gCons/mouse.png b/www/themes/profind/images/gCons/mouse.png new file mode 100644 index 0000000..d2561e2 Binary files /dev/null and b/www/themes/profind/images/gCons/mouse.png differ diff --git a/www/themes/profind/images/gCons/multi-agents.png b/www/themes/profind/images/gCons/multi-agents.png new file mode 100644 index 0000000..6841587 Binary files /dev/null and b/www/themes/profind/images/gCons/multi-agents.png differ diff --git a/www/themes/profind/images/gCons/music-node.png b/www/themes/profind/images/gCons/music-node.png new file mode 100644 index 0000000..0e571c7 Binary files /dev/null and b/www/themes/profind/images/gCons/music-node.png differ diff --git a/www/themes/profind/images/gCons/network-pc.png b/www/themes/profind/images/gCons/network-pc.png new file mode 100644 index 0000000..72d8a1b Binary files /dev/null and b/www/themes/profind/images/gCons/network-pc.png differ diff --git a/www/themes/profind/images/gCons/network.png b/www/themes/profind/images/gCons/network.png new file mode 100644 index 0000000..6d29f0b Binary files /dev/null and b/www/themes/profind/images/gCons/network.png differ diff --git a/www/themes/profind/images/gCons/next-item.png b/www/themes/profind/images/gCons/next-item.png new file mode 100644 index 0000000..540d75d Binary files /dev/null and b/www/themes/profind/images/gCons/next-item.png differ diff --git a/www/themes/profind/images/gCons/phone.png b/www/themes/profind/images/gCons/phone.png new file mode 100644 index 0000000..dbc2c5a Binary files /dev/null and b/www/themes/profind/images/gCons/phone.png differ diff --git a/www/themes/profind/images/gCons/pie-chart.png b/www/themes/profind/images/gCons/pie-chart.png new file mode 100644 index 0000000..b1b7f55 Binary files /dev/null and b/www/themes/profind/images/gCons/pie-chart.png differ diff --git a/www/themes/profind/images/gCons/pin.png b/www/themes/profind/images/gCons/pin.png new file mode 100644 index 0000000..575341b Binary files /dev/null and b/www/themes/profind/images/gCons/pin.png differ diff --git a/www/themes/profind/images/gCons/plane.png b/www/themes/profind/images/gCons/plane.png new file mode 100644 index 0000000..9d44345 Binary files /dev/null and b/www/themes/profind/images/gCons/plane.png differ diff --git a/www/themes/profind/images/gCons/print.png b/www/themes/profind/images/gCons/print.png new file mode 100644 index 0000000..1765135 Binary files /dev/null and b/www/themes/profind/images/gCons/print.png differ diff --git a/www/themes/profind/images/gCons/processing-02.png b/www/themes/profind/images/gCons/processing-02.png new file mode 100644 index 0000000..b8fb099 Binary files /dev/null and b/www/themes/profind/images/gCons/processing-02.png differ diff --git a/www/themes/profind/images/gCons/processing.png b/www/themes/profind/images/gCons/processing.png new file mode 100644 index 0000000..fd8216f Binary files /dev/null and b/www/themes/profind/images/gCons/processing.png differ diff --git a/www/themes/profind/images/gCons/push-pin.png b/www/themes/profind/images/gCons/push-pin.png new file mode 100644 index 0000000..9f116c9 Binary files /dev/null and b/www/themes/profind/images/gCons/push-pin.png differ diff --git a/www/themes/profind/images/gCons/recycle-empty.png b/www/themes/profind/images/gCons/recycle-empty.png new file mode 100644 index 0000000..c560bca Binary files /dev/null and b/www/themes/profind/images/gCons/recycle-empty.png differ diff --git a/www/themes/profind/images/gCons/recycle-full.png b/www/themes/profind/images/gCons/recycle-full.png new file mode 100644 index 0000000..a32181b Binary files /dev/null and b/www/themes/profind/images/gCons/recycle-full.png differ diff --git a/www/themes/profind/images/gCons/reload.png b/www/themes/profind/images/gCons/reload.png new file mode 100644 index 0000000..69c67b3 Binary files /dev/null and b/www/themes/profind/images/gCons/reload.png differ diff --git a/www/themes/profind/images/gCons/rss.png b/www/themes/profind/images/gCons/rss.png new file mode 100644 index 0000000..39e06af Binary files /dev/null and b/www/themes/profind/images/gCons/rss.png differ diff --git a/www/themes/profind/images/gCons/satellite.png b/www/themes/profind/images/gCons/satellite.png new file mode 100644 index 0000000..4a6c9b1 Binary files /dev/null and b/www/themes/profind/images/gCons/satellite.png differ diff --git a/www/themes/profind/images/gCons/save.png b/www/themes/profind/images/gCons/save.png new file mode 100644 index 0000000..2d116a2 Binary files /dev/null and b/www/themes/profind/images/gCons/save.png differ diff --git a/www/themes/profind/images/gCons/scale.png b/www/themes/profind/images/gCons/scale.png new file mode 100644 index 0000000..3ee10b0 Binary files /dev/null and b/www/themes/profind/images/gCons/scale.png differ diff --git a/www/themes/profind/images/gCons/screen.png b/www/themes/profind/images/gCons/screen.png new file mode 100644 index 0000000..1c5e6be Binary files /dev/null and b/www/themes/profind/images/gCons/screen.png differ diff --git a/www/themes/profind/images/gCons/search.png b/www/themes/profind/images/gCons/search.png new file mode 100644 index 0000000..9ed2345 Binary files /dev/null and b/www/themes/profind/images/gCons/search.png differ diff --git a/www/themes/profind/images/gCons/server.png b/www/themes/profind/images/gCons/server.png new file mode 100644 index 0000000..98a0ca6 Binary files /dev/null and b/www/themes/profind/images/gCons/server.png differ diff --git a/www/themes/profind/images/gCons/shield.png b/www/themes/profind/images/gCons/shield.png new file mode 100644 index 0000000..d9ea153 Binary files /dev/null and b/www/themes/profind/images/gCons/shield.png differ diff --git a/www/themes/profind/images/gCons/shut-down.png b/www/themes/profind/images/gCons/shut-down.png new file mode 100644 index 0000000..172d718 Binary files /dev/null and b/www/themes/profind/images/gCons/shut-down.png differ diff --git a/www/themes/profind/images/gCons/star.png b/www/themes/profind/images/gCons/star.png new file mode 100644 index 0000000..10ff780 Binary files /dev/null and b/www/themes/profind/images/gCons/star.png differ diff --git a/www/themes/profind/images/gCons/tag.png b/www/themes/profind/images/gCons/tag.png new file mode 100644 index 0000000..685a57c Binary files /dev/null and b/www/themes/profind/images/gCons/tag.png differ diff --git a/www/themes/profind/images/gCons/tap.png b/www/themes/profind/images/gCons/tap.png new file mode 100644 index 0000000..dd5e59c Binary files /dev/null and b/www/themes/profind/images/gCons/tap.png differ diff --git a/www/themes/profind/images/gCons/tree.png b/www/themes/profind/images/gCons/tree.png new file mode 100644 index 0000000..38b1ecc Binary files /dev/null and b/www/themes/profind/images/gCons/tree.png differ diff --git a/www/themes/profind/images/gCons/umbrella.png b/www/themes/profind/images/gCons/umbrella.png new file mode 100644 index 0000000..e09e98b Binary files /dev/null and b/www/themes/profind/images/gCons/umbrella.png differ diff --git a/www/themes/profind/images/gCons/unlock.png b/www/themes/profind/images/gCons/unlock.png new file mode 100644 index 0000000..a7d5e6e Binary files /dev/null and b/www/themes/profind/images/gCons/unlock.png differ diff --git a/www/themes/profind/images/gCons/usb.png b/www/themes/profind/images/gCons/usb.png new file mode 100644 index 0000000..77ccd30 Binary files /dev/null and b/www/themes/profind/images/gCons/usb.png differ diff --git a/www/themes/profind/images/gCons/van.png b/www/themes/profind/images/gCons/van.png new file mode 100644 index 0000000..99127b2 Binary files /dev/null and b/www/themes/profind/images/gCons/van.png differ diff --git a/www/themes/profind/images/gCons/wifi.png b/www/themes/profind/images/gCons/wifi.png new file mode 100644 index 0000000..3d80f19 Binary files /dev/null and b/www/themes/profind/images/gCons/wifi.png differ diff --git a/www/themes/profind/images/gCons/world.png b/www/themes/profind/images/gCons/world.png new file mode 100644 index 0000000..1c80d1d Binary files /dev/null and b/www/themes/profind/images/gCons/world.png differ diff --git a/www/themes/profind/views/layouts/main.php b/www/themes/profind/views/layouts/main.php index 41e81b1..17c2d0b 100644 --- a/www/themes/profind/views/layouts/main.php +++ b/www/themes/profind/views/layouts/main.php @@ -35,17 +35,24 @@| + + tipo) != 'personal') continue; ?> + | titulo; ?> | + +
|---|---|
| + + tipo) != 'personal') continue; ?> + | tipo); ?> | + +
| + + tipo) != 'personal') continue; ?> + | + max_publicaciones) : + case 0: echo ''; + break; + case -1: echo Yii::t('profind', 'ilimitadas'); + break; + default: echo Yii::app()->numberFormatter->formatDecimal($producto->max_publicaciones); + endswitch; + ?> + | + +
| + + tipo) != 'personal') continue; ?> + | + max_agentes) : + case 0: echo ''; + break; + case -1: echo Yii::t('profind', 'ilimitadas'); + break; + default: echo Yii::app()->numberFormatter->formatDecimal($producto->max_agentes); + endswitch; + ?> - - | + +
| + + tipo) != 'personal') continue; ?> + | + coste_mensual > 0) ? str_replace(',00', '', Yii::app()->numberFormatter->formatCurrency($producto->coste_mensual, 'EUR')) : Yii::t('profind', 'gratis'); ?> + | + +
| + + tipo) != 'personal') continue; ?> + | + id != $subscripcion->id_producto) : ?> + 'btn btn-success btn-actualizar', + 'onclick' => '$("#msj_pregunta").modal()', + 'data-id' => $producto->id, + )); + ?> + + | + +
| + + tipo) != 'equipo') continue; ?> + | titulo; ?> | + ++ |
|---|---|---|
| + + tipo) != 'equipo') continue; ?> + | tipo); ?> | + +consultar + |
| + + tipo) != 'equipo') continue; ?> + | + max_publicaciones) : + case 0: echo ''; + break; + case -1: echo Yii::t('profind', 'ilimitadas'); + break; + default: echo Yii::app()->numberFormatter->formatDecimal($producto->max_publicaciones); + endswitch; + ?> + | + +consultar + |
| + + tipo) != 'equipo') continue; ?> + | + max_agentes) : + case 0: echo ''; + break; + case -1: echo Yii::t('profind', 'ilimitadas'); + break; + default: echo Yii::app()->numberFormatter->formatDecimal($producto->max_agentes); + endswitch; + ?> + + | + +consultar + |
| + + tipo) != 'equipo') continue; ?> + | + coste_mensual > 0) ? str_replace(',00', '', Yii::app()->numberFormatter->formatCurrency($producto->coste_mensual, 'EUR')) : Yii::t('profind', 'gratis'); ?> + | + +consultar + |
| + + tipo) != 'equipo') continue; ?> + | + id != $subscripcion->id_producto) : ?> + 'btn btn-success btn-actualizar', + 'onclick' => '$("#msj_pregunta").modal()', + 'data-id' => $producto->id, + )); + ?> + + | + ++ params['frontpage'], + array('class' => 'btn')); + ?> + | +