Dobrý den,
potřeboval bych poradit. Mám stránku, kterou uvádím níže. Tam mi z DB vyjedou všechny hodnotné ceny. Je tam obrázek apod.. Ovšem potřebuji nastavit odsazení textu zleva a zprava, aby to nebylo nalepené hned na ohraničení. Na obrázku zvýrazněné červeným obdélníkem. Neprogramoval jsem stránky a bohužel programátor nemá v současné době čas (problémy v rodině).
Potřeboval bych zjistit, kde to najdu, abych to mohl upravit, aby tam byla nějaká mezera.
Zdrojový kód souboru CSS:
* {
margin: 0;
}
html {
position: relative;
min-height: 100%;
overflow: -moz-scrollbars-vertical;
overflow-y: scroll;
}
body {
height: 100%;
margin: 0 0 90px;
}
select {
max-width: 200px;
padding: 10px;
}
#wrapper {
min-height: 100%;
}
.reg {
float: left;
padding-left: 10px;
padding-right: 10px;
color: #2df383;
}
.logo {
margin-top: -80px;
margin-left: auto;
margin-right: auto;
}
footer{
position: absolute;
left: 0;
bottom: 0;
width: 100%;
border-left: 0px;
border-bottom: 0px;
border-right: 0px;
background-color: #fff;
text-align: center;
height: 90px;
}
footer .text {
padding-top: 10px;
}
footer a {
text-shadow: 0.50px 0.50px 1px rgba(0,0,0, 0.50);
color: #BAFF00;
text-decoration: none;
}
#wrapper {
min-height:100%;
position:relative;
}
/*--TOP--*/
#top {
position: absolute;
height: 146px;
width: 100%;
background-color: #fff;
color: #000;
z-index: 1000;
}
.nadpis {
padding-top: 37px;
margin-left: 65px;
}
.nadpis a, .nadpis img {
border: 0;
}
#top .separator {
clear: both;
margin-top: 20px;
}
.separator {
background-image: url(../images/separator.png);
height: 8px;
width: 100%;
background-repeat: x-repeat;
text-align: center;
}
#top .menu {
width: 100%;
margin-top: 28px;
text-align: center;
padding-bottom: 20px;
}
#top .menu a, #top .menu a:visited, #top .menu a:hover, #top .menu a:link {
font-family: Arial;
text-transform: uppercase;
padding-right: 19px;
color: #000;
text-decoration: none;
}
#top .menu .left {
position: absolute;
left: 50%;
margin-left: -500px;
color: #000;
text-align: right;
}
#top .menu .right {
position: absolute;
left: 50%;
margin-left: 90px;
color: #000;
text-align: left;
}
nav {
z-index: 9999999;
text-align: center;
}
nav ul ul {
z-index: 9999999;
display: none;
}
nav ul li:hover > ul {
z-index: 9999999;
display: block;
}
nav ul {
z-index: 9999999;
padding: 0;
list-style: none;
position: relative;
display: inline-table;
}
nav ul:after {
z-index: 9999999;
content: ""; clear: both; display: block;
}
nav ul li {
z-index: 9999999;
float: left;
}
nav ul li:hover {
z-index: 9999999;
}
nav ul li:hover a {
z-index: 9999999;
color: #fff;
}
nav ul li a {
z-index: 9999999;
display: block;
padding: 0px 10px;
color: #757575;
text-decoration: none;
}
nav ul ul {
z-index: 9999999;
margin-left: -55px;
background: rgba(255, 255, 255, 1);
text-align: center;
position: absolute;
top: 100%;
}
#top .loginpanel nav ul ul {
z-index: 9999999;
margin-left: -55px;
}
#top .loginpanel .up nav ul ul {
z-index: 9999999;
margin-left: -80px;
}
#top .loginpanel .up nav ul ul li a {
z-index: 9999999;
}
nav ul ul li {
z-index: 9999999;
text-align: center;
float: none;
position: relative;
}
nav ul ul li a {
z-index: 9999999;
padding: 15px 15px;
color: #fff;
}
nav ul ul li a:hover {
z-index: 9999999;
background: rgba( 200, 200, 200, 0.9);
}
nav ul ul ul {
z-index: 99999999;
position: absolute;
left: -110px;
top:0;
}
nav ul ul ul .smenarna {
z-index: 99999999;
position: absolute;
left: -120px;
top: 0px;
}
#top .login nav ul ul li a:hover, #top .login nav ul ul li a {
z-index: 9999999;
font-size: 12px;
background: transparent;
}
#top .loginpanel nav ul ul li {
z-index: 9999999;
padding: 20px;
}
#top .loginpanel .up {
z-index: 9999999;
float: right;
width: 250px;
}
.sumols {
position: absolute;
right: 0.5%;
top: 146px;
width: 17%;
text-align: center;
padding: 0.5%;
font-size: 18px;
font-family: Arial;
background-color: #fff;
}
#top .loginpanel .up nav ul ul li {
z-index: 9999999;
padding: 0;
}
#top .loginpanel {
font-family: Arial;
text-transform: uppercase;
width: 375px;
position: absolute;
right: 17px;
top: 43px;
}
#top .loginpanel img {
vertical-align: middle;
}
#top .loginpanel a, #top .loginpanel a:hover, #top .loginpanel a:link, #top .loginpanel a:visited{
color: #000;
text-decoration: none;
}
#top .loginpanel .register a{
float: left;
color: #2df383;
text-decoration: none;
}
#top .loginpanel .login a {
float: left;
color: #818181;
text-decoration: none;
}
/*--INPUTS, BUTTONS--*/
input::-webkit-inner-spin-button,
input::-webkit-outer-spin-button {
-webkit-appearance: none;
margin: 0;
}
.reginput {
margin-top: 5px;
margin-right: 35px;
margin-left: 35px;
border-radius: 5px;
padding: 10px 20px;
font-size: 18px;
text-align: center;
font-family: Arial;
border:1px solid #999;
transition: 0.5s;
}
.cisla {
margin-top: 5px;
margin-right: 35px;
margin-left: 35px;
border-radius: 5px;
padding: 10px 20px;
font-size: 18px;
text-align: center;
font-family: Arial;
border:1px solid #999;
transition: 0.5s;
}
.reginput:focus {
transition: 0.5s;
box-shadow:inset 0 0 3px 3px rgba(45, 243, 131, 0.5);
}
.textinpt {
width: 500px;
margin-top: 5px;
border-radius: 5px;
padding: 10px 20px;
font-size: 18px;
font-family: Arial;
border:1px solid #999;
transition: 0.5s;
}
.textinpt:focus {
transition: 0.5s;
box-shadow:inset 0 0 3px 3px rgba(45, 243, 131, 0.5);
}
.textinput {
width: 500px;
margin-top: 5px;
border-radius: 5px;
padding: 10px 20px;
font-size: 12px;
font-family: Arial;
border:1px solid #999;
transition: 0.5s;
}
.orderinput {
text-align: center;
width: 50%;
margin-top: 5px;
border-radius: 5px;
padding: 10px 20px;
font-size: 12px;
font-family: Arial;
border:1px solid #999;
transition: 0.5s;
}
.textinput:focus {
transition: 0.5s;
box-shadow:inset 0 0 3px 3px rgba(45, 243, 131, 0.5);
}
.textbutton {
width: 542px;
cursor: pointer;
margin-top: 10px;
color: #fff;
background-color: #2df383;
padding: 10px 20px;
font-family: Arial;
font-size: 24px;
border: none;
border-radius: 5px;
}
.loginput {
margin-top: 5px;
margin-bottom: 5px;
border-radius: 5px;
padding: 10px 20px;
font-size: 12px;
font-family: Arial;
border:1px solid #999;
transition: 0.5s;
}
.loginput:focus {
transition: 0.5s;
box-shadow:inset 0 0 3px 3px rgba(45, 243, 131, 0.5);
}
.loginbtn {
cursor: pointer;
margin-top: 10px;
color: #fff;
background-color: #2df383;
padding: 5px 10px;
font-family: Arial;
font-size: 16px;
border: none;
border-radius: 5px;
}
.error {
width: 70%;
border: 1px solid #ff0000;
border-radius: 5px;
background-color: #d70000;
padding: 20px;
font-size: 14px;
font-family: Arial;
margin: 20px auto;
line-height: 20px;
text-align: center;
color: #fff;
}
.error h1{
font-size: 18px;
}
.error a{
font-weight: bold;
font-size: 20px;
text-decoration: none;
color: #FFFFFF;
}
.success {
width: 70%;
border: 1px solid #00FF00;
border-radius: 5px;
background-color: #2fc339;
padding: 20px;
font-size: 14px;
font-family: Arial;
margin: 20px auto;
line-height: 20px;
text-align: center;
color: #fff;
}
.success h1{
font-size: 18px;
}
.btn {
cursor: pointer;
margin-top: 10px;
color: #fff;
background-color: #2df383;
padding: 10px 20px;
font-family: Arial;
font-size: 24px;
border: none;
border-radius: 5px;
}
@media (max-width: 1920px) {
.cntntbox {
background-color: #FFF;
color: #000;
padding-top: 226px;
padding-left: 2.5%;
padding-right: 2.5%;
padding-bottom: 2em;
width: 57%;
min-height: 650px;
height: auto;
margin-left: auto;
margin-right: auto;
}
}
@media (max-width: 1366px) {
.cntntbox {
background-color: #FFF;
color: #000;
padding-top: 226px;
padding-left: 2.5%;
padding-right: 2.5%;
padding-bottom: 2em;
width: 57%;
min-height: 400px;
height: auto;
margin-left: auto;
margin-right: auto;
}
}
@media (max-width: 1280px) {
.cntntbox {
background-color: #FFF;
color: #000;
padding-top: 226px;
padding-left: 2.5%;
padding-right: 2.5%;
padding-bottom: 2em;
width: 57%;
min-height: 500px;
height: auto;
margin-left: auto;
margin-right: auto;
}
}
.cntntbox img {
max-width: 100%;
}
.leftbg {
position: fixed;
z-index: -1;
float: left;
left: 0;
top: 0;
background-image: url(../images/left.jpg);
background-size: 100% 100%;
background-repeat: no-repeat;
width: 25%;
height: 100%;
}
.rightbg {
position: fixed;
z-index: -1;
right: 0;
top: 0;
float: right;
background-image: url(../images/right.jpg);
background-repeat: no-repeat;
background-size: 100% 100%;
width: 25%;
height: 100%;
}
.pricetab{
width: 20%;
min-width:220px;
background: #e1e1e1;
display: inline-block;
margin-top:.2%;
}
.pricetab2{
width: 20%;
min-width:300px;
background: linear-gradient(#30F804, #31c312);
display: inline-block;
margin-top:.2%;
}
.price2{
width:160px;
height:90px;
border-radius:0%;
border:1px solid black;
margin:1% auto 0 auto;
text-align: center;
vertical-align: middle;
line-height: 30px;
}
.infos{
margin-top:10%;
}
.prvniradek2{
text-align: center;
width: 100%;
margin: 0 auto;
}
.druhyradek2{
text-align: center;
width: 100%;
margin: 0 auto;
}
.tretiradek2{
text-align: center;
width: 100%;
margin: 0 auto;
}
.news {
}
.news-title {
float: left;
}
.news-title h3 {
padding: 0;
margin: 0;
}
.news-date {
color: #919090;
float: right;
font-weight: bold;
}
#news-pagination {
margin-top: 0px;
float: right;
}
#news-pagination a {
text-align: center;
vertical-align: middle;
line-height: 32px;
color: #000;
}
#news-pagination a:hover {
text-decoration: none;
}
.interest {
}
.interest-title {
float: left;
}
.interest-title h3 {
padding: 0;
margin: 0;
}
#interest-pagination {
margin-top: 0px;
float: right;
}
#interest-pagination a {
text-align: center;
vertical-align: middle;
line-height: 32px;
color: #000;
}
#interest-pagination a:hover {
text-decoration: none;
}
.interest img {
float: left;
padding-right: 15px;
}
.windowModal {
position: fixed;
font-family: Arial, Helvetica, sans-serif;
top: 0;
right: 0;
bottom: 0;
left: 0;
background: rgba(0,0,0,0.8);
z-index: 999999990;
opacity:0;
-webkit-transition: opacity 400ms ease-in;
-moz-transition: opacity 400ms ease-in;
transition: opacity 400ms ease-in;
pointer-events: none;
}
.windowModal:target {
opacity:1;
pointer-events: auto;
}
.windoworder {
position: fixed;
font-family: Arial, Helvetica, sans-serif;
top: 0;
right: 0;
bottom: 0;
left: 0;
background: rgba(0,0,0,0.8);
z-index: 999999990;
opacity:0;
-webkit-transition: opacity 400ms ease-in;
-moz-transition: opacity 400ms ease-in;
transition: opacity 400ms ease-in;
pointer-events: none;
}
.windoworder:target {
opacity: 1;
pointer-events: auto;
}
.produkt_div {
width: 50%;
min-height: 265px;
float: left;
text-align: center;
margin-left: auto;
margin-right: auto;
padding-bottom: 50px;
}
.produkt_div a, .produkt_div a:hover, .produkt_div a:link, .produkt_div a:visited {
text-decoration: none;
color: #000;
}
.windoworder > div {
text-align: center;
width: 300px;
min-height: 300px;
margin: 5% auto;
position: relative;
padding: 20px;
border-radius: 10px;
background: #e1e1e1;
}
.windowModal > div {
width: 90%;
min-height: 500px;
position: relative;
margin: 100px auto;
padding: 5px 20px 13px 20px;
border-radius: 10px;
background: #e1e1e1;
}
.close {
background: #1e1e1e;
color: #FFFFFF;
line-height: 25px;
position: absolute;
right: -12px;
text-align: center;
top: -10px;
width: 24px;
text-decoration: none;
font-weight: bold;
-webkit-border-radius: 12px;
-moz-border-radius: 12px;
border-radius: 12px;
}
.closeorder {
background: #1e1e1e;
color: #FFFFFF;
line-height: 25px;
position: absolute;
right: -10px;
text-align: center;
top: -10px;
width: 24px;
text-decoration: none;
font-weight: bold;
-webkit-border-radius: 12px;
-moz-border-radius: 12px;
border-radius: 12px;
}
#form-passwd {
display: none;
}
.dopr {
height: 400px;
}
.dopravadiv {
line-height: 75px;
vertical-align: bottom;
width: 100%;
height: 75px;
}
.dopravadiv img {
height: 100%;
}
@media (max-width: 1920px)
{
.order .item{
position: relative;
text-align: center;
border-radius: 10px;
width: 40%;
height: 500px;
border: 1px solid #000;
box-sizing: border-box;
float: left;
margin-left: 5%;
margin-right: 5%;
margin-top: 20px;
padding-bottom: 5px;
}
}
@media (max-width: 1280px)
{
.order .item{
position: relative;
text-align: center;
border-radius: 10px;
width: 40%;
height: 550px;
border: 1px solid #000;
box-sizing: border-box;
float: left;
margin-left: 5%;
margin-right: 5%;
margin-top: 20px;
padding-bottom: 5px;
}
}
.order .item hr {
width: 75%;
margin-left: auto;
margin-right: auto;
}
.order .item .image{
text-align: center;
width: 100%;
height: 250px;
}
.order .item .image img {
height: 100%;
}
.order .item .skladem {
line-height: 25px;
vertical-align: bottom;
width: 100%;
height: 25px;
background-color: #00FF00;
text-align: center;
color: #fff;
}
.order .item .neniskladem {
line-height: 25px;
vertical-align: bottom;
width: 100%;
height: 25px;
background-color: #FF0000;
text-align: center;
color: #fff;
}
.order .item .info {
position: absolute;
bottom: 5px;
left: 5%;
right: 5%;
text-align: center;
}
.order .item h3 {
font-size: 18px;
font-weight: bold;
color: #FF0000;
}
.items {
width: 100%;
}
@media (max-width: 1920px) {
.items .item {
position: relative;
float: left;
text-align: center;
margin-top: 40px;
margin-left: 25px;
background: #e1e1e1;
border-radius: 250px;
width: 135px;
font-size: 18px;
height: 195px;
padding: 45px 60px 30px 60px;
}
.items .item .text {
position: relative;
}
.items .left {
float: left;
margin-left: 100px;
margin-top: 50px;
}
.items h3, .items h4 {
color: #FF0000;
}
.items .left img {
float: left;
margin-left: -160px;
margin-top: -250px;
transform: rotate(12deg);
}
.items .right {
float: right;
margin-top: 60px;
margin-right: 140px;
}
.items .right img {
float: left;
margin-left: 140px;
margin-top: -250px;
transform: rotate(-12deg);
}
}
@media (max-width: 1366px) {
.items .item {
float: left;
text-align: center;
margin-top: 50px;
background: #e1e1e1;
border-radius: 250px;
width: 105px;
font-size: 12px;
height: 135px;
padding: 35px 50px 25px 50px;
}
.items .item .text {
position: relative;
}
.items .left {
float: left;
margin-left: 100px;
margin-top: 50px;
}
.items h3 {
font-size: 18px;
}
.items h3, .items h4 {
color: #FF0000;
}
.items .left img {
float: left;
margin-left: -115px;
margin-top: -200px;
transform: rotate(12deg);
}
.items .right {
float: right;
margin-top: 60px;
margin-right: 140px;
}
.items .right img {
float: left;
margin-left: 100px;
margin-top: -250px;
transform: rotate(-12deg);
}
}
@media (max-width: 1280px) {
.items .item {
float: left;
text-align: center;
margin-top: 100px;
background: #e1e1e1;
border-radius: 250px;
width: 105px;
font-size: 12px;
height: 135px;
padding: 35px 50px 25px 50px;
}
.items .item .text {
position: relative;
}
.items .left {
float: left;
margin-left: 100px;
margin-top: 50px;
}
.items h3 {
font-size: 18px;
}
.items h3, .items h4 {
color: #FF0000;
}
.items .left img {
float: left;
margin-left: -100px;
margin-top: -175px;
transform: rotate(12deg);
}
.items .right {
float: right;
margin-top: 60px;
margin-right: 140px;
}
.items .right img {
float: left;
margin-left: 100px;
margin-top: -175px;
transform: rotate(-12deg);
}
}
.red {
color: #FF0000;
}
.clients {
background-color: #e1e1e1;
min-height: 20px;
height: auto;
padding: 20px;
margin-top: 5px;
position: relative;
border: 1px solid #000;
box-sizing:border-box;
text-align: center;
display: inline-block;
}
.clients h4 {
position: absolute;
top: 25px;
right: 30px;
font-size: 12px;
}
.clients .jmeno {
text-align: center;
width: 25%;
float: left;
}
.clients .prijmeni {
text-align: center;
width: 25%;
float: left;
}
.clients .email {
text-align: center;
width: 50%;
float: left;
}
#helpers-one,
#helpers-two,
#helpers-three,
#helpers-four,
#helpers-five{
margin-left: auto;
margin-right: auto;
font-weight: normal;
}
#hide-one,
#hide-two,
#hide-three,
#hide-four,
#hide-five{
display:none;
}
#hide-one,
#hide-two,
#hide-three,
#hide-four,
#hide-five{
display:none;
text-decoration: underline;
color: blue;
cursor: pointer;
}
#show-one,
#show-two,
#show-three,
#show-four,
#show-five{
text-decoration: underline;
color: blue;
cursor: pointer;
}
.hidden:nth-child(n + 6){
display: none;
}
.oriznuty {
width: 100%;
max-height: 3.75em;
line-height: 1.25em;
overflow: hidden;
position: relative;
}
.oriznuty span {
position: absolute;
top: 2.5em;
right: 0;
width: 100%;
text-align: left;
background: #fff;
color: blue;
text-decoration: underline;
cursor: pointer;
}
Zdrojový kód souboru, kde se nachází i hodnotné ceny (je to směnárna, kde jsou 3 možnosti - za produkty, za hodnotné ceny a finanční částku)
$item = array();
$doprava = 0;
function error($nadpis, $text)
{
echo "
";
echo "
$nadpis
";
echo "$text";
echo "
";
}
function FillIt($uzivatel, $co)
{
if(isset($uzivatel))
{
$sql = mysql_query("SELECT * FROM klienti WHERE prihlasovaci_jmeno='".$uzivatel."'") or die("Chyba!");
while($row = mysql_fetch_array($sql))
{
if($co == "jmeno")
{
echo "value="";
echo $row;
echo """;
}
if($co == "telefon")
{
echo "value="";
echo $row;
echo """;
}
if($co == "prijmeni")
{
echo "value="";
echo $row;
echo """;
}
if($co == "ulice")
{
echo "value="";
echo $row;
echo """;
}
if($co == "cp")
{
echo "value="";
echo $row;
echo """;
}
if($co == "mesto")
{
echo "value="";
echo $row;
echo """;
}
if($co == "psc")
{
echo "value="";
echo $row;
echo """;
}
if($co == "email")
{
echo "value="";
echo $row;
echo """;
}
}
}else{
}
}
include('./ochrana.php');
mysql_query("set names utf8");
if(isset($_SESSION) && $_SESSION != "")
if(isset($_GET))
{
echo "
Směnárna za hodnotné ceny
";
if($_GET == 1 or !isset($_GET))
{
$sql = mysql_query("SELECT * from pages WHERE id='14'") or die("Chyba při čtení!");
}
$row = mysql_fetch_array($sql);
echo $row;
echo "
";
if(!isset($_POST) && $_GET == 2)
{
error("Chyba!", "Byl zaznamenán pokus o přeskočení kroku objednávky.
Zpět na objednávky");
}
if(isset($_POST) && $_GET == 2)
{
$pocetproduktu = $_POST;
$counter = 1;
$id = 1;
$kusu = 0;
$_SESSION = $pocetproduktu;
while($counter <= $pocetproduktu)
{
$item = $_POST;
if($item == "")
{
$item = 0;
}
$strs = "count$id";
$_SESSION = $item;
$counter++;
$id++;
}
$kusaky = 0;
for($i=1;$i<=$_SESSION;$i++)
{
$sql = mysql_query("SELECT * FROM ceny_smenarna WHERE id='$i'") or die("Chyba 1");
while($row = mysql_fetch_array($sql))
{
$id_produktu = $row;
$str = "count$i";
$kusaky += $_SESSION;
$cenaproduktu = $row;
$cena_provize += $cenaproduktu * $_SESSION;
$string .= "$id_produktu:".$_SESSION.";";
}
}
$udaje = mysql_query("SELECT * FROM klienti WHERE id=".$_SESSION) or die("chyba!");
$rw = mysql_fetch_array($udaje);
$_SESSION = $rw;
$_SESSION = $rw;
$_SESSION = $rw;
$_SESSION = $rw;
$_SESSION = $rw;
$_SESSION = $rw;
$_SESSION = $rw;
$provize = $rw;
if($cena_provize > $provize)
{
$error = 1;
header('location: ?page=smenarna&ceny&krok=1&error=badvalues2');
}else{
if($cena_provize == 0)
{
$error = 1;
header('location: ?page=smenarna&ceny&krok=1&error=badvalues');
}
if($kusaky == 0)
{
$error = 1;
header('location: ?page=smenarna&ceny&krok=1&error=badvalues');
}
if($error == 0)
{
$sql2 = mysql_query("SELECT * FROM klienti WHERE id='".$_SESSION."'") or die("Chyba!");
$row = mysql_fetch_array($sql2);
$provize = $row;
$provize -= $cena_provize;
mysql_query("UPDATE klienti SET provize='$provize' WHERE id='".$_SESSION."'") or die("Chyba!");
mysql_query("INSERT INTO `ceny_objednavky`(`id`, `id_uzivatele`, `jmeno`, `prijmeni`, `ulice`, `cislo_popisne`, `mesto`, `psc`, `telefon`, `email`, `objednavka`, `cena_provize`, `status`) VALUES ('','".$_SESSION."','".$_SESSION."','".$_SESSION."','".$_SESSION."','".$_SESSION."','".$_SESSION."','".$_SESSION."','".$_SESSION."','".$_SESSION."','$string','$cena_provize','0')")
or die("Objednávka nebyla přijata!");
header("location: ?page=smenarna&ceny&krok=1&success");
}
}
}
if(!isset($_GET) or $_GET == 1)
{
if(isset($_GET) and $_GET == "badvalues")
{
error("Chyba!", "Musíte si objednat min. 1 kus na celou objednávku. Méně nelze objednat.");
}
if(isset($_GET) and $_GET == "badvalues2")
{
error("Chyba!", "Váš aktuální stav sumolíků je nižší, než hodnota hodnotných cen, které jste vybral/a.");
}
if(isset($_GET))
{
?>
Objednávka odeslána!
Úspěšně jsme přijali Vaší žádost o Vámi vybranou hodnotnou cenu. Budeme Vás kontaktovat e-mailem ohledně dodání.
}
echo "
";
}
echo "
";
}
if(isset($_GET))
{
if(isset($_POST))
{
$sql2 = mysql_query("SELECT * FROM klienti WHERE id='".$_SESSION."' LIMIT 0,1") or die("Chyba!");
while($row = mysql_fetch_array($sql2))
{
$email = $row;
if($row >= $_POST)
{
$id = $_SESSION;
$kolik = $_POST;
$ucet = $_POST;
$kb = $_POST;
$status = 0;
$sql = mysql_query("INSERT INTO `chce_penize`(`id`, `id_uzivatele`, `kolik`, `ucet`, `kodbanky`, `status`) VALUES ('',$id,'$kolik','$ucet','$kb','$status')") or die("Chyba 2!");
$sql2 = mysql_query("SELECT * FROM klienti WHERE id='$id'") or die("Chyba!");
$row = mysql_fetch_array($sql2);
$email = $row;
$provize = $row;
$provize -= $kolik;
mysql_query("UPDATE klienti SET provize='$provize' WHERE id='$id'") or die("Chyba!");
header("location: ?page=smenarna&finance&success");
email($email, $ucet, $kb, $kolik);
}else{
header("location: ?page=smenarna&finance&error");
}
}
}else{
$sql2 = mysql_query("SELECT * FROM klienti WHERE id='".$_SESSION."' LIMIT 0,1") or die("Chyba");
$row2 = mysql_fetch_array($sql2);
$maxprovize = $row2;
while($row = mysql_fetch_array($sql))
{
echo "
Směnárna za finanční částku
";
$sql = mysql_query("SELECT * from pages WHERE id='17'") or die("Chyba při čtení!");
$row = mysql_fetch_array($sql);
echo $row;
echo "
";
if(isset($_GET))
{
echo "
";
echo "
Chyba!
";
echo "Nemůžete si vybrat více sumolíků, než máte.";
echo "
";
}
if(isset($_GET))
{
echo "
";
echo "
Požadavek přijat!
";
echo "Váš požadavek na výběr sumolíků v podobě Kč. Vaší žádost vyřídíme ve lhůtě dle Obchodních podmínek. Potvrzení přijetí Vašeho požadavku Vám přišlo na Vaší emailovou adresu.";
echo "
";
}
echo "
";
}
}
}
function email($prijemce, $ucet, $kb, $kc) {
$predmet = "Výběr sumolíků";
$od .= "From: Lukáš Mareš
n". "Content-type: text/html";$zprava = "Dobrý den,
Vaší žádost výběru $kc Kč jsme přijali úspěšně. Na Vámi zadaný bankovní účet $ucet/$kb Vám zašleme ve lhůtě dle obchodních podmínek výše uvedenou částku.
V případě, kdy jste o tento výběr nežádal/a, neprodleně nás kontaktuje přes kontaktní formulář na webových stránkách.
S pozdravem
Lukáš Mareš
majitel"; mb_language('Neutral');mb_internal_encoding("UTF-8");mb_http_input("UTF-8");mb_http_output("UTF-8");mb_send_mail($prijemce, $predmet, $zprava, $od);}Děkuji Vám za pomoc, potřebuji to zjistit, abych to opravil a stránky jsem mohl bez problémů spustit.
17. 5. 2015 13:36:02