Merge commit 'catalyst/MOODLE_19_STABLE' into mdl19-linuxchix
[moodle-linuxchix.git] / blocks / search / config_global.html
blobbe8041c74c270c53215add86fc95d1ac046ec126
1 <div style="text-align:center;">
2 <table cellspacing="5">
3 <tr>
4 <td valign="top" align="right">
5 <b><?php print_string('configsearchtext', 'block_search') ?>:</b>
6 </td>
7 <td valign="top" align="left">
8 <input id="block_search_text" type="text" name="block_search_text" value="<?php
9 if(isset($CFG->block_search_text)) {
10 p($CFG->block_search_text);
11 } else {
12 p(get_string('searchmoodle', 'block_search'));
13 } ?>"/><br/>
14 </td>
15 </tr>
16 <tr>
17 <td valign="top" align="right">
18 <b><?php print_string('configbuttonlabel', 'block_search') ?>:</b>
19 </td>
20 <td valign="top" align="left">
21 <input id="block_search_button" type="text" name="block_search_button" value="<?php
22 if(isset($CFG->block_search_button)) {
23 p($CFG->block_search_button);
24 } else {
25 p(get_string('go', 'block_search'));
26 } ?>"/><br/><br/>
27 </td>
28 </tr>
29 <tr>
30 <td valign="top" align="right">
31 <b><?php print_string('configenablefileindexing', 'block_search') ?>:</b>
32 </td>
33 <td valign="top" align="left">
34 <input id="block_enable_file_indexing" type="radio" name="block_search_enable_file_indexing" value="1" <?php
35 if(isset($CFG->block_search_enable_file_indexing) && $CFG->block_search_enable_file_indexing) {
36 echo " checked=\"checked\" ";
37 } ?> /> <?php print_string('yes') ?> -
38 <input id="block_search_enable_file_indexing" type="radio" name="block_search_enable_file_indexing" value="0" <?php
39 if(!isset($CFG->block_search_enable_file_indexing) || !$CFG->block_search_enable_file_indexing) {
40 echo " checked=\"checked\" ";
41 } ?> /> <?php print_string('no') ?>
42 <br/><br/>
43 </td>
44 </tr>
45 <tr>
46 <td valign="top" align="right">
47 <b><?php print_string('configfiletypes', 'block_search') ?>:</b>
48 </td>
49 <td valign="top" align="left">
50 <input id="block_search_filetypes" type="text" name="block_search_filetypes" value="<?php
51 if(isset($CFG->block_search_filetypes)) {
52 p($CFG->block_search_filetypes);
53 } else {
54 p("PDF,TXT,HTML,PPT,XML,DOC,HTM");
55 } ?>"/><br/><br/>
56 </td>
57 </tr>
58 <tr>
59 <td valign="top" align="right">
60 <b><?php print_string('usemoodleroot', 'block_search') ?>:</b>
61 </td>
62 <td valign="top" align="left">
63 <?php
64 $usemoodleroot = (isset($CFG->block_search_usemoodleroot)) ? 'checked="checked"' : '' ;
65 $notusemoodleroot = (!isset($CFG->block_search_usemoodleroot)) ? 'checked="checked"' : '' ;
67 <input id="block_search_usemoodleroot" type="radio" name="block_search_usemoodleroot" <?php echo $usemoodleroot ?> value="1"/> <?php print_string('yes') ?> -
68 <input id="block_search_usemoodleroot" type="radio" name="block_search_usemoodleroot" <?php echo $notusemoodleroot ?> value="0"/> <?php print_string('no') ?>
69 <br/><br/>
70 </td>
71 </tr>
72 <tr>
73 <td valign="top" align="right">
74 <b><?php print_string('configpdftotextcmd', 'block_search') ?>:</b>
75 </td>
76 <td valign="top" align="left">
77 <input id="block_search_pdf_to_text_cmd" type="text" size="60" name="block_search_pdf_to_text_cmd" value="<?php
78 if(isset($CFG->block_search_pdf_to_text_cmd)) {
79 p($CFG->block_search_pdf_to_text_cmd);
80 } else {
81 $encoding = ($CFG->unicodedb) ? "-enc UTF-8" : "-enc ISO-8859-1" ;
82 if ($CFG->ostype == 'WINDOWS'){
83 p("lib/xpdf/win32/pdftotext.exe -eol dos $encoding -q");
85 else{
86 p("lib/xpdf/linux/pdftotext $encoding -eol unix -q");
88 } ?>"/><br/><br/>
89 </td>
90 </tr>
91 <tr>
92 <td valign="top" align="right">
93 <b><?php print_string('configwordtotextcmd', 'block_search') ?>:</b>
94 </td>
95 <td valign="top" align="left">
96 <input id="block_search_word_to_text_cmd" type="text" size="60" name="block_search_word_to_text_cmd" value="<?php
97 if(isset($CFG->block_search_word_to_text_cmd)) {
98 p($CFG->block_search_word_to_text_cmd);
99 } else {
100 if ($CFG->ostype == 'WINDOWS'){
101 p("lib/antiword/win32/antiword/antiword.exe ");
103 else{
104 p("lib/antiword/linux/usr/bin/antiword");
106 } ?>"/><br/><br/>
107 </td>
108 </tr>
109 <tr>
110 <td valign="top" align="right">
111 <b><?php print_string('configwordtotextenv', 'block_search') ?>:</b>
112 </td>
113 <td valign="top" align="left">
114 <input id="block_search_word_to_text_env" type="text" size="60" name="block_search_word_to_text_env" value="<?php
115 if(isset($CFG->block_search_word_to_text_env)) {
116 echo stripslashes($CFG->block_search_word_to_text_env);
117 } else {
118 if ($CFG->ostype == 'WINDOWS'){
119 p("HOME={$CFG->dirroot}\\lib\\antiword\\win32");
121 else{
122 p("ANTIWORDHOME={$CFG->dirroot}/lib/antiword/linux/usr/share/antiword");
124 } ?>"/><br/><br/>
125 </td>
126 </tr>
127 <tr>
128 <td valign="top" align="right">
129 <b><?php print_string('configlimitindexbody', 'block_search') ?>:</b>
130 </td>
131 <td valign="top" align="left">
132 <input id="block_search_limit_index_body" type="text" size="8" name="block_search_limit_index_body" value="<?php
133 if(isset($CFG->block_search_limit_index_body)) {
134 p($CFG->block_search_limit_index_body);
135 } else {
136 p('');
137 } ?>"/> <?php print_string('bytes', 'block_search') ?><br/><br/>
138 </td>
139 </tr>
140 <tr>
141 <td valign="top" align="right" colspan="2">
142 <input type="submit" value="<?php print_string('savechanges'); ?>" />
143 </td>
144 </tr>
145 </table>
146 </div>