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

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