Exemplo n.º 1
0
<?php

$merchant_id = getMerchantID();
$sms = Yii::app()->functions->getOption("sms_alert_change_status", $merchant_id);
$order = Yii::app()->functions->getOrder2($this->data['order_id']);
?>

<!--<link href="<?php 
echo assetsURL();
?>
/css/store.css?ver=1.0" rel="stylesheet" />-->

<div class="pop-wrap" style="width:500px;padding:10px;">
   <div class="modal-header">
     <h3 class="left"><?php 
echo Yii::t("default", "Send SMS To Customer");
?>
</h3>
     <a class="right fc-close" href="javascript:;"><i class="fa fa-times"></i></a>
     <div class="clear"></div>
 </div>
 
 <form id="frm-modal-sendsms" class="frm-modal-sendsms" method="POST" onsubmit="return false;" >
 <?php 
echo CHtml::hiddenField('action', 'sendUpdateOrderSMS');
?>
 <?php 
echo CHtml::hiddenField('order_id', $this->data['order_id']);
?>
 
 <div class="modal-body">
Exemplo n.º 2
0
 public function displaySpicyIcon($spicydish = 1, $style = '', $mtid = '')
 {
     if ($spicydish == 2) {
         //$spicydish=Yii::app()->functions->getOptionAdmin('spicydish');
         $spicydish = Yii::app()->functions->getOption('spicydish', $mtid);
         if (empty($spicydish)) {
             $resp = "<img class=\"spicydish-icon {$style}\" src=\"" . assetsURL() . "/images/spicy.png" . "\">";
         } else {
             $resp = "<img class=\"spicydish-icon {$style}\" src=\"" . uploadURL() . "/{$spicydish}" . "\">";
         }
         return $resp;
     }
     return '';
 }