function _getLocationFieldset($params) { $html = ''; $html .= '<h3>' . $GLOBALS['Language']->getText('plugin_docman', 'new_location') . '</h3>'; $itemRanking = new Docman_View_ItemRanking(); $itemRanking->setSelectedValue($params['ordering']); $itemRanking->setDropDownName('ordering'); $html .= $itemRanking->getDropDownWidget($params['item']); return $html; }
function visitFolder($item, $params = array()) { $content = ''; // First Check metadata differences $mdDiffers = false; if ($this->mode == 'copy') { $content = $this->checkMdDifferences($mdDiffers); } $content .= '<h2>' . $GLOBALS['Language']->getText('plugin_docman', 'details_actions_paste') . '</h2>'; $content .= '<p>'; $content .= $GLOBALS['Language']->getText('plugin_docman', 'details_actions_paste_from_' . $this->mode); $content .= '</p>'; $content .= '<form name="select_paste_location" method="POST" action="?">'; $content .= '<input type="hidden" name="action" value="paste" />'; $content .= '<input type="hidden" name="group_id" value="' . $this->item->getGroupId() . '" />'; $content .= '<input type="hidden" name="id" value="' . $this->item->getId() . '" />'; $content .= '<p>'; $itemRanking = new Docman_View_ItemRanking(); $itemRanking->setDropDownName('rank'); $content .= $itemRanking->getDropDownWidget($this->item); $content .= '</p>'; if ($this->mode == 'copy' && $mdDiffers == 'admin') { $content .= '<p>'; $content .= $GLOBALS['Language']->getText('plugin_docman', 'details_paste_importmd', array($this->srcGo->getPublicName())); $content .= ' '; $content .= '<input type="checkbox" checked="checked" name="import_md" value="1" />'; $content .= '</p>'; } $buttonTxt = $GLOBALS['Language']->getText('plugin_docman', 'details_paste_button_paste'); if ($this->mode == 'copy' && $mdDiffers == 'user') { $buttonTxt = $GLOBALS['Language']->getText('plugin_docman', 'details_paste_button_pasteanyway'); } $content .= '<input type="submit" name="submit" value="' . $buttonTxt . '" />'; $content .= ' '; $content .= '<input type="submit" name="cancel" value="' . $GLOBALS['Language']->getText('global', 'btn_cancel') . '" />'; $content .= '</form>'; return $content; }