battles/admin/NewItem.php

100 lines
4.2 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?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><input name="name" placeholder="Название">
<tr>
<td><input name="image" placeholder="Картинка">
<tr>
<td><select name="shop">
<option value="0" selected disabled>Тип магазина</option>
<option value="1">Обычный</option>
<option value="2">Цветной</option>
</select>
<tr>
<td><input name=count placeholder="Количество (шт.)" disabled>
<tr>
<td><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>
<tr>
<td><input name=weight placeholder="Масса">
<tr>
<td><input name=durability placeholder="Макс. износ">
<tr>
<td><input name=price placeholder="Цена (кр.)" disabled>
<tr>
<th id="needs">Требования
<tr>
<td><input name=need_level placeholder="Уровень">
<tr>
<td><input name=need_strength placeholder="Сила">
<tr>
<td><input name=need_dexterity placeholder="Ловкость">
<tr>
<td><input name=need_intuition placeholder="Интуиция">
<tr>
<td><input name=need_endurance placeholder="Выносливость">
<tr>
<td><input name=need_intelligence placeholder="Интеллект">
<tr>
<td><input name=need_wisdom placeholder="Мудрость">
<tr>
<th id="adds">Характеристики
<tr>
<td><input name=minu placeholder="Мин.урон">
<tr>
<td><input name=maxu placeholder="Макс.урон">
<tr>
<td><input name=add_strength placeholder="Сила">
<tr>
<td><input name=add_dexterity placeholder="Ловкость">
<tr>
<td><input name=add_intuition placeholder="Интуиция">
<tr>
<td><input name=add_endurance placeholder="Выносливость">
<tr>
<td><input name=add_intelligence placeholder="Интеллект">
<tr>
<td><input name=add_wisdom placeholder="Мудрость">
<tr>
<td><input name=add_accuracy placeholder="Точность">
<tr>
<td><input name=add_evasion placeholder="Уворот">
<tr>
<td><input name=add_criticals placeholder="Крит">
<tr>
<td><input name=add_min_physical_damage placeholder="Мин.удар">
<tr>
<td><input name=add_min_physical_damage placeholder="Макс.удар">
</table>
<INPUT TYPE="submit" value="Добавить">
</div>
</form>