act = $_REQUEST['act']; $this->limit = $limit; $this->pageNav = $controller->pageNav; } function setUpCalendar () { $live_site = $this->interface->getCfg('live_site'); $links = << LINKS_CALENDAR; $this->interface->addCustomHeadTag($links); } function calendarSelector ($fieldname) { static $first = true; if ($first) $html = << CALENDAR_FIRST; else $html = << CALENDAR_AFTER; $first = false; return $html; } function tickBox ($object, $property) { if (is_object($object) AND $object->$property) $checked = "checked='checked'"; else $checked = ''; echo ""; } function yesNoList ($object, $property) { $yesno[] = $this->repository->makeOption( 0, _NO ); $yesno[] = $this->repository->makeOption( 1, _YES ); if ($object) $default = $object->$property; else $default = 0; echo ''; echo $this->repository->selectList($yesno, $property, 'class="inputbox" size="1"', $default);; echo ''; } function yesNoRadio ($object, $property, $title) { $yes = is_object($object) AND $object->$property; $yescheck = $yes ? 'checked="checked"' : ''; $nocheck = $yes ? '' : 'checked="checked"'; $yestext = _YES; $notext = _NO; $html = << $yestext $notext INPUT_BOX; return $html; } function inputTop ($title, $redstar=false, $maxsize=0) { ?> *'; echo $title; if ($maxsize) echo " 
$maxsize "; ?>    INPUT_BOX; if ($tooltip) $html .= $tooltip; return $html; } function narrowInputBox ($title, $name, $value, $width, $tooltip=null) { $html = <<$title
INPUT_BOX; if ($tooltip) $html .= $tooltip; return $html; } function fileUploadBox ($title, $width, $tooltip=null) { ?> $title
SIMPLE_UPLOAD; if ($tooltip) $html .= $tooltip; return $html; } function fileInputArea ($title, $maxsize, $name, $value, $rows, $cols, $editor=false, $tooltip=null) { ?>  
$maxsize ";?>
'; if ($editor) $this->interface->editorArea( 'description', $value, $name, 450, 200, $rows, $cols ); else echo ""; if ($tooltip) echo tooltip($tooltip); echo ''; } function simpleInputArea ($title, $maxsize, $name, $value, $rows, $cols, $editor=false, $tooltip=null) { // last params were $rows, $cols ob_start(); if ($editor) $editbox = $this->interface->editorAreaText( 'description', $value, $name, 450, 350, $cols, $rows ); else $editbox = ""; $editbox .= ob_get_clean(); return <<
$editbox $tooltip
INPUT_AREA; } function tickBoxField ($object, $property, $title) { ?>   $property) $checked = "checked='checked'"; else $checked = ''; echo ""; echo ''; } function simpleTickBox ($title, $name, $checked=false) { if ($checked) $check = 'checked="checked"'; else $check = ''; ?>   />
 
FORM_END; } function listHeadingStart ($count) { echo << LIST_HEAD; } function headingItem ($width, $title) { echo "\n$title"; } function commonScripts ($edit_fields) { ?>
FORM_END; } function multiOptionList ($name, $title, $options, $current, $tooltip=null) { $alternatives = explode(',',$options); $already = explode(',', $current); ?>   $one"; } if ($tooltip) echo ' '.tooltip($tooltip); echo ''; } function tooltip ($text) { return ''.$this->interface->makeImageURI('tooltip.png').''; } }