    <div class="l-center">
      <div class="l-sort clearfix noselect">
        <div class="l-unit-toolbar__buttonstrip">
          <a class="ui-button cancel" id="btn-back" href="/list/backup/"><i class="fas fa-arrow-left status-icon blue"></i> <?=__('Back')?></a>
          <a href="/schedule/restore/?token=<?=$_SESSION['token']?>&backup=<?=htmlentities($_GET['backup'])?>" class="ui-button cancel" title="<?=__('Restore All')?>"><i class="fas fa-undo status-icon green"></i> <?=__('Restore All')?></a>
        </div>
        <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']) : '' ?>" />
                  <button type="submit" class="l-sort-toolbar__filter-apply" onclick="return doSearch('/search/')" value=""><i class="fas fa-search"></i></button>
                </form>
              </td>
              <td>
                <form action="/bulk/restore/" method="post" id="objects">
                <input type="hidden" name="token" value="<?=$_SESSION['token']?>" />
                <input type="hidden" name="backup" value="<?=htmlentities($_GET['backup']); ?>">
                <div class="l-select">
                  <select name="action">
                    <option value=""><?=__('apply to selected')?></option>
                    <option value="restore"><?php print __('restore') ?></option>
                  </select>
                </div>
                <button type="submit" class="l-sort-toolbar__filter-apply" value=""><i class="fas fa-arrow-right"></i></button>
              </td>
            </tr>
          </table>
        </div>
      </div>
    </div>

    <div class="l-separator"></div>

    <div class="l-center units animated fadeIn">
      <div class="header table-header">
          <div class="l-unit__col l-unit__col--right">
            <div>
                <div class="clearfix l-unit__stat-col--left super-compact">
                  <input id="toggle-all" type="checkbox" name="toggle-all" value="toggle-all" onchange="checkedAll('objects');">
                </div>
                <div class="clearfix l-unit__stat-col--left compact-4"><b><?php print __('Type');?></b></div>
                <div class="clearfix l-unit__stat-col--left wide-7"><b><?php print __('Details');?></b></div>
                <div class="clearfix l-unit__stat-col--left text-right compact-4"><b><?php print __('Restore');?></b></div>
            </div>
           </div>
        </div>
      
      <?
        $backup = $_GET['backup'];
        $web = explode(',',$data[$backup]['WEB']);
        foreach ($web as $key) {
          if (!empty($key)) {
            ++$i;
      ?>

      <div class="l-unit">
        <div class="l-unit__col l-unit__col--right">
            <div class="clearfix l-unit__stat-col--left super-compact">
              <input id="check<?=$i?>" class="ch-toggle" type="checkbox" name="web[]" value="<?=$key?>">
              <label for="check<?=$i++?>" class="check-label"></label>
            </div>

            <div class="clearfix l-unit__stat-col--left compact-4">
                <div class="l-unit__stat-col l-unit__stat-col--left"><?=__('Web domain')?></div>
            </div>
            <div class="clearfix l-unit__stat-col--left wide-7">
                <div class="l-unit__stat-col l-unit__stat-col--left wide-7"><b><?=$key?></b></div>
            </div>

            <!-- START QUICK ACTION TOOLBAR AREA -->
            <div class="clearfix l-unit__stat-col--left compact-4 text-right">
              <div class="l-unit-toolbar__col l-unit-toolbar__col--right noselect">
                <div class="actions-panel clearfix">
                  <div class="actions-panel__col actions-panel__list shortcut-enter" key-action="href">
                    <a href="/schedule/restore/?backup=<?=$backup?>&type=web&object=<?=$key?>&token=<?=$_SESSION['token']?>" title="Restore">
                      <i class="fas fa-undo status-icon green status-icon dim"></i>
                    </a>
                  </div>
                </div>
              </div>
            </div>
            <!-- END QUICK ACTION TOOLBAR AREA -->
        </div>
      </div>

      <? }} ?>

      <?
        $mail = explode(',',$data[$backup]['MAIL']);
        foreach ($mail as $key) {
          if (!empty($key)) {
      ?>

      <div class="l-unit">
          <div class="l-unit__col l-unit__col--right">
              <div class="clearfix l-unit__stat-col--left super-compact">
                  <input id="check2<?=$i?>" class="ch-toggle" type="checkbox" name="mail[]" value="<?=$key?>">
                  <label for="check2<?=$i++?>" class="check-label"></label>
              </div>
  
              <div class="clearfix l-unit__stat-col--left compact-4">
                  <div class="l-unit__stat-col l-unit__stat-col--left"><?=__('Mail domain')?></div>
              </div>
              <div class="clearfix l-unit__stat-col--left wide-7">
                  <div class="l-unit__stat-col l-unit__stat-col--left wide-7"><b><?=$key?></b></div>
              </div>
  
              <!-- START QUICK ACTION TOOLBAR AREA -->
              <div class="clearfix l-unit__stat-col--left compact-4 text-right">
                <div class="l-unit-toolbar__col l-unit-toolbar__col--right noselect">
                  <div class="actions-panel clearfix">
                    <div class="actions-panel__col actions-panel__list shortcut-enter" key-action="href">
                      <a href="/schedule/restore/?backup=<?=$backup?>&type=mail&object=<?=$key?>&token=<?=$_SESSION['token']?>" title="Restore">
                        <i class="fas fa-undo status-icon green status-icon dim"></i>
                      </a>
                    </div>
                  </div>
                </div>
              </div>
              <!-- END QUICK ACTION TOOLBAR AREA -->
          </div>
        </div>

      <? }} ?>

      <?
        $dns = explode(',',$data[$backup]['DNS']);
        foreach ($dns as $key) {
          if (!empty($key)) {
      ?>

      <div class="l-unit">
          <div class="l-unit__col l-unit__col--right">
              <div class="clearfix l-unit__stat-col--left super-compact">
                <input id="check3<?=$i?>" class="ch-toggle" type="checkbox" name="dns[]" value="<?=$key?>">
                <label for="check3<?=$i++?>" class="check-label"></label>
              </div>
  
              <div class="clearfix l-unit__stat-col--left compact-4">
                  <div class="l-unit__stat-col l-unit__stat-col--left"><?=__('DNS domain')?></div>
              </div>
              <div class="clearfix l-unit__stat-col--left wide-7">
                  <div class="l-unit__stat-col l-unit__stat-col--left wide-7"><b><?=$key?></b></div>
              </div>
  
              <!-- START QUICK ACTION TOOLBAR AREA -->
              <div class="clearfix l-unit__stat-col--left compact-4 text-right">
                <div class="l-unit-toolbar__col l-unit-toolbar__col--right noselect">
                  <div class="actions-panel clearfix">
                    <div class="actions-panel__col actions-panel__list shortcut-enter" key-action="href">
                      <a href="/schedule/restore/?backup=<?=$backup?>&type=dns&object=<?=$key?>&token=<?=$_SESSION['token']?>" title="Restore">
                        <i class="fas fa-undo status-icon green status-icon dim"></i>
                      </a>
                    </div>
                  </div>
                </div>
              </div>
              <!-- END QUICK ACTION TOOLBAR AREA -->
          </div>
      </div>

      <? }} ?>

      <?
        $db = explode(',',$data[$backup]['DB']);
        foreach ($db as $key) {
          if (!empty($key)) {
      ?>

      <div class="l-unit">
          <div class="l-unit__col l-unit__col--right">
              <div class="clearfix l-unit__stat-col--left super-compact">
                <input id="check4<?=$i?>" class="ch-toggle" type="checkbox" name="db[]" value="<?=$key?>">
                <label for="check4<?=$i++?>" class="check-label"></label>
              </div>
  
              <div class="clearfix l-unit__stat-col--left compact-4">
                  <div class="l-unit__stat-col l-unit__stat-col--left"><?=__('Database')?></div>
              </div>
              <div class="clearfix l-unit__stat-col--left wide-7">
                  <div class="l-unit__stat-col l-unit__stat-col--left wide-7"><b><?=$key?></b></div>
              </div>
  
              <!-- START QUICK ACTION TOOLBAR AREA -->
              <div class="clearfix l-unit__stat-col--left compact-4 text-right">
                <div class="l-unit-toolbar__col l-unit-toolbar__col--right noselect">
                  <div class="actions-panel clearfix">
                    <div class="actions-panel__col actions-panel__list shortcut-enter" key-action="href">
                      <a href="/schedule/restore/?backup=<?=$backup?>&type=db&object=<?=$key?>&token=<?=$_SESSION['token']?>" title="Restore">
                        <i class="fas fa-undo status-icon green status-icon dim"></i>
                      </a>
                    </div>
                  </div>
                </div>
              </div>
              <!-- END QUICK ACTION TOOLBAR AREA -->
          </div>
      </div>

      <? }} ?>

      <?
        $backup = $_GET['backup'];
        if (!empty($data[$backup]['CRON'])) {
          if (!empty($key)) {
      ?>

      <div class="l-unit">
          <div class="l-unit__col l-unit__col--right">
              <div class="clearfix l-unit__stat-col--left super-compact">
                <input id="check5<?=$i?>" class="ch-toggle" type="checkbox" name="check" value="<?=$key?>">
                <label for="check5<?=$i++?>" class="check-label"></label>
              </div>
  
              <div class="clearfix l-unit__stat-col--left compact-4">
                  <div class="l-unit__stat-col l-unit__stat-col--left"><?=__('Cron Records')?></div>
              </div>
              <div class="clearfix l-unit__stat-col--left wide-7">
                  <div class="l-unit__stat-col l-unit__stat-col--left wide-7"><b><?='cron '.__('records')?></b></div>
              </div>
  
              <!-- START QUICK ACTION TOOLBAR AREA -->
              <div class="clearfix l-unit__stat-col--left compact-4 text-right">
                <div class="l-unit-toolbar__col l-unit-toolbar__col--right noselect">
                  <div class="actions-panel clearfix">
                    <div class="actions-panel__col actions-panel__list shortcut-enter" key-action="href">
                      <a href="/schedule/restore/?backup=<?=$backup?>&type=cron&object=records&token=<?=$_SESSION['token']?>" title="Restore">
                        <i class="fas fa-undo status-icon green status-icon dim"></i>
                      </a>
                    </div>
                  </div>
                </div>
              </div>
              <!-- END QUICK ACTION TOOLBAR AREA -->
          </div>
      </div>
      <? }} ?>

      <?
        $udir = explode(',',$data[$backup]['UDIR']);
        foreach ($udir as $key) {
          if (!empty($key)) {
      ?>

      <div class="l-unit">
          <div class="l-unit__col l-unit__col--right">
              <div class="clearfix l-unit__stat-col--left super-compact">
                <input id="check6<?=$i?>" class="ch-toggle" type="checkbox" name="udir[]" value="<?=$key?>">
                <label for="check6<?=$i++?>" class="check-label"></label>
              </div>
  
              <div class="clearfix l-unit__stat-col--left compact-4">
                  <div class="l-unit__stat-col l-unit__stat-col--left"><?=__('user dir')?></div>
              </div>
              <div class="clearfix l-unit__stat-col--left wide-7">
                  <div class="l-unit__stat-col l-unit__stat-col--left wide-7"><b><?=$key?></b></div>
              </div>
  
              <!-- START QUICK ACTION TOOLBAR AREA -->
              <div class="clearfix l-unit__stat-col--left compact-4 text-right">
                <div class="l-unit-toolbar__col l-unit-toolbar__col--right noselect">
                  <div class="actions-panel clearfix">
                    <div class="actions-panel__col actions-panel__list shortcut-enter" key-action="href">
                      <a href="/schedule/restore/?backup=<?=$backup?>&type=udir&object=<?=$key?>&token=<?=$_SESSION['token']?>" title="Restore">
                        <i class="fas fa-undo status-icon green status-icon dim"></i>
                      </a>
                    </div>
                  </div>
                </div>
              </div>
              <!-- END QUICK ACTION TOOLBAR AREA -->
          </div>
      </div>
      <? }} ?>

      <div class="l-unit">

          <div class="l-unit__col l-unit__col--right">
              <div class="clearfix l-unit__stat-col--left super-compact">
                <input id="check7<?=$i?>" class="ch-toggle" type="checkbox" name="cron" value="<?=$i?>">
                <label for="check7<?=$i++?>" class="check-label"></label>
              </div>
  
              <div class="clearfix l-unit__stat-col--left compact-4">
                  <div class="l-unit__stat-col l-unit__stat-col--left"><?=__('Cron')?></div>
              </div>
              <div class="clearfix l-unit__stat-col--left wide-7">
                  <div class="l-unit__stat-col l-unit__stat-col--left wide-7"><b>&nbsp;</b></div>
              </div>
  
              <!-- START QUICK ACTION TOOLBAR AREA -->
              <div class="clearfix l-unit__stat-col--left compact-4 text-right">
                <div class="l-unit-toolbar__col l-unit-toolbar__col--right noselect">
                  <div class="actions-panel clearfix">
                    <div class="actions-panel__col actions-panel__list shortcut-enter" key-action="href">
                      <a href="/schedule/restore/?backup=<?=$backup?>&type=cron&token=<?=$_SESSION['token']?>" title="Restore">
                        <i class="fas fa-undo status-icon green status-icon dim"></i>
                      </a>
                    </div>
                  </div>
                </div>
              </div>
              <!-- END QUICK ACTION TOOLBAR AREA -->
          </div>
      </div>
    </div>

    <div id="vstobjects">
      <div class="l-separator"></div>
      <div class="l-center">
        <div class="l-unit-ft">
          <table class='data'></table>
          <div class="data-count l-unit__col l-unit__col--right total clearfix">
            <?php
              if ( $i == 1) {
                echo __('1 item');
              } else {
                echo __('%s items',$i);
              }
            ?>
          </div>
          <div class="data-count l-unit__col l-unit__col--right back clearfix">
          </div>
        </div>
      </div>
    </div>
