index.php 966 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. if (cfr('TAGCLOUD')) {
  3. /*
  4. * Controller & view section
  5. */
  6. $tagCloud = new TagCloud();
  7. //show cloud or grid tag view
  8. if (!ubRouting::checkGet('gridview')) {
  9. if (ubRouting::checkGet('report')) {
  10. $tagCloud->renderReport();
  11. } elseif (ubRouting::checkGet('notags')) {
  12. // show users which not have a tag
  13. $tagCloud->renderNoTagGrid();
  14. } elseif (ubRouting::checkGet('noemployeetags')) {
  15. // show users which not have a tag
  16. $tagCloud->renderNoEmployeeTags();
  17. } else {
  18. //default tag cloud
  19. $tagCloud->renderTagCloud();
  20. }
  21. } else {
  22. //grid view
  23. $tagCloud->renderTagGrid();
  24. }
  25. //show selected tag users
  26. if (ubRouting::get('tagid')) {
  27. $tagid = ubRouting::get('tagid', 'int');
  28. $tagCloud->renderTagUsers($tagid);
  29. }
  30. } else {
  31. show_error(__('You cant control this module'));
  32. }