INPUT_BOX; } function fileInputArea ($title, $maxsize, $name, $value, $rows, $cols, $editor) { echo "\n\t\t\t\t

'; if ($editor) { if ($maxsize) echo ''.$maxsize.''; echo "\n\t\t\t

"; $interface = remositoryInterface::getInstance(); $interface->editorArea( 'description', $value, $name, 500, 200, $rows, $cols ); echo "\n\t\t\t
"; } else { echo ""; echo '

'; if ($maxsize) echo "

".$maxsize.'

'; } } function uploadFileBox ($title, $suffix='') { echo "\n\t\t\t

"; echo ""; echo "\n\t\t\t\t"; echo "\n\t\t\t

"; } function tickBoxField ($object, $property, $title) { if (is_object($object) AND $object->$property) $checked = "checked='checked'"; else $checked = ''; echo "\n\t\t\t

"; echo ""; echo "\n\t\t\t\t"; echo "\n\t\t\t

"; } function autoShortHandling ($file) { echo "\n\t\t\t

"; echo ""; if ($file->autoshort) { echo "\n\t\t\t"; echo "\n\t\t\t"; } else echo "\n\t\t\t"; echo "\n\t\t\t

"; } function displayIcons ($object, $iconList) { if (is_object($object)) $currenticon = $object->icon; else $currenticon = ''; ?>

pathwayHTML(null); if ($clist == '') { echo _DOWN_FILE_SUBMIT_NOCHOICES; return; } $this->addFileScripts(); $interface = remositoryInterface::getInstance(); if (!$this->remUser->isLogged()) $interface->initEditor(); $formurl = remositoryRepository::getInstance()->RemositoryBasicFunctionURL('savefile'); echo "\n\t
"; echo "\n\t
\n"; echo << HIDDEN; $iconList = remositoryFile::getIcons(); if ( $this->remUser->isAdmin() OR ($this->repository->User_Remote_Files)) { $remoteok = true; $instruct1 = _SUBMIT_INSTRUCT1; $instruct2 = _SUBMIT_INSTRUCT2; } else { $remoteok = false; $instruct1 = _SUBMIT_INSTRUCT3; } echo "\n\t\t

"._SUBMIT_HEADING.'

'; echo "\n\t\t

".$this->repository->RemositoryFunctionURL('addmanyfiles')._DOWN_ADD_NUMBER_FILES.'

'; echo "\n\t
"; echo "\n\t\t

".$instruct1.'

'; $this->uploadFileBox(_SUBMIT_NEW_FILE); echo "\n\t
"; if ($remoteok) { echo "\n\t
"; echo "\n\t\t

".$instruct2.'

'; $this->fileInputBox(_DOWNLOAD_URL, 'url', ($file->url ? $file->url : 'http://'), 50); $this->fileInputBox(_DOWN_FILE_DATE,'filedate',$file->filedate,25); $this->fileInputBox(_DOWN_FILE_SIZE,'filesize',$file->filesize,25); echo "\n\t
"; } echo "\n\t
"; $thumbs = new remositoryThumbnails($file); if ($freecount = $thumbs->getFreeCount()) { for ($i = 0; $i < $freecount; $i++) { $this->uploadFileBox(sprintf(_DOWN_ADDFILE_THUMBNAIL ,$i+1), $i+1); } } echo "\n\t\t
"; $this->fileOutputBox(_DOWN_SUGGEST_LOC, $clist, false); echo "\n\t\t
"; $this->fileInputBox(_DOWN_FILE_TITLE,'filetitle',$file->filetitle,25); $this->fileInputArea(_DOWN_DESC, _DOWN_DESC_MAX, 'description', $file->description, 10, 50, true); $this->fileInputArea(_DOWN_DESC_SMALL, _DOWN_DESC_SMALL_MAX, 'smalldesc', $file->smalldesc, 3, 50, false); $this->autoShortHandling($file); $this->fileInputArea(_DOWN_LICENSE, _DOWN_DESC_MAX, 'license', $file->license, 4, 50, false); $this->tickBoxField($file, 'licenseagree', _DOWN_LICENSE_AGREE); $this->fileInputBox(_DOWN_FILE_VER,'fileversion',$file->fileversion,25); $this->fileInputBox(_DOWN_FILE_AUTHOR,'fileauthor',$file->fileauthor,25); $this->fileInputBox(_DOWN_FILE_HOMEPAGE,'filehomepage',$file->filehomepage,50); if (0 == $thumbs->getMaxCount()) $this->fileInputBox(_DOWN_SCREEN,'screenurl',$file->screenurl,50); $this->displayIcons($file, $iconList); $buttontext = _SUBMIT_FILE_BUTTON; $cancelbutton = _DOWN_CANCEL_UPLOAD; echo "\n\t"; echo "\n\t"; echo "\n\t
"; } function addFileScripts () { $interface = remositoryInterface::getInstance(); ?>