Unit of measure 'px' is redundant

This commit is contained in:
lopar 2020-09-18 02:06:32 +03:00
parent d753684958
commit c25335d846
7 changed files with 13 additions and 23 deletions

View File

@ -1735,7 +1735,7 @@ function drawmap($map1, $players, $x, $y, $direction)
}
} else {
if ($i == 1) {
$ret .= "<img width=\"65\" height=\"80\" src=\"/i/dungeon/objects/$o.gif\" style=\"position: absolute; left: 0px; top: 110px\" />";
$ret .= " />";
}
if ($i == 2) {
$ret .= "<img width=\"43\" height=\"56\" src=\"/i/dungeon/objects/$o.gif\" style=\"position: absolute; left: 17px; top: 90px\" />";
@ -1776,13 +1776,13 @@ function drawmap($map1, $players, $x, $y, $direction)
$objInWall = explode('/', $map[4][$sidewall]);
if ($objInWall[1] == 'o') {
if (!passablewall($map[4][$sidewall])) $ret .= "<div style=\"position:absolute;left:0px;top:0px;width:352px;height:240px;background-image:url($base/rsw$i$objInWall[2].gif)\"></div>";
if (!passablewall($map[4][$sidewall])) $ret .= "></div>";
} else {
if (!passablewall($map[4][$sidewall])) $ret .= "<div class=\"rsw$i\"></div>";
}
$objInWall = explode('/', $map[2][$sidewall]);
if ($objInWall[1] == 'o') {
if (!passablewall($map[2][$sidewall])) $ret .= "<div style=\"position:absolute;left:0px;top:0px;width:352px;height:240px;background-image:url($base/lsw$i$objInWall[2].gif)\"></div>";
if (!passablewall($map[2][$sidewall])) $ret .= "></div>";
} else {
if (!passablewall($map[2][$sidewall])) $ret .= "<div class=\"lsw$i\"></div>";
}
@ -1837,12 +1837,7 @@ function drawmap($map1, $players, $x, $y, $direction)
$i--;
}
$ret .= "</div>
</td><td valign=\"top\">
<div style=\"height:116px;position:relative\">
<div style=\"padding-top:11px;padding-left:33px\">
<DIV class=\"MoveLine\"><IMG src=\"/i/move/wait3.gif\" id=\"MoveLine\" class=\"MoveLine\"></DIV>
<div style=\"visibility:hidden; height:0px\" id=\"moveto\">0</div>
$ret .= ">0</div>
</div>";
if ($direction == 0) {

View File

@ -10,7 +10,7 @@ if(isset($_POST['act']) && $_POST['act'] == 'pay') {
if(isset($user['id']) && isset($hostel['id'])) {
echo '<fieldset class="hostelClientState">';
echo '<legend>Предварительная оплата</legend>';
echo '<div style="text-align: center;"><p class="NORMAL" style="margin: 5px 0px">';
echo '<div style="text-align: center;"><p class="NORMAL" style="margin: 5px 0">';
echo 'Аренда оплачена по: <b>'.date('h:i d.m.y', $hostel['time']).'</b> <small>('.timeOut($hostel['time']-time()).')</small></p></div>';
echo '<table align="center" class="periods"><caption style="text-align: left;">Выберите срок предоплаты.</caption>

File diff suppressed because one or more lines are too long

View File

@ -309,7 +309,7 @@ img.tip:hover + span.tiptext {
display: block;
z-index: 100;
background-color: #f0f0f0;
left: 0px;
left: 0;
margin: 10px;
width: 250px;
position: absolute;

View File

@ -102,7 +102,7 @@ if (($_GET['set'] OR $_POST['set'])) {
<meta charset="utf-8">
<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>';
@ -942,7 +942,7 @@ if ($_POST['docompare']) {
echo 'Добавляйте сюда цветы, из которых хотите составить букет';
} else {
foreach ($_SESSION['flowers'] as $k => $v) {
echo '<form method="post" style="margin:0px; padding:0px;"><div style="float: left;" align="center"><img src="i/sh/', $v[0], '" align="center"><BR><input type="hidden" name="flower" value="', $k, '"><input type="hidden" value="1" name="compare"><input type="submit" value="Убрать" name="delflower"></div></form>';
echo '<form method="post" style="margin:0; padding:0;"><div style="float: left;" align="center"><img src="i/sh/', $v[0], '" align="center"><BR><input type="hidden" name="flower" value="', $k, '"><input type="hidden" value="1" name="compare"><input type="submit" value="Убрать" name="delflower"></div></form>';
}
}
?>

View File

@ -276,7 +276,7 @@ if($user['first'] == 1) {
if($text) {
echo "<div class=\"main\"><img src=\"http://capitalcity.old-dark.ru/i/wm1.jpg\" style=\"float: left;\" />";
echo "<table><tr><td style=\"padding: 25px;\">".$text."<hr style='margin: 10px 0px;'>".$status."</td></tr></table></div>";
echo "<table><tr><td style=\"padding: 25px;\">".$text. "<hr style='margin: 10px 0;'>" .$status."</td></tr></table></div>";
}

View File

@ -311,7 +311,7 @@ class Lottery{
$res = mysql_query($sql);
$allbillets = mysql_num_rows($res);
$str .= '<form method="post" style="margin:0px;"><h4>&nbsp; Итоги тиража номер <input type="text" value="'.$id_lottery.'" size=4 name="tiraj"> <input type=submit value="посмотреть"></h4></form>';
$str .= '<form method="post" style="margin:0;"><h4>&nbsp; Итоги тиража номер <input type="text" value="' .$id_lottery.'" size=4 name="tiraj"> <input type=submit value="посмотреть"></h4></form>';
if (!$date) {
return $str.'Лотерея не проводилась.';
}
@ -387,12 +387,7 @@ class Lottery{
function view_buy_ticket(){
$str = '';
$str .= ')">30</td>
</tr>
</table>
Выбраные Вами номера : <input style="border: 0px solid #000; background:transparent;" type="text" readonly="true" id="value" name="value" />
\'';
$str .= ';
return $str;
}