Parašė tabux· 2009 Rugp. 8 21:08:35
#46
Kabutes pražioplinau..
<?php
require_once "maincore.php";
require_once "subheader.php";
require_once "side_left.php";
opentable("Pateikti daina;");
if ($_POST['siusti']) {
$pav = stripinput($_POST['pavadinimas']);
$url = stripinput($_POST['nuoroda']);
$kat = stripinput($_POST['kategorija']);
$bus = (iADMIN ? "active" : "inactive");
$licenz = stripinput($_POST['licenzija']);
$result=dbquery("INSERT INTO ".$db_prefix."downloads
(download_title, download_url, download_cat, download_datestamp, download_status, download_author, download_license)
VALUES ('$pav', '$url', '$kat', '".time()."', '$bus', '".$userdata['user_id']."', '$licenz')");
echo "<div align='center'><h2><b>Siuntinys pateiktas.</b><h2></div><hr>";
}
include INCLUDES."money/add_money.php";
$result = dbquery("SELECT * FROM ".$db_prefix."download_cats ORDER BY download_cat_name");
while ($data = dbarray($result)) {
if (checkgroup($data['download_cat_access'])) $katlist .= "<option value='".$data['download_cat_id']."'>".$data['download_cat_name']."</option>\n";
}
echo "<div align='center'><b>S(ia forma galite pateikti nauja; daina; i; mu-su; portala;. Pries( pateikine.dami daina;, i;sitikinkite, kad tokios pas mus dar ne.ra. Ju-su; pateikima; perz(iu-re.s adminisratorius ir daina bus patvirtinta.</b></div><hr>";
echo "<form method='post' action='".FUSION_SELF."' name='submitform' onSubmit='return validate(this);'>
<table cellpadding='0' cellspadding='0' align='center'>
<tr>
<td>
Pavadinimas:</td><td><input type='textbox' class='textbox' name='pavadinimas' style='width:250px;'>
</td>
</tr>
<tr>
<td>
Licenzija:</td><td><input type='textbox' class='textbox' name='nuoroda' style='width:250px;'>
</td>
</tr>
<tr>
<td>
Siuntimo Nuoroda:</td><td><input type='textbox' class='textbox' name='nuoroda' style='width:250px;'>
</td>
</tr>
<tr>
<td>
Kategorija:</td><td><select name='kategorija' class='textbox'>
$katlist</select>
</td>
</tr>
</tr>
<tr>
<td colspan='2' align='center'>
<input type='submit' name='siusti' class='button' value='Siu;sti!'>
</td>
</tr>
</table>
</form>";
closetable();
echo "<script type='text/javascript'>
function validate(frm) {
if (frm.pavadinimas.value==\"\" || frm.nuoroda.value==\"\") {
alert(\"Privalote uz(pildyti visus laukus!\"); return false;
}
}
</script>";
require_once "side_right.php";
require_once "footer.php";
?>
Redagavo tabux· 2009 Rugp. 8 21:08:27