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/user.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" 
     
    117118          "<tbody>", 
    118119          getenv("SCRIPT_NAME"), 
     120          variable_get("module"), 
    119121          CONTENT_TABLE_CLASS, 
    120122          USER_HEADLINE, 
     
    149151                "<td width=\"160\">%s</td>\n" 
    150152                "<td width=\"160\">" 
    151                 "<input type=\"button\" onClick=\"location='%s?command=detail&amp;id=%s'\" value=\"%s\" />&nbsp;" 
    152                 "<input type=\"button\" onClick=\"location='%s?command=delete&amp;id=%s'\" value=\"%s\" />" 
     153                "<input type=\"button\" onClick=\"location='%s?module=%s&command=detail&amp;id=%s'\" value=\"%s\" />&nbsp;" 
     154                "<input type=\"button\" onClick=\"location='%s?module=%s&command=delete&amp;id=%s'\" value=\"%s\" />" 
    153155                "</td>\n" 
    154156                "</tr>\n", 
     
    160162                argument_get_part(passwd, 6), 
    161163                getenv("SCRIPT_NAME"), 
     164                variable_get("module"), 
    162165                argument_get_part(passwd, 0), 
    163166                USER_BUTTON_MODIFY, 
    164167                getenv("SCRIPT_NAME"), 
     168                variable_get("module"), 
    165169                argument_get_part(passwd, 0), 
    166170                USER_BUTTON_DELETE); 
     
    177181          "<tr>\n" 
    178182          "<td colspan=\"7\" align=\"right\">\n" 
    179           "<a class=\"%s\" href=\"#\" onClick=\"location='%s?command=new'\"><div class=\"%s\">%s</div></a>\n" 
     183          "<a class=\"%s\" href=\"#\" onClick=\"location='%s?module=%s&command=new'\"><div class=\"%s\">%s</div></a>\n" 
    180184          "</td>\n" 
    181185          "</tr>\n" 
     
    187191          CONTENT_LINK_AQUA_CLASS, 
    188192          getenv("SCRIPT_NAME"), 
     193          variable_get("module"), 
    189194          CONTENT_BUTTON_AQUA_CLASS, 
    190195          USER_BUTTON_NEW); 
     
    218223      if (!strcmp(argument_get_part(passwd, 0), username)) { 
    219224         printf("<form action=\"%s\" method=\"post\">\n" 
     225                "<input type=\"hidden\" name=\"module\" value=\"%s\" />\n" 
    220226                "<input type=\"hidden\" name=\"command\" value=\"update\" />\n" 
    221227                "<input type=\"hidden\" name=\"id\" value=\"%s\" />\n" 
     
    260266                , 
    261267                getenv("SCRIPT_NAME"), 
     268                variable_get("module"), 
    262269                argument_get_part(passwd, 0), 
    263270                CONTENT_TABLE_BOX_CLASS, 
     
    432439          "<br />%s<br /><br />\n" 
    433440          "<form action=\"%s\" method=\"post\">\n" 
     441          "<input type=\"hidden\" name=\"module\" value=\"%s\" />\n" 
    434442          "<input type=\"hidden\" name=\"command\" value=\"add\" />\n" 
    435443          "<table class=\"%s\" width=\"100%%\">\n" 
     
    470478          USER_NEW, 
    471479          getenv("SCRIPT_NAME"), 
     480          variable_get("module"), 
    472481          CONTENT_TABLE_BOX_CLASS, 
    473482          USER_TABLE_DESCRIPTION,