widget.php 666 B

1234567891011121314151617181920212223
  1. <?php
  2. global $myUser;
  3. try{
  4. User::check_access('document','read');
  5. ?>
  6. <div class="widgetDocumentContainer">
  7. <div data-type="library"
  8. data-root-label="C:"
  9. data-root="<?php echo $widget->data('widget-document-root'); ?>"
  10. data-tree-panel="<?php echo $widget->data('widget-document-tree')=='1'? 'true':'false' ?>"
  11. data-search-panel="<?php echo $widget->data('widget-document-search')=='1'? 'true':'false' ?>"
  12. data-detail-panel="<?php echo $widget->data('widget-document-detail')=='1'? 'true':'false' ?>"
  13. ></div>
  14. </div>
  15. <?php
  16. }catch(Exception $e){ ?>
  17. <div class="alert alert-warning" role="alert">
  18. <?php echo $e->getMessage(); ?>
  19. </div>
  20. <?php } ?>