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/group.c

    r430 r465  
    9090   /* Start form / external table / scroll area / internal table*/ 
    9191   printf("<form action=\"%s\" method=\"post\">\n" 
     92          "<input type=\"hidden\" name=\"module\" value=\"%s\" />\n" 
    9293          "<input type=\"hidden\" name=\"command\" value=\"\" />\n" 
    9394          "<table class=\"%s\">\n" 
     
    116117          "<tbody>", 
    117118          getenv("SCRIPT_NAME"), 
     119          variable_get("module"), 
    118120          CONTENT_TABLE_CLASS, 
    119121          GROUP_HEADLINE, 
     
    139141                "<td>%s</td>\n" 
    140142                "<td>%s</td>\n" 
    141                 "<td><input type=\"button\" onClick=\"location='%s?command=detail&id=%s'\" value=\"%s\" />&nbsp;<input type=\"button\" onClick=\"location='%s?command=delete&id=%s'\" value=\"%s\" /></td>\n" 
     143                "<td><input type=\"button\" onClick=\"location='%s?module=%s&command=detail&id=%s'\" value=\"%s\" />&nbsp;<input type=\"button\" onClick=\"location='%s?command=delete&id=%s'\" value=\"%s\" /></td>\n" 
    142144                "</tr>\n", 
    143145                CONTENT_TABLE_CLASS_MOUSEOVER, 
     
    147149                argument_get_part(group, 3), 
    148150                getenv("SCRIPT_NAME"), 
     151                variable_get("module"), 
    149152                argument_get_part(group, 0), 
    150153                GROUP_BUTTON_MODIFY, 
     
    164167          "<tr>\n" 
    165168          "<td colspan=\"7\" align=\"right\">\n" 
    166           "<a class=\"%s\" href=\"#\" onClick=\"location='%s?command=new'\"><div class=\"%s\">%s</div></a>\n" 
     169          "<a class=\"%s\" href=\"#\" onClick=\"location='%s?module=%s&command=new'\"><div class=\"%s\">%s</div></a>\n" 
    167170          "</td>\n" 
    168171          "</tr>\n" 
     
    174177          CONTENT_LINK_AQUA_CLASS, 
    175178          getenv("SCRIPT_NAME"), 
     179          variable_get("module"), 
    176180          CONTENT_BUTTON_AQUA_CLASS, 
    177181          GROUP_BUTTON_NEW); 
     
    204208      if (!strcmp(argument_get_part(group, 0), groupname)) { 
    205209         printf("<form action=\"%s\" method=\"POST\">\n" 
     210                "<input type=\"hidden\" name=\"module\" value=\"%s\">\n" 
    206211                "<input type=\"hidden\" name=\"command\" value=\"update\">\n" 
    207212                "<input type=\"hidden\" name=\"id\" value=\"%s\">\n" 
     
    233238                , 
    234239                getenv("SCRIPT_NAME"), 
     240                variable_get("module"), 
    235241                argument_get_part(group, 0), 
    236242                CONTENT_TABLE_BOX_CLASS, 
     
    394400          "<br />%s<br /><br />\n" 
    395401          "<form action=\"%s\" method=\"post\">\n" 
     402          "<input type=\"hidden\" name=\"module\" value=\"%s\" />\n" 
    396403          "<input type=\"hidden\" name=\"command\" value=\"add\" />\n" 
    397404          "<table class=\"%s\" cellspacing=\"0\" cellpadding=\"0\" width=\"100%%\">\n" 
     
    423430          GROUP_NEW, 
    424431          getenv("SCRIPT_NAME"), 
     432          variable_get("module"), 
    425433          CONTENT_TABLE_BOX_CLASS, 
    426434          GROUP_TABLE_DESCRIPTION,