[Tutos-commits] CVS: tutos/php task_new.php,1.18,1.19
Projects / CRM / PLM / Calendar / Tasks / SCRUM / Test / Inventory
Brought to you by:
gokohnert
From: Gero K. <gok...@us...> - 2001-12-21 12:03:53
|
Update of /cvsroot/tutos/tutos/php In directory usw-pr-cvs1:/tmp/cvs-serv22171/php Modified Files: task_new.php Log Message: using dynamic taskstate array Index: task_new.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/task_new.php,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -r1.18 -r1.19 *** task_new.php 2001/10/03 09:23:48 1.18 --- task_new.php 2001/12/21 12:03:48 1.19 *************** *** 44,54 **** showfieldc($lang['TaskState']); echo " <TD>\n"; - for ($i = 0; $i <= 3; $i++) { - $s[$i] = ""; - } - $s[$t->state] = "SELECTED"; echo " <SELECT name=\"state\">\n"; ! for ($i = 0; $i <= 3; $i++) { ! echo " <OPTION VALUE=". $i ." ". $s[$i] .">". $lang['TaskStates'][$i] ."\n"; } echo " </SELECT>\n"; --- 44,52 ---- showfieldc($lang['TaskState']); echo " <TD>\n"; echo " <SELECT name=\"state\">\n"; ! ! @reset($lang['TaskStates']); ! while ( list ($f,$i) = @each ($lang['TaskStates']) ) { ! echo " <OPTION VALUE=". $f ." ". ($f == $t->state ? "SELECTED" : "") .">". $lang['TaskStates'][$f] ."\n"; } echo " </SELECT>\n"; |