Exemple #1
0
echo '<p>' . $GLOBALS['Language']->getText('plugin_ldap', 'ugroup_edit_group_synchro') . '</p>';
echo '<ul>';
echo '<li>' . $GLOBALS['Language']->getText('plugin_ldap', 'ugroup_edit_group_synchro_del', $GLOBALS['sys_name']) . '</li>';
echo '<li>' . $GLOBALS['Language']->getText('plugin_ldap', 'ugroup_edit_group_synchro_add', $GLOBALS['sys_name']) . '</li>';
echo '</ul>';
echo '<form name="plugin_ldap_edit_ugroup" method="post" action="">';
echo '<input type="hidden" name="ugroup_id" value="' . $ugroupId . '" />';
echo '<input type="hidden" name="func" value="' . $func . '" />';
echo '<p>' . $GLOBALS['Language']->getText('plugin_ldap', 'ugroup_edit_group_bind_with_group') . ' <input type="text" name="bind_with_group" id="group_add" value="' . $clean_ldapGroupName . '"  size="60" /></p>';
$preservingChecked = '';
if ($ldapUserGroupManager->isMembersPreserving($ugroupId)) {
    $preservingChecked = 'checked';
}
echo '<p><input type="checkbox" id="preserve_members" name="preserve_members" ' . $preservingChecked . '/>';
echo '<label for="preserve_members">' . $GLOBALS['Language']->getText('plugin_ldap', 'ugroup_edit_group_preserve_members_option') . ' (' . $GLOBALS['Language']->getText('plugin_ldap', 'ugroup_edit_group_preserve_members_info') . ')</label></p>';
$synchroChecked = '';
if ($ldapUserGroupManager->isSynchronizedUgroup($ugroupId)) {
    $synchroChecked = 'checked';
}
echo '<p><input type="checkbox" id="synchronize" name="synchronize" ' . $synchroChecked . '/>';
echo '<label for="synchronize">' . $GLOBALS['Language']->getText('plugin_ldap', 'ugroup_edit_group_synchronize_option') . ' (' . $GLOBALS['Language']->getText('plugin_ldap', 'ugroup_edit_group_synchronize_info') . ')</label></p>';
echo '<input type="submit" name="submit" value="' . $btn_update . '" />';
if ($ldapGroup !== null) {
    echo '&nbsp;&nbsp;';
    echo '<input type="submit" name="submit" value="' . $btn_unlink . '" />';
}
$GLOBALS['Response']->includeFooterJavascriptFile($pluginPath . '/scripts/autocomplete.js');
$js = "new LdapGroupAutoCompleter('group_add',\n    '" . $pluginPath . "',\n    '" . util_get_dir_image_theme() . "',\n    'group_add',\n    false);";
$GLOBALS['Response']->includeFooterJavascriptSnippet($js);
echo '</form>';
project_admin_footer(array());