1 <h3>{t}Import jobs{/t}</h3>
2 <p>
3 {t}You can import a list of jobs into the GOsa job queue. This should be a semicolon separated list of items in the following format:{/t}
4 </p>
5 <i>{t}time stamp{/t} ; {t}MAC-address{/t} ; {t}job type{/t} ; {t}object group{/t} [ ; {t}import base{/t} ; {t}full host name{/t} ; {t}IP address{/t} ; {t}DHCP group{/t} ]</i>
6 <br>
7 <br>
8 {if !$count}
9 {t}Example{/t}:
10 <br>
11 20080626162556 <b>;</b> 00:0C:29:99:1E:37 <b>;</b> job_trigger_activate_new <b>;</b> goto-client <b>;</b> dc=test,dc=gonicus,dc=de
12 <br>
13 <br>
14 {/if}
16 <hr>
17
18 <table summary="{t}Goto import{/t}">
19 <tr>
20 <td>
21 {t}Select list to import{/t}
22 </td>
23 <td>
24 <input type='file' name='file' value="{t}Browse{/t}">
25 <button type='submit' name='import'>{t}Upload{/t}</button>
27 </td>
28 </tr>
29 </table>
31 {if $count}
32 <hr>
33 <br>
34 <br>
35 <div style='width:100%; height:300px; overflow: scroll;'>
36 <table style='width:100%; background-color: #CCCCCC; ' summary="{t}Import summary{/t}">
38 <tr>
39 <td><b>{t}Time stamp{/t}</b></td>
40 <td><b>{t}MAC{/t}</b></td>
41 <td><b>{t}Event{/t}</b></td>
42 <td><b>{t}Object group{/t}</b></td>
43 <td><b>{t}Base{/t}</b></td>
44 <td><b>{t}FQDN{/t}</b></td>
45 <td><b>{t}IP{/t}</b></td>
46 <td><b>{t}DHCP{/t}</b></td>
47 </tr>
48 {foreach from=$info item=item key=key}
49 {if $item.ERROR}
50 <tr style='background-color: #F0BBBB;'>
51 <td>{$item.TIMESTAMP}</td>
52 <td>{$item.MAC}</td>
53 <td>{$item.HEADER}</td>
54 <td>{$item.OGROUP}</td>
55 <td>{$item.BASE}</td>
56 <td>{$item.FQDN}</td>
57 <td>{$item.IP}</td>
58 <td>{$item.DHCP}</td>
59 </tr>
60 <tr style='background-color: #F0BBBB;'>
61 <td colspan="7"><b>{$item.ERROR}</b></td>
62 </tr>
63 {else}
64 {if ($key % 2)}
65 <tr class="rowxp0">
66 {else}
67 <tr class="rowxp1">
68 {/if}
69 <td>{$item.TIMESTAMP}</td>
70 <td class='left-border'>{$item.MAC}
71 </td>
72 <td class='left-border'>{$item.HEADER}
73 </td>
74 <td class='left-border'>{$item.OGROUP}
75 </td>
76 <td class='left-border'>{$item.BASE}
77 </td>
78 <td class='left-border'>{$item.FQDN}
79 </td>
80 <td class='left-border'>{$item.IP}
81 </td>
82 <td class='left-border'>{$item.DHCP}
83 </td>
84 </tr>
85 {/if}
86 {/foreach}
87 </table>
88 </div>
89 {/if}
90 <br>
91 <hr>
92 <div style='text-align:right;width:99%; padding-right:5px; padding-top:5px;'>
93 <button type='submit' name='start_import'>{t}Import{/t}</button>
95 <button type='submit' name='import_abort'>{msgPool type=backButton}</button>
97 </div>
98 <br>