1 <table summary="{t}Printer{/t}" width="100%">
2 <tr>
3 <td style='width:50%; ' class='right-border'>
5 {if $StandAlone}
6 <h3>{t}General{/t}</h3>
7 <table summary="{t}Generic settings{/t}">
8 <tr>
9 <td><LABEL for="cn" >{t}Printer name{/t}</LABEL>{$must}</td>
10 <td>
11 {render acl=$cnACL}
12 <input type='text' name="cn" id="cn" size=20 maxlength=60 value="{$cn}">
13 {/render}
14 </td>
15 </tr>
16 <tr>
17 <td><LABEL for="description">{t}Description{/t}</LABEL></td>
18 <td>
19 {render acl=$descriptionACL}
20 <input type='text' id="description" name="description" size=25 maxlength=80 value="{$description}">
21 {/render}
22 </td>
23 </tr>
24 <tr>
25 <td colspan=2> </td>
26 </tr>
27 <tr>
28 <td><LABEL for="base">{t}Base{/t}</LABEL>{$must}</td>
29 <td>
30 {render acl=$baseACL}
31 {$base}
32 {/render}
33 </td>
34 </tr>
35 </table>
36 </td>
37 <td>
38 {/if}
39 <h3>{t}Details{/t}</h3>
40 <table summary="{t}Details{/t}">
41 {if !$StandAlone}
42 <tr>
43 <td><LABEL for="description">{t}Description{/t}</LABEL></td>
44 <td>
45 {render acl=$descriptionACL}
46 <input type='text' id="description" name="description" size=25 maxlength=80 value="{$description}">
47 {/render}
48 </td>
49 </tr>
50 {/if}
51 <tr>
52 <td><LABEL for="l">{t}Printer location{/t}</LABEL></td>
53 <td>
54 {render acl=$lACL}
55 <input type='text' id="l" name="l" size=30 maxlength=80 value="{$l}">
56 {/render}
57 </td>
58 </tr>
59 <tr>
60 <td><LABEL for="labeledURI">{t}Printer URL{/t}</LABEL>{$must}</td>
61 <td>
62 {render acl=$labeledURIACL}
63 <input type='text' id="labeledURI" name="labeledURI" size=30 maxlength=80 value="{$labeledURI}">
64 {/render}
65 </td>
66 </tr>
67 {if $displayServerPath && 0}
68 <tr>
69 <td>{t}PPD Provider{/t}
70 </td>
71 <td>
72 <input size=30 type='text' value='{$ppdServerPart}' name='ppdServerPart'>
73 </td>
74 </tr>
75 {/if}
76 </table>
77 <table summary="{t}Driver configuration{/t}">
78 <tr>
79 <td>
80 <br>
81 {t}Driver{/t}: <i>{$driverInfo}</i>
82 {render acl=$gotoPrinterPPDACL mode=read_active}
83 <button type='submit' name='EditDriver'>{t}Edit{/t}</button>
85 {/render}
86 {render acl=$gotoPrinterPPDACL}
87 <button type='submit' name='RemoveDriver'>{t}Remove{/t}</button>
89 {/render}
90 </td>
91 </tr>
92 </table>
93 </td>
94 </tr>
95 </table>
97 <hr>
99 <h3>{t}Permissions{/t}</h3>
100 <table summary="{t}Permissions{/t}" width="100%">
101 <tr>
102 <td style='width:50%' class='right-border'>
104 <table style="width:100%" summary='{t}Permissions{/t}'>
105 <tr>
106 <td>
107 {t}Users which are allowed to use this printer{/t}<br>
108 {render acl=$gotoUserPrinterACL}
109 <select size="1" name="UserMember[]" title="{t}Users{/t}" style="width:100%;height:120px;" multiple>
110 {html_options options=$UserMembers values=$UserMemberKeys}
111 </select><br>
112 {/render}
113 {render acl=$gotoUserPrinterACL}
114 <button type='submit' name='AddUser'>{msgPool type=addButton}</button>
116 {/render}
117 {render acl=$gotoUserPrinterACL}
118 <button type='submit' name='DelUser'>{msgPool type=delButton}</button>
120 {/render}
121 </td>
122 </tr>
123 </table>
125 </td>
126 <td>
127 <table style="width:100%" summary='{t}Permissions{/t}'>
128 <tr>
129 <td>
130 {t}Users which are allowed to administrate this printer{/t}<br>
131 {render acl=$gotoUserPrinterACL}
132 <select size="1" name="AdminMember[]" title="{t}Admins{/t}" style="width:100%;height:120px;" multiple>
133 {html_options options=$AdminMembers values=$AdminMemberKeys}
134 </select><br>
135 {/render}
136 {render acl=$gotoUserPrinterACL}
137 <button type='submit' name='AddAdminUser'>{msgPool type=addButton}</button>
139 {/render}
140 {render acl=$gotoUserPrinterACL}
141 <button type='submit' name='DelAdmin'>{msgPool type=delButton}</button>
143 {/render}
145 </td>
146 </tr>
147 </table>
149 </td>
150 </tr>
151 </table>
154 {if $netconfig ne ''}
155 <hr>
156 {$netconfig}
157 {/if}
159 <!-- Place cursor -->
160 <script language="JavaScript" type="text/javascript">
162 <!-- // First input field on page
163 if(document.mainform.cn)
164 focus_field('cn');
165 -->
166 </script>