ACC SHELL
<?
if (IsSet ($eshopDotazOdeslano)):
if ($eshopDotazOdeslano == "0"):
?>
<p class="eshopChyba">
<? echo $eshopDotazChyby; ?>
</p>
<?
else:
?>
<p>Odeslání dotazu proběhlo v pořádku.</p>
<?
endif;
endif;
?>
<script>
function kontrolaVyplneni (formular) {
if (formular.jmeno.value == "") {
alert ("Vyplňte prosím jméno.");
formular.jmeno.focus ();
return false;
}
else if (formular.telefon.value == "") {
alert ("Vyplňte prosím telefon.");
formular.telefon.focus ();
return false;
}
else if (formular.email.value == "") {
alert ("Vyplňte prosím email.");
formular.email.focus ();
return false;
}
else if (formular.dotaz.value == "") {
alert ("Vyplňte prosím Váš dotaz.");
formular.dotaz.focus ();
return false;
}
return true;
}
</script>
<div class="formik">
<form action="eshop/scripty/zpracovani_dat.php" name="form" method="post">
<input type="hidden" name="kamZpet" value="<? echo URLEncode (EReg_Replace ("(.*)/index.php", "\\1", $_SERVER["SCRIPT_NAME"]) . "/" . $menu . "-" . uprav_odkaz ($nazvyurovne[$poceturovni-1]) . ".html?idProduktu=" . $idProduktu . "&formDotaz=1"); ?>" />
<input type="hidden" name="eshopOdesliDotaz" value="1" />
<table class="eshopForm">
<tr>
<td class="labelPole"><span class="povinne">*</span> Vaše jméno:</td>
<td><input class="velke" type="text" name="jmeno" value="<? echo $jmeno; ?>" /></td>
</tr>
<tr>
<td class="labelPole">Firma:</td>
<td><input class="velke" type="text" name="firma" value="<? echo $firma; ?>" /></td>
</tr>
<tr>
<td class="labelPole"><span class="povinne">*</span> Telefon:</td>
<td><input class="velke" type="text" name="telefon" value="<? echo $telefon; ?>" /></td>
</tr>
<tr>
<td class="labelPole"><span class="povinne">*</span> Email:</td>
<td><input class="velke" type="text" name="email" value="<? echo $email; ?>" /></td>
</tr>
<tr class="s">
<td class="labelPole"><span class="povinne">*</span> Email2:</td>
<td><input type="text" name="email2" size="50" value="" /></td>
</tr>
<tr>
<td class="labelPole">Produkt:</td>
<td>
<select class="velke" name="produkt">
<?
$tabulkaSpolecne = $NAZEV_PROJEKTU . "eshop_produkty_spolecne";
@$vysledek = MySQL_Query("SELECT id, nazev_produktu
FROM $tabulkaSpolecne");
while ($zaznam = MySQL_Fetch_Array ($vysledek)):
?>
<option value="<? echo $zaznam["nazev_produktu"]; ?>"<? if ($zaznam["id"] == $idProduktu) echo " selected"; ?>><? echo $zaznam["nazev_produktu"]; ?></option>
<?
endwhile;
?>
</select>
</td>
</tr>
<tr>
<td class="labelPole"><span class="povinne">*</span> Váš dotaz:</td>
<td><textarea class="velke" name="dotaz"><? echo $dotaz; ?></textarea></td>
</tr>
<tr>
<td class="submit" colspan="2">
<input class="submit" type="image" value="Odeslat dotaz" src="design/tlacitko_odeslat_dotaz.gif">
<input class="submit" type="image" value="Vymazat formulář" src="design/tlacitko_vymazat_formular.gif" onclick="document.formDotaz.reset(); return false;">
<a href="<? echo $menu . "-" . uprav_odkaz ($nazvyurovne[$poceturovni-1]) . ".html"; ?>?idProduktu=<? echo $idProduktu; ?>"><img class="vice" style="width: 52px; height: 20px" src="design/tlacitko_zpet.gif" alt="zpět" /></a>
</td>
</tr>
</table>
</form>
</div>
ACC SHELL 2018