File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed
Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -524,14 +524,8 @@ public function imp_xml($body) {
524524 }
525525 }
526526 $ q_r =$ ed ->con ->select ($ db .'. ' .$ tb ,[],['limit ' =>1 ]);
527- $ opt ='' ;
528- if (!empty ($ q_r [0 ])) {
529- foreach ((array )$ q_r [0 ] as $ k =>$ r ) {
530- if ($ k !='_id ' ) $ opt .="<option value=' $ k'> $ k</option> " ;
531- }
532- }
533527 echo $ head .$ ed ->menu ($ db ,$ tb ,1 );
534- if (!in_array ($ db ,$ ed ->deny )) echo $ ed ->form ("15/ $ db/ $ tb " )."<table><tr><td>Field</td><td><select name='field'> $ opt </select ></td></tr>
528+ if (!in_array ($ db ,$ ed ->deny )) echo $ ed ->form ("15/ $ db/ $ tb " )."<table><tr><td>Field</td><td><input type='text' name='field' / ></td></tr>
535529 <tr><td>Order</td><td><select name='order'><option value='1'>ASC</option><option value='-1'>DESC</option></select></td></tr>
536530 <tr><td>Unique</td><td><select name='unique'><option value='0'>No</option><option value='1'>Yes</option></select></td></tr>
537531 <tr><td colspan='2'><button type='submit'>Create</button></td></tr></table></form> " ;
You can’t perform that action at this time.
0 commit comments