- Timestamp:
- Oct 15, 2009, 5:46:03 PM (15 years ago)
- Location:
- branches/Ver2.1/xpressme_integration_kit/wp-content/plugins/xpressme
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Ver2.1/xpressme_integration_kit/wp-content/plugins/xpressme/xpressme.php
r402 r404 197 197 $xoops_config->is_wpmu 198 198 ); 199 200 echo $xpress_config->groupe_role_option(); 201 199 $lock = ($xoops_config->module_url != get_bloginfo('url')); 200 echo $xpress_config->groupe_role_option($lock); 202 201 echo $xpress_config->d3forum_option($do_message); 203 202 echo "</table>\n"; -
branches/Ver2.1/xpressme_integration_kit/wp-content/plugins/xpressme/xpressme_class.php
r402 r404 417 417 } 418 418 419 function groupe_role_option( ){419 function groupe_role_option($disible=false){ 420 420 global $wp_roles , $xoops_db; 421 421 422 if ($disible) $disible_str = ' disabled="disabled"'; else $disible_str = ''; 422 423 $form = ''; 423 424 $form .= '<tr><th><label for="role">' .__('Role Setting at Login', 'xpressme') . '</label></th>'; … … 428 429 $form .= "<tr>"; 429 430 $form .= "<td> $groupe->name </td>"; 430 $form .= "<td>\n" . '<select name="role_gid_'.$groupe->groupid . '" id="role_gid_' . $groupe->groupid . '" >' . "\n";431 $form .= "<td>\n" . '<select name="role_gid_'.$groupe->groupid . '" id="role_gid_' . $groupe->groupid . '"' . $disible_str . '>' . "\n";; 431 432 $role_list = ''; 432 433 $group_has_role = false; … … 470 471 $form .= "</tr>\n"; 471 472 } 473 if ($disible) 474 $form .= '<tr><p>' . __('Only the Admin can set Group Role Setting','xpressme') . "</p></tr>\n"; 472 475 $form .= "</table></td></tr>\n"; 473 476 return $form;
Note: See TracChangeset
for help on using the changeset viewer.