From: <mo...@us...> - 2004-03-04 06:09:34
|
Update of /cvsroot/tikiwiki/tiki/lib/wiki-plugins In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25316/lib/wiki-plugins Modified Files: wikiplugin_tracker.php Log Message: added trackeritem field type management in tracker plugin Index: wikiplugin_tracker.php =================================================================== RCS file: /cvsroot/tikiwiki/tiki/lib/wiki-plugins/wikiplugin_tracker.php,v retrieving revision 1.9 retrieving revision 1.10 diff -u -d -r1.9 -r1.10 --- wikiplugin_tracker.php 1 Mar 2004 05:01:44 -0000 1.9 +++ wikiplugin_tracker.php 4 Mar 2004 05:56:19 -0000 1.10 @@ -72,10 +72,18 @@ if ($f['type'] == 't') { $back.= "<tr><td>".$f['name']."</td><td>"; $back.= '<input type="text" size="30" name="track['.$f["fieldId"].']" value=""/>'; + } elseif ($f['type'] == 'r') { + $list = $trklib->get_all_items($f['options_array'][0],$f['options_array'][1],'o'); + $back.= "<tr><td>".$f['name']."</td><td>"; + $back.= '<select name="track['.$f["fieldId"].']">'; + foreach ($list as $key=>$item) { + $back.= '<option value="'.$key.'">'.$item.'</option>'; + } + $back.= "</select>"; } elseif ($f['type'] == 'a') { $back.= "<tr><td>".$f['name']."</td><td>"; $back.= '<textarea cols="29" rows="7" name="track['.$f["fieldId"].']" wrap="soft"></textarea>'; - } elseif ($f['type'] == 'd' or $f['type'] == 'u' or $f['type'] == 'g') { + } elseif ($f['type'] == 'd' or $f['type'] == 'u' or $f['type'] == 'g' or $f['type'] == 'r') { if ($f['type'] == 'd') { $list = split(',',$f['options']); } elseif ($f['type'] == 'u') { |