1 {if !$is_account}
3 {else}
4 <table style='width:100%;'>
5 <tr>
6 <td style='width:50%;'>
7 <table>
8 <tr>
9 <td>{t}Device{/t} #</td>
10 <td>
11 <select name='DevID' onChange="document.mainform.submit();">
12 {foreach from=$data key=key item=item}
13 <option {if $key == $DevID} selected {/if} value='{$key}'>{$key+1}: {$item.s_Type} {$item.s_Device}</option>
14 {/foreach}
15 </select>
16 {if $data_cnt >= 3}
17 <input type="button" disabled name="dummy1" value="{msgPool type=addButton}">
18 {else}
19 <input type="submit" name="add_printer" value="{msgPool type=addButton}">
20 {/if}
21 <input type="submit" name="del_printer" value="{msgPool type=delButton}">
22 </td>
23 </tr>
24 <tr>
25 <td>{t}Type{/t}</td>
26 <td>
27 <select name='s_Type' onChange="document.mainform.submit();">
28 {html_options options=$a_Types selected=$s_Type}
29 </select>
30 </td>
31 </tr>
32 <tr>
33 <td>{t}Device{/t}</td>
34 <td>
35 <input type='text' name='s_Device' value='{$s_Device}'>
36 </td>
37 </tr>
38 <tr>
39 <td>{t}Port{/t}</td>
40 <td>
41 <input type='text' name='i_Port' value='{$i_Port}'>
42 </td>
43 </tr>
44 <tr>
45 <td>{t}Options{/t}</td>
46 <td>
47 <input type='text' name='s_Options' value='{$s_Options}'>
48 </td>
49 </tr>
50 <tr>
51 <td>{t}Write only{/t}</td>
52 <td>
53 <input {if $s_WriteOnly} checked {/if} type='checkbox' name='s_WriteOnly' value='Y' >
54 </td>
55 </tr>
56 </table>
57 </td>
58 <td>
59 {if $s_Type == "Serial"}
60 <table>
61 <tr>
62 <td>{t}Speed{/t}</td>
63 <td>
64 <select name='s_Speed'>
65 {html_options options=$a_Speeds selected=$s_Speed}
66 </select>
67 </td>
68 </tr>
69 <tr>
70 <td>{t}Flow control{/t}</td>
71 <td>
72 <select name='s_FlowControl'>
73 {html_options options=$a_FlowControl selected=$s_FlowControl}
74 </select>
75 </td>
76 </tr>
77 <tr>
78 <td>{t}Parity{/t}</td>
79 <td>
80 <select name='s_Parity'>
81 {html_options options=$a_Parities selected=$s_Parity}
82 </select>
83 </td>
84 </tr>
85 <tr>
86 <td>{t}Bits{/t}</td>
87 <td>
88 <select name='i_Bit'>
89 {html_options options=$a_Bits selected=$i_Bit}
90 </select>
91 </td>
92 </tr>
93 </table>
94 {/if}
95 </td>
96 </tr>
97 </table>
98 <input type='hidden' name="gotoLpdEnable_entry_posted" value="1">
99 <p class='seperator'>
100 </p>
101 {/if}
102 <div style='width:100%; text-align: right; padding:5px;'>
103 <input type='submit' name='gotoLpdEnable_Ok' value='{msgPool type=okButton}'>
104 <input type='submit' name='gotoLpdEnable_Close' value='{msgPool type=cancelButton}'>
105 </div>