:
L. = L + L+ L. + L. + L
, - L. = 22194 + 7901 + 26633 + 1800 + 1466 = 59994 ()
:
= (1 2) * 2
, .;
1, 2 , , .;
2 , . .
(2) :
1 = 1 + * 1
2 = 2 + * 2
1, 2 , .;
1, 2 , (2) (1), .;
, 0,15.
(1, 2) :
1 = . / N0* 21.8
2 = . / N1 * 21.8
. - 1500 .
N0 , ( 10);
N1 , ( 50);
1 = 1500 / 10* 21.8 = 1500 / 218 = 7 ()
2 = 1500/ 50* 21.8 = 1500 /1090 = 1,5 ()
:
1 = / (N0* 21.8 * 12)
: 400 . *12 = 4 800, 4800 .
:
1 = 4800 / (7*21.8*12) = 4800 / 1831 = 3 .
, :
= L / (N1* 21.8 * 12)= 30322/(50 * 21.8 * 12)= 59994/13080 = 5 .
, :
1 = 7 + 0.15 * 3 = 7
2 = 1,5 + 0.15 * 5 = 2
:
2 = N1 * 21.8 * 12 = 13080 ()
:
= (7 2) * 13080 = 65400 .
, , , . .
:
= L / = 59994/65400 = 0,9
, 9 . , .
|
|
" " . , , . , , , , ( ). , , .
. , , ; .
. , . . , - .
, , , , , , .
. .
.
:
1. .
2. .
3. "".
.
"" .
Clients_ADD
<HTML>
<HEAD>
<meta charset="utf8">
<TITLE> -
</TITLE>
</HEAD>
<BODY>
<H1> <strong><em> .</em></strong></H1>
|
|
<H2><em><strong> .</strong></em></H2>
<FORM method="POST" action="example_CL.php">
<INPUT type="hidden" name="posted" value="true">
<TABLE border=0> <TR><TD> :</TD>
<TD><INPUT name="FIO_CL" type="text"></TD>
</TR><TR><TD>:</td>
<TD><INPUT name="Adress" type="text"></TD>
</TR><TR> <TD> </td>
<TD><INPUT name="Telephone" type="text"></TD>
<TR>
<TD colspan=2><INPUT type="submit" class="Css buton" value=""></TD></TR>
</TABLE>
</form>
<p>
<form action="http://localhost/salon/main.html">
<button type="submit"></button>
</form>
</p>
</BODY>
</HTML>
Clients_Table
<html>
<head>
<meta charset="utf8">
<title>
</title>
<link rel="stylesheet" href="http://localhost/salon/main.css">
<style type="text/css">
table {
font-size: 14px;
border: 3px solid #000000;
cellspacing: 1;}
tr, td{
font-size: 14px;
border: 1px solid #000000;
cellspacing: 1;}
</style>
</head>
<body>
<H1> <em> </em>.</H1>
<H2> <em> </em></H2>
<?php
mysql_connect("localhost","root","");
mysql_select_db("Salon3");
$res = mysql_query("SELECT * FROM `Client`") or die(mysql_error());
echo '<table border="1">';
while($row = mysql_fetch_assoc($res))
{
echo '<tr><td>'.$row['FIO_CL'].'</td><td>'.$row['Adress'].'</td><td>'.$row['Telephone'].'</tr>';
}
echo '</table>';
?>
<p>
<form action="http://localhost/salon/main.html">
<button type="submit"></button>
</form>
</p>
</body>
</html>
Example_cl
<HTML>
<HEAD>
<TITLE> -
<meta charset="utf8">
</TITLE>
</HEAD>
<BODY>
<H1> , .</H1>
<H2> .</H2>
<?php
if (isset($_POST['posted']))
{ $FIO_CL = $_POST['FIO_CL'];
$Adress = $_POST['Adress'];
$Telephone = $_POST['Telephone'];
//
if ($FIO_CL == "" or $Adress == "" or $Telephone == "")
{ echo " - "; exit; }
$FIO_CL = addslashes($FIO_CL);
$Adress = addslashes($Adress);
$Telephone = addslashes($Telephone);
$db = @mysql_pconnect("localhost", "root");
if (!$db)
{ echo " : Dont connect."; exit; }
mysql_SELECT_db("Salon3");
$query = "INSERT INTO Client (FIO_CL, Adress, Telephone) VALUES ('".$FIO_CL."','".$Adress."','".$Telephone."')";
$result = mysql_query($query);
if($result)
echo "<H3> .</H3>";
}
?>
</BODY>
</HTML>
Example_USL
<HTML>
<HEAD>
<TITLE> -
<meta charset="utf8">
</TITLE>
</HEAD>
<BODY>
<H1> <em> , .</em></H1>
<H2> <em>.</em></H2>
|
|
<?php
if (isset($_POST['posted']))
{ $data_ras = $_POST['data_ras'];
$time_ras = $_POST['time_ras'];
$FIO_CL = $_POST['FIO_CL'];
$Procedura_USL = $_POST['Procedura_US'];
$FIO_MAS = $_POST['FIO_MAS'];
$Oplacheno = $_POST['Oplacheno'];
//
if ($data_ras == "" or $time_ras == "" or $FIO_CL == "" or $Procedura_USL == "" or $FIO_MAS == "" or $Oplacheno == "")
{ echo " - "; exit; }
$data_ras = addslashes($data_ras);
$time_ras = addslashes($time_ras);
$FIO_CL = addslashes($FIO_CL);
$Procedura_USL = addslashes($Procedura_USL);
$FIO_MAS = addslashes($FIO_MAS);
$Oplacheno = addslashes($Oplacheno);
$db = @mysql_pconnect("localhost", "root");
if (!$db)
{ echo " : Dont connect."; exit; }
mysql_SELECT_db("Salon3");
$query = "INSERT INTO uslugi (data_ras, time_ras, FIO_CL, Procedura_USL, FIO_MAS, Oplacheno) VALUES ('".$data_ras."','".$time_ras."','".$FIO_CL."','".$Procedura_USL."','".$FIO_MAS."','".$Oplacheno."')";
$result = mysql_query($query);
if($result)
echo "<H3> .</H3>";
}
?>
</BODY>
</HTML>
Main.css
@charset "utf-8";
button {
padding: 3px 7px;
border-radius: 25px;
border: 1px solid;
width: 225px;
Background: #17Cf12
}
Text.css
table {
font-size: 14px;
border: 3px solid #BDB7B7;
cellspacing: 1;}
tr, td{
font-size: 14px;
border: 1px solid #BDB7B7;
cellspacing: 1;}
Uslugi_add
<HTML>
<HEAD>
<meta charset="utf8">
<TITLE> -
</TITLE>
</HEAD>
<BODY>
<H1><em> .</em></H1>
<H2> <em> .</em></H2>
<FORM method="POST" action="example_USL.php">
<INPUT type="hidden" name="posted" value="true">
<TABLE border=0> <TR><TD>:</TD>
<TD><strong><em>
<INPUT name="data_ras" type="data">
</em></strong></TD>
</TR><TR><TD>:</td>
<TD bgcolor="#6F6969"><strong><em>
<INPUT name="time_ras" type="text">
</em></strong></TD>
</TR><TR> <TD> </td>
<TD><strong><em>
<INPUT name="FIO_CL" type="text">
</em></strong></TD>
</TR><TR> <TD></td>
<TD><strong><em>
<INPUT name="Procedura_US" type="text">
</em></strong></TD>
</TR><TR> <TD> </td>
<TD><strong><em>
<INPUT name="FIO_MAS" type="text">
</em></strong></TD>
</TR><TR> <TD></td>
<TD><strong><em>
<INPUT name="Oplacheno" type="text">
</em></strong></TD>
<TR>
<TD colspan=2><INPUT type="submit" class="Css buton" value=""></TD></TR>
</TABLE>
</FORM>
</BODY>
</HTML>
|
|
Uslugi_table
<html>
<head>
<meta charset="utf8">
<title>
</title>
</head>
<body>
<H1> .</H1>
<H2> </H2>
<?php
mysql_connect("localhost","root","");
mysql_select_db("Salon3");
$res = mysql_query("SELECT * FROM `Uslugi`") or die(mysql_error());
echo '<table border="1">';
while($row = mysql_fetch_assoc($res))
{
echo '<tr>
<td>'.$row['data_ras'].'</td>
<td>'.$row['time_ras'].'</td>
<td>'.$row['FIO_CL'].'</td>
<td>'.$row['Procedura_US'].'</td>
<td>'.$row['FIO_MAS'].'</td>
<td>'.$row['Oplacheno'].'</td>
</tr>';
}
echo '</table>';
?>
</body>
</html>