Back to PhocaGalleryFileUploadSingle class

Method getSingleUploadHTML

public
getSingleUploadHTML
(mixed $frontEnd = 0)

Method getSingleUploadHTML - Source code

public function getSingleUploadHTML($frontEnd = 0)
{
    if ($frontEnd == 1) {
        $html = '<input type="hidden" name="controller" value="category" />' . '<input type="hidden" name="tab" value="' . $this->tab . '" />';
    } else {
        $html = '<input type="file" id="sfile-upload" name="Filedata" />' . '<button class="btn btn-primary" id="upload-submit"><i class="icon-upload icon-white"></i> ' . Text::_('COM_PHOCAGALLERY_START_UPLOAD') . '</button>' . '<input type="hidden" name="return-url" value="' . base64_encode($this->returnUrl) . '" />' . '<input type="hidden" name="tab" value="' . $this->tab . '" />';
    }
    return $html;
}