</th> <td><?php echo hacklogdm::format_filesize($total_filesize); ?> </td> </tr> <tr> <th><?php _e('Total Hits:', hacklogdm::textdomain); ?> </th> <td><?php echo number_format_i18n($total_filehits); ?> </td> </tr> <tr class="alternate"> <th><?php _e('Total Bandwidth:', hacklogdm::textdomain); ?> </th> <td><?php echo hacklogdm::format_filesize($total_bandwidth); ?> </td> </tr> </table> </div> <?php } // End switch($mode)
<td valign="top"><strong><?php _e('File Description:', hacklogdm::textdomain); ?> </strong></td> <td><?php echo stripslashes($file->file_des); ?> </td> </tr> <tr> <td><strong><?php _e('File Size:', hacklogdm::textdomain); ?> </strong></td> <td><?php echo hacklogdm::format_filesize($file->file_size); ?> </td> </tr> <tr class="alternate"> <td><strong><?php _e('File Hits', hacklogdm::textdomain); ?> </strong></td> <td><?php echo number_format_i18n($file->file_hits); ?> <?php _e('hits', hacklogdm::textdomain); ?> </td>
$file_hits = intval($file->file_hits); $file_permission = hacklogdm_admin::file_permission($file->file_permission); $file_name_actual = hacklogdm::get_basename($file_name); if ($i % 2 == 0) { $style = ''; } else { $style = ' class="alternate"'; } echo "<tr{$style}>\n"; echo '<td valign="top">' . number_format_i18n($file_id) . '</td>' . "\n"; echo "<td>{$file_nicename}<br /><strong>»</strong> <i dir=\"ltr\">" . hacklogdm::snippet_text($file_name, 45) . "</i><br /><br />"; if (!$ihacklog_tab) { echo "<i>" . sprintf(__('Last Updated: %s, %s', hacklogdm::textdomain), $file_updated_time, $file_updated_date) . "</i><br /><i>" . sprintf(__('Last Downloaded: %s, %s', hacklogdm::textdomain), $file_last_downloaded_time, $file_last_downloaded_date) . "</i>"; } echo "</td>\n"; echo '<td style="text-align: center;">' . hacklogdm::format_filesize($file_size) . '</td>' . "\n"; echo !$ihacklog_tab ? '<td style="text-align: center;">' . number_format_i18n($file_hits) . '</td>' . "\n" : ''; echo '<td style="text-align: center;">' . $file_permission . '</td>' . "\n"; echo "<td>{$file_date} , {$file_time}</td>\n"; if (!$ihacklog_tab) { echo "<td style=\"text-align: center;\"><a href=\"{$base_page}&mode=edit&id={$file_id}\" class=\"edit\">" . __('Edit', hacklogdm::textdomain) . "</a></td>\n"; echo "<td style=\"text-align: center;\"><a href=\"{$base_page}&mode=delete&id={$file_id}\" class=\"delete\">" . __('Delete', hacklogdm::textdomain) . "</a></td>\n"; } else { echo "<td style=\"text-align: center;\"><input type=\"button\" onclick=\"insert_into_post({$file_id});\" class=\"button button-primary\" name=\"insertintopost\" value=\"" . __('Insert into post', 'hacklog-downloadmanager') . "\" /></td>\n"; } echo '</tr>'; $i++; } } else { echo '<tr><td colspan="9" align="center"><strong>' . __('No Files Found', hacklogdm::textdomain) . '</strong></td></tr>'; }