Example #1
0
 /**
  * 默认值
  */
 private function default_value()
 {
     //状态
     self::$status = array('null' => '下订单 -> 审核', 'audit' => '通过审核', 'earnest' => '通过审核 -> 付定金', 'deploy' => '付定金 -> 调货', 'balance' => '调货 -> 付余款', 'dispatch' => '付余款 -> 发货', 'receiving' => '收到货物', 'returned' => '取消的订单');
     $this->sma->assign('status', self::$status);
     //形状
     self::$shape = array('round' => '圆形', 'princess' => '公主方', 'heart' => '心形', 'pear' => '梨形', 'emerald' => '祖母绿', 'marquise' => '马眼形', 'cushion' => '垫形', 'oval' => '椭圆形', 'radiant' => '明亮形');
     $this->sma->assign('shape', self::$shape);
     //产品来源
     self::$proSource = array('speculation' => '炒货', 'self' => '自家店铺', 'comate' => '代理商');
     $this->sma->assign('proSource', self::$proSource);
     //国家
     self::$country = array('China' => '中国', 'India' => '印度', 'Hongkong' => '香港', 'Belgium' => '比利时', 'USA' => '美国');
     $this->sma->assign('country', self::$country);
     //库存地点
     self::$stockAddress = $this->db->select_to_2Array("select address from stock_address order by taxis desc");
     $this->sma->assign('stockAddress', self::$stockAddress);
 }