2015-05-29 02:07:55 +03:00
< div class = "l-center" >
< div class = "l-sort clearfix noselect" >
2023-06-12 10:04:56 +02:00
< a href = "/add/dns/?domain=<?=htmlentities($_GET['domain'])?>" title = "<?=__('Add DNS Record')?>" class = "l-sort__create-btn" > < div id = "add-icon" > < / div > < div id = "tooltip" > <?=__('Add DNS Record')?> < / div > < / a >
2015-05-29 02:07:55 +03:00
< div class = "l-sort-toolbar clearfix" >
< table >
< tr >
< td class = "l-sort-toolbar__search-box" >
< form action = "/search/" method = "get" >
< input type = "hidden" name = "token" value = "<?=$_SESSION['token']?>" / >
< input type = "text" name = "q" class = "search-input" value = "<? echo isset($_POST['q']) ? htmlspecialchars($_POST['q']) : '' ?>" / >
< input type = "submit" value = "" class = "l-sort-toolbar__search" onClick = "return doSearch('/search/')" / >
< / form >
< / td >
< td class = "toggle-all" >
< input id = "toggle-all" type = "checkbox" name = "toggle-all" value = "toggle-all" >
< label for = "toggle-all" class = "check-label toggle-all" > <?=__('toggle all')?> < / label >
< / td >
< td >
< form action = "/bulk/dns/" method = "post" >
2015-11-03 01:09:40 +02:00
< input type = "hidden" name = "domain" value = "<?=htmlentities($_GET['domain'])?>" / >
2015-05-29 02:07:55 +03:00
< input type = "hidden" name = "token" value = "<?=$_SESSION['token']?>" / >
< div class = "l-select" >
2015-11-03 01:09:40 +02:00
< select name = "action" id = "" >
2015-05-29 02:07:55 +03:00
< option value = "" > <?=__('apply to selected')?> < / option >
< option value = "delete" > <?php print __('delete');?> < / option >
< / select >
< / div >
< input type = "submit" value = "" class = "l-sort-toolbar__filter-apply" / >
< / td >
< / tr >
< / table >
2013-07-11 12:58:48 +03:00
< / div >
2015-05-29 02:07:55 +03:00
< / div >
<!-- /.l - sort -->
< / div >
< div class = "l-separator" > < / div >
<!-- /.l - separator -->
2015-06-21 20:30:20 +03:00
< div class = "l-center units" >
2015-05-29 02:07:55 +03:00
2015-12-11 18:58:20 +02:00
< div class = "l-unit header" >
2015-05-29 02:07:55 +03:00
< div class = "subtitle" > <?=__('Listing')?> <?=htmlentities($_GET['domain'])?> < / div >
< / div >
< ?php
foreach ($data as $key => $value) {
++$i;
if ($data[$key]['SUSPENDED'] == 'yes') {
$status = 'suspended';
$spnd_action = 'unsuspend' ;
$spnd_confirmation = 'UNSUSPEND_RECORD_CONFIRMATION' ;
} else {
$status = 'active';
$spnd_action = 'suspend' ;
$spnd_confirmation = 'UNSUSPEND_RECORD_CONFIRMATION' ;
}
?>
2015-09-18 17:44:17 +03:00
< div class = "l-unit<? if($status == 'suspended') echo ' l-unit--suspended'; if($_SESSION['favourites']['DNS_REC'][$key] == 1) echo ' l-unit--starred';?>"
v_unit_id="<?=$key?> " v_section="dns_rec">
2015-05-29 02:07:55 +03:00
< div class = "l-unit-toolbar clearfix" >
< div class = "l-unit-toolbar__col l-unit-toolbar__col--left" >
2015-11-03 01:09:40 +02:00
< input id = "check<?=$data[$key]['ID']?>" class = "ch-toggle" type = "checkbox" name = "record[]" value = "<?=$data[$key]['ID']?>" >
< label for = "check<?=$data[$key]['ID']?>" class = "check-label" > < / label >
2015-05-29 02:07:55 +03:00
< / div >
<!-- l - unit - toolbar__col -->
< div class = "l-unit-toolbar__col l-unit-toolbar__col--right noselect" >
< div class = "actions-panel clearfix" >
2015-12-11 18:58:20 +02:00
< div class = "actions-panel__col actions-panel__edit shortcut-enter" key-action = "href" > < a href = "/edit/dns/?domain=<?=$_GET['domain']?>&record_id=<?=$data[$key]['ID']?>" > <?=__('edit')?> < i > < / i > < / a > < span class = "shortcut enter" > ↵ < / span > < / div >
< div class = "actions-panel__col actions-panel__delete shortcut-delete" key-action = "js" >
2015-05-29 02:07:55 +03:00
< a id = "delete_link_<?=$i?>" class = "data-controls do_delete" >
<?=__('delete')?> < i class = "do_delete" > < / i >
< input type = "hidden" name = "delete_url" value = "/delete/dns/?domain=<?=$_GET['domain']?>&record_id=<?=$data[$key]['ID']?>&token=<?=$_SESSION['token']?>" / >
< div id = "delete_dialog_<?=$i?>" class = "confirmation-text-delete hidden" title = "<?=__('Confirmation')?>" >
< p class = "confirmation" > <?=__('DELETE_RECORD_CONFIRMATION',$data[$key]['RECORD'])?> < / p >
< / div >
< / a >
2015-12-11 18:58:20 +02:00
< span class = "shortcut delete" > Del< / span >
2015-05-29 02:07:55 +03:00
< / div >
2014-06-16 12:28:13 +03:00
< / div >
2015-05-29 02:07:55 +03:00
<!-- /.actiona - panel -->
< / div >
<!-- l - unit - toolbar__col -->
2013-07-11 12:58:48 +03:00
< / div >
2015-05-29 02:07:55 +03:00
<!-- /.l - unit - toolbar -->
< div class = "l-unit__col l-unit__col--left clearfix" >
2016-06-26 20:58:20 +09:00
< div class = "l-unit__suspended" > <?__('suspended')?> < / div >
2016-06-24 16:35:51 +03:00
< div class = "text-center jump-small-top" >
2016-10-31 10:29:53 -04:00
< i class = "l-icon-star" title = "<?=__('save to favorites')?>" > < / i >
2015-09-18 17:44:17 +03:00
< / div >
2015-05-29 02:07:55 +03:00
< / div >
<!-- /.l - unit__col -->
< div class = "l-unit__col l-unit__col--right" >
< div class = "l-unit__stats" >
2015-07-16 02:22:24 +03:00
< div class = "clearfix l-unit__stat-col--left small" > < b > <? echo substr($data[$key]['RECORD'], 0, 14); if(strlen($data[$key]['RECORD']) > 14 ) echo '..'; ?> < / b > < / div >
2015-05-29 02:07:55 +03:00
< div class = "clearfix l-unit__stat-col--left compact" > < b > <?=$data[$key]['TYPE']?> < / b > < / div >
< div class = "clearfix l-unit__stat-col--left compact" > <?=$data[$key]['PRIORITY']?> < / div >
2023-06-04 17:56:44 +02:00
< div class = "clearfix l-unit__stat-col--left wide-4" style = "overflow: hidden; margin-bottom: 20px;" > < b > <?=htmlspecialchars($data[$key]['VALUE'], ENT_QUOTES, 'UTF-8')?> < / b > < / div >
2015-05-29 02:07:55 +03:00
< / div >
<!-- /.l - unit__stats -->
< / div >
<!-- /.l - unit__col -->
< / div >
<!-- /.l - unit -->
2015-06-21 20:30:20 +03:00
<!-- div class="l - separator"></div -->
2015-05-29 02:07:55 +03:00
<!-- /.l - separator -->
<?}?>
< / div >
< div id = "vstobjects" >
< div class = "l-separator" > < / div >
< div class = "l-center" >
2016-11-15 11:29:49 +02:00
< div class = "l-unit-ft" >
2015-05-29 02:07:55 +03:00
< table class = 'data' > < / table >
< div class = "l-unit__col l-unit__col--left clearfix" > < / div >
< div class = "data-count l-unit__col l-unit__col--right clearfix" >
< ?php
if ( $i == 1) {
echo __('1 record');
} else {
echo __('%s records',$i);
}
?>
< / div >
2015-12-11 18:58:20 +02:00
< div class = "data-count l-unit__col l-unit__col--right back clearfix" >
2016-07-03 16:26:19 +09:00
< a class = "button cancel" href = "/list/dns/" > <?=__('Back')?> < / a >
2015-12-11 18:58:20 +02:00
< / div >
2015-05-29 02:07:55 +03:00
< / div >
< / div >
< / div >