container->router; $token = $this->container->session->getCsrfToken()->getValue(); $dateFormat = $this->getContainer()->appConfig->get('dateformat', ''); $dateFormat = trim($dateFormat); $dateFormat = !empty($dateFormat) ? $dateFormat : Text::_('DATE_FORMAT_LC4'); $dateFormat = !empty($dateFormat) ? $dateFormat : Text::_('DATE_FORMAT_LC4'); ?>

list)): ?> list as $record):?> backupTypes)) { $type = $this->backupTypes[$record['type']]; } else { $type = '–'; } $startTime = new \Awf\Date\Date($record['backupstart']); $endTime = new \Awf\Date\Date($record['backupend']); $duration = $endTime->toUnix() - $startTime->toUnix(); if ($duration > 0) { $seconds = $duration % 60; $duration = $duration - $seconds; $minutes = ($duration % 3600) / 60; $duration = $duration - $minutes * 60; $hours = $duration / 3600; $duration = sprintf('%02d', $hours) . ':' . sprintf('%02d', $minutes) . ':' . sprintf('%02d', $seconds); } else { $duration = '-'; } $filename_col = ''; if (!empty($record['remote_filename'])) { // If we have a remote filename we allow for remote file management in the Pro release $remoteManagementLabel = Text::_('STATS_LABEL_REMOTEFILEMGMT'); $cancelLabel = Text::_('SOLO_MANAGE_LBL_CANCELMODAL'); $url = $router->route('index.php?view=remotefiles&tmpl=component&task=listActions&id=' . $record['id']); $filename_col = <<< HTML HTML; if ($record['meta'] != 'obsolete') { $filename_col .= '
' . Text::_('REMOTEFILES_LBL_LOCALFILEHEADER'); } } elseif (@empty($record['remote_filename']) && ($this->enginesPerProfile[$record['profile_id']] != 'none') && ($record['meta'] != 'obsolete')) { $postProcEngine = $this->enginesPerProfile[$record['profile_id']]; if (!empty($postProcEngine)) { $url = $router->route('index.php?view=upload&tmpl=component&task=start&id=' . $record['id']); $title = Text::sprintf('AKEEBA_TRANSFER_DESC', Text::_("ENGINE_POSTPROC_{$postProcEngine}_TITLE")); $label = Text::_('AKEEBA_TRANSFER_TITLE') . ' (' . $postProcEngine . ')'; $filename_col .= <<< HTML HTML; $filename_col .= '
' . Text::_('REMOTEFILES_LBL_LOCALFILEHEADER'); } } if ($record['meta'] == 'ok') { // Get the download links for downloads for completed, valid backups $thisPart = ''; $thisID = urlencode($record['id']); $filename_col .= '' . $record['archivename'] . "
"; if ($record['multipart'] == 0) { // Single part file -- Create a simple link $filename_col .= "" . Text::_('STATS_LOG_DOWNLOAD') . ""; } else { for ($count = 0; $count < $record['multipart']; $count++) { $thisPart = urlencode($count); $label = Text::sprintf('STATS_LABEL_PART', $count); $filename_col .= ($count > 0) ? ' • ' : ''; $filename_col .= "$label"; } } } else { // If the backup is not complete, just show dashes if (empty($filename_col)) { $filename_col .= '—'; } } // If there is a backup ID, show the view log button if (($record['meta'] == 'ok') && isset($record['backupid']) && !empty($record['backupid'])) { $viewLogTag = $record['tag'] . '.' . $record['backupid']; $viewLogUrl = $router->route('index.php?view=log&tag=' . $viewLogTag . '&profileid=' . $record['profile_id']); $viewLogLabel = Text::_('VIEWLOG'); $filename_col .= '
' . '' . $viewLogLabel . ''; } // Label class based on status $status = Text::_('STATS_LABEL_STATUS_' . $record['meta']); $statusClass = ''; switch ($record['meta']) { case 'ok': $statusClass = 'label-success'; break; case 'pending': $statusClass = 'label-warning'; break; case 'fail': $statusClass = 'label-danger'; break; case 'remote': $statusClass = 'label-info'; break; default: $statusClass = 'label-default'; break; } $edit_link = $router->route('index.php?view=manage&task=showComment&id=' . $record['id'] . '&token=' . $token); if (empty($record['description'])) { $record['description'] = Text::_('STATS_LABEL_NODESCRIPTION'); } ?>
lists->order_Dir, $this->lists->order, 'default'); ?> lists->order_Dir, $this->lists->order, 'default'); ?> lists->order_Dir, $this->lists->order, 'default'); ?>
profileList, 'filter_profile', array('onchange' => "document.forms.adminForm.submit()", 'class' => 'form-control'), 'value', 'text', $this->lists->fltProfile); ?>
pagination->getListFooter(); ?>
escape($record['description']) ?>
format($dateFormat, true); ?>