</page_header> <page_footer> <table style="width: 100%; border-top: solid 1px #006AB2;"> <tr> <td style="text-align: left; width: 70%"><?php echo CHtml::encode(ucfirst($data->user->title)) . ' ' . CHtml::encode($data->user->first_name) . ' ' . CHtml::encode($data->user->last_name); ?> </td> <td style="text-align: right; width: 30%">page [[page_cu]] / [[page_nb]]</td> </tr> </table> </page_footer> <div style="font-size: 14pt; text-align: right"> <qrcode value="<?php echo CController::createAbsoluteUrl('waterRequests/view', array('id' => $data->id)); ?> " style="width: 20mm; background-color: white; color: black; border:none"></qrcode> </div> <br/> <div style="font-size: 14pt; text-align: center; font-weight: bold"> <?php echo CHtml::encode($data->project); ?> </div> <br/> <table style="width: 100%; border: solid 1px #C9E0ED"> <tr> <td><b><?php echo CHtml::encode($data->getAttributeLabel('id')); ?>
<img class="CToWUd" width="70" height="70" align="left" src="<?php echo CController::createAbsoluteUrl('/') . Yii::app()->params->carpetaImagen['combos'][YII::app()->params->producto['tipoImagen']['mini']] . $imagen->rutaImagen; ?> " title="" style="margin-right:7px;margin-bottom:13px;float:left"> </a> <?php } ?> <?php ?> </p> <p style="margin:0"> <a target="_blank" href="<?php echo CController::createAbsoluteUrl('/catalogo/combo', array('combo' => $objItem->idCombo)); ?> " style="color:#0088cc;text-decoration:none"> <b><?php echo $objItem->descripcion; ?> </b> </a> </p> <p style="color:#666666;font-size:12px;margin-top:0;font-weight:bold">Codigo: <?php echo $objItem->codigoProducto; ?> </p> <p style="color:#666666;font-size:12px;line-height:16px">Combo: <?php echo $objItem->descripcionCombo; ?>
<?php else: ?> <td style="text-align:left;line-height:20px;border-top:1px solid #dddddd;vertical-align:top;padding:8px"> <p> <?php $imagen = $position->objProducto->objImagen(YII::app()->params->producto['tipoImagen']['mini']); ?> <?php if ($imagen == null): ?> <a target="_blank" href="<?php echo CController::createAbsoluteUrl('/catalogo/producto', array('producto' => $position->objProducto->codigoProducto)) ?>"> <img class="CToWUd" width="70" height="70" align="left" src="<?php echo CController::createAbsoluteUrl('/') . Yii::app()->params->producto['noImagen']['mini']; ?>" title="" style="margin-right:7px;margin-bottom:13px;float:left"> </a> <?php else: ?> <a target="_blank" href="<?php echo CController::createAbsoluteUrl('/catalogo/producto', array('producto' => $position->objProducto->codigoProducto)) ?>"> <img class="CToWUd" width="70" height="70" align="left" src="<?php echo CController::createAbsoluteUrl('/') . Yii::app()->params->carpetaImagen['productos'][YII::app()->params->producto['tipoImagen']['mini']] . $imagen->rutaImagen; ?>" title="" style="margin-right:7px;margin-bottom:13px;float:left"> </a> <?php endif; ?> </p> <p style="margin:0"> <a target="_blank" href="<?php echo CController::createAbsoluteUrl('/catalogo/producto', array('producto' => $position->objProducto->codigoProducto)) ?>" style="color:#0088cc;text-decoration:none"> <b><?php echo $position->objProducto->descripcionProducto ?></b> </a> </p> <p style="color:#666666;font-size:12px;margin-top:0;font-weight:bold">Codigo: <?php echo $position->objProducto->codigoProducto ?></p> <p style="color:#666666;font-size:12px;line-height:16px"></p> </td> <td style="text-align:center;border-left:1px solid #dddddd;border-top:1px solid #dddddd;vertical-align:top;line-height:20px;padding:8px"><?php echo $position->getQuantity()?></td> <td style="border-left:1px solid #dddddd;border-top:1px solid #dddddd;vertical-align:top;text-align:center;line-height:20px;padding:8px"> <span style="text-decoration:line-through;color:#a40014"><?php echo Yii::app()->numberFormatter->format(Yii::app()->params->formatoMoneda['patron'], $position->getPrice(false, false), Yii::app()->params->formatoMoneda['moneda']); ?></span> <br> <span style="font-size:10px;color:#000"> Incluye <?php echo Yii::app()->numberFormatter->formatPercentage($position->getTax()) ?> de impuestos </span> </td> <td style="border-left:1px solid #dddddd;border-top:1px solid #dddddd;vertical-align:top;text-align:center;line-height:20px;padding:8px"><?php echo Yii::app()->numberFormatter->format(Yii::app()->params->formatoMoneda['patron'], $position->getPrice(), Yii::app()->params->formatoMoneda['moneda']); ?></td> <td style="border-left:1px solid #dddddd;border-top:1px solid #dddddd;vertical-align:top;text-align:center;line-height:20px;padding:8px"><?php echo Yii::app()->numberFormatter->format(Yii::app()->params->formatoMoneda['patron'], $position->getDiscountPrice(), Yii::app()->params->formatoMoneda['moneda']); ?></td> <td style="border-left:1px solid #dddddd;border-top:1px solid #dddddd;vertical-align:top;text-align:center;line-height:20px;padding:8px"><?php echo Yii::app()->numberFormatter->format(Yii::app()->params->formatoMoneda['patron'], $position->getSumPrice(), Yii::app()->params->formatoMoneda['moneda']); ?></td>
(<?php echo $cuerpo[$i]['SALDO_7']; ?> )</td> <td>(<?php echo $cuerpo[$i]['CANTIDAD_PEDIDA'] . ") "; if ($cuerpo[$i]['SALDO_8'] >= $cuerpo[$i]['CANTIDAD_PEDIDA']) { ?> <img src='<?php echo CController::createAbsoluteUrl('/'); ?> /images/iconos/checkmark.png'/><?php } else { ?> <img src='<?php echo CController::createAbsoluteUrl('/'); ?> /images/iconos/mistake.png'/><?php } ?> (<?php echo $cuerpo[$i]['SALDO_8']; ?> )</td> </tr> <?php } ?> </table> <?php } else {
<body> <table align="center" style="width:100%"> <tbody style="text-align:justify;font-size:10.5pt;font-family:Helvetica,sans-serif;color:rgb(51,51,51)"> <tr> <td> <img style="display: block; width: 100%;height: 20%;" src="<?php echo CController::createAbsoluteUrl('/')?>/images/mailing_header.png"> <!-- <img style="display: block; width: 100%;height: 30%;" src="http://m.larebajavirtual.com/images/mailing_header.png"> --> </td> </tr> <tr> <td style="padding-left: 5%; padding-right: 5%"> <?= $contenido ?> <div style="height: 20px;"></div> <p style="font-size:13.5pt;color:rgb(102,102,102)"> <strong>Cordialmente</strong> <br/> <span style="color: #888888;"><strong>La Rebaja Virtual</strong></span> </p> </td> </tr> <tr> <td> <div style="height: 20px;"></div> <img style="display: block; width: 100%;height: 20%;" src="<?php echo CController::createAbsoluteUrl('/')?>/images/mailing_footer.png"> <!-- <img style="display: block; width: 100%;height: auto;" src="http://m.larebajavirtual.com/images/mailing_footer.png"> --> </td> </tr> </tbody> </table> </body> </html>
public function actionRuta() { echo CController::createAbsoluteUrl('/'); }
<p> <?php $imagen = $position->objCombo->objImagen(YII::app()->params->producto['tipoImagen']['mini']); ?> <?php if ($imagen == null): ?> <a target="_blank" href="<?php echo CController::createAbsoluteUrl('/catalogo/combo', array('combo' => $position->objCombo->idCombo)) ?>"> <img class="CToWUd" width="70" height="70" align="left" src="<?php echo CController::createAbsoluteUrl('/') . Yii::app()->params->producto['noImagen']['mini']; ?>" title="" style="margin-right:7px;margin-bottom:13px;float:left"> </a> <?php else: ?> <a target="_blank" href="<?php echo CController::createAbsoluteUrl('/catalogo/combo', array('combo' => $position->objCombo->idCombo)) ?>"> <img class="CToWUd" width="70" height="70" align="left" src="<?php echo CController::createAbsoluteUrl('/') . Yii::app()->params->carpetaImagen['combos'][YII::app()->params->producto['tipoImagen']['mini']] . $imagen->rutaImagen; ?>" title="" style="margin-right:7px;margin-bottom:13px;float:left"> </a> <?php endif; ?> </p> <p style="margin:0"> <a target="_blank" href="<?php echo CController::createAbsoluteUrl('/catalogo/combo', array('combo' => $position->objCombo->idCombo)) ?>" style="color:#0088cc;text-decoration:none"> <b><?php echo $position->objCombo->descripcionCombo ?></b> </a> </p> <p style="color:#666666;font-size:12px;margin-top:0;font-weight:bold">Codigo: <?php echo $position->objCombo->idCombo ?></p> <p style="color:#666666;font-size:12px;line-height:16px"></p> </td> <td style="text-align:center;border-left:1px solid #dddddd;border-top:1px solid #dddddd;vertical-align:top;line-height:20px;padding:8px"><?php echo $position->getQuantity()?></td> <td style="border-left:1px solid #dddddd;border-top:1px solid #dddddd;vertical-align:top;text-align:center;line-height:20px;padding:8px"> <span style="text-decoration:line-through;color:#a40014"><?php echo Yii::app()->numberFormatter->format(Yii::app()->params->formatoMoneda['patron'], $position->getPrice(false, false), Yii::app()->params->formatoMoneda['moneda']); ?></span> <br> <span style="font-size:10px;color:#000"> Incluye <?php echo Yii::app()->numberFormatter->formatPercentage($position->getTax()) ?> de impuestos </span> </td> <td style="border-left:1px solid #dddddd;border-top:1px solid #dddddd;vertical-align:top;text-align:center;line-height:20px;padding:8px"><?php echo Yii::app()->numberFormatter->format(Yii::app()->params->formatoMoneda['patron'], $position->getPrice(), Yii::app()->params->formatoMoneda['moneda']); ?></td> <td style="border-left:1px solid #dddddd;border-top:1px solid #dddddd;vertical-align:top;text-align:center;line-height:20px;padding:8px"><?php echo Yii::app()->numberFormatter->format(Yii::app()->params->formatoMoneda['patron'], $position->getDiscountPrice(), Yii::app()->params->formatoMoneda['moneda']); ?></td> <td style="border-left:1px solid #dddddd;border-top:1px solid #dddddd;vertical-align:top;text-align:center;line-height:20px;padding:8px"><?php echo Yii::app()->numberFormatter->format(Yii::app()->params->formatoMoneda['patron'], $position->getSumPrice(), Yii::app()->params->formatoMoneda['moneda']); ?></td>
/** * Creates an absolute URL based on the given controller and action information. * @param string $route the URL route. This should be in the format of 'ControllerID/ActionID'. * @param array $params additional GET parameters (name=>value). Both the name and value will be URL-encoded. * @param string $schema schema to use (e.g. http, https). If empty, the schema used for the current request will be used. * @param string $ampersand the token separating name-value pairs in the URL. * @return string the constructed URL */ public function createAbsoluteUrl($route, $params = array(), $schema = '', $ampersand = '&') { $sPublicUrl = Yii::app()->getConfig("publicurl"); // Control if public url are really public : need scheme and host // If yes: use it $aPublicUrl = parse_url($sPublicUrl); if (isset($aPublicUrl['scheme']) && isset($aPublicUrl['host'])) { $url = parent::createAbsoluteUrl($route, $params, $schema, $ampersand); $sActualBaseUrl = Yii::app()->getBaseUrl(true); if (substr($url, 0, strlen($sActualBaseUrl)) == $sActualBaseUrl) { $url = substr($url, strlen($sActualBaseUrl)); } return trim($sPublicUrl, "/") . $url; } else { return parent::createAbsoluteUrl($route, $params, $schema, $ampersand); } }
<a target="_blank" href="<?php echo CController::createAbsoluteUrl('/catalogo/producto', array('producto' => $objItem->objProducto->codigoProducto)); ?> "> <img class="CToWUd" width="70" height="70" align="left" src="<?php echo CController::createAbsoluteUrl('/') . Yii::app()->params->carpetaImagen['productos'][YII::app()->params->producto['tipoImagen']['mini']] . $imagen->rutaImagen; ?> " title="" style="margin-right:7px;margin-bottom:13px;float:left"> </a> <?php } ?> </p> <p style="margin:0"> <a target="_blank" href="<?php echo CController::createAbsoluteUrl('/catalogo/producto', array('producto' => $objItem->objProducto->codigoProducto)); ?> " style="color:#0088cc;text-decoration:none"> <b><?php echo $objItem->objProducto->descripcionProducto; ?> </b> </a> </p> <p style="color:#666666;font-size:12px;margin-top:0;font-weight:bold">Codigo: <?php echo $objItem->objProducto->codigoProducto; ?> </p> <p style="color:#666666;font-size:12px;line-height:16px"></p> </td> <td style="text-align:center;border-left:1px solid #dddddd;border-top:1px solid #dddddd;vertical-align:top;line-height:20px;padding:8px"><?php
', link : '<?php echo CController::createAbsoluteUrl("/"); ?> ', name: '<?php echo _xls_get_conf('STORE_NAME'); ?> ', caption: $("#msg").val(), description: "", actions : { name : '<?php echo _xls_get_conf('STORE_NAME'); ?> ', link : '<?php echo CController::createAbsoluteUrl("/"); ?> '} }; FB.api('/me/feed', 'POST', publish, function(response) { $("#submitSpinner").hide(); if (!response || response.error) { alert('Error occured'); } else { alert('<?php echo Yii::t('facebook', 'Thank you for supporting {storename}', array("{storename}" => _xls_get_conf('STORE_NAME'))); ?> '); } }); }