Revision 240
Added by stefan about 19 years ago
trunk/wb/search/search.php | ||
---|---|---|
113 | 113 |
$values = array($search_string, WB_URL, PAGE_EXTENSION, $TEXT['SEARCH'], $TEXT['ALL_WORDS'], $TEXT['ANY_WORDS'], $TEXT['EXACT_MATCH'], $TEXT['MATCH'], $TEXT['MATCHING'], $all_checked, $any_checked, $exact_checked); |
114 | 114 |
$search_header = str_replace($vars, $values, ($fetch_header['value'])); |
115 | 115 |
|
116 |
// Insert js code |
|
117 |
?> |
|
118 |
<script language="javascript" type="text/javascript"> |
|
119 |
function toggle_radio(checkbox_id) { |
|
120 |
if(document.getElementById(checkbox_id).checked == true) { |
|
121 |
document.getElementById(checkbox_id).checked = false; |
|
122 |
} else { |
|
123 |
document.getElementById(checkbox_id).checked = true; |
|
124 |
} |
|
125 |
} |
|
126 |
</script> |
|
127 |
<?php |
|
128 |
|
|
129 | 116 |
// Show search header |
130 | 117 |
echo $search_header; |
131 | 118 |
|
trunk/wb/install/save.php | ||
---|---|---|
517 | 517 |
<tr> |
518 | 518 |
<td colspan="2"> |
519 | 519 |
<input type="radio" name="match" id="match_all" value="all"[ALL_CHECKED] /> |
520 |
<a href="javascript: toggle_radio(\'match_all\');">[TEXT_ALL_WORDS]</a>
|
|
520 |
<label for="match_all">[TEXT_ALL_WORDS]</label>
|
|
521 | 521 |
<input type="radio" name="match" id="match_any" value="any"[ANY_CHECKED] /> |
522 |
<a href="javascript: toggle_radio(\'match_any\');">[TEXT_ANY_WORDS]</a>
|
|
522 |
<label for="match_any">[TEXT_ANY_WORDS]</label>
|
|
523 | 523 |
<input type="radio" name="match" id="match_exact" value="exact"[EXACT_CHECKED] /> |
524 |
<a href="javascript: toggle_radio(\'match_exact\');">[TEXT_EXACT_MATCH]</a>
|
|
524 |
<label for="match_exact">[TEXT_EXACT_MATCH]</label>
|
|
525 | 525 |
</td> |
526 | 526 |
</tr> |
527 | 527 |
</table> |
trunk/wb/install/index.php | ||
---|---|---|
53 | 53 |
<link href="stylesheet.css" rel="stylesheet" type="text/css"> |
54 | 54 |
<script language="javascript" type="text/javascript"> |
55 | 55 |
|
56 |
function toggle_checkbox(checkbox_id) { |
|
57 |
|
|
58 |
if(document.getElementById(checkbox_id).checked == true) { |
|
59 |
|
|
60 |
document.getElementById(checkbox_id).checked = false; |
|
61 |
|
|
62 |
} else { |
|
63 |
|
|
64 |
document.getElementById(checkbox_id).checked = true; |
|
65 |
|
|
66 |
} |
|
67 |
|
|
68 |
} |
|
69 | 56 |
function confirm_link(message, url) { |
70 | 57 |
if(confirm(message)) location.href = url; |
71 | 58 |
} |
... | ... | |
256 | 243 |
<td> |
257 | 244 |
<div name="file_perms_box" id="file_perms_box" style="margin: 0; padding: 0; display: <?php if(isset($_SESSION['operating_system']) AND $_SESSION['operating_system'] == 'windows') { echo 'none'; } else { echo 'block'; } ?>;"> |
258 | 245 |
<input type="checkbox" tabindex="6" name="world_writeable" id="world_writeable" value="true"<?php if(isset($_SESSION['world_writeable']) AND $_SESSION['world_writeable'] == true) { echo 'checked'; } ?> /> |
259 |
<font style="cursor: pointer;" onclick="javascript: toggle_checkbox('world_writeable');">
|
|
246 |
<label for="world_writeable">
|
|
260 | 247 |
World-writeable file permissions (777) |
261 |
</font>
|
|
248 |
</label>
|
|
262 | 249 |
<br /> |
263 | 250 |
<font class="note">(Please note: this is only recommended for testing environments)</font> |
264 | 251 |
</div> |
... | ... | |
299 | 286 |
<td> </td> |
300 | 287 |
<td colspan="2"> |
301 | 288 |
<input type="checkbox" tabindex="12" name="install_tables" id="install_tables" value="true"<?php if(!isset($_SESSION['install_tables'])) { echo ' checked'; } elseif($_SESSION['install_tables'] == 'true') { echo ' checked'; } ?> /> |
302 |
<font style="cursor: pointer; color: #666666;" onclick="javascript: toggle_checkbox('install_tables');">Install Tables</font>
|
|
289 |
<label for="install_tables" style="color: #666666;">Install Tables</label>
|
|
303 | 290 |
<br /> |
304 |
<font style="font-size: 10px; color: #666666;">(Please note: May remove existing tables and data)</font></td>
|
|
291 |
<span style="font-size: 10px; color: #666666;">(Please note: May remove existing tables and data)</span></td>
|
|
305 | 292 |
</td> |
306 | 293 |
</tr> |
307 | 294 |
<tr> |
... | ... | |
380 | 367 |
</table> |
381 | 368 |
|
382 | 369 |
</body> |
383 |
</html> |
|
370 |
</html> |
trunk/wb/admin/groups/group_form.html | ||
---|---|---|
31 | 31 |
<tr> |
32 | 32 |
<td> |
33 | 33 |
<input type="checkbox" name="pages" id="pages" value="1" {pages_checked} /> |
34 |
<a href="javascript: toggle_checkbox('pages');">{SECTION_PAGES}</a>
|
|
34 |
<label for="pages">{SECTION_PAGES}</label>
|
|
35 | 35 |
</td> |
36 | 36 |
<td> |
37 | 37 |
<input type="checkbox" name="media" id="media" value="1" {media_checked} /> |
38 |
<a href="javascript: toggle_checkbox('media');">{SECTION_MEDIA}</a>
|
|
38 |
<label for="media">{SECTION_MEDIA}</label>
|
|
39 | 39 |
</td> |
40 | 40 |
<td> |
41 | 41 |
<input type="checkbox" name="modules" id="modules" value="1" {modules_checked} /> |
42 |
<a href="javascript: toggle_checkbox('modules');">{SECTION_MODULES}</a>
|
|
42 |
<label for="modules">{SECTION_MODULES}</label>
|
|
43 | 43 |
</td> |
44 | 44 |
<td> |
45 | 45 |
<input type="checkbox" name="templates" id="templates" value="1" {templates_checked} /> |
46 |
<a href="javascript: toggle_checkbox('templates');">{SECTION_TEMPLATES}</a>
|
|
46 |
<label for="templates">{SECTION_TEMPLATES}</label>
|
|
47 | 47 |
</td> |
48 | 48 |
</tr> |
49 | 49 |
<tr> |
50 | 50 |
<td> |
51 | 51 |
<input type="checkbox" name="languages" id="languages" value="1" {languages_checked} /> |
52 |
<a href="javascript: toggle_checkbox('languages');">{SECTION_LANGUAGES}</a>
|
|
52 |
<label for="languages">{SECTION_LANGUAGES}</label>
|
|
53 | 53 |
</td> |
54 | 54 |
<td> |
55 | 55 |
<input type="checkbox" name="settings" id="settings" value="1" {settings_checked} /> |
56 |
<a href="javascript: toggle_checkbox('settings');">{SECTION_SETTINGS}</a>
|
|
56 |
<label for="settings">{SECTION_SETTINGS}</label>
|
|
57 | 57 |
</td> |
58 | 58 |
<td> |
59 | 59 |
<input type="checkbox" name="users" id="users" value="1" {users_checked} /> |
60 |
<a href="javascript: toggle_checkbox('users');">{SECTION_USERS}</a>
|
|
60 |
<label for="users">{SECTION_USERS}</label>
|
|
61 | 61 |
</td> |
62 | 62 |
<td> |
63 | 63 |
<input type="checkbox" name="groups" id="groups" value="1" {groups_checked} /> |
64 |
<a href="javascript: toggle_checkbox('groups');">{SECTION_GROUPS}</a>
|
|
64 |
<label for="groups">{SECTION_GROUPS}</label>
|
|
65 | 65 |
</td> |
66 | 66 |
</tr> |
67 | 67 |
</table> |
... | ... | |
83 | 83 |
</tr> |
84 | 84 |
<tr> |
85 | 85 |
<td><input name="pages_view" id="pages_view" type="checkbox" value="1" {pages_view_checked}></td> |
86 |
<td><a href="javascript: toggle_checkbox('pages_view');">{TEXT_VIEW}</a></td>
|
|
86 |
<td><label for="pages_view">{TEXT_VIEW}</label></td>
|
|
87 | 87 |
<td><input name="pages_add" id="pages_add" type="checkbox" value="1" {pages_add_checked}></td> |
88 | 88 |
<td> |
89 |
<a href="javascript: toggle_checkbox('pages_add');">{TEXT_ADD}</a>
|
|
89 |
<label for="pages_add">{TEXT_ADD}</label>
|
|
90 | 90 |
|
91 | 91 |
(<input name="pages_add_l0" id="pages_add_l0" type="checkbox" value="1" {pages_add_l0_checked}> |
92 |
<a href="javascript: toggle_checkbox('pages_add_l0');">{TEXT_LEVEL} 0</a>)
|
|
92 |
<label for="pages_add_l0">{TEXT_LEVEL} 0</label>)
|
|
93 | 93 |
</td> |
94 | 94 |
</tr> |
95 | 95 |
<tr> |
96 | 96 |
<td><input name="pages_settings" id="pages_settings" type="checkbox" value="1" {pages_settings_checked}></td> |
97 |
<td><a href="javascript: toggle_checkbox('pages_settings');">{TEXT_MODIFY_SETTINGS}</a></td>
|
|
97 |
<td><label for="pages_settings">{TEXT_MODIFY_SETTINGS}</label></td>
|
|
98 | 98 |
<td><input name="pages_modify" id="pages_modify" type="checkbox" value="1" {pages_modify_checked}></td> |
99 |
<td><a href="javascript: toggle_checkbox('pages_modify');">{TEXT_MODIFY_CONTENT}</a></td>
|
|
99 |
<td><label for="pages_modify">{TEXT_MODIFY_CONTENT}</label></td>
|
|
100 | 100 |
</tr> |
101 | 101 |
<tr> |
102 | 102 |
<td><input name="pages_intro" id="pages_intro" type="checkbox" value="1" {pages_intro_checked}></td> |
103 |
<td><a href="javascript: toggle_checkbox('pages_intro');">{HEADING_MODIFY_INTRO_PAGE}</a></td>
|
|
103 |
<td><label for="pages_intro">{HEADING_MODIFY_INTRO_PAGE}</label></td>
|
|
104 | 104 |
<td><input name="pages_delete" id="pages_delete" type="checkbox" value="1" {pages_delete_checked}></td> |
105 |
<td><a href="javascript: toggle_checkbox('pages_delete');">{TEXT_DELETE}</a></td>
|
|
105 |
<td><label for="pages_delete">{TEXT_DELETE}</label></td>
|
|
106 | 106 |
</tr> |
107 | 107 |
<tr> |
108 | 108 |
<td colspan="4"> |
... | ... | |
111 | 111 |
</tr> |
112 | 112 |
<tr> |
113 | 113 |
<td><input name="media_view" id="media_view" type="checkbox" value="1" {media_view_checked}></td> |
114 |
<td><a href="javascript: toggle_checkbox('media_view');">{TEXT_VIEW}</a></td>
|
|
114 |
<td><label for="media_view">{TEXT_VIEW}</label></td>
|
|
115 | 115 |
<td><input name="media_upload" id="media_upload" type="checkbox" value="1" {media_upload_checked}></td> |
116 |
<td><a href="javascript: toggle_checkbox('media_upload');">{TEXT_UPLOAD_FILES}</a></td>
|
|
116 |
<td><label for="media_upload">{TEXT_UPLOAD_FILES}</label></td>
|
|
117 | 117 |
</tr> |
118 | 118 |
<tr> |
119 | 119 |
<td><input name="media_rename" id="media_rename" type="checkbox" value="1" {media_rename_checked}></td> |
120 |
<td><a href="javascript: toggle_checkbox('media_rename');">{TEXT_RENAME}</a></td>
|
|
120 |
<td><label for="media_rename">{TEXT_RENAME}</label></td>
|
|
121 | 121 |
<td><input name="media_delete" id="media_delete" type="checkbox" value="1" {media_delete_checked}></td> |
122 |
<td><a href="javascript: toggle_checkbox('media_delete');">{TEXT_DELETE}</a></td>
|
|
122 |
<td><label for="media_delete">{TEXT_DELETE}</label></td>
|
|
123 | 123 |
</tr> |
124 | 124 |
<tr> |
125 | 125 |
<td><input name="media_create" id="media_create" type="checkbox" value="1" {media_create_checked}></td> |
126 |
<td><a href="javascript: toggle_checkbox('media_create');">{TEXT_CREATE_FOLDER}</a></td>
|
|
126 |
<td><label for="media_create">{TEXT_CREATE_FOLDER}</label></td>
|
|
127 | 127 |
<td> </td> |
128 | 128 |
<td> </td> |
129 | 129 |
</tr> |
... | ... | |
134 | 134 |
</tr> |
135 | 135 |
<tr> |
136 | 136 |
<td><input name="modules_view" id="modules_view" type="checkbox" value="1" {modules_view_checked}></td> |
137 |
<td><a href="javascript: toggle_checkbox('modules_view');">{TEXT_VIEW}</a></td>
|
|
137 |
<td><label for="modules_view">{TEXT_VIEW}</label></td>
|
|
138 | 138 |
<td><input name="modules_install" id="modules_install" type="checkbox" value="1" {modules_install_checked}></td> |
139 |
<td><a href="javascript: toggle_checkbox('modules_install');">{TEXT_ADD}</a></td>
|
|
139 |
<td><label for="modules_install">{TEXT_ADD}</label></td>
|
|
140 | 140 |
</tr> |
141 | 141 |
<tr> |
142 | 142 |
<td><input name="modules_uninstall" id="modules_uninstall" type="checkbox" value="1" {modules_uninstall_checked}></td> |
143 |
<td><a href="javascript: toggle_checkbox('modules_uninstall');">{TEXT_DELETE}</a></td>
|
|
143 |
<td><label for="modules_uninstall">{TEXT_DELETE}</label></td>
|
|
144 | 144 |
<td> </td> |
145 | 145 |
<td> </td> |
146 | 146 |
</tr> |
... | ... | |
151 | 151 |
</tr> |
152 | 152 |
<tr> |
153 | 153 |
<td><input name="templates_view" id="templates_view" type="checkbox" value="1" {templates_view_checked}></td> |
154 |
<td><a href="javascript: toggle_checkbox('templates_view');">{TEXT_VIEW}</a></td>
|
|
154 |
<td><label for="templates_view">{TEXT_VIEW}</label></td>
|
|
155 | 155 |
<td><input name="templates_install" id="templates_install" type="checkbox" value="1" {templates_install_checked}></td> |
156 |
<td><a href="javascript: toggle_checkbox('templates_install');">{TEXT_ADD}</a></td>
|
|
156 |
<td><label for="templates_install">{TEXT_ADD}</label></td>
|
|
157 | 157 |
</tr> |
158 | 158 |
<tr> |
159 | 159 |
<td><input name="templates_uninstall" id="templates_uninstall" type="checkbox" value="1" {templates_uninstall_checked}></td> |
160 |
<td><a href="javascript: toggle_checkbox('templates_uninstall');">{TEXT_DELETE}</a></td>
|
|
160 |
<td><label for="templates_uninstall">{TEXT_DELETE}</label></td>
|
|
161 | 161 |
<td> </td> |
162 | 162 |
<td> </td> |
163 | 163 |
</tr> |
... | ... | |
168 | 168 |
</tr> |
169 | 169 |
<tr> |
170 | 170 |
<td><input name="languages_view" id="languages_view" type="checkbox" value="1" {languages_view_checked}></td> |
171 |
<td><a href="javascript: toggle_checkbox('languages_view');">{TEXT_VIEW}</a></td>
|
|
171 |
<td><label for="languages_view">{TEXT_VIEW}</label></td>
|
|
172 | 172 |
<td><input name="languages_install" id="languages_install" type="checkbox" value="1" {languages_install_checked}></td> |
173 |
<td><a href="javascript: toggle_checkbox('languages_install');">{TEXT_ADD}</a></td>
|
|
173 |
<td><label for="languages_install">{TEXT_ADD}</label></td>
|
|
174 | 174 |
</tr> |
175 | 175 |
<tr> |
176 | 176 |
<td><input name="languages_uninstall" id="languages_uninstall" type="checkbox" value="1" {languages_uninstall_checked}></td> |
177 |
<td><a href="javascript: toggle_checkbox('languages_uninstall');">{TEXT_DELETE}</a></td>
|
|
177 |
<td><label for="languages_uninstall">{TEXT_DELETE}</label></td>
|
|
178 | 178 |
<td> </td> |
179 | 179 |
<td> </td> |
180 | 180 |
</tr> |
... | ... | |
185 | 185 |
</tr> |
186 | 186 |
<tr> |
187 | 187 |
<td><input name="settings_basic" id="settings_basic" type="checkbox" value="1" {settings_basic_checked}></td> |
188 |
<td><a href="javascript: toggle_checkbox('settings_basic');">{TEXT_BASIC}</a></td>
|
|
188 |
<td><label for="settings_basic">{TEXT_BASIC}</label></td>
|
|
189 | 189 |
<td><input name="settings_advanced" id="settings_advanced" type="checkbox" value="1" {settings_advanced_checked}></td> |
190 |
<td><a href="javascript: toggle_checkbox('settings_advanced');">{TEXT_ADVANCED}</a></td>
|
|
190 |
<td><label for="settings_advanced">{TEXT_ADVANCED}</label></td>
|
|
191 | 191 |
</tr> |
192 | 192 |
<tr> |
193 | 193 |
<td colspan="4"> |
... | ... | |
196 | 196 |
</tr> |
197 | 197 |
<tr> |
198 | 198 |
<td><input name="users_view" id="users_view" type="checkbox" value="1" {users_view_checked}></td> |
199 |
<td><a href="javascript: toggle_checkbox('users_view');">{TEXT_VIEW}</a></td>
|
|
199 |
<td><label for="users_view">{TEXT_VIEW}</label></td>
|
|
200 | 200 |
<td><input name="users_add" id="users_add" type="checkbox" value="1" {users_add_checked}></td> |
201 |
<td><a href="javascript: toggle_checkbox('users_add');">{TEXT_ADD}</a></td>
|
|
201 |
<td><label for="users_add">{TEXT_ADD}</label></td>
|
|
202 | 202 |
</tr> |
203 | 203 |
<tr> |
204 | 204 |
<td><input name="users_modify" id="users_modify" type="checkbox" value="1" {users_modify_checked}></td> |
205 |
<td><a href="javascript: toggle_checkbox('users_modify');">{TEXT_MODIFY}</a></td>
|
|
205 |
<td><label for="users_modify">{TEXT_MODIFY}</label></td>
|
|
206 | 206 |
<td><input name="users_delete" id="users_delete" type="checkbox" value="1" {users_delete_checked}></td> |
207 |
<td><a href="javascript: toggle_checkbox('users_delete');">{TEXT_DELETE}</a></td>
|
|
207 |
<td><label for="users_delete">{TEXT_DELETE}</label></td>
|
|
208 | 208 |
</tr> |
209 | 209 |
<tr> |
210 | 210 |
<td colspan="4"> |
... | ... | |
213 | 213 |
</tr> |
214 | 214 |
<tr> |
215 | 215 |
<td><input name="groups_view" id="groups_view" type="checkbox" value="1" {groups_view_checked}></td> |
216 |
<td><a href="javascript: toggle_checkbox('groups_view');">{TEXT_VIEW}</a></td>
|
|
216 |
<td><label for="groups_view">{TEXT_VIEW}</label></td>
|
|
217 | 217 |
<td><input name="groups_add" id="groups_add" type="checkbox" value="1" {groups_add_checked}></td> |
218 |
<td><a href="javascript: toggle_checkbox('groups_add');">{TEXT_ADD}</a></td>
|
|
218 |
<td><label for="groups_add">{TEXT_ADD}</label></td>
|
|
219 | 219 |
</tr> |
220 | 220 |
<tr> |
221 | 221 |
<td><input name="groups_modify" id="groups_modify" type="checkbox" value="1" {groups_modify_checked}></td> |
222 |
<td><a href="javascript: toggle_checkbox('groups_modify');">{TEXT_MODIFY}</a></td>
|
|
222 |
<td><label for="groups_modify">{TEXT_MODIFY}</label></td>
|
|
223 | 223 |
<td><input name="groups_delete" id="groups_delete" type="checkbox" value="1" {groups_delete_checked}></td> |
224 |
<td><a href="javascript: toggle_checkbox('groups_delete');">{TEXT_DELETE}</a></td>
|
|
224 |
<td><label for="groups_delete">{TEXT_DELETE}</label></td>
|
|
225 | 225 |
</tr> |
226 | 226 |
</table> |
227 | 227 |
|
... | ... | |
240 | 240 |
<!-- BEGIN module_list_block --> |
241 | 241 |
<li> |
242 | 242 |
<input type="checkbox" name="module_permissions[]" id="m_{VALUE}" value="{VALUE}" {CHECKED} /> |
243 |
<a href="javascript: toggle_checkbox('m_{VALUE}');">{NAME}</a>
|
|
243 |
<label for="m_{VALUE}">{NAME}</label>
|
|
244 | 244 |
</li> |
245 | 245 |
<!-- END module_list_block --> |
246 | 246 |
</ul> |
... | ... | |
253 | 253 |
<!-- BEGIN template_list_block --> |
254 | 254 |
<li> |
255 | 255 |
<input type="checkbox" name="template_permissions[]" id="t_{VALUE}" value="{VALUE}" {CHECKED} /> |
256 |
<a href="javascript: toggle_checkbox('t_{VALUE}');">{NAME}</a>
|
|
256 |
<label for="t_{VALUE}">{NAME}</label>
|
|
257 | 257 |
</li> |
258 | 258 |
<!-- END template_list_block --> |
259 | 259 |
</ul> |
trunk/wb/admin/media/rename.html | ||
---|---|---|
29 | 29 |
<tr> |
30 | 30 |
<td colspan="2"> |
31 | 31 |
<input type="checkbox" name="overwrite" id="overwrite" value="yes" /> |
32 |
<a href="javascript: toggle_checkbox('overwrite');">
|
|
32 |
<label for="overwrite">
|
|
33 | 33 |
{TEXT_OVERWRITE_EXISTING} {TYPE} |
34 |
</a>
|
|
34 |
</label>
|
|
35 | 35 |
</td> |
36 | 36 |
</tr> |
37 | 37 |
<tr> |
trunk/wb/admin/media/basic_header.html | ||
---|---|---|
14 | 14 |
height: 100px; |
15 | 15 |
} |
16 | 16 |
</style> |
17 |
<script language="javascript" type="text/javascript"> |
|
18 |
function toggle_checkbox(checkbox_id) { |
|
19 |
if(document.getElementById(checkbox_id).checked == true) { |
|
20 |
document.getElementById(checkbox_id).checked = false; |
|
21 |
} else { |
|
22 |
document.getElementById(checkbox_id).checked = true; |
|
23 |
} |
|
24 |
} |
|
25 |
</script> |
|
26 | 17 |
</head> |
27 | 18 |
<body> |
28 | 19 |
|
trunk/wb/admin/media/template.html | ||
---|---|---|
69 | 69 |
<tr> |
70 | 70 |
<td> |
71 | 71 |
<input type="checkbox" name="overwrite" id="overwrite" value="yes" /> |
72 |
<a href="javascript: toggle_checkbox('overwrite');">
|
|
72 |
<label for="overwrite">
|
|
73 | 73 |
{TEXT_OVERWRITE_EXISTING} {TEXT_FILES} |
74 |
</a>
|
|
74 |
</label>
|
|
75 | 75 |
</td> |
76 | 76 |
<td width="160"> |
77 | 77 |
<input type="submit" name="submit" value="{TEXT_UPLOAD_FILES}" style="width: 160px;" /> |
trunk/wb/admin/pages/settings.html | ||
---|---|---|
51 | 51 |
<!-- BEGIN group_list_block --> |
52 | 52 |
<li> |
53 | 53 |
<input type="checkbox" name="admin_groups[]" id="admin_group_{ID}" value="{ID}"{CHECKED}{DISABLED} /> |
54 |
<a href="javascript: toggle_checkbox('admin_group_{TOGGLE}');" style="color: #{LINK_COLOR}; cursor: {CURSOR};">{NAME}</a>
|
|
54 |
<label for="admin_group_{TOGGLE}">{NAME}</label>
|
|
55 | 55 |
</li> |
56 | 56 |
<!-- END group_list_block --> |
57 | 57 |
</ul> |
... | ... | |
63 | 63 |
<!-- BEGIN group_list_block2 --> |
64 | 64 |
<li> |
65 | 65 |
<input type="checkbox" name="viewing_groups[]" id="viewing_group_{ID}" value="{ID}"{CHECKED}{DISABLED} /> |
66 |
<a href="javascript: toggle_checkbox('viewing_group_{TOGGLE}');" style="color: #{LINK_COLOR}; cursor: {CURSOR};">{NAME}</a>
|
|
66 |
<label for="viewing_group_{TOGGLE}">{NAME}</label>
|
|
67 | 67 |
</li> |
68 | 68 |
<!-- END group_list_block2 --> |
69 | 69 |
</ul> |
... | ... | |
76 | 76 |
<!-- BEGIN group_list_block2 --> |
77 | 77 |
<li> |
78 | 78 |
<input type="checkbox" name="viewing_groups[]" id="viewing_group_{ID}" value="{ID}"{CHECKED}{DISABLED} /> |
79 |
<a href="javascript: toggle_checkbox('viewing_group_{TOGGLE}');" style="color: #{LINK_COLOR}; cursor: {CURSOR};">{NAME}</a>
|
|
79 |
<label for="viewing_group_{TOGGLE}">{NAME}</label>
|
|
80 | 80 |
</li> |
81 | 81 |
<!-- END group_list_block2 --> |
82 | 82 |
</ul> |
trunk/wb/admin/pages/template.html | ||
---|---|---|
21 | 21 |
<!-- BEGIN group_list_block --> |
22 | 22 |
<li> |
23 | 23 |
<input type="checkbox" name="admin_groups[]" id="admin_group_{ID}" value="{ID}"{CHECKED}{DISABLED} /> |
24 |
<a href="javascript: toggle_checkbox('admin_group_{TOGGLE}');" style="color: #{LINK_COLOR}; cursor: {CURSOR};">{NAME}</a>
|
|
24 |
<label for="admin_group_{TOGGLE}">{NAME}</label>
|
|
25 | 25 |
</li> |
26 | 26 |
<!-- END group_list_block --> |
27 | 27 |
</ul> |
... | ... | |
33 | 33 |
<!-- BEGIN group_list_block2 --> |
34 | 34 |
<li> |
35 | 35 |
<input type="checkbox" name="viewing_groups[]" id="viewing_group_{ID}" value="{ID}"{CHECKED}{DISABLED} /> |
36 |
<a href="javascript: toggle_checkbox('viewing_group_{TOGGLE}');" style="color: #{LINK_COLOR}; cursor: {CURSOR};">{NAME}</a>
|
|
36 |
<label for="viewing_group_{TOGGLE}">{NAME}</label>
|
|
37 | 37 |
</li> |
38 | 38 |
<!-- END group_list_block2 --> |
39 | 39 |
</ul> |
... | ... | |
46 | 46 |
<!-- BEGIN group_list_block2 --> |
47 | 47 |
<li> |
48 | 48 |
<input type="checkbox" name="viewing_groups[]" id="viewing_group_{ID}" value="{ID}"{CHECKED}{DISABLED} /> |
49 |
<a href="javascript: toggle_checkbox('viewing_group_{TOGGLE}');" style="color: #{LINK_COLOR}; cursor: {CURSOR};">{NAME}</a>
|
|
49 |
<label for="viewing_group_{TOGGLE}">{NAME}</label>
|
|
50 | 50 |
</li> |
51 | 51 |
<!-- END group_list_block2 --> |
52 | 52 |
</ul> |
trunk/wb/admin/interface/header.html | ||
---|---|---|
5 | 5 |
<title>{WEBSITE_TITLE} >> {TEXT_ADMINISTRATION} - {SECTION_NAME}</title> |
6 | 6 |
<link href="{INTERFACE_DIR}/stylesheet.css" rel="stylesheet" type="text/css" /> |
7 | 7 |
<script language="javascript" type="text/javascript"> |
8 |
function toggle_checkbox(checkbox_id) { |
|
9 |
if(document.getElementById(checkbox_id).checked == true) { |
|
10 |
document.getElementById(checkbox_id).checked = false; |
|
11 |
} else { |
|
12 |
document.getElementById(checkbox_id).checked = true; |
|
13 |
} |
|
14 |
} |
|
15 | 8 |
function confirm_link(message, url) { |
16 | 9 |
if(confirm(message)) location.href = url; |
17 | 10 |
}</script> |
trunk/wb/admin/settings/template.html | ||
---|---|---|
400 | 400 |
<input type="checkbox" name="world_writeable" id="world_writeable" style="width: 14px; height: 14px;" value="true"{WORLD_WRITEABLE_SELECTED} /> |
401 | 401 |
<label for="world_writeable"> |
402 | 402 |
{TEXT_WORLD_WRITEABLE_FILE_PERMISSIONS} (777) |
403 |
</font>
|
|
403 |
</label>
|
|
404 | 404 |
<br /> |
405 | 405 |
<font class="note">({WORLD_WRITEABLE_WARNING})</font> |
406 | 406 |
</div> |
trunk/wb/admin/users/user_form.html | ||
---|---|---|
1 | 1 |
<!-- BEGIN main_block --> |
2 | 2 |
|
3 |
<script language="javascript" type="text/javascript">
|
|
4 |
function toggle_radio(radio_on, radio_off) {
|
|
3 |
<script language="javascript" type="text/javascript"> |
|
4 |
function toggle_radio(radio_on, radio_off) { |
|
5 | 5 |
document.getElementById(radio_on).checked = true; |
6 |
document.getElementById(radio_off).checked = true;
|
|
7 |
}
|
|
6 |
document.getElementById(radio_off).checked = true; |
|
7 |
} |
|
8 | 8 |
</script> |
9 | 9 |
|
10 | 10 |
<style> |
... | ... | |
81 | 81 |
<td> </td> |
82 | 82 |
<td> |
83 | 83 |
<input type="radio" name="active[]" id="active" value="1" {ACTIVE_CHECKED} /> |
84 |
<a href="javascript: toggle_radio('disabled', 'active');">{TEXT_ACTIVE}</a>
|
|
84 |
<label for="active">{TEXT_ACTIVE}</label>
|
|
85 | 85 |
<input type="radio" name="active[]" id="disabled" value="0" {DISABLED_CHECKED} /> |
86 |
<a href="javascript: toggle_radio('active', 'disabled');">{TEXT_DISABLED}</a>
|
|
86 |
<label for="disabled">{TEXT_DISABLED}</label>
|
|
87 | 87 |
</td> |
88 | 88 |
</tr> |
89 | 89 |
<tr> |
trunk/wb/admin/login/template.html | ||
---|---|---|
4 | 4 |
<head> |
5 | 5 |
<title>{TEXT_LOGIN}</title> |
6 | 6 |
<link href="{INTERFACE_DIR_URL}/stylesheet.css" rel="stylesheet" type="text/css"> |
7 |
<script language="javascript" type="text/javascript"> |
|
8 |
function toggle_checkbox(checkbox_id) { |
|
9 |
if(document.getElementById(checkbox_id).checked == true) { |
|
10 |
document.getElementById(checkbox_id).checked = false; |
|
11 |
} else { |
|
12 |
document.getElementById(checkbox_id).checked = true; |
|
13 |
} |
|
14 |
} |
|
15 |
</script> |
|
16 | 7 |
</head> |
17 | 8 |
<body onload="document.login.{USERNAME_FIELDNAME}.focus();"> |
18 | 9 |
|
... | ... | |
56 | 47 |
<td> </td> |
57 | 48 |
<td> |
58 | 49 |
<input type="checkbox" name="remember" id="remember" value="true" /> |
59 |
<font onclick="javascript: toggle_checkbox('remember');" style="cursor: pointer;">
|
|
50 |
<label for="remember">
|
|
60 | 51 |
{TEXT_REMEMBER_ME} |
61 |
</font>
|
|
52 |
</label>
|
|
62 | 53 |
</td> |
63 | 54 |
</tr> |
64 | 55 |
<tr height="30"> |
trunk/wb/modules/news/modify_group.php | ||
---|---|---|
61 | 61 |
<a href="<?php echo WB_URL.MEDIA_DIRECTORY; ?>/.news/image<?php echo $group_id; ?>.jpg" target="_blank">View</a> |
62 | 62 |
|
63 | 63 |
<input type="checkbox" name="delete_image" id="delete_image" value="true" /> |
64 |
<a href="javascript: toggle_checkbox('delete_image');">Delete</a>
|
|
64 |
<label for="delete_image">Delete</label>
|
|
65 | 65 |
</td> |
66 | 66 |
<?php } else { ?> |
67 | 67 |
<td> |
trunk/wb/account/login_form.php | ||
---|---|---|
53 | 53 |
} |
54 | 54 |
</style> |
55 | 55 |
|
56 |
<script language="javascript" type="text/javascript"> |
|
57 |
function toggle_checkbox(checkbox_id) { |
|
58 |
if(document.getElementById(checkbox_id).checked == true) { |
|
59 |
document.getElementById(checkbox_id).checked = false; |
|
60 |
} else { |
|
61 |
document.getElementById(checkbox_id).checked = true; |
|
62 |
} |
|
63 |
} |
|
64 |
</script> |
|
65 |
|
|
66 | 56 |
<h1> Login</h1> |
67 | 57 |
<?php echo $thisApp->message; ?> |
68 | 58 |
<br /> |
... | ... | |
94 | 84 |
<td> </td> |
95 | 85 |
<td> |
96 | 86 |
<input type="checkbox" name="remember" id="remember" value="true" /> |
97 |
<font onclick="javascript: toggle_checkbox('remember');" style="cursor: pointer;">
|
|
87 |
<label for="remember">
|
|
98 | 88 |
<?php echo $TEXT['REMEMBER_ME']; ?> |
99 |
</font>
|
|
89 |
</label>
|
|
100 | 90 |
</td> |
101 | 91 |
</tr> |
102 | 92 |
<?php } ?> |
Also available in: Unified diff
Applied aportale's patch to use label instead of javascript toggle code