log.php in Instapage plugin 8.3
File
core/templates/log.php
View source
<?php
?>
<!DOCTYPE html>
<html>
<head>
<title><?php
echo InstapageCmsPluginConnector::lang('Instapage Log') . ' ' . $currentDate;
?></title>
<style>
body
{
background: #EFEFEF;
font-family: "Courier New", "Courier", "Lucida Sans Typewriter", "Lucida Typewriter", "monospace";
font-size: 12px;
}
h2
{
font-size: 28px;
padding: 35px 0px;
}
table
{
border-collapse: collapse;
width: 100%;
}
table,
th,
td
{
border: 1px solid #CECECE;
cursor: pointer;
}
td,
th
{
padding: 15px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
max-width: 0;
}
td:hover {
text-overflow: initial;
white-space: pre-wrap;
word-wrap: break-word;
overflow: auto;
}
th
{
background: #7F7F7F;
font-weight: bold;
color: #EDEDED;
}
tr:nth-child(even)
{
background: #F7F7F7;
}
tr:hover
{
background: #FFF;
}
section h3 {
margin-top: 50px;
}
</style>
</head>
<body>
<?php
if (is_array($rows) && !empty($rows)) {
?>
<h2><?php
echo InstapageCmsPluginConnector::lang('Log entries');
?></h2>
<table>
<thead>
<tr>
<th width="2%"><?php
echo InstapageCmsPluginConnector::lang('#');
?></th>
<th width="10%"><?php
echo InstapageCmsPluginConnector::lang('Date');
?></th>
<th width="10%"><?php
echo InstapageCmsPluginConnector::lang('Name');
?></th>
<th><?php
echo InstapageCmsPluginConnector::lang('Text');
?></th>
<th width="15%"><?php
echo InstapageCmsPluginConnector::lang('Caller');
?></th>
</tr>
</thead>
<tbody>
<?php
foreach ($rows as $index => $row) {
?>
<tr>
<td><?php
echo $index + 1;
?></td>
<td><?php
echo $row->time;
?></td>
<td><?php
echo $row->name;
?></td>
<td><?php
echo InstapageCmsPluginConnector::escapeHTML($row->text);
?></td>
<td><?php
echo $row->caller;
?></td>
</tr>
<?php
}
?>
</tbody>
</table>
<?php
}
else {
?>
<p><?php
echo InstapageCmsPluginConnector::lang('Log is empty.');
?></p>
<?php
}
?>
<section class="db-structure">
<h2><?php
echo InstapageCmsPluginConnector::lang('Database structure');
?></h2>
<?php
foreach ($dbStructure as $tableStructure) {
?>
<h3><?php
echo $tableStructure['tableName'];
?></h3>
<table>
<tr>
<th>Field name</th>
<th>Field type</th>
<th>Nullable?</th>
<th>Key?</th>
<th>Default value</th>
<th>Extra info</th>
</tr>
<?php
foreach ($tableStructure['description'] as $columnStructure) {
?>
<tr>
<td><?php
echo $columnStructure->Field;
?></td>
<td><?php
echo $columnStructure->Type;
?></td>
<td><?php
echo $columnStructure->Null;
?></td>
<td><?php
echo $columnStructure->Key;
?></td>
<td><?php
echo $columnStructure->Default;
?></td>
<td><?php
echo $columnStructure->Extra;
?></td>
</tr>
<?php
}
?>
</table>
<?php
}
?>
</seciton>
<h2><?php
echo InstapageCmsPluginConnector::lang('Installed plugins');
?></h2>
<?php
echo $pluginsHtml;
?>
<h2><?php
echo InstapageCmsPluginConnector::lang('CMS options');
?></h2>
<?php
echo $optionsHtml;
?>
<h2><?php
echo InstapageCmsPluginConnector::lang('PHP Info');
?></h2>
<?php
echo $phpinfoHtml;
?>
</body>
</html>