From: <tr...@us...> - 2002-09-07 13:11:48
|
Update of /cvsroot/basedb/basedb/www In directory usw-pr-cvs1:/tmp/cvs-serv10476 Modified Files: genelist_edit.phtml Log Message: improved how the form retains values on failure Index: genelist_edit.phtml =================================================================== RCS file: /cvsroot/basedb/basedb/www/genelist_edit.phtml,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** genelist_edit.phtml 29 Aug 2002 16:51:33 -0000 1.13 --- genelist_edit.phtml 7 Sep 2002 13:11:44 -0000 1.14 *************** *** 185,192 **** <tr><th colspan=4>Alter the reporter list</th></tr> <tr><th>Mode of operation</th><td colspan=3><select name=i_append> - <option value=0>Replace the entire list - <option value=1>Append reporters to list - </select></td></tr> <? } --- 185,196 ---- <tr><th colspan=4>Alter the reporter list</th></tr> <tr><th>Mode of operation</th><td colspan=3><select name=i_append> <? + $modes = array("Replace the entire list", "Append/update reporters"); + for(reset($modes); list($i, $n) = each($modes); ) + { + $sel = (isset($i_append) && $i_append == $i) ? "selected" : ""; + echo "<option value=$i $sel>".html($n, 0)."\n"; + } + echo "</select></td></tr>\n"; } *************** *** 220,227 **** isset($i_col) ? (int)$i_col : "" ?>" size=5></td></tr> <tr><th>Value column</th> ! <td><input type=text name=i_vcol value="<?= ! isset($i_vcol) ? (int)$i_vcol : "" ?>" size=5></td> ! <td class=help colspan=2>Leave this blank to get values from 1 ! and up</td></tr> <tr><td colspan=4><input type=submit value="Accept"></td></tr> --- 224,231 ---- isset($i_col) ? (int)$i_col : "" ?>" size=5></td></tr> <tr><th>Value column</th> ! <td colspan=3><input type=text name=i_vcol value="<?= ! (isset($i_vcol) && $i_vcol > 0) ? (int)$i_vcol : "" ?>" size=5> ! <span class=help>Leave this blank to get values from 1 ! and up</span></td></tr> <tr><td colspan=4><input type=submit value="Accept"></td></tr> |