Show
Ignore:
Timestamp:
10/03/07 14:04:56 (5 years ago)
Author:
andi
Message:

use module parameter instead of binary name for module lookup

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/openmct/packages/system/owi/src/interface.c

    r429 r465  
    9393   /* Start form / external table / scroll area / internal table*/ 
    9494   printf("<form action=\"%s\" method=\"post\">\n" 
     95          "<input type=\"hidden\" name=\"module\" value=\"%s\" />\n" 
    9596          "<input type=\"hidden\" name=\"command\" value=\"\" />\n" 
    9697          "<table class=\"%s\">\n" 
     
    118119          "<tbody>", 
    119120          getenv("SCRIPT_NAME"), 
     121          variable_get("module"), 
    120122          CONTENT_TABLE_CLASS, 
    121123          INTERFACE_HEADLINE, 
     
    159161                "<td width=\"160\">%s</td>\n" 
    160162                "<td width=\"160\">" 
    161                 "<input type=\"button\" onClick=\"location='%s?command=detail&amp;id=%s'\" value=\"%s\" />&nbsp;" 
    162                 "<input type=\"button\" onClick=\"location='%s?command=delete&amp;id=%s'\" value=\"%s\" />" 
     163                "<input type=\"button\" onClick=\"location='%s?module=%s&command=detail&amp;id=%s'\" value=\"%s\" />&nbsp;" 
     164                "<input type=\"button\" onClick=\"location='%s?module=%s&command=delete&amp;id=%s'\" value=\"%s\" />" 
    163165                "</td>\n" 
    164166                "</tr>\n", 
     
    170172                interface_ini[2].current ? interface_ini[2].current[1] : "", 
    171173                getenv("SCRIPT_NAME"), 
     174                variable_get("module"), 
    172175                current_interface, 
    173176                INTERFACE_BUTTON_MODIFY, 
    174177                getenv("SCRIPT_NAME"), 
     178                variable_get("module"), 
    175179                current_interface, 
    176180                INTERFACE_BUTTON_DELETE); 
     
    226230          "<tr>\n" 
    227231          "<td colspan=\"7\" align=\"right\">\n" 
    228           "<input type=\"button\" onClick=\"location='%s?command=new'\" value=\"%s\" />" 
     232          "<input type=\"button\" onClick=\"location='%s?module=%s&command=new'\" value=\"%s\" />" 
    229233          "</td>\n" 
    230234          "</tr>\n" 
     
    235239          "</form>\n", 
    236240          getenv("SCRIPT_NAME"), 
     241          variable_get("module"), 
    237242          INTERFACE_BUTTON_NEW); 
    238243} 
     
    279284            /* Print network interface */ 
    280285            printf("<form action=\"%s\" method=\"post\">\n" 
     286                   "<input type=\"hidden\" name=\"module\" value=\"%s\" />\n" 
    281287                   "<input type=\"hidden\" name=\"command\" value=\"update\" />\n" 
    282288                   "<input type=\"hidden\" name=\"id\" value=\"%s\" />\n" 
     
    309315                   , 
    310316                   getenv("SCRIPT_NAME"), 
     317                   variable_get("module"), 
    311318                   current_interface, 
    312319                   CONTENT_TABLE_BOX_CLASS,