Example #1
0
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function getList()
 {
     $headerShop = AuthController::checkUserURL();
     if (empty($headerShop)) {
         return View::make('admin.report.finance.finance');
     } else {
         return View::make('admin.report.finance.finance', compact('headerShop'));
     }
 }
Example #2
0
 public function getListInfo()
 {
     $disableChange = DEFAULT_0;
     $headerShop = AuthController::checkUserURL();
     if (empty($headerShop)) {
         return View::make('admin.manage.protocol.protocolinfo');
     } else {
         return View::make('admin.manage.protocol.protocolinfo', compact('headerShop', 'disableChange'));
     }
 }
Example #3
0
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function getList()
 {
     //
     $user = Auth::user();
     $disableChange = DEFAULT_0;
     $headerShop = AuthController::checkUserURL();
     if (empty($headerShop)) {
         return View::make('admin.manage.user.user', compact('user', 'disableChange'));
     } else {
         return View::make('admin.manage.user.user', compact('headerShop', 'user', 'disableChange'));
     }
 }
Example #4
0
 /**
  * 显示满就减列表
  *
  * @return Response
  */
 public function getList()
 {
     //
     $shopID = base64_decode(Input::get('shopID'));
     $disableChange = DEFAULT_0;
     $headerShop = AuthController::checkUserURL();
     if (empty($headerShop)) {
         return View::make('admin.market.reward.reward', compact('disableChange'));
     } else {
         return View::make('admin.market.reward.reward', compact('headerShop', 'disableChange'));
     }
 }
Example #5
0
 /**
  * 获取增加菜品页面
  * 
  * @return Response
  */
 public function getAdd()
 {
     $shops = AuthController::checkAllShops();
     $types = Dictionary::where('wy_dic_id', DIC_GOODS_TYPE)->get(array('wy_dic_item_id', 'wy_dic_value'));
     $headerShop = AuthController::checkUserURL();
     if (empty($headerShop)) {
         return View::make('admin.freshbiz.goods.goodsadd', compact('types', 'shops'))->withWarning(Lang::get('messages.10006'));
     } else {
         if (empty($shops->toArray())) {
             return View::make('admin.freshbiz.goods.goodsadd', compact('headerShop', 'types', 'shops'))->withWarning(Lang::get('messages.10006'));
         } else {
             return View::make('admin.freshbiz.goods.goodsadd', compact('headerShop', 'types', 'shops'));
         }
     }
 }
Example #6
0
 /**
  * 获取店铺详细信息
  *
  * @return Response
  */
 public function getInfo()
 {
     $userID = Auth::id();
     $shopInfoID = base64_decode(Input::get('shopInfoID'));
     $shop = Shop::where('wy_shopkeeper', $userID)->where('wy_shop_id', $shopInfoID)->first(array('wy_shop_id', 'wy_shop_type', 'wy_shop_name', 'wy_shop_icon', 'wy_province_id', 'wy_city_id', 'wy_district_id', 'wy_region_id', 'wy_latitude', 'wy_longitude', 'wy_distance', 'wy_state', 'wy_audit_state', 'wy_send_up_price', 'wy_express_fee', 'wy_phone', 'wy_send_up_time', 'wy_brief', 'wy_start_time', 'wy_keywords', 'wy_addr', 'wy_open_begin', 'wy_open_end', 'wy_delivery_begin', 'wy_delivery_end'));
     if (empty($shop)) {
         $shopID = base64_decode(Input::get('shopID'));
         return Redirect::route('shop.list', array("shopID" => $shopID))->with('error', Lang::get('errormessages.-10039'));
     } else {
         $shop->wy_shop_id = base64_encode($shop->wy_shop_id);
         $types = Dictionary::where('wy_dic_id', DIC_SHOP_TYPE)->get(array('wy_dic_item_id', 'wy_dic_value'));
         $typeValue = $shop->wy_shop_type;
         $provinceValues = Region::where('wy_region_parentid', DEFAULT_0)->where('wy_region_level', REGION_LEVEL_1)->get(array('wy_region_id', 'wy_region_name', 'wy_region_parentid', 'wy_region_shortname'));
         $cityValues = Region::where('wy_region_parentid', $shop->wy_province_id)->where('wy_region_level', REGION_LEVEL_2)->get(array('wy_region_id', 'wy_region_name', 'wy_region_parentid', 'wy_region_shortname'));
         $districtValues = Region::where('wy_region_parentid', $shop->wy_city_id)->where('wy_region_level', REGION_LEVEL_3)->get(array('wy_region_id', 'wy_region_name', 'wy_region_parentid', 'wy_region_shortname'));
         $disableChange = DEFAULT_0;
         $headerShop = AuthController::checkUserURL();
         if (empty($headerShop)) {
             return View::make('admin.manage.shop.shopinfo', compact('shop', 'provinceValues', 'cityValues', 'districtValues', 'disableChange'))->nest('shopType', 'admin.template.dic.type', compact('types', 'typeValue'));
         } else {
             return View::make('admin.manage.shop.shopinfo', compact('headerShop', 'shop', 'provinceValues', 'cityValues', 'districtValues', 'disableChange'))->nest('shopType', 'admin.template.dic.type', compact('types', 'typeValue'));
         }
     }
 }