From: moodler Date: Sun, 26 Mar 2006 15:54:41 +0000 (+0000) Subject: Better looking form for preferences and more accessible X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=c8505cacd5a44bd824cc48610b6271741954e4c6;p=moodle.git Better looking form for preferences and more accessible --- diff --git a/mod/data/lib.php b/mod/data/lib.php index e99f9ecffc..d918241ee1 100755 --- a/mod/data/lib.php +++ b/mod/data/lib.php @@ -212,6 +212,11 @@ class data_field_base { /// Base class for Database Field Types (see field/* function display_browse_field($recordid, $template) { if ($content = get_record('data_content','fieldid', $this->field->id, 'recordid', $recordid)) { if (isset($content->content)) { + if ($this->field->param1 == '1') { // We are autolinking this field, so disable linking within us + //$content->content = ''.$content->content.''; + //$content->content1 = FORMAT_HTML; + $options->filter=false; + } $options->para = false; $str = format_text($content->content, $content->content1, $options); } else { @@ -901,25 +906,15 @@ function data_print_template($records, $data, $search, $template, $sort, $page=0 * output null * ************************************************************************/ function data_print_preference_form($data, $perpage, $search, $sort='', $order='ASC'){ - echo '
'; + echo '
'; echo '
'; echo ''; - echo ''; - echo ''. - ''; - echo ''; - echo ''. - ''. - ''. - ''; - echo ''; - echo ''; - echo '
'.get_string('pagesize','data').':'; + echo get_string('pagesize','data').':'; $pagesizes = array(1=>1,2=>2,3=>3,4=>4,5=>5,6=>6,7=>7,8=>8,9=>9,10=>10,15=>15, 20=>20,30=>30,40=>40,50=>50,100=>100,200=>200,300=>300,400=>400,500=>500,1000=>1000); choose_from_menu($pagesizes, 'perpage1', $perpage, 'choose', '', '0'); - echo '
'.get_string('search').':
'; - echo get_string('sortby').':'; - echo ''; + echo ' '.get_string('search').': '; + echo ' '.get_string('sortby').':'; //foreach field, print the option $fields = get_records('data_fields','dataid',$data->id); echo ''; echo ''; //print ASC or DESC - echo '
'; echo ''; - echo '
'; echo ''; echo '
'; + echo '
'; } function data_print_ratings($data, $record) {