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

<tmpl_if name="error">
5
    <div id="errorMsg"><h3>ERROR</h3><ol><tmpl_var name="error"></ol></div>
6
7
8
9
</tmpl_if>

<div class="panel panel_dns_wizard">

10
    <div class="pnl_formsarea">
11
        <fieldset class="inlineLabels"><legend><tmpl_var name="dns_zone_txt"></legend>
12
13
14
15
16
17
18
19
20
21
22
23
24
            <div class="ctrlHolder">
                <label for="template_id">{tmpl_var name='template_id_txt'}</label>
                <select name="template_id" id="template_id" class="selectInput" onChange="submitForm('pageForm','dns/dns_wizard.php')">
                    {tmpl_var name='template_id_option'}
                </select>
            </div>
            <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>
25
26
27
28
29
30
31
32
                <tmpl_unless name="domain_option">
                    <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>
                </tmpl_unless>
33
34
35
36
37
38
39
40
41
42
43
            <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>
44
45
            </tmpl_if>
            <tmpl_if name="is_reseller">
46
47
48
49
50
51
52
53
                <tmpl_unless name="domain_option">
                    <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>
                </tmpl_unless>
54
55
56
57
            </tmpl_if>
            <tmpl_if name="DOMAIN_VISIBLE">
                <div class="ctrlHolder">
                    <label for="domain">{tmpl_var name='domain_txt'}</label>
58
59
60
61
62
63
64
                    <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" />
                    </tmpl_if>
65
66
67
68
69
70
71
72
                </div>
            </tmpl_if>
            <tmpl_if name="IP_VISIBLE">
                <div class="ctrlHolder">
                    <label for="ip">{tmpl_var name='ip_txt'}</label>
                    <input name="ip" id="ip" value="{tmpl_var name='ip'}" size="30" maxlength="255" type="text" class="textInput" />
                </div>
            </tmpl_if>
73
74
75
76
77
78
            <tmpl_if name="IPV6_VISIBLE">
                <div class="ctrlHolder">
                    <label for="ipv6">{tmpl_var name='ipv6_txt'}</label>
                    <input name="ipv6" id="ipv6" value="{tmpl_var name='ipv6'}" size="30" maxlength="255" type="text" class="textInput" />
                </div>
            </tmpl_if>
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
            <tmpl_if name="NS1_VISIBLE">
                <div class="ctrlHolder">
                    <label for="ns1">{tmpl_var name='ns1_txt'}</label>
                    <input name="ns1" id="ns1" value="{tmpl_var name='ns1'}" size="30" maxlength="255" type="text" class="textInput" />
                </div>
            </tmpl_if>
            <tmpl_if name="NS2_VISIBLE">
                <div class="ctrlHolder">
                    <label for="ns2">{tmpl_var name='ns2_txt'}</label>
                    <input name="ns2" id="ns2" value="{tmpl_var name='ns2'}" size="30" maxlength="255" type="text" class="textInput" />
                </div>
            </tmpl_if>
            <tmpl_if name="EMAIL_VISIBLE">
                <div class="ctrlHolder">
                    <label for="email">{tmpl_var name='email_txt'}</label>
94
95
96
                    <input name="email" id="email" value="{tmpl_var name='email'}" size="30" maxlength="255" type="text" class="textInput" />
                </div>
            </tmpl_if>
97
98
99
100
101
            <tmpl_if name="DKIM_VISIBLE">
		    <label for="dkim">{tmpl_var name='dkim_txt'}</label>
                    <input name="dkim" type="hidden" maxlength="255" type="text"/>
            </tmpl_if>

102
103
104
        </fieldset>
            
        <input type="hidden" name="create" value="0" />
105
106
            
        <div class="buttonHolder buttons">
107
108
            <button class="positive iconstxt icoPositive" type="button" value="{tmpl_var name='btn_save_txt'}" name="btn_create" onclick="document.pageForm.create.value=1; submitForm('pageForm','dns/dns_wizard.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>
109
        </div>
110
111
112
    </div>
  
</div>
Falko Timme's avatar
Falko Timme committed
113
<script language="JavaScript" type="text/javascript">
114
115
116
117
118
119
120
121
122
123
124
125
126
    jQuery('#ip').ispconfigSearch({
        dataSrc: '/dns/ajax_get_json.php?type=get_ipv4',
        resultsLimit: '$ <tmpl_var name="globalsearch_resultslimit_of_txt"> % <tmpl_var name="globalsearch_resultslimit_results_txt">',
        ResultsTextPrefix: '<tmpl_var name="globalsearch_suggestions_text_txt">',
        noResultsText: '<tmpl_var name="globalsearch_noresults_text_txt">',
        noResultsLimit: '<tmpl_var name="globalsearch_noresults_limit_txt">',
        minChars: 0,
        cssPrefix: 'df-',
        fillSearchField: true,
        fillSearchFieldWith: 'fill_text',
        searchFieldWatermark: '',
        resultBoxPosition: 'e'
    });	
Falko Timme's avatar
Falko Timme committed
127
</script>
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
<script language="JavaScript" type="text/javascript">
    jQuery('#ipv6').ispconfigSearch({
        dataSrc: '/dns/ajax_get_json.php?type=get_ipv6',
        resultsLimit: '$ <tmpl_var name="globalsearch_resultslimit_of_txt"> % <tmpl_var name="globalsearch_resultslimit_results_txt">',
        ResultsTextPrefix: '<tmpl_var name="globalsearch_suggestions_text_txt">',
        noResultsText: '<tmpl_var name="globalsearch_noresults_text_txt">',
        noResultsLimit: '<tmpl_var name="globalsearch_noresults_limit_txt">',
        minChars: 0,
        cssPrefix: 'df-',
        fillSearchField: true,
        fillSearchFieldWith: 'fill_text',
        searchFieldWatermark: '',
        resultBoxPosition: 'e'
    });
</script>