157 lines
6.1 KiB
PHP
157 lines
6.1 KiB
PHP
<?php
|
||
# Date: 31.01.2021 (20:21)
|
||
require_once '../config.php';
|
||
|
||
use Battles\Admin\Item;
|
||
|
||
if (isset($_POST)) {
|
||
Item::add($_POST);
|
||
}
|
||
?>
|
||
<form method=post>
|
||
<div>
|
||
<table>
|
||
<caption>Добавление вещей в игру</caption>
|
||
<tr>
|
||
<th id="main">Основное
|
||
<tr>
|
||
<td><label>
|
||
<input name="name" placeholder="Название">
|
||
</label>
|
||
<tr>
|
||
<td><label>
|
||
<input name="image" placeholder="Картинка">
|
||
</label>
|
||
<tr>
|
||
<td><label>
|
||
<select name="shop">
|
||
<option value="0" selected disabled>Тип магазина</option>
|
||
<option value="1">Обычный</option>
|
||
<option value="2">Цветной</option>
|
||
</select>
|
||
</label>
|
||
<tr>
|
||
<td><label>
|
||
<input name=count placeholder="Количество (шт.)" disabled>
|
||
</label>
|
||
<tr>
|
||
<td><label>
|
||
<select name="item_type">
|
||
<option value="0" selected disabled>Тип предмета</option>
|
||
<option value="1">Шлем</option>
|
||
<option value="2">Броня</option>
|
||
<option value="3">Поножи</option>
|
||
<option value="4">Сапоги</option>
|
||
<option value="5">Перчатки</option>
|
||
<option value="6">Оружие</option>
|
||
<option value="7">Щит</option>
|
||
<option value="8">Пояс</option>
|
||
<option value="9">Кольцо</option>
|
||
<option value="10">Амулет</option>
|
||
<option value="20">Расходник</option>
|
||
<option value="50">Всё остальное</option>
|
||
<option value="100">Хлам</option>
|
||
</select>
|
||
</label>
|
||
<tr>
|
||
<td><label>
|
||
<input name=weight placeholder="Масса">
|
||
</label>
|
||
<tr>
|
||
<td><label>
|
||
<input name=durability placeholder="Макс. износ">
|
||
</label>
|
||
<tr>
|
||
<td><label>
|
||
<input name=price placeholder="Цена (кр.)" disabled>
|
||
</label>
|
||
<tr>
|
||
<th id="needs">Требования
|
||
<tr>
|
||
<td><label>
|
||
<input name=need_level placeholder="Уровень">
|
||
</label>
|
||
<tr>
|
||
<td><label>
|
||
<input name=need_strength placeholder="Сила">
|
||
</label>
|
||
<tr>
|
||
<td><label>
|
||
<input name=need_dexterity placeholder="Ловкость">
|
||
</label>
|
||
<tr>
|
||
<td><label>
|
||
<input name=need_intuition placeholder="Интуиция">
|
||
</label>
|
||
<tr>
|
||
<td><label>
|
||
<input name=need_endurance placeholder="Выносливость">
|
||
</label>
|
||
<tr>
|
||
<td><label>
|
||
<input name=need_intelligence placeholder="Интеллект">
|
||
</label>
|
||
<tr>
|
||
<td><label>
|
||
<input name=need_wisdom placeholder="Мудрость">
|
||
</label>
|
||
<tr>
|
||
<th id="adds">Характеристики
|
||
<tr>
|
||
<td><label>
|
||
<input name=minu placeholder="Мин.урон">
|
||
</label>
|
||
<tr>
|
||
<td><label>
|
||
<input name=maxu placeholder="Макс.урон">
|
||
</label>
|
||
<tr>
|
||
<td><label>
|
||
<input name=add_strength placeholder="Сила">
|
||
</label>
|
||
<tr>
|
||
<td><label>
|
||
<input name=add_dexterity placeholder="Ловкость">
|
||
</label>
|
||
<tr>
|
||
<td><label>
|
||
<input name=add_intuition placeholder="Интуиция">
|
||
</label>
|
||
<tr>
|
||
<td><label>
|
||
<input name=add_endurance placeholder="Выносливость">
|
||
</label>
|
||
<tr>
|
||
<td><label>
|
||
<input name=add_intelligence placeholder="Интеллект">
|
||
</label>
|
||
<tr>
|
||
<td><label>
|
||
<input name=add_wisdom placeholder="Мудрость">
|
||
</label>
|
||
<tr>
|
||
<td><label>
|
||
<input name=add_accuracy placeholder="Точность">
|
||
</label>
|
||
<tr>
|
||
<td><label>
|
||
<input name=add_evasion placeholder="Уворот">
|
||
</label>
|
||
<tr>
|
||
<td><label>
|
||
<input name=add_criticals placeholder="Крит">
|
||
</label>
|
||
<tr>
|
||
<td><label>
|
||
<input name=add_min_physical_damage placeholder="Мин.удар">
|
||
</label>
|
||
<tr>
|
||
<td><label>
|
||
<input name=add_min_physical_damage placeholder="Макс.удар">
|
||
</label>
|
||
|
||
</table>
|
||
<INPUT TYPE="submit" value="Добавить">
|
||
</div>
|
||
</form>
|