Sveiki, man labai reiketu sitos paneles patobulinimo
http://www.phpfusion.lt/infusions/moddb/mod_view.php?mod_id=473
Noreciau kad ir paneleje rodytu ne tik kiek liko iki tam tikro ivykio bet ir kada tas ivykis bus( to ivykio data) visai taip kaip perziuroje.
Taigi gal galetut kas patobulinti ? ir isnesti ta dalykeli i pagrindine panele ? buciau labia dekingas.
Reikia padaryti isnasa i pagrindine panele, toje isnasoje turi automatiskai rodyti nustatyta data ir laika, kaip "perziura" nuotraukoje
Isidek i svetaine moda ir tada bus aisku viskas
Ka nera ne vieno protingo zmogaus kuris tai moketu ? *bad*
Redagavo _zydrius_ 2010-03-26 14:22
require_once \"../../maincore.php\";
require_once THEMES.\"templates/admin_header.php\";
include INFUSIONS.\"countdown_panel/infusion_db.php\";
if (!checkrights(\"CNDN\")) { redirect(\"../../index.php\"); }
if (file_exists(INFUSIONS.\"countdown_panel/locale/\".$settings['locale'].\".php\")) {
include INFUSIONS.\"countdown_panel/locale/\".$settings['locale'].\".php\";
} else {
include INFUSIONS.\"countdown_panel/locale/English.php\";
}
if (isset($_GET['status'])) {
if ($_GET['status'] == \"saved\") { // The settings were saved. Display the message.
opentable($locale['cd_011']);
echo \"
\".$locale['cd_012'].\"
\n\";
closetable();
}
}
if (isset($_POST['save_button'])) { // Save data and redirect to FUSION_SELF
$result = dbquery(\"UPDATE \".DB_COUNTDOWN.\" SET \"
.\"cd_year='\".$_POST['cd_year'].\"', \"
.\"cd_month='\".$_POST['cd_month'].\"', \"
.\"cd_day='\".$_POST['cd_day'].\"', \"
.\"cd_hour='\".$_POST['cd_hour'].\"', \"
.\"cd_minute='\".$_POST['cd_minute'].\"', \"
.\"cd_toptext='\".$_POST['cd_toptext'].\"', \"
.\"cd_lowtext='\".$_POST['cd_lowtext'].\"', \"
.\"cd_color='\".$_POST['cd_color'].\"'\");
if ($result) {
redirect(FUSION_SELF.$aidlink.\"&status=saved\");
}
}
$result = dbquery(\"SELECT * FROM \".DB_COUNTDOWN); // Read Settings and store them in variables
$data = dbarray($result);
$year = $data['cd_year'];
$month = $data['cd_month'];
$day = $data['cd_day'];
$hour = $data['cd_hour'];
$minute = $data['cd_minute'];
$toptext = $data['cd_toptext'];
$lowtext = $data['cd_lowtext'];
$color = $data['cd_color'];
$version = $data['cd_version'];
$color_text = \"\";
$sample_panel = // Build the sample countdown_panel
\"\";
/*---------------------------------------------------+
| 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
+------------------------------------------------------
| Countdown using Flashanimation
| This file sets the date and time as well as the text
| Copyright 2006 Merklin
+-----------------------------------------------------*/
if (file_exists(INFUSIONS.\"countdown_panel/locale/\".$settings['locale'].\".php\")) {
include INFUSIONS.\"countdown_panel/locale/\".$settings['locale'].\".php\";
} else {
include INFUSIONS.\"countdown_panel_panel/locale/English.php\";
}
Reikjo i?sikelt i? index.php failo tam tikr koduk. Jei neveiks sakyk, nes matau ia klaid privelta paiam script'e.
countdown_panel.php
Code
/*---------------------------------------------------+
| PHP-Fusion 6 Content Management System
+----------------------------------------------------+
| Copyright 2002 - 2005 Nick Jones
| http://www.php-fu...
+----------------------------------------------------+
| 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
+------------------------------------------------------
| Countdown using Flashanimation
| This file sets the date and time as well as the text
| Copyright 2006 Merklin
+-----------------------------------------------------*/
if (file_exists(INFUSIONS.\"countdown_panel/locale/\".$settings['locale'].\".php\")) {
include INFUSIONS.\"countdown_panel/locale/\".$settings['locale'].\".php\";
} else {
include INFUSIONS.\"countdown_panel_panel/locale/English.php\";
}
Stai kas gaunas, man irgi taip gavosi padarius isnasa, nerodo nustatyto laiko ir datos ... ir nzn kaip padaryt kad rodytu, gal turi minciu ?
Bet aciu uz pagalba
Pabandyk ?it, nebuvo gaunami duomenys i? duomen bazs.
Code
/*---------------------------------------------------+
| PHP-Fusion 6 Content Management System
+----------------------------------------------------+
| Copyright 2002 - 2005 Nick Jones
| http://www.php-fu...
+----------------------------------------------------+
| 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
+------------------------------------------------------
| Countdown using Flashanimation
| This file sets the date and time as well as the text
| Copyright 2006 Merklin
+-----------------------------------------------------*/
if (file_exists(INFUSIONS.\"countdown_panel/locale/\".$settings['locale'].\".php\")) {
include INFUSIONS.\"countdown_panel/locale/\".$settings['locale'].\".php\";
} else {
include INFUSIONS.\"countdown_panel_panel/locale/English.php\";
}
Norejau dar paklausti, kazin kodel laikrodis rodo neteisingai laika ? *galvoju* kur yra nustatyti time zone ar kazkas panasaus ?
Redagavo _zydrius_ 2010-03-27 10:35