Back to index

courier  0.68.2
Functions
logindomainlist.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void print_logindomainlist (FILE *)

Function Documentation

void print_logindomainlist ( FILE *  )

Definition at line 670 of file logindomainlist.c.

{
       char defaultdomain[LINELEN]="";
       char modifierfield[LINELEN]="";

       /* get default domain field and the corresponding default
        * group field (if applicable) from fp. */       
       get_defaultdomainfields(fp, defaultdomain, modifierfield);


       /* There are basically two ways to graphically display the
        * default domain.
        *
        * 1.) As a hidden field with descriptive text.
        * 2.) As a drop down menu with a defaulted option.
        *
        * The modifiers '@' and '*' display a hidden field.
        *
        * If the modifier field contains anything else, then we
        * consider it's contents a 'group' identifier and we
        * display a drop down. */
       if (strcmp(modifierfield, "@") == 0)
       {
              /* ----------------------
               * DISPLAY HIDDEN FIELD
               * ---------------------- */
              
              ldl_displayhiddenfield(defaultdomain);
       }
       else if (strcmp(modifierfield, "-") == 0)
       {
              /* ----------------------
               * DISPLAY TEXT FIELD
               * ---------------------- */

              ldl_displaytextfield(defaultdomain);
       }
       else
       {
              /* ----------------------
               * DISPLAY DROP DOWN MENU
               * ---------------------- */

              ldl_displaydropdown(fp, defaultdomain, modifierfield);
       }
}

Here is the call graph for this function:

Here is the caller graph for this function: