'=', 'Nerovno' => '!=', 'Menší' => '<', 'Větší' => '>'); function OnView($Item) { global $MonthNames; if($Item['Value'] != '') { $ValueParts = explode(' ', $Item['Value']); $DateParts = explode('-', $ValueParts[0]); $TimeParts = explode(':', $ValueParts[1]); $Output = ($DateParts[2] * 1).'.'.($DateParts[1] * 1).'.'.$DateParts[0].' '.$TimeParts[0].':'.$TimeParts[1].':'.$TimeParts[2]; } else $Output = ''; return($Output); } function OnEdit($Item) { global $MonthNames; $ValueParts = explode(' ', $Item['Value']); $DateParts = explode('-', $ValueParts[0]); $TimeParts = explode(':', $ValueParts[1]); // Hour $Output = ''; // Minute $Output .= ''; // Second $Output .= ''; // Day $Output .= ' '; // Month $Output .= ''; // Year $Output .= ''; return($Output); } function OnLoad($Item) { return($_POST[$Item['Name'].'-year'].'-'.$_POST[$Item['Name'].'-month'].'-'.$_POST[$Item['Name'].'-day'].' '. $_POST[$Item['Name'].'-hour'].':'.$_POST[$Item['Name'].'-minute'].':'.$_POST[$Item['Name'].'-second']); } function DatabaseEscape($Value) { return('"'.addslashes($Value).'"'); } } ?>