| [ Index ] |
PHP Cross Reference of Moodle 1.9.3 [Build 15-Oct-2008] |
[Summary view] [Print] [Text view]
1 <?php 2 3 require_once ('../config.php'); 4 require_once ('lib.php'); 5 require_once($CFG->dirroot.'/lib/weblib.php'); 6 7 global $CFG; 8 require_login(); 9 10 if( empty($CFG->usetags)) { 11 print_error('tagsaredisabled', 'tag'); 12 } 13 14 $query = optional_param('query', '', PARAM_RAW); 15 $page = optional_param('page', 0, PARAM_INT); // which page to show 16 $perpage = optional_param('perpage', 18, PARAM_INT); 17 18 $navlinks = array(); 19 $navlinks[] = array('name' => get_string('tags', 'tag'), 'link' => "{$CFG->wwwroot}/tag/search.php", 'type' => ''); 20 $navigation = build_navigation($navlinks); 21 22 $systemcontext = get_context_instance(CONTEXT_SYSTEM); 23 $manage_link = ' '; 24 25 print_header_simple(get_string('tags', 'tag'), '', $navigation); 26 27 if ( has_capability('moodle/tag:manage',$systemcontext) ) { 28 echo '<div class="managelink"><a href='. $CFG->wwwroot .'/tag/manage.php>' . get_string('managetags', 'tag') . '</a></div>' ; 29 } 30 31 print_heading(get_string('searchtags', 'tag'), '', 2); 32 33 tag_print_search_box(); 34 35 if(!empty($query)) { 36 tag_print_search_results($query, $page, $perpage); 37 } 38 39 echo '<br/><br/>'; 40 41 print_box_start('generalbox', 'big-tag-cloud-box'); 42 tag_print_cloud(150); 43 print_box_end(); 44 45 print_footer(); 46 47 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Wed Jan 14 11:33:29 2009 | Cross-referenced by PHPXref 0.7 |