示例#1
0
 function inventory()
 {
     $getData = array('plugin' => 'ERP', 'action' => 'ERPProductsAction', 'entry' => 'getProductInventory');
     $Warehouse = $_POST['Warehouse'];
     $styleno = $_POST['Styleno'];
     $color = $_POST['ColorCode'];
     $leng = $_POST['Leng'];
     $size = $_POST['Size'];
     $postData = array('Warehouse' => $Warehouse, 'Styleno' => $styleno, 'ColorCode' => $color, 'Leng' => $leng, 'Size' => $size);
     $info = WebService('hj', 'Plugin', 'entry', $getData, $postData);
 }
示例#2
0
 function seasion()
 {
     $ob = M("ad_img");
     if ($_POST['ado'] == 'addnewad') {
         $add['classname'] = $_POST['classname'];
         $add['show'] = 0;
         $ob->add($add);
         $this->redirect("/Home/seasion/s/" . $_GET['s']);
     }
     if ($_POST['ado'] == 'savead') {
         $save['show'] = $_POST['show'];
         $save['orderby'] = $_POST['orderby'];
         $save['ref1'] = $_POST['ref1'];
         $save['ref2'] = $_POST['ref2'];
         $save['ref3'] = $_POST['ref3'];
         $save['ref4'] = $_POST['ref4'];
         $save['ref5'] = $_POST['ref5'];
         $ob->where(array('id' => $_POST['id']))->save($save);
         $this->redirect("/Home/seasion/s/" . $_GET['s']);
     }
     if ($_GET['s'] == 'on') {
         $map['classname'] = "onseason";
     } else {
         $map['classname'] = "previousseason";
     }
     if ($_GET['delete']) {
         $map['id'] = $_GET['delete'];
         $ob->where($map)->delete();
         $this->redirect("/Home/seasion/s/" . $_GET['s']);
     }
     $list = $ob->where($map)->order(array('orderby' => 'asc'))->select();
     $getData = array('plugin' => 'ERP', 'action' => 'ERPInfoAction', 'entry' => 'getBrandList');
     $Brand = WebService('', 'Plugin', 'entry', $getData);
     $this->assign('Brand', $Brand);
     $this->assign('list', $list);
     $this->display('/season');
 }