From d98d46f3370fa1dba62f1d3564fb05c14dc6ac7f Mon Sep 17 00:00:00 2001
From: Cameron <e107inc@gmail.com>
Date: Thu, 21 Jan 2016 14:50:43 -0800
Subject: [PATCH] Log Plugin - Remove Page Entries : UI cleanup.

---
 e107_plugins/log/admin_config.php            | 22 +++++++++++++-------
 e107_plugins/log/languages/English_admin.php |  2 +-
 2 files changed, 16 insertions(+), 8 deletions(-)

diff --git a/e107_plugins/log/admin_config.php b/e107_plugins/log/admin_config.php
index 3cc696260..801894fb9 100644
--- a/e107_plugins/log/admin_config.php
+++ b/e107_plugins/log/admin_config.php
@@ -645,9 +645,9 @@ e107::css('inline', 'td.last.options { padding-right:20px } ');
 		function rempagePage()
 		{
 			$sql = e107::getDb();
-			$ns = e107::getRender();
 			$frm = e107::getForm();
 			$pageInfo = array();
+			$tp = e107::getParser();
 
 			$logfile = e_LOG."logp_".date("z.Y", time()).".php";
 		//	$logfile = e_PLUGIN."log/logs/logp_".date("z.Y", time()).".php";
@@ -660,6 +660,8 @@ e107::css('inline', 'td.last.options { padding-right:20px } ');
 			$row = $sql ->fetch();
 			$pageTotal = unserialize($row['log_data']);
 
+
+
 			foreach($pageInfo as $url => $tmpcon) 
 			{
 				$pageTotal[$url]['url'] = $tmpcon['url'];
@@ -674,19 +676,25 @@ e107::css('inline', 'td.last.options { padding-right:20px } ');
 			<table class='table adminlist'>
 
 			<tr>
-			<td style='width:30%' class='forumheader'>".ADSTAT_LAN_29."</td>
-			<td style='width:50%' class='forumheader'>URL</td>
-			<td style='width:30%; text-align: center;'>".ADSTAT_LAN_30." ...</td>
+			<th style='width:100px; text-align: center;'>".ADSTAT_LAN_30." ...</th>
+			<th style='width:100px' class='forumheader'>".ADSTAT_LAN_86."</th>
+			<th style='width:30%' class='forumheader'>".ADSTAT_LAN_29."</th>
+			<th style='width:auto' class='forumheader'>URL</th>
 			</tr>
 			";
 
 			foreach($pageTotal as $key => $page)
 			{
+
+				list($name,$lang) = explode("|",$key);
+
 						$text .= "
 				<tr>
-				<td style='width:30%'>{$key}</td>
-				<td style='width:50%'>".$page['url']."</td>
-				<td style='width:30%; text-align: center;'><input type='checkbox' name='remcb[]' value='{$key}' /></td>
+				<td style='width:100px; text-align: center;'><input type='checkbox' name='remcb[]' value='{$key}' /></td>
+				<td style='width:100px'>".$page['ttlv']."</td>
+				<td style='width:30%'>{$name}</td>
+				<td style='width:auto'>".$tp->text_truncate($page['url'],100)."</td>
+
 				</tr>
 				";
 			}
diff --git a/e107_plugins/log/languages/English_admin.php b/e107_plugins/log/languages/English_admin.php
index 087f3d23d..b30f44af4 100644
--- a/e107_plugins/log/languages/English_admin.php
+++ b/e107_plugins/log/languages/English_admin.php
@@ -95,7 +95,7 @@ define ('ADSTAT_LAN_82', 'Following values now set:');
 define ('ADSTAT_LAN_83', 'Following log ID entries removed:');
 define ('ADSTAT_LAN_84', 'This proceedure will overwrite the log statistic summaries in your database. (raw log files are left unchanged) Once replaced, the data cannot be recovered. Please backup or export your database first');
 define ('ADSTAT_LAN_85', '[x] log files have been found. Click the button below to process these files.');
-
+define ('ADSTAT_LAN_86', 'Total Hits');
 
 
 ?>
\ No newline at end of file