Ejemplo n.º 1
0
 /**
  * 系统函数
  * @access public
  */
 function beforeAction()
 {
     $m = new Banner();
     $language = $m->getLanguageList();
     $this->assign('language', $language);
     $upload = new Upload();
     $this->assign('upload', $upload->show());
 }
Ejemplo n.º 2
0
 /**
  * 系统函数
  * @access public
  */
 function beforeAction()
 {
     $Hotproduct = new Hotproduct();
     $language = $Hotproduct->getLanguageList();
     //print_r($language);
     $this->assign('language', $language);
     $upload = new Upload();
     $this->assign('upload', $upload->show());
 }
Ejemplo n.º 3
0
 /**
  * 系统函数
  * @access public
  */
 function beforeAction()
 {
     $hotshop = new Hotshop();
     $language = $hotshop->getLanguageList();
     //print_r($language);
     $this->assign('language', $language);
     $upload = new Upload();
     $this->assign('upload', $upload->show());
 }
Ejemplo n.º 4
0
 /**
  * 系统函数
  * @access public
  */
 function beforeAction()
 {
     $website = new Website();
     $language = $website->getLanguageList();
     //print_r($language);
     $this->assign('language', $language);
     $upload = new Upload();
     $this->assign('upload', $upload->show());
 }
Ejemplo n.º 5
0
 /**
  * 系统函数
  * @access public
  */
 function beforeAction()
 {
     $teambuy = new Teambuy();
     $language = $teambuy->getLanguageList();
     //print_r($language);
     $this->assign('language', $language);
     $upload = new Upload();
     $this->assign('upload', $upload->show());
 }
Ejemplo n.º 6
0
 /**
  * 系统函数
  * @access public
  */
 function beforeAction()
 {
     $m = new Rotation();
     $type = $m->gettype();
     //$language = $m->getLanguageList();
     $this->assign('type', $type);
     //$this->assign('language', $language);
     $upload = new Upload();
     $this->assign('upload', $upload->show());
 }
Ejemplo n.º 7
0
 /**
  * 返回更新国家信息
  * @access public
  */
 function update()
 {
     $id = get_post_value('id');
     $field = array('product_url', 'title_cn', 'title_th', 'category_3_id', 'floor_3_id', 'purchase_price', 'image_url', 'product_url', 'shop_id', 'shop_url', 'product_id', 'status', 'shop', 'sales_price', 'purchase_price', 'preferential_price');
     $m = new Products();
     $m->clear();
     $m->setTable('vcb_product');
     //设置表名
     $m->setWhere('product_id', '=', $id);
     $m->setField($field);
     $data = $m->select();
     var_dump($data);
     $this->assign('data', $data);
     $upload = new Upload();
     $this->assign('upload', $upload->show());
 }
 function update_kind()
 {
     $id = get_post_value('id');
     $field = array('id', 'product_id', 'product_color', 'image_url');
     var_dump($field);
     $m = new Products();
     $m->clear();
     $m->setField($field);
     $m->setTable(' vcb_product_kind ');
     $m->setWhere('id', '=', $id);
     $data = $m->select();
     $this->assign('data', $data);
     $upload = new Upload();
     $this->assign('upload', $upload->show());
 }
Ejemplo n.º 9
0
 function add2()
 {
     $url = strtolower(get_post_value('url'));
     if (substr($url, 0, 7) != 'http://') {
         $url = 'http://' . $url;
     }
     $product_url = null;
     if (substr($url, 0, 22) == 'http://item.taobao.com') {
         echo $url;
         $taobao = new Taobao($url);
         $product_url = $taobao->getProductUrl();
         $data = $taobao->getData();
         print_r($data);
         $this->assign('product_url', $product_url);
         $this->assign('data', $data);
     } else {
     }
     $upload = new Upload();
     $this->assign('upload', $upload->show());
 }