|
|||
|
Entschuldigung, mal eine ganz bl?de Frage:
Ich w?rde gerne in einer Leiste das aktuelle Datum und Uhrzeit angezeigt bekommen. Wie mache ich das denn? Und m??te es unter templates/index.html? Falls sich der ein oder ander am?siert, auch ok. Danke und Gru? Catmandu |
|
|||
|
Habe jetzt bei den templates unter in das index.html
folgendes eingeben, doch es geht nicht. <? $datum = date("d.m.Y",$timestamp); $uhrzeit = date("H:i",$timestamp); echo $datum," - ",$uhrzeit," Uhr"; ?> Was mache ich falsch? Danke und Gru? Catmandu |
|
||||
|
__________________
xt:Commerce Helpdesk xt:Commerce Blog xt:Commerce Warenwirtschaft ### ![]() Offene Stellen bei xt:Commerce! xt:Commerce stellt ein ### |
|
||||
|
.. jibbet auch auf deutsch (f?r Leute wie mich)
http://smarty.php.net/manual/de/language.m...date.format.php ... ?berhaupt spannende Seite! |
|
||||
|
Zitat:
da ich auch des franz?sisch nicht m?chtig bin, haste was gut bei mir....
|
|
|||
|
Nach dem ich wie empfohlen:
in der templates/xx/index.html eingebeben habe, bekomme ich folgende Fehlermeldung: Fatal error: Smarty error: [in templatesX/index.html line 71]: syntax error: unidentified token '{{php' (Smarty_Compiler.class.php, line 1358) in /www/htdocs/XX/XX/includes/classes/smarty_2.6.2/Smarty.class.php on line 1102 Auf der line 71 steht: {if $account{{php} if (isset($_SESSION['customer_id'])) { {/php}{#link_logoff#} {php} } {/php}{/if} Line 72: {if $account}{php} if (!isset($_SESSION['customer_id'])) { {/php}Anmelden{php} } {/php}{/if} | Bei: Smarty_Compiler.class.php auf 1358 steht: $this->_syntax_error("unidentified token '$token'", E_USER_ERROR, __FILE__, __LINE__); Bei smarty.class.php auf: Line 1102: function trigger_error($error_msg, $error_type = E_USER_WARNING) { Line 1102: trigger_error("Smarty error: $error_msg", $error_type); } Ja jetzt wei? ich nicht weiter.... Was haltet ihr davon? Gru? und einen sch?nen Guten Morgen. Catmandu |
|
|||
|
So ein Sch....,
da wollte ich die genannten Smarts austauschen, danach kam folgende Fehlermeldung, diese Fehlermeldung erscheint, auch nach dem ich die Smartys die ich runtergeladen habe wieder hoch getan hab:. Warning: main(/www/htdocs/latipsoh//hastahane/includes/classes/smarty_2.6.2/Smarty.class.php): failed to open stream: No such file or directory in /www/htdocs/latipsoh/hastahane/includes/application_top.php on line 585 Warning: main(/www/htdocs/latipsoh//hastahane/includes/classes/smarty_2.6.2/Smarty.class.php): failed to open stream: No such file or directory in /www/htdocs/latipsoh/hastahane/includes/application_top.php on line 585 Fatal error: main(): Failed opening required '/www/htdocs/latipsoh//hastahane/includes/classes/smarty_2.6.2/Smarty.class.php' (include_path='.:..') in /www/htdocs/latipsoh/hastahane/includes/application_top.php on line 585 So jetzt lasse ich wohl am besten die Finger davon, bis mir bitte jemand weiterhelfen kann. Danke |
![]() |
| Lesezeichen |
| Stichworte |
| aktuelle, zeit |
| Themen-Optionen | |
| Ansicht | |
|
|