Skip to content

Commit efcde95

Browse files
committed
Disable checkboxes 'DNS Support', 'Mail Support' if they are set '0' in the package.
1 parent cc15e4a commit efcde95

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

web/templates/admin/add_web.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,12 @@
7373
</tr>
7474
<tr>
7575
<td class="vst-text input-label">
76-
<label><input type="checkbox" size="20" class="vst-checkbox" name="v_dns" <?php if (empty($v_dns)) echo "checked=yes"; ?>> <?php print __('DNS Support');?></label>
76+
<label><input type="checkbox" size="20" class="vst-checkbox" name="v_dns" <?php if (empty($v_dns)&&$panel[$user]['DNS_DOMAINS '] != "0") echo "checked=yes"; ?> <?php if($panel[$user]['DNS_DOMAINS'] == "0") echo "disabled" ?> ><?php print __('DNS Support');?></label>
7777
</td>
7878
</tr>
7979
<tr>
8080
<td class="vst-text input-label">
81-
<label><input type="checkbox" size="20" class="vst-checkbox" name="v_mail" <?php if (empty($v_mail)) echo "checked=yes"; ?>> <?php print __('Mail Support');?></label>
81+
<label><input type="checkbox" size="20" class="vst-checkbox" name="v_mail" <?php if (empty($v_mail)&&$panel[$user]['MAIL_DOMAINS '] != "0") echo "checked=yes"; ?> <?php if($panel[$user]['MAIL_DOMAINS'] == "0") echo "disabled" ?> ><?php print __('Mail Support');?></label>
8282
</td>
8383
</tr>
8484
<tr>

0 commit comments

Comments
 (0)