?'; $htitle = elgg_echo('koolielu:'.$id); $help .= '
".elgg_echo($trans).":".fieldhelp($name, $helptext)." | "; $ftype = $field['@attributes']['type']; $voc = $field['@attributes']['vocabulary']; $autoval = $field['@attributes']['autovalue']; $fixedVoc = $field['@attributes']['fixedVocabulary']; $lang = null; $obj = null; $params = array( 'mode' => 'search', 'waramu' => $w, 'fieldname' => $name, 'fieldtype' => $ftype, 'fixedVocabulary' => $fixedVoc, 'vocabulary' => $voc, 'language' => $lang, 'object' => $obj ); if ( elgg_view_exists('waramu/field_'.$name) ) { $c .= elgg_view('waramu/field_'.$name, $params); } else { $c .= elgg_view('waramu/field_'.$ftype, $params); } $c .= " | "; $c .= "
'.elgg_echo("koolielu:Creator").':'.fieldhelp("Creator", $helptext).' | '; $sdb = ""; if ($_SESSION['creator']) { $sdb = $_SESSION['creator']; } $lang = null; $obj = null; $params = array( 'mode' => 'search', 'waramu' => $w, 'fieldname' => "creator", 'fieldtype' => "creator", //'fixedVocabulary' => $fixedVoc, //'vocabulary' => $voc, 'language' => $lang, 'object' => $obj ); $cr .= elgg_view('waramu/field_creator', $params); $cr .= ' | '; $cr .= '
'.elgg_echo("koolielu:vauthor").':'.fieldhelp("Author", $helptext).' | '; $sdb = ""; if ($_SESSION['author']) { $sdb = $_SESSION['author']; } $lang = null; $obj = null; $params = array( 'mode' => 'search', 'waramu' => $w, 'fieldname' => "vauthor", 'fieldtype' => "vcard", //'fixedVocabulary' => $fixedVoc, //'vocabulary' => $voc, 'language' => $lang, 'object' => $obj ); $cr .= elgg_view('waramu/field_vCard', $params); $cr .= ' | '; $cr .= '
'.elgg_echo("koolielu:created").':'.fieldhelp("created", $helptext).' | '; $nn .= ''; $sdb = ""; //strtotime("-3 year"); if ($_SESSION['not_older_than']) { $sdb = $_SESSION['not_older_than']; } $nn .= elgg_view('input/dateselection', array('only_historic' => true, 'reverse' => true, 'internalname' => 'not_older_than', 'value' => $sdb)); /*translation:till*/ $nn .= " ".elgg_echo("koolielu:till")." "; $sdb = ""; //strtotime("NOW"); if ($_SESSION['not_newer_than']) { $sdb = $_SESSION['not_newer_than']; } $nn .= elgg_view('input/dateselection', array('only_historic' => true, 'reverse' => true, 'internalname' => 'not_newer_than', 'value' => $sdb)); $nn .= ' | '; $nn .= '