Witam mam na stronie ciemne tło i chciałem aby data była np zielona.
Oto kod z pliku date.php
<?php
/*
these are the hungarian additional format characters
ö: full textual representation of the day of the week
Ö: full textual representation of the day of the week (first character is uppercase),
ő: short textual representation of the day of the week,
Ő: short textual representation of the day of the week (first character is uppercase),
ü: full textual representation of a month
Ü: full textual representation of a month (first character is uppercase),
ű: short textual representation of a month
Ű: short textual representation of a month (first character is uppercase),
*/
function date_hu($formatum, $timestamp=0) {
if (($timestamp <= -1) || !is_numeric($timestamp)) return ‘’;
$q[‘ö’] = array(-1 => ‘w’, ‘vasárnap’, ‘hétfő’, ‘kedd’, ‘szerda’, ‘csütörtök’, ‘péntek’, ‘szombat’);
$q[‘Ö’] = array(-1 => ‘w’, ‘Vasárnap’, ‘Hétfő’, ‘Kedd’, ‘Szerda’, ‘Csütörtök’, ‘Péntek’, ‘Szombat’);
$q[‘ő’] = array(-1 => ‘w’, ‘va’, ‘hé’, ‘ke’, ‘sze’, ‘csü’, ‘pé’, ‘szo’);
$q[‘Ő’] = array(-1 => ‘w’, ‘Va’, ‘Hé’, ‘Ke’, ‘Sze’, ‘Csü’, ‘Pé’, ‘Szo’);
$q[‘ü’] = array(-1 => ‘n’, ‘’, ‘január’, ‘február’, ‘március’, ‘április’, ‘május’, ‘június’, ‘július’, ‘augusztus’, ‘szeptember’, ‘október’, ‘november’, ‘december’);
$q[‘Ü’] = array(-1 => ‘n’, ‘’, ‘Január’, ‘Február’, ‘Március’, ‘Április’, ‘Május’, ‘Június’, ‘Július’, ‘Augusztus’, ‘Szeptember’, ‘Október’, ‘November’, ‘December’);
$q[‘ű’] = array(-1 => ‘n’, ‘’, ‘jan’, ‘febr’, ‘márc’, ‘ápr’, ‘máj’, ‘júni’, ‘júli’, ‘aug’, ‘szept’, ‘okt’, ‘nov’, ‘dec’);
$q[‘Ű’] = array(-1 => ‘n’, ‘’, ‘Jan’, ‘Febr’, ‘Márc’, ‘Ápr’, ‘Máj’, ‘Júni’, ‘Júli’, ‘Aug’, ‘Szept’, ‘Okt’, ‘Nov’, ‘Dec’);
if ($timestamp == 0)
$timestamp = time();
$temp = ‘’;
$i = 0;
while ( (strpos($formatum, ‘ö’, $i) !== FALSE) || (strpos($formatum, ‘Ö’, $i) !== FALSE) ||
(strpos($formatum, ‘ő’, $i) !== FALSE) || (strpos($formatum, ‘Ő’, $i) !== FALSE) ||
(strpos($formatum, ‘ü’, $i) !== FALSE) || (strpos($formatum, ‘Ü’, $i) !== FALSE) ||
(strpos($formatum, ‘ű’, $i) !== FALSE) || (strpos($formatum, ‘Ű’, $i) !== FALSE)) {
$ch[‘ö’]=strpos($formatum, ‘ö’, $i);
$ch[‘Ö’]=strpos($formatum, ‘Ö’, $i);
$ch[‘ő’]=strpos($formatum, ‘ő’, $i);
$ch[‘Ő’]=strpos($formatum, ‘Ő’, $i);
$ch[‘ü’]=strpos($formatum, ‘ü’, $i);
$ch[‘Ü’]=strpos($formatum, ‘Ü’, $i);
$ch[‘ű’]=strpos($formatum, ‘ű’, $i);
$ch[‘Ű’]=strpos($formatum, ‘Ű’, $i);
foreach ($ch as $k=>$v)
if ($v === FALSE)
unset($ch[$k]);
$a = min($ch);
$temp .= date(substr($formatum, $i, $a-$i), $timestamp) . $q[$formatum[$a]]2018-11-26 13:46:35][-1], $timestamp)];
$i = $a+1;
}
$temp .= date(substr($formatum, $i), $timestamp);
return $temp;
}
echo date_hu(‘Y. ü j. (ö) G:i’);
?>
Próbowałem zamienić echo date_hu(‘Y. ü j. (ö) G:i’); na echo "
date_hu(‘Y. ü j. (ö) G:i’)
"; i wychodzi coś takiego http://techbud.ovh.org/walbud/date.php a na kodzie bez koloru wszystko jest ok.
Pomóżcie co robie źle
