Back to PhocacartFileUpload class

Method renderCreateFolder

public static
renderCreateFolder
(mixed $sessName, mixed $sessId, mixed $currentFolder, mixed $viewBack, mixed $attribs = '')

Method renderCreateFolder - Source code

public static function renderCreateFolder($sessName, $sessId, $currentFolder, $viewBack, $attribs = '')
{
    if ($attribs != '') {
        $attribs = '&' . $attribs;
    }
    $folderOutput = '<form action="' . Uri::base() . 'index.php?option=com_phocacart&task=phocacartupload.createfolder&' . $sessName . '=' . $sessId . '&' . Session::getFormToken() . '=1&viewback=' . $viewBack . '&' . 'folder=' . PhocacartText::filterValue($currentFolder, 'folderpath') . $attribs . '" name="folderForm" id="folderForm" method="post" class="form-inline" >' . "\n" . '<h4>' . Text::_('COM_PHOCACART_FOLDER') . '</h4>' . "\n" . '<div class="path">' . '<input class="form-control" type="text" id="foldername" name="foldername"  />' . '<input class="update-folder" type="hidden" name="folderbase" id="folderbase" value="' . PhocacartText::filterValue($currentFolder, 'folderpath') . '" />' . ' <button type="submit" class="btn btn-success">' . Text::_('COM_PHOCACART_CREATE_FOLDER') . '</button>' . '</div>' . "\n" . HTMLHelper::_('form.token') . '</form>';
    return $folderOutput;
}