1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-06 06:38:00 +02:00

GUI fixes

This commit is contained in:
Cameron
2013-03-17 14:47:35 -07:00
parent 79bc376a2a
commit 0bc8c1e3e0
2 changed files with 13 additions and 11 deletions

View File

@@ -391,11 +391,11 @@ class frontpage
<td>".$title."</td> <td>".$title."</td>
<td>".$this->lookup_path($current_value['page'])."</td> <td>".$this->lookup_path($current_value['page'])."</td>
<td>".$this->lookup_path($current_value['force'])."</td> <td>".$this->lookup_path($current_value['force'])."</td>
<td class='center'> <td class='center options'>
<input class='image' type='image' src='".ADMIN_UP_ICON_PATH."' title='".FRTLAN_47."' value='".$order."' name='fp_inc".$order."' /> <input class='btn btn-large image' type='image' src='".ADMIN_UP_ICON_PATH."' title='".FRTLAN_47."' value='".$order."' name='fp_inc".$order."' />
<input class='image' type='image' src='".ADMIN_DOWN_ICON_PATH."' title='".FRTLAN_48."' value='".$order."' name='fp_dec".$order."' /> <input class='btn btn-large image' type='image' src='".ADMIN_DOWN_ICON_PATH."' title='".FRTLAN_48."' value='".$order."' name='fp_dec".$order."' />
<input class='image edit' type='image' title='".LAN_EDIT."' name='fp_edit_rule[".$order."]' src='".ADMIN_EDIT_ICON_PATH."' /> <input class='btn btn-large image edit' type='image' title='".LAN_EDIT."' name='fp_edit_rule[".$order."]' src='".ADMIN_EDIT_ICON_PATH."' />
<input class='image delete' type='image' title='".LAN_DELETE."' data-confirm='". LAN_CONFDELETE."' name='fp_delete_rule[".$order."]' src='".ADMIN_DELETE_ICON_PATH."' /> <input class='btn btn-large image delete' type='image' title='".LAN_DELETE."' data-confirm='". LAN_CONFDELETE."' name='fp_delete_rule[".$order."]' src='".ADMIN_DELETE_ICON_PATH."' />
</td> </td>
</tr>"; </tr>";
} }

View File

@@ -310,9 +310,6 @@ EOF;
function renderChart() function renderChart()
{ {
// REQUIRES Log Plugin to be installed. // REQUIRES Log Plugin to be installed.
if (e107::isInstalled('log')) if (e107::isInstalled('log'))
{ {
return $this->renderStats(); return $this->renderStats();
@@ -325,7 +322,7 @@ EOF;
} }
else else
{ {
return "Log Statistics Plugin Not Installed"; return "<div class='center' style='padding:20px'><a class='btn btn-small' href='".e_ADMIN."plugin.php?avail'>Install Site Stats Plugin</a></div>";
// $text2 .= $ns->tablerender("Visitors This Week", "Log Statistics Plugin Not Installed","core-infopanel_stats",true); // $text2 .= $ns->tablerender("Visitors This Week", "Log Statistics Plugin Not Installed","core-infopanel_stats",true);
} }
@@ -679,6 +676,10 @@ EOF;
} }
if(!e107::isInstalled("log"))
{
return;
}
$sql = e107::getDB(); $sql = e107::getDB();
@@ -817,6 +818,7 @@ EOF;
function renderStats() function renderStats()
{ {
return '<canvas id="canvas1" class="center" width="710" height="300" style="width:100%; height:100%"> return '<canvas id="canvas1" class="center" width="710" height="300" style="width:100%; height:100%">
Your web-browser does not support the HTML 5 canvas element. Your web-browser does not support the HTML 5 canvas element.
</canvas>'; </canvas>';