Ejemplo n.º 1
0
 /**
  * 编辑
  */
 function edit()
 {
     $id = I('get.id');
     $AutoAttr = new AutoattributeModel();
     $Notice = new NoticeModel();
     $notice_info = $Notice->getById($id);
     $NoticeType = $AutoAttr->getAttrBy_Type_Value('notice');
     $this->assign('notice_info', $notice_info[0]);
     $this->assign('notice_type', $NoticeType);
     $this->assign('id', $id);
     $this->assign('action', 'edit');
     $this->display();
 }
Ejemplo n.º 2
0
 /**
  * 渲染品牌管理页面首页
  */
 public function index()
 {
     $value = I('get.value');
     if (empty($value)) {
         $value = 1;
     }
     $auto_attr = new AutoattributeModel();
     $brand_type = $auto_attr->getAttrBy_Type_Value('brand_type');
     $map = array('attr_value' => $value, 'marks' => 0);
     $Brandlist = $this->lists('Brand', $map);
     //品牌信息列表
     $this->assign('brand_list', $Brandlist);
     $this->assign('brandvalue', $value);
     //品牌类型列表
     $this->assign('brand_type_list', $brand_type);
     $this->display();
 }