Automatic installer.php lang files by installer_builder (20070726)
[moodle-linuxchix.git] / blocks / search / config_global.html
blobd60de30daaf85d21afc8eba4d255cfae5716a294
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('configpdftotextcmd', 'block_search') ?>:</b>
61 </td>
62 <td valign="top" align="left">
63 <input id="block_search_pdf_to_text_cmd" type="text" size="60" name="block_search_pdf_to_text_cmd" value="<?php
64 if(isset($CFG->block_search_pdf_to_text_cmd)) {
65 p($CFG->block_search_pdf_to_text_cmd);
66 } else {
67 $encoding = ($CFG->unicodedb) ? "-enc UTF-8" : "-enc ISO-8859-1" ;
68 if ($CFG->ostype == 'WINDOWS'){
69 p("lib/xpdf/win32/pdftotext.exe -eol dos $encoding -q");
71 else{
72 p("lib/xpdf/linux/pdftotext $encoding -eol unix -q");
74 } ?>"/><br/><br/>
75 </td>
76 </tr>
77 <tr>
78 <td valign="top" align="right">
79 <b><?php print_string('configwordtotextcmd', 'block_search') ?>:</b>
80 </td>
81 <td valign="top" align="left">
82 <input id="block_search_word_to_text_cmd" type="text" size="60" name="block_search_word_to_text_cmd" value="<?php
83 if(isset($CFG->block_search_word_to_text_cmd)) {
84 p($CFG->block_search_word_to_text_cmd);
85 } else {
86 if ($CFG->ostype == 'WINDOWS'){
87 p("lib/antiword/win32/antiword/antiword.exe ");
89 else{
90 p("lib/antiword/linux/usr/bin/antiword");
92 } ?>"/><br/><br/>
93 </td>
94 </tr>
95 <tr>
96 <td valign="top" align="right">
97 <b><?php print_string('configwordtotextenv', 'block_search') ?>:</b>
98 </td>
99 <td valign="top" align="left">
100 <input id="block_search_word_to_text_env" type="text" size="60" name="block_search_word_to_text_env" value="<?php
101 if(isset($CFG->block_search_word_to_text_env)) {
102 echo stripslashes($CFG->block_search_word_to_text_env);
103 } else {
104 if ($CFG->ostype == 'WINDOWS'){
105 p("HOME={$CFG->dirroot}\\lib\\antiword\\win32");
107 else{
108 p("ANTIWORDHOME={$CFG->dirroot}/lib/antiword/linux/usr/share/antiword");
110 } ?>"/><br/><br/>
111 </td>
112 </tr>
113 <tr>
114 <td valign="top" align="right">
115 <b><?php print_string('configlimitindexbody', 'block_search') ?>:</b>
116 </td>
117 <td valign="top" align="left">
118 <input id="block_search_limit_index_body" type="text" size="8" name="block_search_limit_index_body" value="<?php
119 if(isset($CFG->block_search_limit_index_body)) {
120 p($CFG->block_search_limit_index_body);
121 } else {
122 p('');
123 } ?>"/> <?php print_string('bytes', 'block_search') ?><br/><br/>
124 </td>
125 </tr>
126 <tr>
127 <td valign="top" align="right" colspan="2">
128 <input type="submit" value="<?php print_string('savechanges'); ?>" />
129 </td>
130 </tr>
131 </table>
132 </div>