From: kirostumm Date: Tue, 5 Dec 2023 11:58:00 +0000 (+0300) Subject: Revert "Старотовая страница" X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=de469f6119b7482db9ec1d014221bd7c597a5c03;p=yii-erp24%2F.git Revert "Старотовая страница" This reverts commit ee3ce15c27204a71192d87b9f42207b8abf553fa. --- diff --git a/erp24/records/Admin.php b/erp24/records/Admin.php index 9906770..8c1e6f8 100755 --- a/erp24/records/Admin.php +++ b/erp24/records/Admin.php @@ -24,7 +24,6 @@ use yii\web\IdentityInterface; * @property int $store_id магазин по умолчанию * @property int $vcompany Пользователь является человеком * @property string store_arr - * @property string $popular_modules * @package yii_app\records */ class Admin extends ActiveRecord implements IdentityInterface diff --git a/erp24/views/site/index.php b/erp24/views/site/index.php index c9875ad..df5df7c 100644 --- a/erp24/views/site/index.php +++ b/erp24/views/site/index.php @@ -2,74 +2,52 @@ /** @var yii\web\View $this */ -use yii\helpers\ArrayHelper; -use yii_app\records\Admin; -use yii_app\records\CrmMenu; - -$this->title = 'Добро пожаловать в систему!'; +$this->title = 'My Yii Application'; ?>
-

Добро пожаловать в систему!!

+

Congratulations!

+ +

You have successfully created your Yii-powered application.

-

Популярные разделы ERP

+

Get started with Yii

- select(['url', 'icon_file'])->all(); - $icon = ArrayHelper::map($icon, 'url', 'icon_file'); - - foreach ($_SESSION["view_modules"] as $key => $val) { - if (empty($_SESSION["view_modules"][$key]["name"])) $_SESSION["view_modules"][$key]["name"] = $_SESSION["view_modules"][$key]["url"]; - - if (!empty($_SESSION["view_modules"][$key]["url"])) { - $cnt = $_SESSION["view_modules"][$key]["top"]; - $masi[$_SESSION["view_modules"][$key]["url"]] = $cnt; - $data[$_SESSION["view_modules"][$key]["url"]] = array("name" => $_SESSION["view_modules"][$key]["name"], - "description" => $_SESSION["view_modules"][$key]["name"] . "", "top" => $cnt, - "offer" => "success", "url" => $_SESSION["view_modules"][$key]["url"]); - } - } - - foreach ($_SESSION["view_modules"] as $arrayi) $masi[$arrayi["url"]] = $arrayi["top"]; - arsort($masi); - $data2 = []; - foreach ($masi as $key => $val) $data2[$key] = $data[$key]; - - $json_pop = json_encode($data2, JSON_UNESCAPED_UNICODE); - - $theAdmin = Admin::findOne(['id' => $_SESSION["admin_id"]]); - $theAdmin->popular_modules = $json_pop; - $theAdmin->save(); - - ?>
- -
-
"> -
-
- -
-
- -
-
- - +
+

Heading

+ +

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et + dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip + ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu + fugiat nulla pariatur.

+ +

Yii Documentation »

+
+
+

Heading

+ +

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et + dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip + ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu + fugiat nulla pariatur.

+ +

Yii Forum »

+
+
+

Heading

+ +

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et + dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip + ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu + fugiat nulla pariatur.

+ +

Yii Extensions »

+
+