function licenseDocumentForm(&$links, &$paths, &$data, $inline = 0) { $action = _taskLink('license_result', JRequest::getInt('gid', 0), array('bid' => $data->id)); ob_start(); ?> <form action="<?php echo DOCMAN_Compat::sefRelToAbs($action); ?> " method="POST" enctype="multipart/form-data"> <input type="hidden" name="inline" value="<?php echo $inline; ?> " /> <input type="radio" name="agree" value="0" checked /><?php echo _DML_DONT_AGREE; ?> <input type="radio" name="agree" value="1" /><?php echo _DML_AGREE; ?> <br /><br /> <input name="submit" value="<?php echo _DML_PROCEED; ?> " type="submit" /> </form> <?php $html = ob_get_contents(); ob_end_clean(); return $html; }
function linkFileForm($lists) { ob_start(); ?> <form action="<?php echo DOCMAN_Compat::sefRelToAbs($lists['action']); ?> " method="post" id="dm_frmupload" class="dm_form"> <fieldset class="dm_adminform"> <table class="dm_admintable"> <tr> <td class="dm_key"> <label for="url" class="hasTip" title="<?php echo _DML_REMOTEURL . '::' . _DML_LINKURLTT; ?> "><?php echo _DML_REMOTEURL; ?> </label> </td> <td> <input name="url" type="text" id="url" value="<?php /*echo $parms['url'];*/ ?> " /> </td> </tr> </table> </fieldset> <fieldset class="dm_button"> <input name="submit" id="dm_btn_back" class="button" value="<?php echo _DML_BACK; ?> " onclick="window.history.back()" type="button" > <input name="submit" id="dm_btn_submit" class="button" value="<?php echo _DML_LINK; ?> " type="submit" /> </fieldset> <input type="hidden" name="method" value="link" /> <?php echo DOCMAN_token::render(); ?> </form> <?php $html = ob_get_contents(); ob_end_clean(); return $html; }
function moveDocumentForm($lists, $links, $paths, $data) { $action = _taskLink('doc_move_process', $data->id); ob_start(); ?> <form action="<?php echo DOCMAN_Compat::sefRelToAbs($action); ?> " method="post" id="dm_frmmove" class="dm_form" > <fieldset class="dm_adminform"> <table class="dm_admintable"> <tr> <td class="dm_key"> <label for="name"><?php echo _DML_DOC; ?> </label> </td> <td> <span id="name"><?php echo $data->dmname; ?> (<?php echo $data->filename; ?> )</span> </td> </tr> <tr> <td class="dm_key"> <label for="catid"><?php echo _DML_MOVETO; ?> </label> </td> <td> <?php echo $lists['categories']; ?> </td> </tr> </table> </fieldset> <fieldset class="dm_button"> <p> <input name="submit" class="button" value="<?php echo _DML_MOVETHEFILES; ?> " type="submit" /> </p> </fieldset> <?php echo DOCMAN_token::render(); ?> </form> <?php $html = ob_get_contents(); ob_end_clean(); return $html; }