Początkujący
Postów: 277 Pomógł: 14
v7.02.03 Data rejestracji: 14.08.2006 14:57
|
Chciałbym wzbogacić wtyczkę Premiery o dwa dodatkowe pola: data premiery, oraz okładkę "premierowanego" produktu. Wystarcza dwa pole tekstowe, w ktorych bedzie sie pisalo datę, oraz wklejalo link do okladki. Jak dodac takie pola do bazy danych i w PA? Może zmodyfikować pliki instalacyjne? (nie zainstalowalem jeszcze wtyczki):
<?php
$result = dbquery("DROP TABLE IF EXISTS ".$db_prefix."premier");
$result = dbquery("CREATE TABLE ".$db_prefix."premier (
`premier_id` smallint(5) unsigned NOT NULL auto_increment,
`premier_cat` smallint(5) unsigned NOT NULL default '0',
`premier_subject` varchar(200) NOT NULL default '',
`premier_snippet` text NOT NULL,
`premier_article` text NOT NULL,
`premier_breaks` char(1) NOT NULL default '',
`premier_name` smallint(5) unsigned NOT NULL default '1',
`premier_datestamp` int(10) unsigned NOT NULL default '0',
`premier_reads` smallint(5) unsigned NOT NULL default '0',
`premier_allow_comments` tinyint(1) unsigned NOT NULL default '1',
`premier_allow_ratings` tinyint(1) unsigned NOT NULL default '1',
PRIMARY KEY (`premier_id`)
) TYPE=MyISAM;");
if (!$result) $fail = "1";
?>
<?php
$result = dbquery("DROP TABLE IF EXISTS ".$db_prefix."premier_cats");
$result = dbquery("CREATE TABLE ".$db_prefix."premier_cats (
`premier_cat_id` smallint(5) unsigned NOT NULL auto_increment,
`premier_cat_name` varchar(100) NOT NULL default '',
`premier_cat_description` varchar(200) NOT NULL default '',
`premier_cat_access` tinyint(3) unsigned NOT NULL default '0',
PRIMARY KEY (`premier_cat_id`)
) TYPE=MyISAM;");
if (!$result) $fail = "1";
?>
Proszę o pomoc! |
Zaawansowany
Postów: 1191 Pomógł: 418 Ostrzeżeń: 1
v6.00.xxx Data rejestracji: 06.04.2008 21:59
|
Zainstaluj najpierw wtyczkę potem po instalacji wejdź w dodatkowe strony i wklej ten kod
<?php
$result = dbquery("ALTER TABLE ".$db_prefix."premier
ADD data_premiery int(10) unsigned NOT NULL default '0'");
if ($result) { echo"pole 1 dodane poprawnie";}
$result2 = dbquery("ALTER TABLE ".$db_prefix."premier
ADD banner varchar(200) NOT NULL");
if ($result2) { echo"pole 2 dodane poprawnie";}
?>
I daj podgląd jak wyskoczy pole 1 dodane poprawnie i pole 1 dodane poprawnie to potem dodajesz do formularz dodawanie premiery taki kod
<select name='data[mday]' class='textbox'>\n<option>--</option>\n";
for ($i=1;$i<=31;$i++) echo "<option".(isset($wykonany['mday']) && $wykonany['mday'] == $i ? " selected" : "").">$i</option>\n";
echo "</select>
<select name='data[mon]' class='textbox'>\n<option>--</option>\n";
for ($i=1;$i<=12;$i++) echo "<option".(isset($wykonany['mon']) && $wykonany['mon'] == $i ? " selected" : "").">$i</option>\n";
echo "</select>
<select name='data[year]' class='textbox'>\n<option>----</option>\n";
for ($i=1970;$i<=2010;$i++) echo "<option".(isset($wykonany['year']) && $wykonany['year'] == $i ? " selected" : "").">$i</option>\n";
echo "</select> /
<select name='data[hours]' class='textbox'>\n";
for ($i=0;$i<=24;$i++) echo "<option".(isset($wykonany['hours']) && $wykonany['hours'] == $i ? " selected" : "").">$i</option>\n";
echo "</select> :
<select name='data[minutes]' class='textbox'>\n";
for ($i=0;$i<=60;$i++) echo "<option".(isset($wykonany['minutes']) && $wykonany['minutes'] == $i ? " selected" : "").">$i</option>\n";
echo "</select>
$wykonany = array(
"mday" => isNum($_POST['data']['mday']) ? $_POST['data']['mday'] : "--",
"mon" => isNum($_POST['data']['mon']) ? $_POST['data']['mon'] : "--",
"year" => isNum($_POST['data']['year']) ? $_POST['data']['year'] : "----",
"hours" => isNum($_POST['data']['hours']) ? $_POST['data']['hours'] : "0",
"minutes" => isNum($_POST['data']['minutes']) ? $_POST['data']['minutes'] : "0",
);
if ($_POST['data']['mday']!="--" && $_POST['data']['mon']!="--" && $_POST['data']['year']!="----") {
$wykonany = mktime($_POST['data']['hours'],$_POST['data']['minutes'],0,$_POST['data']['mon'],$_POST['data']['mday'],$_POST['data']['year']);
}
I zmienną $wykonany dodajesz do bazy
Kod ten będzie on pozwala na dodawanie daty do bazy co do obrazka to robisz proste pole tekstowe i wklejasz tam link do obrazka
|
Początkujący
Postów: 277 Pomógł: 14
v7.02.03 Data rejestracji: 14.08.2006 14:57
|
Dobra dodałem dwie wartości do bazy "premier_okladka" i "premier_kiedy". Przerobiłem już w PA i wszystko się pięknie zapisuje. Tylko jak zrobić zeby te wartości wyświetlały sie na stronie z premierami? Oto kod z theme.php:
function render_premier($subject, $article, $info) {
global $locale;
opentable("$subject");
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='main-body'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."
</td>
</tr>
<tr>
<td>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='infobar'><img src='".THEME."images/bullet.gif'>
".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a>
".$locale['041'].showdate("longdate", $info['premier_date'])."
</td>
<td align='right' class='infobar'>\n";
if ($info['premier_allow_comments']) echo $info['premier_comments'].$locale['043']." ·\n";
echo $info['premier_reads'].$locale['044']."
</td>
</tr>
</table>
</td>
</tr>
</table>\n";
closetable();
}
oraz z premiery.php:
<?php
/*---------------------------------------------------+
| PHP-Fusion 6 Content Management System
+----------------------------------------------------+
| Copyright © 2002 - 2005 Nick Jones
| http://www.php-fusion.co.uk/
+----------------------------------------------------+
| Released under the terms & conditions of v2 of the
| GNU General Public License. For details refer to
| the included gpl.txt file or visit http://gnu.org
+----------------------------------------------------*/
require_once "maincore.php";
require_once "subheader.php";
require_once "side_left.php";
require_once INCLUDES."comments_include.php";
require_once INCLUDES."ratings_include.php";
if (!isset($premier_id) || !isNum($premier_id)) fallback("index.php");
if (!isset($rowstart) || !isNum($rowstart)) $rowstart = 0;
$result = dbquery(
"SELECT ta.*,tac.*, tu.user_id,user_name FROM ".$db_prefix."premier ta
INNER JOIN ".$db_prefix."premier_cats tac ON ta.premier_cat=tac.premier_cat_id
LEFT JOIN ".$db_prefix."users tu ON ta.premier_name=tu.user_id
WHERE premier_id='$premier_id'"
);
$res = 0;
if (dbrows($result) != 0) {
$data = dbarray($result);
if (checkgroup($data['premier_cat_access'])) {
$res = 1;
if ($rowstart == 0) $result = dbquery("UPDATE ".$db_prefix."premier SET premier_reads=premier_reads+1 WHERE premier_id='$premier_id'");
$premier = stripslashes($data['premier_article']);
$premier = explode("<--PAGEBREAK-->", $premier);
$pagecount = count($premier);
$premier_subject = stripslashes($data['premier_subject']);
$premier_okladka = stripslashes($data['premier_okladka']);
$premier_kiedy = stripslashes($data['premier_kiedy']);
$premier_info = array(
"premier_id" => $data['premier_id'],
"user_id" => $data['user_id'],
"premier_okladka" => $data['premier_okladka'],
"user_name" => $data['user_name'],
"premier_date" => $data['premier_datestamp'],
"premier_breaks" => $data['premier_breaks'],
"premier_comments" => dbcount("(comment_id)", "comments", "comment_type='J' AND comment_item_id='".$data['premier_id']."'"),
"premier_reads" => $data['premier_reads'],
"premier_allow_comments" => $data['premier_allow_comments']
);
render_premier($premier_subject, $premier[$rowstart], $premier_info, $premier_okladka, $premier_kiedy);
if (count($premier) > 1) {
$rows = $pagecount;
echo "<div align='center' style='margin-top:5px;'>\n".makePageNav($rowstart,1,$rows,3,FUSION_SELF."?premier_id=$premier_id&")."\n</div>\n";
}
if ($data['premier_allow_comments']) showcomments("J","premier","premier_id",$premier_id,FUSION_SELF."?premier_id=$premier_id");
if ($data['premier_allow_ratings']) showratings("J",$premier_id,FUSION_SELF."?premier_id=$premier_id");
}
}
if ($res == 0) redirect("premiers.php");
require_once "side_right.php";
require_once "footer.php";
?>
Edytowane przez qba88 dnia 08.08.2008 13:56:12
|
Początkujący
Postów: 277 Pomógł: 14
v7.02.03 Data rejestracji: 14.08.2006 14:57
|
Witam, mam jeszcze jeden problem, a mianowicie chodzi o zapisywanie tych dwóch pól w PA. Gdy dodaje premierę i odrazu klikam zapisz w pole okladki i daty wpisują się jedynki :| Lecz gdy przed kliknięciem, wezme podgląd i dopiero zapisze wszystko jest ok. Nie wiem o co chodzi, prześledzałem kod ze 20 razy i nie znalazlem błędu. Prosze o pomoc, oto kod:
<?php
/*---------------------------------------------------+
| PHP-Fusion 6 Content Management System
+----------------------------------------------------+
| Copyright (c) 2005 Nick Jones
| http://www.php-fusion.co.uk/
+----------------------------------------------------+
| Released under the terms & conditions of v2 of the
| GNU General Public License. For details refer to
| the included gpl.txt file or visit http://gnu.org
+----------------------------------------------------*/
require_once "../maincore.php";
require_once BASEDIR."subheader.php";
require_once ADMIN."navigation.php";
include LOCALE.LOCALESET."admin/admin-premiers.php";
if (!checkrights("A")) fallback("../index.php");
if (isset($premier_id) && !isNum($premier_id)) fallback("index.php");
$result = dbquery("SELECT * FROM ".$db_prefix."premier_cats");
if (dbrows($result) != 0) {
if (isset($_POST['save'])) {
$subject = stripinput($_POST['subject']);
$body = addslash($_POST['body']);
$body2 = addslash($_POST['body2']);
$breaks = isset($_POST['line_breaks']) ? "y" : "n";
$comments = isset($_POST['premier_comments']) ? "1" : "0";
$ratings = isset($_POST['premier_ratings']) ? "1" : "0";
$okladka = stripinput($_POST['okladka']);
$kiedy = stripinput($_POST['kiedy']);
if (isset($premier_id)) {
$result = dbquery("UPDATE ".$db_prefix."premier SET premier_cat='".$_POST['premier_cat']."', premier_subject='$subject', premier_snippet='$body', premier_article='$body2', premier_breaks='$breaks', premier_allow_comments='$comments', premier_allow_ratings='$ratings', premier_okladka='$okladka', premier_kiedy='$kiedy' WHERE premier_id='$premier_id'");
opentable($locale['500']);
echo "<center><br>
".$locale['501']."<br><br>
<a href='premiery_admin.php'>".$locale['502']."</a><br><br>
<a href='index.php'>".$locale['503']."</a><br><br>
</center>\n";
closetable();
} else {
$result = dbquery("INSERT INTO ".$db_prefix."premier VALUES('', '".$_POST['premier_cat']."', '$subject', '$body', '$body2', '$breaks', '".$userdata['user_id']."', '".time()."', '0', '$comments', '$ratings', '$okladka', '$kiedy')");
opentable($locale['504']);
echo "<center><br>
".$locale['505']."<br><br>
<a href='premiery_admin.php'>".$locale['502']."</a><br><br>
<a href='index.php'>".$locale['503']."</a><br><br>
</center>\n";
closetable();
}
} else if (isset($_POST['delete'])) {
$result = dbquery("DELETE FROM ".$db_prefix."premier WHERE premier_id='$premier_id'");
$result = dbquery("DELETE FROM ".$db_prefix."comments WHERE comment_item_id='$premier_id' and comment_type='J'");
$result = dbquery("DELETE FROM ".$db_prefix."ratings WHERE rating_item_id='$premier_id' and rating_type='J'");
opentable($locale['506']);
echo "<center><br>
".$locale['507']."<br><br>
<a href='premiery_admin.php'>".$locale['502']."</a><br><br>
<a href='index.php'>".$locale['503']."</a><br><br>
</center>\n";
closetable();
} else {
if (isset($_POST['preview'])) {
$premier_cat = $_POST['premier_cat'];
$subject = stripinput($_POST['subject']);
$body = phpentities(stripslash($_POST['body']));
$body2 = phpentities(stripslash($_POST['body2']));
$bodypreview = str_replace("src='".str_replace("../", "", IMAGES_A), "src='".IMAGES_A, stripslash($_POST['body']));
$body2preview = str_replace("src='".str_replace("../", "", IMAGES_A), "src='".IMAGES_A, stripslash($_POST['body2']));
if (isset($_POST['line_breaks'])) {
$breaks = " checked";
$bodypreview = nl2br($bodypreview);
$body2preview = nl2br($body2preview);
}
$comments = isset($_POST['premier_comments']) ? " checked" : "";
$ratings = isset($_POST['premier_ratings']) ? " checked" : "";
$okladka = stripinput($_POST['okladka']);
$kiedy = stripinput($_POST['kiedy']);
opentable($subject);
echo "$bodypreview\n";
closetable();
tablebreak();
opentable($subject);
echo "$body2preview\n";
closetable();
tablebreak();
}
opentable($locale['508']);
$editlist = ""; $sel = "";
$result = dbquery("SELECT * FROM ".$db_prefix."premier ORDER BY premier_datestamp DESC");
if (dbrows($result) != 0) {
while ($data = dbarray($result)) {
if (isset($premier_id)) $sel = ($premier_id == $data['premier_id'] ? " selected" : "");
$editlist .= "<option value='".$data['premier_id']."'$sel>".$data['premier_subject']."</option>\n";
}
}
echo "<form name='selectform' method='post' action='".FUSION_SELF."'>
<center>
<select name='premier_id' class='textbox' style='width:250px;'>
$editlist</select>
<input type='submit' name='edit' value='".$locale['509']."' class='button'>
<input type='submit' name='delete' value='".$locale['510']."' onclick='return Deletepremier();' class='button'>
</center>
</form>\n";
closetable();
tablebreak();
if (isset($_POST['edit'])) {
$result = dbquery("SELECT * FROM ".$db_prefix."premier WHERE premier_id='$premier_id'");
if (dbrows($result) != 0) {
$data = dbarray($result);
$premier_cat = $data['premier_cat'];
$subject = $data['premier_subject'];
$body = phpentities(stripslashes($data['premier_snippet']));
$body2 = phpentities(stripslashes($data['premier_article']));
$breaks = ($data['premier_breaks'] == "y" ? " checked" : "");
$comments = ($data['premier_allow_comments'] == "1" ? " checked" : "");
$ratings = ($data['premier_allow_ratings'] == "1" ? " checked" : "");
$okladka = $data['premier_okladka'];
$kiedy = $data['premier_kiedy'];
}
}
if (isset($premier_id)) {
$action = FUSION_SELF."?premier_id=$premier_id";
opentable($locale['500']);
} else {
if (!isset($_POST['preview'])) {
$subject = "";
$body = "";
$body2 = "";
$breaks = " checked";
$comments = " checked";
$ratings = " checked";
$okladka = "";
$kiedy = "";
}
$action = FUSION_SELF;
opentable($locale['504']);
}
$result = dbquery("SELECT * FROM ".$db_prefix."premier_cats ORDER BY premier_cat_name DESC");
$catlist = ""; $sel = "";
while ($data = dbarray($result)) {
if (isset($premier_cat)) $sel = ($premier_cat == $data['premier_cat_id'] ? " selected" : "");
$catlist .= "<option value='".$data['premier_cat_id']."'$sel>".$data['premier_cat_name']."</option>\n";
}
$image_files = makefilelist(IMAGES_A, ".|..|index.php", true);
$image_list = makefileopts($image_files);
echo "<form name='inputform' method='post' action='$action' onSubmit='return ValidateForm(this)'>
<table align='center' cellspacing='0' cellpadding='0'>
<tr>
<td width='100' class='tbl'>".$locale['511']."</td>
<td class='tbl'><select name='premier_cat' class='textbox' style='width:250px;'>
$catlist</select></td>
</tr>
<tr>
<td width='100' class='tbl'>".$locale['512']."</td>
<td class='tbl'><input type='text' name='subject' value='$subject' class='textbox' style='width:250px;'></td>
</tr>
<tr>
<td valign='top' width='100' class='tbl'>".$locale['513']."</td>
<td class='tbl'><textarea name='body' cols='95' rows='5' class='textbox'>$body</textarea></td>
</tr>
<tr>
<td class='tbl'></td><td class='tbl'>
<input type='button' value='b' class='button' style='font-weight:bold;width:25px;' onClick=\"addText('body', '<b>', '</b>');\">
<input type='button' value='i' class='button' style='font-style:italic;width:25px;' onClick=\"addText('body', '<i>', '</i>');\">
<input type='button' value='u' class='button' style='text-decoration:underline;width:25px;' onClick=\"addText('body', '<u>', '</u>');\">
<input type='button' value='link' class='button' style='width:35px;' onClick=\"addText('body', '<a href=\'\' target=\'_blank\'>', '</a>');\">
<input type='button' value='img' class='button' style='width:35px;' onClick=\"insertText('body', '<img src=\'".str_replace("../","",IMAGES_A)."\' style=\'margin:5px;\' align=\'left\'>');\">
<input type='button' value='center' class='button' style='width:45px;' onClick=\"addText('body', '<center>', '</center>');\">
<input type='button' value='small' class='button' style='width:40px;' onClick=\"addText('body', '<span class=\'small\'>', '</span>');\">
<input type='button' value='small2' class='button' style='width:45px;' onClick=\"addText('body', '<span class=\'small2\'>', '</span>');\">
<input type='button' value='alt' class='button' style='width:25px;' onClick=\"addText('body', '<span class=\'alt\'>', '</span>');\"><br>
<select name='setcolor' class='textbox' style='margin-top:5px;' onChange=\"addText('body', '<span style=\'color:' + this.options[this.selectedIndex].value + ';\'>', '</span>');this.selectedIndex=0;\">
<option value=''>".$locale['420']."</option>
<option value='maroon' style='color:maroon;'>Maroon</option>
<option value='red' style='color:red;'>Red</option>
<option value='orange' style='color:orange;'>Orange</option>
<option value='brown' style='color:brown;'>Brown</option>
<option value='yellow' style='color:yellow;'>Yellow</option>
<option value='green' style='color:green;'>Green</option>
<option value='lime' style='color:lime;'>Lime</option>
<option value='olive' style='color:olive;'>Olive</option>
<option value='cyan' style='color:cyan;'>Cyan</option>
<option value='blue' style='color:blue;'>Blue</option>
<option value='navy' style='color:navy;'>Navy Blue</option>
<option value='purple' style='color:purple;'>Purple</option>
<option value='violet' style='color:violet;'>Violet</option>
<option value='black' style='color:black;'>Black</option>
<option value='gray' style='color:gray;'>Gray</option>
<option value='silver' style='color:silver;'>Silver</option>
<option value='white' style='color:white;'>White</option>
</select>
<select name='insertimage' class='textbox' style='margin-top:5px;' onChange=\"insertText('body', '<img src=\'".str_replace("../","",IMAGES_A)."' + this.options[this.selectedIndex].value + '\' style=\'margin:5px;\' align=\'left\'>');this.selectedIndex=0;\">
<option value=''>".$locale['421']."</option>
$image_list</select>
</td>
</tr>
<tr>
<td valign='top' width='100' class='tbl'>".$locale['514']."</td>
<td class='tbl'><textarea name='body2' cols='95' rows='5' class='textbox'>$body2</textarea></td>
</tr>
<tr>
<td class='tbl'></td><td class='tbl'>
<input type='button' value='b' class='button' style='font-weight:bold;width:25px;' onClick=\"addText('body2', '<b>', '</b>');\">
<input type='button' value='i' class='button' style='font-style:italic;width:25px;' onClick=\"addText('body2', '<i>', '</i>');\">
<input type='button' value='u' class='button' style='text-decoration:underline;width:25px;' onClick=\"addText('body2', '<u>', '</u>');\">
<input type='button' value='link' class='button' style='width:35px;' onClick=\"addText('body2', '<a href=\'\' target=\'_blank\'>', '</a>');\">
<input type='button' value='img' class='button' style='width:35px;' onClick=\"insertText('body2', '<img src=\'".str_replace("../","",IMAGES_A)."\' style=\'margin:5px;\' align=\'left\'>');\">
<input type='button' value='center' class='button' style='width:45px;' onClick=\"addText('body2', '<center>', '</center>');\">
<input type='button' value='small' class='button' style='width:40px;' onClick=\"addText('body2', '<span class=\'small\'>', '</span>');\">
<input type='button' value='small2' class='button' style='width:45px;' onClick=\"addText('body2', '<span class=\'small2\'>', '</span>');\">
<input type='button' value='alt' class='button' style='width:25px;' onClick=\"addText('body2', '<span class=\'alt\'>', '</span>');\"><br>
<select name='setcolor' class='textbox' style='margin-top:5px;' onChange=\"addText('body2', '<span style=\'color:' + this.options[this.selectedIndex].value + ';\'>', '</span>');this.selectedIndex=0;\">
<option value=''>".$locale['420']."</option>
<option value='maroon' style='color:maroon;'>Maroon</option>
<option value='red' style='color:red;'>Red</option>
<option value='orange' style='color:orange;'>Orange</option>
<option value='brown' style='color:brown;'>Brown</option>
<option value='yellow' style='color:yellow;'>Yellow</option>
<option value='green' style='color:green;'>Green</option>
<option value='lime' style='color:lime;'>Lime</option>
<option value='olive' style='color:olive;'>Olive</option>
<option value='cyan' style='color:cyan;'>Cyan</option>
<option value='blue' style='color:blue;'>Blue</option>
<option value='navy' style='color:navy;'>Navy Blue</option>
<option value='purple' style='color:purple;'>Purple</option>
<option value='violet' style='color:violet;'>Violet</option>
<option value='black' style='color:black;'>Black</option>
<option value='gray' style='color:gray;'>Gray</option>
<option value='silver' style='color:silver;'>Silver</option>
<option value='white' style='color:white;'>White</option>
</select>
<select name='insertimage' class='textbox' style='margin-top:5px;' onChange=\"insertText('body2', '<img src=\'".str_replace("../","",IMAGES_A)."' + this.options[this.selectedIndex].value + '\' style=\'margin:5px;\' align=\'left\'>');this.selectedIndex=0;\">
<option value=''>".$locale['421']."</option>
$image_list</select>
</td>
</tr>
<tr>
<td class='tbl'></td><td class='tbl'>
<input type='checkbox' name='line_breaks' value='yes'$breaks> ".$locale['417']."<br>
<input type='checkbox' name='premier_comments' value='yes'$comments> ".$locale['423']."<br>
<input type='checkbox' name='premier_ratings' value='yes'$ratings> ".$locale['424']."<br>
</td>
</tr>
<tr>
<td class='tbl' width='100'>Okładka:</td>
<td class='tbl'><input type='text' name='okladka' style='width:250px;' class='textbox' value='$okladka'></td>
</tr>
<tr>
<td class='tbl' width='100'>Data premiery:</td>
<td class='tbl'><input type='text' name='kiedy' style='width:250px;' class='textbox' value='$kiedy'></td>
</tr>
<tr>
<td align='center' colspan='2' class='tbl'><br>
<input type='submit' name='preview' value='".$locale['515']."' class='button'>
<input type='submit' name='save' value='".$locale['516']."' class='button'></td>
</tr>
</table>
</form>\n";
closetable();
echo "<script language=\"JavaScript\">
function Deletepremier() {
return confirm('".$locale['552']."');
}
function ValidateForm(frm) {
if(frm.subject.value=='') {
alert('".$locale['550']."');
return false;
}
}
</script>\n";
}
} else {
opentable($locale['517']);
echo "<center>".$locale['518']."<br>\n".$locale['519']."<br>
<a href='premier_cats_admin.php'>".$locale['520']."</a>".$locale['521']."</center>\n";
closetable();
}
echo "</td>\n";
require_once BASEDIR."footer.php";
?>
Edytowane przez qba88 dnia 09.08.2008 16:26:47
|