diff --git a/plugins/tps/shops/controllers/Report.php b/plugins/tps/shops/controllers/Report.php index e5885cd..2508140 100755 --- a/plugins/tps/shops/controllers/Report.php +++ b/plugins/tps/shops/controllers/Report.php @@ -42,6 +42,7 @@ class Report extends Controller $filenames = array_diff(scandir($storageDestinationPath), array('.', '..')); foreach ($filenames as $item) { $shop_number = explode(".", $item)[0]; +Log::info($item); $shop = Shop::where("shop_number", $shop_number)->get()->first(); if ($shop) { @@ -51,6 +52,7 @@ class Report extends Controller $report_detail->report_id = $id; $report_detail->shop_id = $shop->id; // on local explode storage\app on live server storage/app +Log::info('/extract'.explode('extract', $storageDestinationPath)[1].'/'.$item); $report_detail->file = '/extract'.explode('extract', $storageDestinationPath)[1].'/'.$item; $report_detail->save(); Log::info("saved succesfully"); diff --git a/themes/berkarar/pages/search.htm b/themes/berkarar/pages/search.htm new file mode 100644 index 0000000..2850af8 --- /dev/null +++ b/themes/berkarar/pages/search.htm @@ -0,0 +1,52 @@ +title = "search" +url = "/search" +layout = "default" +is_hidden = 0 +== +get(); +} +?> +== +
+
+
+
+ + + + + + + Главная + +

+ Результат поиска +

+ +
+
+
+
+ +
+
+
+
+
+ {% for shop in shops%} + {% partial 'home/shop_item' shop=shop %} + {% endfor %} +
+
+
+
+
\ No newline at end of file diff --git a/themes/berkarar/partials/site/navigation.htm b/themes/berkarar/partials/site/navigation.htm index 2dc6c2b..9103bac 100755 --- a/themes/berkarar/partials/site/navigation.htm +++ b/themes/berkarar/partials/site/navigation.htm @@ -100,13 +100,13 @@ function onStart(){