From: <rav...@us...> - 2011-03-17 21:05:34
|
Revision: 7089 http://planeshift.svn.sourceforge.net/planeshift/?rev=7089&view=rev Author: ravna-ps Date: 2011-03-17 21:05:28 +0000 (Thu, 17 Mar 2011) Log Message: ----------- Restored the "none" option to some of the item drop downs. Modified Paths: -------------- www/webconsole-new/crafting/process.php www/webconsole-new/crafting/transforms.php Modified: www/webconsole-new/crafting/process.php =================================================================== --- www/webconsole-new/crafting/process.php 2011-03-17 20:51:28 UTC (rev 7088) +++ www/webconsole-new/crafting/process.php 2011-03-17 21:05:28 UTC (rev 7089) @@ -223,9 +223,9 @@ echo '<tr><td>Name:</td><td><input type="hidden" name="name" value="'.$row['name'].'">'.$row['name'].'</td></tr>'; echo '<tr><td>Description:</td><td><input type="text" name="description" value="'.$row['description'].'" /></td></tr>'; echo '<tr><td>Animation:</td><td><input type="text" name="animation" value="'.$row['animation'].'" /></td></tr>'; - echo '<tr><td>Work Item:</td><td>'.DrawItemSelectBox('workitem_id', $row['workitem_id'], false).'</td></tr>'; - echo '<tr><td>Equipment:</td><td>'.DrawItemSelectBox('equipment_id', $row['equipment_id'], false).'</td></tr>'; - echo '<tr><td>Garbage Item:</td><td>'.DrawItemSelectBox('garbage_id', $row['garbage_id']).'</td></tr>'; + echo '<tr><td>Work Item:</td><td>'.DrawItemSelectBox('workitem_id', $row['workitem_id'], false, true).'</td></tr>'; + echo '<tr><td>Equipment:</td><td>'.DrawItemSelectBox('equipment_id', $row['equipment_id'], false, true).'</td></tr>'; + echo '<tr><td>Garbage Item:</td><td>'.DrawItemSelectBox('garbage_id', $row['garbage_id'], true, true).'</td></tr>'; echo '<tr><td>Garbage Quantity:</td><td><input type="text" name="garbage_qty" value="'.$row['garbage_qty'].'" /></td></tr>'; $Skills = PrepSelect('skill'); echo '<tr><td>Primary Skill:</td><td>'.DrawSelectBox('skill', $Skills, 'primary_skill_id', $row['primary_skill_id'], true).'</td></tr>'; Modified: www/webconsole-new/crafting/transforms.php =================================================================== --- www/webconsole-new/crafting/transforms.php 2011-03-17 20:51:28 UTC (rev 7088) +++ www/webconsole-new/crafting/transforms.php 2011-03-17 21:05:28 UTC (rev 7089) @@ -43,9 +43,9 @@ echo '<form action="./index.php?do=transform&id='.$id.'" method="post"><table>'; echo '<tr><td colspan="2">If you change this dropdown, you will move this transformation to another pattern, moving it to "NONE" will make it "patternless".</td></tr>'; echo '<tr><td>Pattern</td><td>'.DrawSelectBox('patterns', $patterns, 'pattern_id', $row['pattern_id'], true).'</td></tr>'; - echo '<tr><td>Source Item</td><td><input type="text" name="item_qty" value="'.$row['item_qty'].'" size="4"/> '.DrawItemSelectBox('item_id', $row['item_id'], false).'</td></tr>'; + echo '<tr><td>Source Item</td><td><input type="text" name="item_qty" value="'.$row['item_qty'].'" size="4"/> '.DrawItemSelectBox('item_id', $row['item_id'], false, true).'</td></tr>'; echo '<tr><td>Process</td><td>'.DrawSelectBox('process', $process, 'process_id', $row['process_id']).'</td></tr>'; - echo '<tr><td>Result Item</td><td><input type="text" name="result_qty" value="'.$row['result_qty'].'" size="4"/> '.DrawItemSelectBox('result_id', $row['result_id']).'</td></tr>'; + echo '<tr><td>Result Item</td><td><input type="text" name="result_qty" value="'.$row['result_qty'].'" size="4"/> '.DrawItemSelectBox('result_id', $row['result_id'], true, true).'</td></tr>'; echo '<tr><td>Description</td><td><textarea name="description" rows="4" cols="40">'.$row['description'].'</textarea></td></tr>'; echo '<tr><td>Time Taken</td><td><input type="text" name="trans_points" value="'.$row['trans_points'].'"/></td></tr>'; echo '<tr><td>Resultant Quality factor(0-1)</td><td><input type="text" name="penalty_pct" value="'.$row['penalty_pct'].'"/></td></tr>'; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |