Файл: templates/admin/shop_edit.tpl
Строк: 86
<? $this->layout('app', ['title' => 'Редактирование
кассы']) ?>
<? $this->start('container') ?>
<section class="pt-120 pb-90 default-bg">
<div
class="container">
<div
class="row">
<div
class="col-lg-12">
<div class="post-content-block
contact-form parsley-validate" data-animate="fadeInUp">
<h4 class="font-weight-bold
mb-3">Редактирование кассы</h4>
<div class="form-response"></div>
<form method="post"
action="">
<label>Наименование
кассы:</label><br/>
<input type="text"
class="form-control" name="name"
value="<?=$shop['name'];?>"><br/>
<label>URL
сайта:</label><br/>
<input type="text"
class="form-control" name="url"
value="<?=$shop['url'];?>"><br/>
<label>URL
оповещения:</label><br/>
<input
type="text" class="form-control"
name="url_result"
value="<?=$shop['result'];?>"><br>
<label>Метод
оповещения:</label>
<select
class="form-control" name="resultMethod"
style="width:20%;">
<option value="POST"
<?if($shop['resultMethod'] ==
'POST'){?>selected<?}?>>POST</option>
<option
value="GET" <?if($shop['resultMethod'] ==
'GET'){?>selected<?}?>>GET</option>
<option
value="EMAIL" <?if($shop['resultMethod'] ==
'EMAIL'){?>selected<?}?>>EMAIL</option>
</select>
<br/>
<label>URL
возврата в случае
ошибки:</label><br/>
<input type="text"
class="form-control" name="url_error"
value="<?=$shop['error'];?>"><br/>
<label>Метод:</label>
<select
class="form-control" name="errorMethod"
style="width:20%;">
<option value="POST"
<?if($shop['errorMethod'] ==
'POST'){?>selected<?}?>>POST</option>
<option
value="GET" <?if($shop['errorMethod'] ==
'GET'){?>selected<?}?>>GET</option>
</select>
<br/>
<label>URL возврата в
случае успеха:</label><br/>
<input
type="text" class="form-control"
name="url_success"
value="<?=$shop['success'];?>"><br/>
<label>Метод:</label>
<select
class="form-control" name="successMethod"
style="width:20%;">
<option value="POST"
<?if($shop['successMethod'] ==
'POST'){?>selected<?}?>>POST</option>
<option
value="GET" <?if($shop['successMethod'] ==
'GET'){?>selected<?}?>>GET</option>
</select>
<br/>
<label>Публичный
ключ:</label><br/>
<input type="text"
class="form-control" name="hash"
value="<?=$shop['hash'];?>"><br/>
<label>Секретный
ключ:</label><br/>
<input type="text"
class="form-control" name="hash2"
value="<?=$shop['hash2'];?>"><br/>
<label>Комиссия:</label><br>
Магазин
<input name="method" type="radio"
value="2" <?if($shop['method'] ==
2){?>checked<?}?>/>
Покупатель <input
name="method" type="radio" value="1"
<?if($shop['method'] ==
1){?>checked<?}?>/><br/>
<br>
<label>Режим:</label>
<select
class="form-control" name="test">
<option
value="0" <?if($shop['test'] == 0){?> selected
<?}?>>Рабочий</option>
<option
value="1" <?if($shop['test'] == 1){?> selected
<?}?>>Тестовый</option>
</select>
<br>
<label>Статус:</label>
<select
class="form-control" name="status">
<option
value="0" <?if($shop['status'] == 0){?> selected
<?}?>>На модерации</option>
<option
value="1" <?if($shop['status'] == 1){?> selected
<?}?>>Активна</option>
<option
value="2" <?if($shop['status'] == 2){?> selected
<?}?>>Заблокирована</option>
</select>
<br>
<label>Баланс:</label><br>
<input type="text" class="form-control"
name="money"
value="<?=$shop['money'];?>"><br/>
<?=$csrf;?>
<button type="submit" class="btn"
name="submit">
Сохранить</button>
</form>
</div>
<!-- End of Post Reply -->
</div>
</div>
</div>
</div>
</section>
<?
$this->stop() ?>