the uploads/publisher/content and uploads/testing/content are not created automatically
i created the folder and now is ok
but still have this problem
case 'select':
$element = new XoopsFormSelect($caption, $name, $value);
// If options do not include an empty element, then add a blank option to prevent any default selection
// if (!in_array('', array_keys($options))) {
if (!array_key_exists('', $options)) {
$element->addOption('', _NONE);
$eltmsg = empty($caption) ? sprintf(_FORM_ENTER, $name) : sprintf(_FORM_ENTER, $caption);
$eltmsg = str_replace('"', '"', stripslashes($eltmsg));
$element->customValidationCode[] = "nvar hasSelected = false; var selectBox = myform.{$name};" . "for (i = 0; i < selectBox.options.length; i++) { if (selectBox.options[i].selected == true && selectBox.options[i].value != '') { hasSelected = true; break; } }" . "if (!hasSelected) { window.alert("{$eltmsg}"); selectBox.focus(); return false; }";
}
$element->addOptionArray($options);
break;
$time = time();
$today=date("d/m/Y", strval($time));
global $xoopsDB;
$sql = "SELECT * FROM " . $xoopsDB->prefix('extcal_event') . " ";
if ($result===false) {
die($xoopsDB->error());
}
$result = $xoopsDB->query($sql);
while($row=$xoopsDB->fetchArray($result)) {
$event_title = $row['event_title'];
$event_start=date("d/m/Y", strval($row["event_start"]));
$event_end=date("d/m/Y", strval($row["event_end"]));
//if ((date('d/m/Y', $row['event_start'])) == $today OR (date('d/m/Y', $row['event_end'])) == $today){
if ($event_start == $today OR $event_end==$today OR $row['event_start'] <= $time && $time <= $row['event_end']){
echo $row['event_title'];
}
}
$time = time();
$today=date("d/m/Y", strval($time));
global $xoopsDB;
$sql = "SELECT * FROM " . $xoopsDB->prefix('extcal_event') . " ";
if ($result===false) {
die($xoopsDB->error());
}
$result = $xoopsDB->query($sql);
while($row=$xoopsDB->fetchArray($result)) {
$event_title = $row['event_title'];
$event_start=date("d/m/Y", strval($row["event_start"]));
$event_end=date("d/m/Y", strval($row["event_end"]));
//if ((date('d/m/Y', $row['event_start'])) == $today OR (date('d/m/Y', $row['event_end'])) == $today){
if ($event_start <= $today && $today <= $event_end){
echo $row['event_title'];
}
}
if ((date('d/m/Y', $row['event_start'])) == $today OR (date('d/m/Y', $row['event_end'])) == $today){
$time = time();
//echo $time;
$today=date("d/m/Y", strval($time));
//echo $today;
global $xoopsDB;
$sql = "SELECT * FROM " . $xoopsDB->prefix('extcal_event') . " WHERE DATE_FORMAT(event_start, '%d/%m/%Y')='$today' ORDER BY event_start";