Смена абсолютных путей на относительные. Унификация кнопок.
This commit is contained in:
@@ -23,7 +23,7 @@ class InventoryItem extends Item
|
||||
public function printImage()
|
||||
{
|
||||
if (!in_array($this->item_type, [12, 50, 200])) {
|
||||
echo "<a href=//{$_SERVER['SERVER_NAME']}/main.php?edit=1&dress={$this->item_id} title='Надеть'>";
|
||||
echo "<a href=/main.php?edit=1&dress={$this->item_id} title='Надеть'>";
|
||||
parent::printImage();
|
||||
echo "</a>";
|
||||
} else {
|
||||
@@ -36,9 +36,9 @@ class InventoryItem extends Item
|
||||
*/
|
||||
public function printControls()
|
||||
{
|
||||
//FIXME Сменить заглушку на нормальную функцию!!
|
||||
echo <<<BTN
|
||||
<p><input type="button" style="background: brown; border: 1px solid grey; color: white; border-radius: 2px;" value="Выбросить"
|
||||
onclick="location='/admin.php'">
|
||||
<p><button class="button danger" onclick="location.href='/admin.php'">Выбросить</button>
|
||||
BTN;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user