1 | <!-- BEGIN header --> |
---|
2 | <script type="text/javascript"> |
---|
3 | |
---|
4 | function disableMinNum(valor){ |
---|
5 | if( valor == "True" ){ |
---|
6 | document.getElementById("minNum").disabled = true; |
---|
7 | document.getElementById("minNum").value = 0; |
---|
8 | } |
---|
9 | else if (valor == "False"){ |
---|
10 | document.getElementById("minNum").disabled = false; |
---|
11 | } |
---|
12 | } |
---|
13 | </script> |
---|
14 | <form name="adminForm" method="POST" action="{action_url}" onSubmit="return minValue()"> |
---|
15 | <table border="0" align="center"> |
---|
16 | <tr bgcolor="{th_bg}"> |
---|
17 | <td colspan="2"><font color="{th_text}"> <b>{title}</b></font></td> |
---|
18 | </tr> |
---|
19 | <!-- END header --> |
---|
20 | |
---|
21 | <!-- BEGIN body --> |
---|
22 | <tr bgcolor="{row_on}"> |
---|
23 | <td colspan="2"> </td> |
---|
24 | </tr> |
---|
25 | <tr bgcolor="{row_off}"> |
---|
26 | <td colspan="2"><b>{lang_Calendar_settings}</b></td> |
---|
27 | </tr> |
---|
28 | <tr bgcolor="{row_on}"> |
---|
29 | <td>{lang_Do_you_wish_to_autoload_calendar_holidays_files_dynamically?}</td> |
---|
30 | <td> |
---|
31 | <select name="newsettings[auto_load_holidays]"> |
---|
32 | <option value=""{selected_auto_load_holidays_False}>{lang_No}</option> |
---|
33 | <option value="True"{selected_auto_load_holidays_True}>{lang_Yes}</option> |
---|
34 | </select> |
---|
35 | </td> |
---|
36 | </tr> |
---|
37 | <tr bgcolor="{row_off}"> |
---|
38 | <td>{lang_Location_to_autoload_from}:</td> |
---|
39 | <td> |
---|
40 | <select name="newsettings[holidays_url_path]"> |
---|
41 | <option value="localhost"{selected_holidays_url_path_localhost}>localhost</option> |
---|
42 | <option value="http://www.phpgroupware.org/cal"{selected_holidays_url_path_http://www.phpgroupware.org/cal}>www.phpgroupware.org</option> |
---|
43 | </select> |
---|
44 | </td> |
---|
45 | <tr bgcolor="{row_on}"> |
---|
46 | <td colspan="2"> </td> |
---|
47 | </tr> |
---|
48 | </tr> |
---|
49 | <tr bgcolor="{row_off}"> |
---|
50 | <td colspan="2"><b>{lang_ExpressoMail_Plugin_Calendar}</b></td> |
---|
51 | </tr> |
---|
52 | <tr bgcolor="{row_on}"> |
---|
53 | <td>{lang_Select_module_version_expressoMail_(if_available)}</td> |
---|
54 | <td> |
---|
55 | <select name="newsettings[cal_expressoMail]"> |
---|
56 | <option value="False"{selected_cal_expressoMail_False}>{lang_dont_use_any_plugin}</option> |
---|
57 | <option value="1.0"{selected_cal_expressoMail_1.0}>Expresso 1.0</option> |
---|
58 | <option value="1.2"{selected_cal_expressoMail_1.2}>Expresso 1.2</option> |
---|
59 | </select> |
---|
60 | </td> |
---|
61 | </tr> |
---|
62 | <tr bgcolor="{row_off}"> |
---|
63 | <td>{lang_Select_type_tree_view}</td> |
---|
64 | <td> |
---|
65 | <select name="newsettings[cal_type_tree_participants]"> |
---|
66 | <option value="3" {selected_cal_type_tree_participants_3}>{lang_all_levels}</option> |
---|
67 | <option value="2" {selected_cal_type_tree_participants_2}>{lang_first_level_with_recursive_search}</option> |
---|
68 | <option value="1" {selected_cal_type_tree_participants_1}>{lang_all_levels_with_not_recursive_search}</option> |
---|
69 | </select> |
---|
70 | </td> |
---|
71 | </tr> |
---|
72 | |
---|
73 | <tr bgcolor="{row_on}"> |
---|
74 | <td>{lang_Do_you_wish_enable_autosearch?}</td> |
---|
75 | <td> |
---|
76 | <select id="autoSearch" name="newsettings[auto_search]" onchange="disableMinNum(this.value)"> |
---|
77 | <option value="False"{selected_auto_search_False}>{lang_No}</option> |
---|
78 | <option value="True"{selected_auto_search_True}>{lang_Yes}</option> |
---|
79 | </select> |
---|
80 | </td> |
---|
81 | </tr> |
---|
82 | |
---|
83 | <tr bgcolor="{row_off}"> |
---|
84 | <td>{lang_Minimum_number_of_characters_to_start_the_search_for_participants}</td> |
---|
85 | <td> |
---|
86 | <input type="text" id="minNum" value="{value_min_num_characters}" name="newsettings[min_num_characters] " size=2 maxlength=2 /> |
---|
87 | </td> |
---|
88 | </tr> |
---|
89 | |
---|
90 | <script> disableMinNum(document.getElementById("autoSearch").value); </script> |
---|
91 | <!-- END body --> |
---|
92 | |
---|
93 | <!-- BEGIN footer --> |
---|
94 | <tr bgcolor="{th_bg}"> |
---|
95 | <td colspan="2"> |
---|
96 | |
---|
97 | </td> |
---|
98 | </tr> |
---|
99 | <tr> |
---|
100 | <td colspan="2" align="center"> |
---|
101 | <input type="submit" name="submit" value="{lang_submit}"> |
---|
102 | <input type="submit" name="cancel" value="{lang_cancel}"> |
---|
103 | </td> |
---|
104 | </tr> |
---|
105 | </table> |
---|
106 | </form> |
---|
107 | <!-- END footer --> |
---|