@@ -24,7 +24,7 @@ |
||
24 | 24 | 'formName' => !empty($dataManager->managerOptions['editForm']) ? $dataManager->managerOptions['editForm'] : 'manager' |
25 | 25 | ]; |
26 | 26 | |
27 | - return '<a href ="#" onclick=\'inji.Ui.forms.popUp("' . addcslashes(get_class($item), '\\') . ':' . $item->pk() . '",' . json_encode($formParams) . '); |
|
27 | + return '<a href ="#" onclick=\'inji.Ui.forms.popUp("'.addcslashes(get_class($item), '\\').':'.$item->pk().'",'.json_encode($formParams).'); |
|
28 | 28 | return false;\'><i class="glyphicon glyphicon-edit"></i></a>'; |
29 | 29 | } |
30 | 30 |
@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | |
20 | 20 | public static function rowButton($dataManager, $item, $params, $actionParams) |
21 | 21 | { |
22 | - return '<a href ="#" onclick=\'inji.Ui.dataManagers.get(this).delRow(' . $item->pk() . '); |
|
22 | + return '<a href ="#" onclick=\'inji.Ui.dataManagers.get(this).delRow('.$item->pk().'); |
|
23 | 23 | return false;\'><i class="glyphicon glyphicon-remove"></i></a>'; |
24 | 24 | } |
25 | 25 | |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | $model->delete(); |
32 | 32 | } |
33 | 33 | $count = count($models); |
34 | - return 'Удалено <b>' . $count . '</b> ' . \Tools::getNumEnding($count, ['запись', 'записи', 'записей']); |
|
34 | + return 'Удалено <b>'.$count.'</b> '.\Tools::getNumEnding($count, ['запись', 'записи', 'записей']); |
|
35 | 35 | } |
36 | 36 | |
37 | 37 | } |
@@ -19,7 +19,7 @@ |
||
19 | 19 | echo "<p class = 'text-center'>{$userForm->description}</p>"; |
20 | 20 | } |
21 | 21 | foreach ($userForm->inputs(['order' => ['weight']]) as $input) { |
22 | - $form->input($input->type, 'UserForms[' . (int) $form_id . '][input' . $input->id . ']', $input->label, ['required' => $input->required]); |
|
22 | + $form->input($input->type, 'UserForms['.(int) $form_id.'][input'.$input->id.']', $input->label, ['required' => $input->required]); |
|
23 | 23 | } |
24 | 24 | ?> |
25 | 25 | <button class = 'btn btn-success btn-block'>Отправить</button> |
@@ -2,7 +2,7 @@ |
||
2 | 2 | |
3 | 3 | $inputs = json_decode($params[0]->fr_data, true); |
4 | 4 | foreach ($params[0]->form->inputs as $input) { |
5 | - if (isset($inputs['input' . $input->fi_id])) { |
|
6 | - echo "{$input->fi_label}: " . htmlspecialchars($inputs['input' . $input->fi_id]) . "<br />"; |
|
5 | + if (isset($inputs['input'.$input->fi_id])) { |
|
6 | + echo "{$input->fi_label}: ".htmlspecialchars($inputs['input'.$input->fi_id])."<br />"; |
|
7 | 7 | } |
8 | 8 | } |
@@ -79,7 +79,7 @@ |
||
79 | 79 | |
80 | 80 | public function name() |
81 | 81 | { |
82 | - return $this->code ? $this->code : $this->id . ' - ' . $this->user->name(); |
|
82 | + return $this->code ? $this->code : $this->id.' - '.$this->user->name(); |
|
83 | 83 | } |
84 | 84 | |
85 | 85 | } |
@@ -31,7 +31,7 @@ |
||
31 | 31 | $event->save(); |
32 | 32 | } |
33 | 33 | if ($cur->count != $this->count) { |
34 | - $event = new Event(['cart_id' => $this->cart->cart_id, 'user_id' => \Users\User::$cur->id, 'cart_event_type_id' => 4, 'info' => $this->item_offer_price_id . "|" . ($this->count - $cur->count)]); |
|
34 | + $event = new Event(['cart_id' => $this->cart->cart_id, 'user_id' => \Users\User::$cur->id, 'cart_event_type_id' => 4, 'info' => $this->item_offer_price_id."|".($this->count - $cur->count)]); |
|
35 | 35 | $event->save(); |
36 | 36 | } |
37 | 37 | } |
@@ -16,11 +16,11 @@ |
||
16 | 16 | "mode": "", |
17 | 17 | "all": false, |
18 | 18 | "relation": "infos"} |
19 | - )'><?= $count . ' ' . Tools::getNumEnding($count, ['Элемент', 'Элемента', 'Элементов']); ?></a> |
|
19 | + )'><?= $count.' '.Tools::getNumEnding($count, ['Элемент', 'Элемента', 'Элементов']); ?></a> |
|
20 | 20 | <?php |
21 | 21 | } else { |
22 | 22 | foreach ($item->infos as $info) { |
23 | - echo $info->value . ' '; |
|
23 | + echo $info->value.' '; |
|
24 | 24 | } |
25 | 25 | } |
26 | 26 | ?> |
27 | 27 | \ No newline at end of file |
@@ -3,7 +3,7 @@ |
||
3 | 3 | $userCards = \Ecommerce\Card\Item::getList(['where' => ['user_id', \Users\User::$cur->id]]); |
4 | 4 | foreach ($userCards as $userCard) { |
5 | 5 | $checked = $cart->card_item_id == $userCard->id; |
6 | - $form->input('radio', "discounts[card_item_id]", $userCard->card->name, ['value' => $userCard->id, 'checked' => $checked, 'helpText' => $userCard->level->name . ' (' . $userCard->level->discount->name . ')<br />Сумма накоплений: ' . $userCard->sum . ' руб.']); |
|
6 | + $form->input('radio', "discounts[card_item_id]", $userCard->card->name, ['value' => $userCard->id, 'checked' => $checked, 'helpText' => $userCard->level->name.' ('.$userCard->level->discount->name.')<br />Сумма накоплений: '.$userCard->sum.' руб.']); |
|
7 | 7 | } |
8 | 8 | if (!$userCards) { |
9 | 9 | echo '<p>У вас нет <b>дисконтной карты</b>, вы можете её оформить и сразу начать пльзоваться её приемуществами.</p>'; |
@@ -49,7 +49,7 @@ |
||
49 | 49 | $cart->save(); |
50 | 50 | } |
51 | 51 | $count = count($carts); |
52 | - return 'Завершено <b>' . $count . '</b> ' . \Tools::getNumEnding($count, ['корзина', 'корзины', 'корзин']); |
|
52 | + return 'Завершено <b>'.$count.'</b> '.\Tools::getNumEnding($count, ['корзина', 'корзины', 'корзин']); |
|
53 | 53 | } |
54 | 54 | |
55 | 55 | } |