Das dürfte der entsprechende Code sein, aus der
include/admin/kalender.php
Ich würde nun geren den Code so änderen, dass ich z.B. die option täglich mit einfügen könnte, bei der JEDER Tag sprich So - So gewählt werden kann.
Funktionen
function XAJAX_showCalendar ($m,$j,$f) {
if (empty($m)) { $m = date('n'); }
if (empty($j)) { $j = date('Y'); }
$objResponse = new xajaxResponse();
$content = '<table border="0" cellpadding="1" cellspacing="1" class="border"><tr><td class="Cnorm"><a href="javascript:close'.$f.'();">schliessen</a></td></tr></table>';
$content .= getCalendar($m, $j, 'javascript:set'.$f.'(\'{jahr}-{mon}-{tag}\')', 'javascript:xajax_XAJAX_showCalendar({mon},{jahr},\''.$f.'\')', '');
$objResponse->addAssign('skalender'.$f, 'style.display', 'block' );
$objResponse->addAssign('skalender'.$f, 'innerHTML', $content);
# return object
return ($objResponse->getXML());
}
function checkzyklusins ($x,$i0,$i1,$i2,$z,$sar) {
$ts = mktime(0,0,0,$i1,$i2,$i0);
$wt = date('w',$ts);
if ($z == 'wer' AND ($wt > 0 AND $wt < 6)) {
return (true);
} elseif ($z == 'wek' AND ($wt == 0 OR $wt == 6)) {
return (true);
} elseif ($z == 'woc' AND (($x % 7) == 1)) {
return (true);
} elseif ($z == '14t' AND (($x % 14) == 1)) {
return (true);
} elseif ($z == 'mon' AND ($i2 == $sar[2])) {
return (true);
} elseif ($z == 'jae' AND ($i1 == $sar[1] AND $i2 == $sar[2])) {
return (true);
}
return (false);
}
function zyklusinsert ($sar,$ear,$z,$_POST) {
$x = 1;
$first_id = 0;
for($i0=$sar[0];$i0<=$ear[0];$i0++) {
$sm = 1;
$em = 12;
if ($sar[0] == $i0) { $sm = $sar[1]; }
if ($ear[0] == $i0) { $em = $ear[1]; }
for($i1=$sm;$i1<=$em;$i1++) {
$st = 1;
$et = date('t', mktime (0,0,0,$i1,1,$i0));
if ($sar[0] == $i0 AND $sar[1] == $i1) { $st = $sar[2]; }
if ($ear[0] == $i0 AND $ear[1] == $i1) { $et = $ear[2]; }
for($i2=$st;$i2<=$et;$i2++) {