Правка ошибок вёрстки.

This commit is contained in:
Igor Barkov [iwork] 2018-06-22 16:09:30 +03:00
parent 0bae31fe0a
commit 1c2e7dbedd

View File

@ -172,16 +172,14 @@ if ($_POST['sale']) {
}
?>
<HTML>
<HEAD>
<link rel=stylesheet type="text/css" href="css/main.css">
<meta content="text/html; charset=utf-8" http-equiv=Content-type>
<META Http-Equiv=Cache-Control Content=no-cache>
<meta http-equiv=PRAGMA content=NO-CACHE>
<META Http-Equiv=Expires Content=0>
<SCRIPT LANGUAGE="JavaScript">
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link href="css/main.css" rel="stylesheet"/>
<script LANGUAGE="JavaScript">
function AddCount(name, txt) {
document.all("hint3").innerHTML = '<form method=post style="margin:0px; padding:0px;"><table border=0 width=100% cellspacing=1 cellpadding=0 bgcolor="#CCC3AA"><tr><td align=center><B>Купить неск. штук</td><td width=20 align=right valign=top style="cursor: hand" onclick="closehint3();"><BIG><B>x</TD></tr><tr><td colspan=2>' +
document.all("hint3").innerHTML = '<form method=post style="margin:0; padding:0;"><table border=0 width=100% cellspacing=1 cellpadding=0 bgcolor="#CCC3AA"><tr><td align=center><B>Купить неск. штук</td><td width=20 align=right valign=top style="cursor: hand" onclick="closehint3();"><BIG><B>x</TD></tr><tr><td colspan=2>' +
'<table border=0 width=100% cellspacing=0 cellpadding=0 bgcolor="#FFF6DD"><tr><INPUT TYPE="hidden" name="set" value="' + name + '"><td colspan=2 align=center><B><I>' + txt + '</td></tr><tr><td width=80% align=right>' +
'Количество (шт.) <INPUT TYPE="text" NAME="count" size=4 ></td><td width=20%>&nbsp;<INPUT TYPE="submit" value=" »» ">' +
'</TD></TR></TABLE></td></tr></table></form>';
@ -195,19 +193,20 @@ if ($_POST['sale']) {
function closehint3() {
document.all("hint3").style.visibility = "hidden";
}
</SCRIPT>
</HEAD>
<body leftmargin=5 topmargin=5 marginwidth=5 marginheight=5 bgcolor=#d4d4d4>
<TABLE border=0 width=100% cellspacing="0" cellpadding="0">
<FORM action="city.php" method=GET>
<tr>
<td><h3 style="color: blue">Магазин РЕПУТАЦИИ</td>
<td align=right>
</script>
</head>
<body marginwidth=5 marginheight=5 bgcolor=#d4d4d4>
<table border=0 width=100% cellspacing="0" cellpadding="0">
<tr>
<td><h3 style="color: blue">Магазин репутации</td>
<td align=right>
<FORM action="city.php" method=GET>
<INPUT TYPE="button" value="Подсказка" style="background-color:#A9AFC0"
onclick="window.open('help/shop.html', 'help', 'height=300,width=500,location=no,menubar=no,status=no,toolbar=no,scrollbars=yes')">
<INPUT TYPE="submit" value="Вернуться" name="cp"></td>
</tr>
</FORM>
<INPUT TYPE="submit" value="Вернуться" name="cp">
</FORM>
</td>
</tr>
</table>
<TABLE border=0 width=100% cellspacing="0" cellpadding="4">
<TR>
@ -225,7 +224,7 @@ if ($_POST['sale']) {
<TR>
<TD><!--Рюкзак-->
<TABLE BORDER=0 WIDTH=100% CELLSPACING="1" CELLPADDING="2" BGCOLOR="#A5A5A5">
<?
<?php
$data = db::c()->query('SELECT * FROM `ahero_shop` WHERE `count` > 0 AND `razdel` = ?i ORDER by `point` ASC', $_GET['otdel']);
while ($row = $data->fetch_assoc()) {
if ($i == 0) {
@ -235,39 +234,34 @@ if ($_POST['sale']) {
$i = 0;
$color = '#D5D5D5';
}
echo "<TR bgcolor={$color}><TD align=center style='width:150px'><IMG SRC=\"i/sh/{$row['img']}\" BORDER=0>";
?>
<BR><A HREF="ahero_shop.php?otdel=<?= $_GET['otdel'] ?>&set=<?= $row['id'] ?>&sid=">купить</A>
<IMG SRC="i/up.gif" WIDTH=11 HEIGHT=11 BORDER=0 ALT="Купить несколько штук"
style="cursor:hand"
onclick="AddCount('<?= $row['id'] ?>', '<?= $row['name'] ?>')"></TD>
<?php
echo "<TD valign=top>";
showitem($row, 11);
echo "</TD></TR>";
<tr bgcolor="<?=$color?>">
<td align="center" style="width: 150px;">
<img src="i/sh/<?=$row['img']?>" border="0">
<br><a href="ahero_shop.php?otdel=<?=$_GET['otdel']?>&set=<?=$row['id']?>&sid=">купить</a>
<img src="i/up.gif" WIDTH=11 HEIGHT=11 BORDER=0 ALT="Купить несколько штук" style="cursor:hand" onclick="AddCount('<?=$row['id']?>', '<?=$row['name']?>')">
</td>
<td valign="top">
<?php showitem($row, 11); ?>
</td>
</tr>
<?php
}
//}
?>
</TABLE>
</TD>
</TR>
</TABLE>
</TD>
<TD valign=top width=280>
<div style="MARGIN-LEFT:15px; MARGIN-TOP: 10px;">
<CENTER><B>Масса всех ваших вещей: <?=$itemWeight['m']?>/<?=get_meshok()?><BR>
У вас в наличии: <span style="color: blue"><?=$user['doblest']?></span> реп.</B></CENTER>
<hr>
<a href=shop.php>ГОС. МАГАЗИН</a>
<hr>
<div style="background-color:#d2d0d0;padding:1">
<center><font color="#oooo"><B>Отделы магазина</B></center>
<div style="background-color:#d2d0d0; padding:1px; text-align: center; font-weight: bold;">
Отделы магазина
</div>
<b>Оружие:</b> <BR>
<A HREF="ahero_shop.php?otdel=1&sid=&0.162486541405194">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;кастеты,ножи</A><BR>
@ -295,7 +289,6 @@ if ($_POST['sale']) {
<A HREF="ahero_shop.php?otdel=52&sid=&0.925798340638547">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;руны</A><BR>
</div>
<div id="hint3" class="ahint"></div>
</TD>
</FORM>
</TR>