dns_import.htm 3.48 KB
Newer Older
1
2
3
4
5
<h2><tmpl_var name="list_head_txt"></h2>
<p><tmpl_var name="list_desc_txt"></p>

<div class="panel panel_dns_wizard">

6
    <div class="pnl_formsarea">
7
        <fieldset class="inlineLabels"><legend><tmpl_var name="zone_file_import_txt"></legend>
8
9
10
11
12
13
14
15
16
17
18
19
20
            <tmpl_if name="is_admin">
                <div class="ctrlHolder">
                    <label for="server_id">{tmpl_var name='server_id_txt'}</label>
                    <select name="server_id" id="server_id" class="selectInput">
                        {tmpl_var name='server_id'}
                    </select>
                </div>
                <div class="ctrlHolder">
                    <label for="client_group_id">{tmpl_var name='client_txt'}</label>
                    <select name="client_group_id" id="client_group_id" class="selectInput">
                        {tmpl_var name='client_group_id'}
                    </select>
                </div>
21
22
23
24
25
26
27
28
29
30
31
            <tmpl_else>
                <tmpl_if name="only_one_server">
                    <input type="hidden" id="server_id" name="server_id" value="{tmpl_var name='server_id_value'}" />
                <tmpl_else>
                    <div class="ctrlHolder">
                        <label for="server_id">{tmpl_var name='server_id_txt'}</label>
                        <select name="server_id" id="server_id" class="selectInput">
                            {tmpl_var name='server_id'}
                        </select>
                    </div>
                </tmpl_if>
32
33
            </tmpl_if>
            <div class="ctrlHolder">
34
                <label for="domain">{tmpl_var name='domain_txt'}</label>
35
36
37
38
39
40
41
42
                <tmpl_if name="domain_option">
                    <select name="domain" id="domain" class="selectInput">
                        {tmpl_var name='domain_option'}
                    </select>
                    <tmpl_else>
                        <input name="domain" id="domain" value="{tmpl_var name='domain'}" size="30" maxlength="255" type="text" class="textInput" onkeydown="keydown(event.which);" />
                </tmpl_if>
                <p class="value"><tmpl_var name='domain_field_desc_txt'}</p>
43
            </div>    
44
            <div class="ctrlHolder">
45
                <label for="file">{tmpl_var name='zonefile_to_import_txt'}</label>
46
47
48
49
50
51
52
53
54
55
56
57
58
                <input name="file" id="file" size="30" type="file" class="fileUpload" />
            </div>
                
            <tmpl_if name="msg">
                <div id="OKMsg"><p><tmpl_var name="msg"></p></div>
            </tmpl_if>
            <tmpl_if name="error">
                <div id="errorMsg"><h3>ERROR</h3><ol><tmpl_var name="error"></ol></div>
            </tmpl_if>
                
            <input type="hidden" name="id" value="{tmpl_var name='id'}">
                
            <div class="buttonHolder buttons">
59
60
                <button class="positive iconstxt icoPositive" type="button" value="{tmpl_var name='btn_save_txt'}" onclick="submitUploadForm('pageForm','dns/dns_import.php');"><span>{tmpl_var name='btn_save_txt'}</span></button>
                <button class="negative iconstxt icoNegative" type="button" value="{tmpl_var name='btn_cancel_txt'}" onclick="loadContent('dns/dns_soa_list.php');"><span>{tmpl_var name='btn_cancel_txt'}</span></button>
61
62
63
            </div>
                
        </fieldset>
64
65
66
    </div>
  
</div>
67
<script language="JavaScript" type="text/javascript">
68
    function keydown(keynum){
69
70
71
72
73
        if(keynum == 13){
            jQuery('.positive').trigger('click');
        }
    }
</script>