- Timestamp:
- Oct 15, 2009, 5:46:03 PM (15 years ago)
- Location:
- trunk/xpressme_integration_kit/wp-content/plugins/xpressme
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/xpressme_integration_kit/wp-content/plugins/xpressme/xpressme.php
r402 r404 224 224 $xoops_config->is_wpmu 225 225 ); 226 227 echo $xpress_config->groupe_role_option(); 228 226 $lock = ($xoops_config->module_url != get_bloginfo('url')); 227 echo $xpress_config->groupe_role_option($lock); 229 228 echo $xpress_config->d3forum_option($do_message); 230 229 echo "</table>\n"; -
trunk/xpressme_integration_kit/wp-content/plugins/xpressme/xpressme_class.php
r402 r404 461 461 } 462 462 463 function groupe_role_option( ){463 function groupe_role_option($disible=false){ 464 464 global $wp_roles , $xoops_db; 465 465 466 if ($disible) $disible_str = ' disabled="disabled"'; else $disible_str = ''; 466 467 $form = ''; 467 468 $form .= '<tr><th><label for="role">' .__('Role Setting at Login', 'xpressme') . '</label></th>'; … … 472 473 $form .= "<tr>"; 473 474 $form .= "<td> $groupe->name </td>"; 474 $form .= "<td>\n" . '<select name="role_gid_'.$groupe->groupid . '" id="role_gid_' . $groupe->groupid . '" >' . "\n";475 $form .= "<td>\n" . '<select name="role_gid_'.$groupe->groupid . '" id="role_gid_' . $groupe->groupid . '"' . $disible_str . '>' . "\n";; 475 476 $role_list = ''; 476 477 $group_has_role = false; … … 514 515 $form .= "</tr>\n"; 515 516 } 517 if ($disible) 518 $form .= '<tr><p>' . __('Only the Admin can set Group Role Setting','xpressme') . "</p></tr>\n"; 516 519 $form .= "</table></td></tr>\n"; 517 520 return $form;
Note: See TracChangeset
for help on using the changeset viewer.