Changeset 12097 for trunk/www


Ignore:
Timestamp:
09/13/11 21:03:37 (13 years ago)
Author:
Daniela Dorner
Message:
improved layout
Location:
trunk/www/db_po
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/www/db_po/get_values.php

    r12021 r12097  
    130130            }
    131131            else
    132                 printf("<tr id='%scompare%s' style='display:' bgcolor='white'>\n", $_GET["fGetValCase"], $row0[12]);
     132            {
     133                if ($_GET["fGetValCase"]==2)
     134                    printf("<tr id='%scompare%s' style='display:' bgcolor='FAFFFA'>\n", $_GET["fGetValCase"], $row0[12]);
     135                if ($_GET["fGetValCase"]==3)
     136                    printf("<tr id='%scompare%s' style='display:' bgcolor='FAFAFF'>\n", $_GET["fGetValCase"], $row0[12]);
     137            }
    133138
    134139            //printf("<td class='indices%d' style='display:%s'> %s / %s / %s <div id='%dorigindex%s' style='display:none'>%s</div> </td>\n",
     
    152157            printf("<td id='2key%s'>%s</td>\n", $row0[0], $row0[11]);
    153158            //value
    154             printf("<td align='right' id='val%s' align='right'>%s</td>\n", $row0[0], $row0[4]);
     159            // string -> align left
     160            // rest -> align right
     161            if (strcmp('string', $row0[7])==0)
     162                printf("<td align='left' id='val%s' align='right'>%s</td>\n", $row0[0], $row0[4]);
     163            else
     164                printf("<td align='right' id='val%s' align='right'>%s</td>\n", $row0[0], $row0[4]);
    155165            //type
    156166            printf("<td id='type%s'>%s</td>\n", $row0[0], $row0[7]);
  • trunk/www/db_po/view_po.php

    r11780 r12097  
    3131
    3232
    33     printf("<table border='0' cellspacing='2px'><tbody>\n");
     33    printf("<table border='0' cellpadding='3px' style='border-spacing:10px 3px'><tbody>\n");
    3434
    3535    printf("<tr>\n");
    3636    printf("<th bgcolor='#DCFFDC'>Configuration 1</th>\n");
    37     printf("<td colspan='2' align='center'>\n");
     37    printf("<td colspan='2' align='center' bgcolor='#EEEEEE'>\n");
    3838    printf("<button onClick='get_values(2,\"all\",\"all\");get_values(3,\"all\",\"all\");CompareValues();' id='showpo' style='display:inline'>Show /<br>Compare</button>\n");
    3939    printf("</td>\n");
     
    118118
    119119        if ($i==2)
    120             printf("<td colspan='2' align='center'><button onClick='reset_dates(\"year\", \"empty\", \"empty\", 2);reset_dates(\"year\", \"empty\", \"empty\", 3);get_values(2,\"all\",\"all\");get_values(3,\"all\",\"all\");CompareValues();' id='resetdates' style='display:inline'>Reset Dates</button></td>\n");
     120            printf("<td colspan='2' align='center' bgcolor='#EEEEEE'><button onClick='reset_dates(\"year\", \"empty\", \"empty\", 2);reset_dates(\"year\", \"empty\", \"empty\", 3);get_values(2,\"all\",\"all\");get_values(3,\"all\",\"all\");CompareValues();' id='resetdates' style='display:inline'>Reset Dates</button></td>\n");
    121121    }
    122122    printf("</tr>\n");
Note: See TracChangeset for help on using the changeset viewer.