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