1 <div id="p" style="float:left">
2 {foreach from=$options item=option}
3 <form action="{$action}" method="post">
5 <legend>{$option.option_name|ucfirst}</legend>
6 <input type="hidden" name="i" value="{$option.option_id}"/>
7 <input type="text" name="v" {if $option.option_modif eq 'N'}readonly="readonly" {/if}value="{$option.option_value}"/>
8 <label for="act{$option.option_id}">
9 <input type="radio" value="Y" name="a" {if $option.option_modif eq 'Y'}checked="checked" {/if}id="act{$option.option_id}" />Active
11 <label for="inact{$option.option_id}">
12 <input type="radio" value="N" name="a" {if $option.option_modif eq 'N'}checked="checked" {/if}id="inact{$option.option_id}" />Inactive
15 <button type="submit" name="edit">Edit</button>
16 <button type="submit" name="delete" value="yes">Delete</button>
21 <div style="float:right; width:30%">
22 <form action="{$action}" method="post">
24 <legend>Add new Option</legend>
25 <fieldset style="float:left; border:0">
26 <label for="name"><input type="text" name="n" id="name" value=""/> Name</label><br/>
27 <label for="value"><input type="text" name="v" value=""/> Value</label>
29 <fieldset style="float:left; border:0">
30 <label for="act"><input type="radio" value="Y" name="a" id="act" />Active</label>
31 <label for="inact"><input type="radio" value="N" name="a" id="inact" />Inactive</label>
33 <fieldset style="clear:both; border:0">
34 <button style="" type="submit">Add</button>