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