HTML Head Title Проценты Title Head body bgcolor green text white cent

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<HTML>
<Head>
<Title>Проценты</Title>
</Head>
<body bgcolor="green" text="white">
<center>
<form name=form.php method='get' name="132">
<table border=1 width=100% cellpadding=2>
<tr>
<td align=center><b><h3>Себестоимость</h3></b></td>
<td align=center><input type=text size=6 name="c"></td>
</tr>
<SELECT name="mag" size=4>
<option value="m">Фирменный
<option value="t">Магазин 1
<option value="w">Магазин 2
<option value="r">Магазин 3
</SELECT>
</table>
</td>
<td>
<center>
<table border=1 width=100% cellpadding=2>
<tr>
<td colspan=2 align=center>
<input type=submit value="Посчитать" onClick="quad(this.form)">
<input class="but" type="reset" value="Сброс" onClick="quad(this.form)"></td>
</tr>
<tr>
<td align=center><b><h3>Сумма</h3></b></td>
<td align=center><input type=text size=6 name="x1" value="<?php echo isset($_GET['c']) ? $_GET['mag'] == 'm' ? $_GET['c'] * 1.02 : $_GET['c'] * 1.05 : ''; ?>"></td>
</tr>
</table>
</td>
</tr>
</table>
</form>
</center>
</body>