function showListview() { global $_DOCMAN; $assets = JURI::root() . "components/com_docman/assets"; // add styles and scripts $doc =& JFactory::getDocument(); JHTML::_('behavior.mootools'); $doc->addStyleSheet($assets . '/css/doclink.css'); $doc->addScript($assets . '/js/sortabletable.js'); $doc->addScript($assets . '/js/listview.js'); if (isset($_REQUEST['catid'])) { $cid = intval($_REQUEST['catid']); } else { $cid = 0; } //get folders $cats = DOCMAN_Cats::getChildsByUserAccess($cid); //get items if ($cid) { $docs = DOCMAN_Docs::getDocsByUserAccess($cid, 'name', 'ASC', 999, 0); } else { $docs = array(); } //if ($entries_cnt) HTML_DMDoclink::createHeader(); HTML_DMDoclink::createFolders($cats, $cid); HTML_DMDoclink::createItems($docs, $cid); HTML_DMDoclink::createFooter(); }
function showDoclink($rows) { global $mainframe; ?> <script>var editor = '<?php echo JRequest::getWord('e_name'); ?> ';</script> <img src="<?php echo JURI::root(); ?> administrator/components/com_docman/images/dm_logo_small.png" alt="DOCman Logo" /> <div id="loading" class="statusLayer"> <div id= "loadingStatus"><?php echo _DML_DCL_LOADING; ?> </div> </div> <form id="frminsertlink" > <table class="adminform"> <thead><tr><td colspan="2"><?php echo _DML_DCL_MANAGER; ?> </td></tr></thead> <tbody> <tr><td colspan="2"> <div id="selector"> <label for="listctrl"><?php echo _DML_DCL_CATEGORY; ?> </label> <?php echo HTML_DMDoclink::createListCtrl($rows, 'listctrl', 'listctrl'); ?> <button class="button" type="button" "name="updir" onClick="javascript:changeListCtrl('up');"><img src="components/com_docman/assets/images/btnFolderUp.gif" alt="<?php echo _DML_DCL_UP; ?> "></button> </div> <div id="browser"> <iframe src="<?php echo JURI::base(); ?> index.php?option=com_docman&task=doclink-listview" id="listview" name="listview" width="545" height="150" marginwidth="0" marginheight="0" align="top" scrolling="no" frameborder="0" hspace="0" vspace="0"></iframe> </div> </td></tr> </tbody> </table> <table class="adminform"> <thead><tr><td colspan="2"><?php echo _DML_DCL_SETTINGS; ?> </td></tr></thead> <tbody> <tr> <td><?php echo _DML_DCL_URL; ?> </td> <td><input id="f_url" name="f_url" value="" size="50" /></td> </tr> <tr> <td><?php echo _DML_DCL_CAPTION; ?> </td> <td><input id="f_caption" name="f_caption" value="" size="50" /></td> </tr> <tr> <td><?php echo _DML_DCL_INSERTICON; ?> </td> <td><input id="f_addicon" name="f_addicon" type="checkbox" /></td> </tr> <tr> <td><?php echo _DML_DCL_INSERTSIZE; ?> </td> <td><input id="f_addsize" name="f_addsize" type="checkbox" /></td> </tr> <tr> <td><?php echo _DML_DCL_INSERTDATE; ?> </td> <td><input id="f_adddate" name="f_adddate" type="checkbox" /></td> </tr> <tr><td colspan="2" /> <br /> <button type="button" id="ok" name="ok" onclick="_doclink_onok();"><?php echo _DML_OK; ?> </button> <button type="button" id="cancel" name="cancel" onclick="window.parent.document.getElementById('sbox-window').close();"><?php echo _DML_CANCEL; ?> </button> </td></tr> <tbody> </table> <input id="f_icon" name="f_icon" type="hidden" value="" > <input id="f_size" name="f_size" type="hidden" value="" > <input id="f_date" name="f_date" type="hidden" value="" > <input id="f_cid" name="f_cid" type="hidden" value="" > <input id="f_pid" name="f_pid" type="hidden" value="" > </form><?php }
function showDoclink($rows) { ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="" lang="" dir=""> <head> <script type="text/javascript" src="<?php echo JURI::root(); ?> includes/js/joomla.javascript.js"></script> <script type="text/javascript" src="<?php echo JURI::root(); ?> media/system/js/mootools.js"></script> <script type="text/javascript" src="<?php echo JURI::root(); ?> components/com_docman/assets/js/dlutils.js"></script> <script type="text/javascript" src="<?php echo JURI::root(); ?> components/com_docman/assets/js/popup.js"></script> <script type="text/javascript" src="<?php echo JURI::root(); ?> components/com_docman/assets/js/dialog.js"></script> <link rel="stylesheet" href="<?php echo JURI::root(); ?> components/com_docman/assets/css/doclink.css" type="text/css" /> </head> <body> <script>var editor = '<?php echo JRequest::getVar('e_name'); ?> ';</script> <img src="<?php echo JURI::root(); ?> administrator/components/com_docman/images/dm_logo_small.png" alt="DOCman Logo" /> <div id="loading" class="statusLayer"> <div id= "loadingStatus"><?php echo _DML_DCL_LOADING; ?> </div> </div> <form id="frminsertlink" > <table class="adminform"> <thead><tr><td colspan="2"><?php echo _DML_DCL_MANAGER; ?> </td></tr></thead> <tbody> <tr><td colspan="2"> <div id="selector"> <label for="listctrl"><?php echo _DML_DCL_CATEGORY; ?> </label> <?php echo HTML_DMDoclink::createListCtrl($rows, 'listctrl', 'listctrl'); ?> <button class="button" type="button" "name="updir" onclick="javascript:changeListCtrl('up');"><img src="<?php echo JURI::root(0); ?> /components/com_docman/assets/images/btnFolderUp.gif" alt="<?php echo _DML_DCL_UP; ?> " /></button> </div> <div id="browser"> <iframe src="<?php echo JURI::base(); ?> index.php?option=com_docman&task=doclink-listview" id="listview" name="listview" width="545" height="170" marginwidth="0" marginheight="0" align="top" scrolling="no" frameborder="0" hspace="0" vspace="0"></iframe> </div> </td></tr> </tbody> </table> <table class="adminform"> <thead><tr><td colspan="2"><?php echo _DML_DCL_SETTINGS; ?> </td></tr></thead> <tbody> <tr> <td><?php echo _DML_DCL_URL; ?> </td> <td><input id="f_url" name="f_url" value="" size="50" /></td> </tr> <tr> <td><?php echo _DML_DCL_CAPTION; ?> </td> <td><input id="f_caption" name="f_caption" value="" size="50" /></td> </tr> <tr> <td><?php echo _DML_DCL_INSERTICON; ?> </td> <td><input id="f_addicon" name="f_addicon" type="checkbox" /></td> </tr> <tr> <td><?php echo _DML_DCL_INSERTSIZE; ?> </td> <td><input id="f_addsize" name="f_addsize" type="checkbox" /></td> </tr> <tr> <td><?php echo _DML_DCL_INSERTDATE; ?> </td> <td><input id="f_adddate" name="f_adddate" type="checkbox" /></td> </tr> <tr><td colspan="2" > <br /> <button type="button" id="ok" name="ok" onclick="_doclink_onok();"><?php echo _DML_OK; ?> </button> <button type="button" id="cancel" name="cancel" onclick="window.parent.document.getElementById('sbox-window').close();"><?php echo _DML_CANCEL; ?> </button> </td></tr> </tbody> </table> <input id="f_icon" name="f_icon" type="hidden" value="" /> <input id="f_size" name="f_size" type="hidden" value="" /> <input id="f_date" name="f_date" type="hidden" value="" /> <input id="f_cid" name="f_cid" type="hidden" value="" /> <input id="f_pid" name="f_pid" type="hidden" value="" /> </form> </body> </html> <?php }