Пример #1
0
function getNewContact($cID)
{
    $cID = $cID->getParam(0)->scalarval();
    $cID1 = $cID->getParam(1)->scalarval();
    $tmp = new Webshop();
    $arr = $tmp->getNewContact($cID, $cID1);
    return new xmlrpcresp(new xmlrpcval($arr, 'struct'));
}
Пример #2
0
 public function actionDelete($id)
 {
     if (Yii::app()->user->isGuest or Yii::app()->user->access_level < Config::get('access_level_admin')) {
         $this->redirect(Yii::app()->homeUrl);
     }
     $model = Webshop::model()->findByPK($id);
     $model->delete();
     $this->redirect(Yii::app()->homeUrl . 'admin/webshop/list/');
 }
Пример #3
0
    </div>
    <div id="brand_name_wrapper" class="col-md-12"><div class="col-md-12">
            <div class="col-xs-12">
                <div class="col-xs-12 col-sm-12 col-lg-8" style="padding-top:1%;"><h3><?php 
echo $product_brand . ' ' . $product_name;
?>
</h3></div>
                <div class="col-xs-12 col-sm-12 col-lg-12 line-separator"></div>
            </div>
            <div class="col-md-12 row">
                <div class="col-xs-12 col-md-6 col-lg-6">
                    <div>
                        <div id="html5g" class="html5gallery" data-responsive="true" data-skin="light" data-width="420" data-height="272" data-slideshadow="false" data-resizemode="fill">
                            <?php 
Webshop::printVideo($product_video);
Webshop::getImgs($product_id);
?>
                        </div>
                    </div>
                </div>
                <div class="col-xs-12 col-md-6 col-lg-6">
                    <div class=" col-md-12 col-lg-12" style="padding-top:1%;"><h3><?php 
echo $product_name;
?>
</h3><h4><?php 
echo $short_desc;
?>
</h4> </div>
                </div>
            </div>
        </div>