mirror of
https://github.com/e107inc/e107.git
synced 2025-08-02 20:57:26 +02:00
More GUI fixes.
This commit is contained in:
@@ -349,7 +349,7 @@ switch ($action)
|
|||||||
// @todo format form the 0.8 way
|
// @todo format form the 0.8 way
|
||||||
$text = "<div style='text-align:center'>
|
$text = "<div style='text-align:center'>
|
||||||
<form method='post' action='".e_SELF."?banlog-".$from."'>
|
<form method='post' action='".e_SELF."?banlog-".$from."'>
|
||||||
<table style='".ADMIN_WIDTH."' class='fborder'>
|
<table class='table adminform'>
|
||||||
<colgroup>
|
<colgroup>
|
||||||
<col style='width:20%; vertical-align:top;' />
|
<col style='width:20%; vertical-align:top;' />
|
||||||
<col style='width:30%; vertical-align:top;' />
|
<col style='width:30%; vertical-align:top;' />
|
||||||
|
@@ -83,9 +83,8 @@ if (isset($message)) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$text = "
|
$text = "
|
||||||
<div style='text-align:center'>
|
|
||||||
<form method='post' action='".e_SELF."?".e_QUERY."'>
|
<form method='post' action='".e_SELF."?".e_QUERY."'>
|
||||||
<table class='fborder' style='".ADMIN_WIDTH."'>";
|
<table class='table adminform'>";
|
||||||
|
|
||||||
if ($editid)
|
if ($editid)
|
||||||
{
|
{
|
||||||
@@ -160,10 +159,12 @@ else
|
|||||||
<tr><td colspan='5' class='fcaption'>".MDCLAN_12." (".$total_comments." ".($total_comments == "1" ? MDCLAN_11 : MDCLAN_12).", ".$total_blocked." ".MDCLAN_13.")</td></tr>
|
<tr><td colspan='5' class='fcaption'>".MDCLAN_12." (".$total_comments." ".($total_comments == "1" ? MDCLAN_11 : MDCLAN_12).", ".$total_blocked." ".MDCLAN_13.")</td></tr>
|
||||||
".$comments."
|
".$comments."
|
||||||
<tr><td colspan='5' class='forumheader' style='text-align:center'>".MDCLAN_9."</td></tr>
|
<tr><td colspan='5' class='forumheader' style='text-align:center'>".MDCLAN_9."</td></tr>
|
||||||
<tr><td colspan='5' class='forumheader' style='text-align:center'><input class='button' type='submit' name='moderate' value='".MDCLAN_8."' /></td></tr>
|
<tr><td colspan='5' class='forumheader' style='text-align:center'>
|
||||||
|
<input class='button' type='submit' name='moderate' value='".MDCLAN_8."' />
|
||||||
|
</td></tr>
|
||||||
";
|
";
|
||||||
}
|
}
|
||||||
$text .= "</table></form></div>";
|
$text .= "</table></form>";
|
||||||
|
|
||||||
$ns->tablerender(MDCLAN_8, $text);
|
$ns->tablerender(MDCLAN_8, $text);
|
||||||
|
|
||||||
|
@@ -756,7 +756,7 @@ $ns->tablerender(UCSLAN_21, $text);
|
|||||||
$db_status = $e_userclass->update_db(TRUE) ? "Updated" : "Original";
|
$db_status = $e_userclass->update_db(TRUE) ? "Updated" : "Original";
|
||||||
$text = "<div style='text-align:center'>
|
$text = "<div style='text-align:center'>
|
||||||
<form method='post' action='".e_SELF."?test' id='testForm'>
|
<form method='post' action='".e_SELF."?test' id='testForm'>
|
||||||
<table class='fborder' style='".ADMIN_WIDTH."'>
|
<table class='table adminform'>
|
||||||
<tr><td class='fcaption' style='text-align:center' colspan='2'>Test Functions and Information</td></tr>";
|
<tr><td class='fcaption' style='text-align:center' colspan='2'>Test Functions and Information</td></tr>";
|
||||||
$text .= "<tr><td style='text-align:center' colspan='2'>DB Status: ".$db_status."</td></tr>";
|
$text .= "<tr><td style='text-align:center' colspan='2'>DB Status: ".$db_status."</td></tr>";
|
||||||
$text .= "<tr><td><input class='button' type='submit' name='add_db_fields' value='Add new DB fields' />First required step</td>";
|
$text .= "<tr><td><input class='button' type='submit' name='add_db_fields' value='Add new DB fields' />First required step</td>";
|
||||||
|
@@ -628,7 +628,7 @@ $columnInfo = array(
|
|||||||
<div>
|
<div>
|
||||||
<form method='post' action='".e_SELF."?".e_QUERY."' id='myform'>
|
<form method='post' action='".e_SELF."?".e_QUERY."' id='myform'>
|
||||||
<fieldset id='download-create'>
|
<fieldset id='download-create'>
|
||||||
<table style='".ADMIN_WIDTH."' class='adminlist'>
|
<table class='table adminlist'>
|
||||||
<tr>
|
<tr>
|
||||||
<td style='width:20%;'>".DOWLAN_13."</td>
|
<td style='width:20%;'>".DOWLAN_13."</td>
|
||||||
<td style='width:80%'>
|
<td style='width:80%'>
|
||||||
@@ -681,7 +681,7 @@ $columnInfo = array(
|
|||||||
</table>
|
</table>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
<fieldset id='download-edit-external'>
|
<fieldset id='download-edit-external'>
|
||||||
<table style='".ADMIN_WIDTH."' class='adminlist'>
|
<table class='table adminlist'>
|
||||||
<tr>
|
<tr>
|
||||||
<td style='width:20%;'>".DOWLAN_149."</td>
|
<td style='width:20%;'>".DOWLAN_149."</td>
|
||||||
<td style='width:80%;'>
|
<td style='width:80%;'>
|
||||||
@@ -697,7 +697,7 @@ $columnInfo = array(
|
|||||||
</table>
|
</table>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
<fieldset id='download-edit-mirror'>
|
<fieldset id='download-edit-mirror'>
|
||||||
<table style='".ADMIN_WIDTH."' class='adminlist'>
|
<table class='table adminlist'>
|
||||||
<tr>
|
<tr>
|
||||||
<td style='width:20%'><span title='".DOWLAN_129."' style='cursor:help'>".DOWLAN_128."</span></td>
|
<td style='width:20%'><span title='".DOWLAN_129."' style='cursor:help'>".DOWLAN_128."</span></td>
|
||||||
<td style='width:80%'>";
|
<td style='width:80%'>";
|
||||||
|
@@ -33,6 +33,7 @@ if (!getperms('P') || !e107::isInstalled('log'))
|
|||||||
require_once(e_ADMIN.'auth.php');
|
require_once(e_ADMIN.'auth.php');
|
||||||
require_once(e_HANDLER.'userclass_class.php');
|
require_once(e_HANDLER.'userclass_class.php');
|
||||||
|
|
||||||
|
$frm = e107::getForm();
|
||||||
|
|
||||||
define('LOGPATH', e_PLUGIN.'log/');
|
define('LOGPATH', e_PLUGIN.'log/');
|
||||||
|
|
||||||
@@ -287,43 +288,43 @@ switch ($action)
|
|||||||
case 'config' :
|
case 'config' :
|
||||||
$text = "<div style='text-align:center'>
|
$text = "<div style='text-align:center'>
|
||||||
<form method='post' action='".e_SELF."'>
|
<form method='post' action='".e_SELF."'>
|
||||||
<table style='".ADMIN_WIDTH."' class='fborder'>
|
<table class='table adminform'>
|
||||||
<colgroup>
|
<colgroup>
|
||||||
<col style='width:50%' />
|
<col style='width:50%' />
|
||||||
<col style='width:50%' />
|
<col style='width:50%' />
|
||||||
</colgroup>
|
</colgroup>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td class='forumheader3'>".ADSTAT_L4."</td>
|
<td>".ADSTAT_L4."</td>
|
||||||
<td style='text-align: right;' class='forumheader3'>
|
<td style='text-align: right;'>
|
||||||
<input type='radio' name='statActivate' value='1'".($pref['statActivate'] ? " checked='checked'" : "")." /> ".ADSTAT_ON."
|
<input type='radio' name='statActivate' value='1'".($pref['statActivate'] ? " checked='checked'" : "")." /> ".ADSTAT_ON."
|
||||||
<input type='radio' name='statActivate' value='0'".(!$pref['statActivate'] ? " checked='checked'" : "")." /> ".ADSTAT_OFF."
|
<input type='radio' name='statActivate' value='0'".(!$pref['statActivate'] ? " checked='checked'" : "")." /> ".ADSTAT_OFF."
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td class='forumheader3'>".ADSTAT_L18."</td>
|
<td>".ADSTAT_L18."</td>
|
||||||
<td style='text-align: right;' class='forumheader3'>".r_userclass("statUserclass", $pref['statUserclass'],'off','public, member, admin, classes')."</td>
|
<td style='text-align: right;'>".r_userclass("statUserclass", $pref['statUserclass'],'off','public, member, admin, classes')."</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td class='forumheader3'>".ADSTAT_L20."</td>
|
<td>".ADSTAT_L20."</td>
|
||||||
<td style='text-align: right;' class='forumheader3'>
|
<td style='text-align: right;'>
|
||||||
<input type='radio' name='statCountAdmin' value='1'".($pref['statCountAdmin'] ? " checked='checked'" : "")." /> ".ADSTAT_ON."
|
<input type='radio' name='statCountAdmin' value='1'".($pref['statCountAdmin'] ? " checked='checked'" : "")." /> ".ADSTAT_ON."
|
||||||
<input type='radio' name='statCountAdmin' value='0'".(!$pref['statCountAdmin'] ? " checked='checked'" : "")." /> ".ADSTAT_OFF."
|
<input type='radio' name='statCountAdmin' value='0'".(!$pref['statCountAdmin'] ? " checked='checked'" : "")." /> ".ADSTAT_OFF."
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td class='forumheader3'>".ADSTAT_L21."</td>
|
<td>".ADSTAT_L21."</td>
|
||||||
<td style='text-align: right;' class='forumheader3'>
|
<td style='text-align: right;'>
|
||||||
<input class='tbox' type='text' name='statDisplayNumber' size='8' value='".$pref['statDisplayNumber']."' maxlength='3' />
|
<input class='tbox' type='text' name='statDisplayNumber' size='8' value='".$pref['statDisplayNumber']."' maxlength='3' />
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td class='forumheader3'>".ADSTAT_L5."</td>
|
<td>".ADSTAT_L5."</td>
|
||||||
<td style='text-align: right' class='forumheader3'>
|
<td style='text-align: right'>
|
||||||
".gen_select(ADSTAT_L6, 'statBrowser',$pref['statBrowser'])
|
".gen_select(ADSTAT_L6, 'statBrowser',$pref['statBrowser'])
|
||||||
.gen_select(ADSTAT_L7, 'statOs',$pref['statOs'])
|
.gen_select(ADSTAT_L7, 'statOs',$pref['statOs'])
|
||||||
.gen_select(ADSTAT_L8, 'statScreen',$pref['statScreen'])
|
.gen_select(ADSTAT_L8, 'statScreen',$pref['statScreen'])
|
||||||
@@ -338,14 +339,14 @@ switch ($action)
|
|||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td class='forumheader3'>".ADSTAT_L78."<br /><span class='smalltext'>".ADSTAT_L79."</span></td>
|
<td>".ADSTAT_L78."<br /><span class='smalltext'>".ADSTAT_L79."</span></td>
|
||||||
<td style='text-align: right;' class='forumheader3'>
|
<td style='text-align: right;'>
|
||||||
<input type='checkbox' name='statPrevMonth' value='1'".(varset($pref['statPrevMonth'],0) ? " checked='checked'" : "")." />
|
<input type='checkbox' name='statPrevMonth' value='1'".(varset($pref['statPrevMonth'],0) ? " checked='checked'" : "")." />
|
||||||
</td></tr>
|
</td></tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td class='forumheader3'>".ADSTAT_L12."<br /><span class='smalltext'>".ADSTAT_L13."</span></td>
|
<td>".ADSTAT_L12."<br /><span class='smalltext'>".ADSTAT_L13."</span></td>
|
||||||
<td style='text-align: right;' class='forumheader3'>
|
<td style='text-align: right;'>
|
||||||
".ADSTAT_L14."<input type='checkbox' name='wipe[statWipePage]' value='1' /><br />
|
".ADSTAT_L14."<input type='checkbox' name='wipe[statWipePage]' value='1' /><br />
|
||||||
".ADSTAT_L6."<input type='checkbox' name='wipe[statWipeBrowser]' value='1' /><br />
|
".ADSTAT_L6."<input type='checkbox' name='wipe[statWipeBrowser]' value='1' /><br />
|
||||||
".ADSTAT_L7." <input type='checkbox' name='wipe[statWipeOs]' value='1' /><br />
|
".ADSTAT_L7." <input type='checkbox' name='wipe[statWipeOs]' value='1' /><br />
|
||||||
@@ -358,19 +359,18 @@ switch ($action)
|
|||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td class='forumheader3'>".ADSTAT_L26."<br /><span class='smalltext'>".ADSTAT_L27."</span></td>
|
<td>".ADSTAT_L26."<br /><span class='smalltext'>".ADSTAT_L27."</span></td>
|
||||||
<td style='text-align: right;' class='forumheader3'><input class='button' type='submit' name='openRemPageD' value='".ADSTAT_L28."' />
|
<td style='text-align: right;'><input class='button' type='submit' name='openRemPageD' value='".ADSTAT_L28."' />
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
";
|
";
|
||||||
|
|
||||||
$text .= "
|
$text .= "
|
||||||
<tr>
|
|
||||||
<td colspan='2' style='text-align:center' class='forumheader'>
|
|
||||||
<input class='button' type='submit' name='updatesettings' value='".ADSTAT_L15."' />
|
|
||||||
</td>
|
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
<div class='buttons-bar center'>
|
||||||
|
".$frm->admin_button('updatesettings', LAN_UPDATE, 'update')."
|
||||||
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>";
|
</div>";
|
||||||
|
|
||||||
@@ -396,7 +396,7 @@ switch ($action)
|
|||||||
{
|
{
|
||||||
$text .= "<form method='post' action='".e_SELF."?datasets'>";
|
$text .= "<form method='post' action='".e_SELF."?datasets'>";
|
||||||
}
|
}
|
||||||
$text .= "<table style='".ADMIN_WIDTH."' class='fborder'>
|
$text .= "<table class='table adminform'>
|
||||||
<colgroup>
|
<colgroup>
|
||||||
<col style='width:50%' />
|
<col style='width:50%' />
|
||||||
<col style='width:50%' />
|
<col style='width:50%' />
|
||||||
@@ -405,18 +405,18 @@ switch ($action)
|
|||||||
|
|
||||||
if ($action == 'export')
|
if ($action == 'export')
|
||||||
{
|
{
|
||||||
$text .= "<tr><td class='forumheader3' colspan = '2'>".ADSTAT_L67."</td></tr>";
|
$text .= "<tr><td colspan = '2'>".ADSTAT_L67."</td></tr>";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$text .= "<tr><td class='forumheader3' colspan = '2'>".ADSTAT_L68."</td></tr>";
|
$text .= "<tr><td colspan = '2'>".ADSTAT_L68."</td></tr>";
|
||||||
}
|
}
|
||||||
|
|
||||||
// Type of output data - page data, browser stats....
|
// Type of output data - page data, browser stats....
|
||||||
$text .= "<tr><td class='forumheader3'>".ADSTAT_L51."</td><td class='forumheader3'>\n".data_type_select('export_type',$export_type).'</td></tr>';
|
$text .= "<tr><td>".ADSTAT_L51."</td><td>\n".data_type_select('export_type',$export_type).'</td></tr>';
|
||||||
|
|
||||||
// Period selection type for page data
|
// Period selection type for page data
|
||||||
$text .= "<tr><td class='forumheader3'>".ADSTAT_L41."</td><td class='forumheader3'>\n
|
$text .= "<tr><td>".ADSTAT_L41."</td><td>\n
|
||||||
<select class='tbox' name='export_date' id='export_date' onchange=\"setdatebox(this.value);\" ".($export_type=='page' ? "" : "style='display:none'" ).">\n
|
<select class='tbox' name='export_date' id='export_date' onchange=\"setdatebox(this.value);\" ".($export_type=='page' ? "" : "style='display:none'" ).">\n
|
||||||
<option value='1'".($export_date==1 ? " selected='selected'" : "").">".ADSTAT_L42."</option>\n
|
<option value='1'".($export_date==1 ? " selected='selected'" : "").">".ADSTAT_L42."</option>\n
|
||||||
<option value='2'".($export_date==2 ? " selected='selected'" : "").">".ADSTAT_L43."</option>\n
|
<option value='2'".($export_date==2 ? " selected='selected'" : "").">".ADSTAT_L43."</option>\n
|
||||||
@@ -436,7 +436,7 @@ switch ($action)
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
$text .= "<tr><td class='forumheader3'>".ADSTAT_L46."</td><td class='forumheader3'>\n";
|
$text .= "<tr><td>".ADSTAT_L46."</td><td>\n";
|
||||||
|
|
||||||
|
|
||||||
// Now put the various dropdowns - their visibility is controlled by the export_type dropdown
|
// Now put the various dropdowns - their visibility is controlled by the export_type dropdown
|
||||||
@@ -475,7 +475,7 @@ switch ($action)
|
|||||||
if ($action == 'export')
|
if ($action == 'export')
|
||||||
{
|
{
|
||||||
// Separators, quotes
|
// Separators, quotes
|
||||||
$text .= "<tr><td class='forumheader3'>".ADSTAT_L59."</td><td class='forumheader3'>\n
|
$text .= "<tr><td>".ADSTAT_L59."</td><td>\n
|
||||||
<select class='tbox' name='export_char'>";
|
<select class='tbox' name='export_char'>";
|
||||||
foreach ($separator_list as $k=>$v)
|
foreach ($separator_list as $k=>$v)
|
||||||
{
|
{
|
||||||
@@ -491,9 +491,10 @@ switch ($action)
|
|||||||
$text .= "</select>\n</td></tr>";
|
$text .= "</select>\n</td></tr>";
|
||||||
|
|
||||||
$text .= "<tr>
|
$text .= "<tr>
|
||||||
<td class='forumheader3'>".ADSTAT_L60."<br /><span class='smalltext'>".ADSTAT_L61."</span></td>
|
<td>".ADSTAT_L60."<br /></td>
|
||||||
<td class='forumheader3'>
|
<td >
|
||||||
<input type='checkbox' name='export_stripurl' value='1' ".($export_stripurl == 1 ? " checked='checked'" : "")."/>
|
<input type='checkbox' name='export_stripurl' value='1' ".($export_stripurl == 1 ? " checked='checked'" : "")."/>
|
||||||
|
<span class='field-help'>".ADSTAT_L61."</span>
|
||||||
</td>
|
</td>
|
||||||
</tr>";
|
</tr>";
|
||||||
}
|
}
|
||||||
@@ -501,9 +502,9 @@ switch ($action)
|
|||||||
|
|
||||||
if ($export_filter)
|
if ($export_filter)
|
||||||
{
|
{
|
||||||
if (getperms('0')) $text .= "<tr><td class='forumheader3'>".ADSTAT_L65."</td><td class='forumheader3'>".$export_filter."</td></tr>";
|
if (getperms('0')) $text .= "<tr><td>".ADSTAT_L65."</td><td>".$export_filter."</td></tr>";
|
||||||
$sql -> db_Select("logstats", "log_id", "{$export_filter} ");
|
$sql -> db_Select("logstats", "log_id", "{$export_filter} ");
|
||||||
$text .= "<tr><td class='forumheader3'>".ADSTAT_L64."</td><td class='forumheader3'>";
|
$text .= "<tr><td>".ADSTAT_L64."</td><td>";
|
||||||
while($row = $sql -> db_Fetch())
|
while($row = $sql -> db_Fetch())
|
||||||
{
|
{
|
||||||
$text .= $row['log_id']."<br />";
|
$text .= $row['log_id']."<br />";
|
||||||
@@ -512,12 +513,10 @@ switch ($action)
|
|||||||
}
|
}
|
||||||
|
|
||||||
$text .= "
|
$text .= "
|
||||||
<tr>
|
|
||||||
<td colspan='2' style='text-align:center' class='forumheader'>
|
|
||||||
<input class='button' type='submit' name='create_export' value='".($action == 'export' ? ADSTAT_L37 : ADSTAT_L66)."' />
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
</table>
|
||||||
|
<div class='buttons-bar center'>
|
||||||
|
".$frm->admin_button('create_export', ($action == 'export' ? ADSTAT_L37 : ADSTAT_L66), 'update')."
|
||||||
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>";
|
</div>";
|
||||||
|
|
||||||
@@ -533,7 +532,7 @@ switch ($action)
|
|||||||
//===========================================================
|
//===========================================================
|
||||||
$text = "<div style='text-align:center'>
|
$text = "<div style='text-align:center'>
|
||||||
<form method='post' action='".e_SELF."?history'>
|
<form method='post' action='".e_SELF."?history'>
|
||||||
<table style='".ADMIN_WIDTH."' class='fborder'>
|
<table class='table adminlist'>
|
||||||
<colgroup>
|
<colgroup>
|
||||||
<col style='width:50%' />
|
<col style='width:50%' />
|
||||||
<col style='width:50%' />
|
<col style='width:50%' />
|
||||||
@@ -542,57 +541,59 @@ switch ($action)
|
|||||||
$keep_year = varset($_POST['delete_year'],0);
|
$keep_year = varset($_POST['delete_year'],0);
|
||||||
if (isset($_POST['delete_history']))
|
if (isset($_POST['delete_history']))
|
||||||
{
|
{
|
||||||
$text .= "<tr><td class='forumheader3'>".ADSTAT_L72."</td><td class='forumheader3'>".nl_langinfo(constant('MON_'.$keep_month))." ".$keep_year."</td></tr>
|
$text .= "<tr><td>".ADSTAT_L72."</td><td>".nl_langinfo(constant('MON_'.$keep_month))." ".$keep_year."</td></tr>
|
||||||
<tr><td colspan='2' style='text-align:center' class='forumheader'>
|
<tr><td colspan='2' style='text-align:center' class='forumheader'>
|
||||||
<input type='hidden' name='delete_month' value='{$keep_month}' />
|
<input type='hidden' name='delete_month' value='{$keep_month}' />
|
||||||
<input type='hidden' name='delete_year' value='{$keep_year}' />
|
<input type='hidden' name='delete_year' value='{$keep_year}' />
|
||||||
<input class='button' type='submit' name='actually_delete' value='".ADSTAT_L73."' /><br />".ADSTAT_L74."
|
<input class='button' type='submit' name='actually_delete' value='".ADSTAT_L73."' /><br />".ADSTAT_L74."
|
||||||
</td></tr>";
|
</td></tr>";
|
||||||
$text .= "<tr><td class='forumheader3'>".ADSTAT_L75."</td><td class='forumheader3'>".implode("<br />",get_for_delete($keep_year,$keep_month))."</td></tr>";
|
$text .= "<tr><td>".ADSTAT_L75."</td><td>".implode("<br />",get_for_delete($keep_year,$keep_month))."</td></tr>";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (isset($_POST['actually_delete']))
|
if (isset($_POST['actually_delete']))
|
||||||
{
|
{
|
||||||
$delete_list = get_for_delete($keep_year,$keep_month);
|
$delete_list = get_for_delete($keep_year,$keep_month);
|
||||||
$logStr = '';
|
$logStr = '';
|
||||||
// $text .= "<tr><td class='forumheader3' colspan='2'>Data notionally deleted {$keep_month}-{$keep_year}</td></tr>";
|
// $text .= "<tr><td colspan='2'>Data notionally deleted {$keep_month}-{$keep_year}</td></tr>";
|
||||||
$text .= "<tr><td class='forumheader3'>".ADSTAT_L77."</td><td class='forumheader3'>";
|
$text .= "<tr><td>".ADSTAT_L77."</td><td>";
|
||||||
foreach ($delete_list as $k => $v)
|
foreach ($delete_list as $k => $v)
|
||||||
{
|
{
|
||||||
$sql->db_Delete('logstats',"log_id='{$k}'");
|
$sql->db_Delete('logstats',"log_id='{$k}'");
|
||||||
$text .= $v."<br />";
|
$text .= $v."<br />";
|
||||||
$logStr .= "[!br!]{$k} => ".$v;
|
$logStr .= "[!br!]{$k} => ".$v;
|
||||||
}
|
}
|
||||||
$text .= "</td></tr>";
|
$text .= "</td></tr>";
|
||||||
$admin_log->log_event('STAT_04',ADSTAT_L83.$logStr,'');
|
$admin_log->log_event('STAT_04',ADSTAT_L83.$logStr,'');
|
||||||
}
|
}
|
||||||
$text .= "<tr><td class='forumheader3'>".ADSTAT_L70."</td>";
|
$text .= "<tr><td>".ADSTAT_L70."</td>";
|
||||||
$text .= "<td class='forumheader3'><select class='tbox' name='delete_month'>\n";
|
$text .= "<td><select class='tbox' name='delete_month'>\n";
|
||||||
$match_month = date("n");
|
$match_month = date("n");
|
||||||
for ($i = 1; $i < 13; $i++)
|
for ($i = 1; $i < 13; $i++)
|
||||||
{
|
{
|
||||||
$selected = $match_month == $i ? " selected='selected'" : "";
|
$selected = $match_month == $i ? " selected='selected'" : "";
|
||||||
$text .= "<option value='{$i}'{$selected}>".nl_langinfo(constant('MON_'.$i))."</option>\n";
|
$text .= "<option value='{$i}'{$selected}>".nl_langinfo(constant('MON_'.$i))."</option>\n";
|
||||||
};
|
};
|
||||||
$text .= "</select>\n ";
|
$text .= "</select>\n ";
|
||||||
|
|
||||||
$this_year = date("Y");
|
$this_year = date("Y");
|
||||||
$text .= "<select class='tbox' name='delete_year' id='export_year'>\n";
|
$text .= "<select class='tbox' name='delete_year' id='export_year'>\n";
|
||||||
for ($i = $this_year; $i > $this_year - 6; $i--)
|
for ($i = $this_year; $i > $this_year - 6; $i--)
|
||||||
{
|
{
|
||||||
$selected = ($this_year - 2) == $i ? " selected='selected'" : "";
|
$selected = ($this_year - 2) == $i ? " selected='selected'" : "";
|
||||||
$text .= "<option value='{$i}'{$selected}>{$i}</option>\n";
|
$text .= "<option value='{$i}'{$selected}>{$i}</option>\n";
|
||||||
};
|
};
|
||||||
$text .= "</select>\n</td></tr><tr>
|
$text .= "</select>\n</td></tr>";
|
||||||
<td colspan='2' style='text-align:center' class='forumheader'>
|
|
||||||
<input class='button' type='submit' name='delete_history' value='".ADSTAT_L71."' />
|
|
||||||
</td></tr>
|
|
||||||
<tr>
|
|
||||||
<td colspan='2' style='text-align:center' class='forumheader3'><em>".ADSTAT_L76."</em>
|
|
||||||
</td></tr>";
|
|
||||||
}
|
}
|
||||||
$text .= "</table></form></div>";
|
|
||||||
|
$text .= "</table>
|
||||||
|
|
||||||
|
<div class='buttons-bar center'>
|
||||||
|
".$frm->admin_button('delete_history',LAN_DELETE,'delete')."
|
||||||
|
<span class='field-help'>".ADSTAT_L76."</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</form></div>";
|
||||||
$ns->tablerender(ADSTAT_L69, $text);
|
$ns->tablerender(ADSTAT_L69, $text);
|
||||||
break; // case 'history'
|
break; // case 'history'
|
||||||
|
|
||||||
@@ -730,7 +731,9 @@ function get_for_delete($keep_year,$keep_month = 1, $filter='*')
|
|||||||
//---------------------------------------------
|
//---------------------------------------------
|
||||||
function rempage()
|
function rempage()
|
||||||
{
|
{
|
||||||
global $sql, $ns;
|
$sql = e107::getDb();
|
||||||
|
$ns = e107::getRender();
|
||||||
|
$frm = e107::getForm();
|
||||||
|
|
||||||
$logfile = e_LOG."logp_".date("z.Y", time()).".php";
|
$logfile = e_LOG."logp_".date("z.Y", time()).".php";
|
||||||
// $logfile = e_PLUGIN."log/logs/logp_".date("z.Y", time()).".php";
|
// $logfile = e_PLUGIN."log/logs/logp_".date("z.Y", time()).".php";
|
||||||
@@ -749,14 +752,14 @@ function rempage()
|
|||||||
$pageTotal[$url]['unqv'] += $tmpcon['unq'];
|
$pageTotal[$url]['unqv'] += $tmpcon['unq'];
|
||||||
}
|
}
|
||||||
|
|
||||||
$text = "<div style='text-align:center'>
|
$text = "
|
||||||
<form method='post' action='".e_SELF."'>
|
<form method='post' action='".e_SELF."'>
|
||||||
<table style='".ADMIN_WIDTH."' class='fborder'>
|
<table class='table adminlist'>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td style='width:30%' class='forumheader'>".ADSTAT_L29."</td>
|
<td style='width:30%' class='forumheader'>".ADSTAT_L29."</td>
|
||||||
<td style='width:50%' class='forumheader'>URL</td>
|
<td style='width:50%' class='forumheader'>URL</td>
|
||||||
<td style='width:30%; text-align: center;' class='forumheader'>".ADSTAT_L30." ...</td>
|
<td style='width:30%; text-align: center;'>".ADSTAT_L30." ...</td>
|
||||||
</tr>
|
</tr>
|
||||||
";
|
";
|
||||||
|
|
||||||
@@ -764,23 +767,19 @@ function rempage()
|
|||||||
{
|
{
|
||||||
$text .= "
|
$text .= "
|
||||||
<tr>
|
<tr>
|
||||||
<td style='width:30%' class='forumheader3'>{$key}</td>
|
<td style='width:30%'>{$key}</td>
|
||||||
<td style='width:50%' class='forumheader3'>".$page['url']."</td>
|
<td style='width:50%'>".$page['url']."</td>
|
||||||
<td style='width:30%; text-align: center;' class='forumheader3'><input type='checkbox' name='remcb[]' value='{$key}' /></td>
|
<td style='width:30%; text-align: center;'><input type='checkbox' name='remcb[]' value='{$key}' /></td>
|
||||||
</tr>
|
</tr>
|
||||||
";
|
";
|
||||||
}
|
}
|
||||||
|
|
||||||
$text .= "
|
$text .= "
|
||||||
|
|
||||||
<tr>
|
|
||||||
<td colspan='3' class='forumheader3' style='text-align: center;'><input class='button' type='submit' name='remSelP' value='".ADSTAT_L31."' />
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
</table>
|
</table>
|
||||||
|
<div class='buttons-bar center'>
|
||||||
|
".$frm->admin_button('remSelP', ADSTAT_L31, 'delete')."
|
||||||
</form>
|
</form>
|
||||||
</div>
|
|
||||||
";
|
";
|
||||||
|
|
||||||
$ns -> tablerender(ADSTAT_L32, $text);
|
$ns -> tablerender(ADSTAT_L32, $text);
|
||||||
|
@@ -1,3 +1,6 @@
|
|||||||
|
/* */
|
||||||
|
body { padding-top: 75px; padding-bottom: 40px; }
|
||||||
|
.well { padding:10px; }
|
||||||
|
|
||||||
/* E107 CORE CSS *********************************************************************************************/
|
/* E107 CORE CSS *********************************************************************************************/
|
||||||
.searchhighlight{text-decoration: underline; color:#FF0000; font-weight:bold; }
|
.searchhighlight{text-decoration: underline; color:#FF0000; font-weight:bold; }
|
||||||
|
@@ -103,52 +103,42 @@ function tablestyle($caption, $text, $mod)
|
|||||||
}
|
}
|
||||||
|
|
||||||
$HEADER['default'] = '
|
$HEADER['default'] = '
|
||||||
<div class="wrapper">
|
<div class="navbar navbar-inverse navbar-fixed-top">
|
||||||
<div class="header">
|
<div class="navbar-inner">
|
||||||
<div class="header-content">
|
<div class="container-fluid">
|
||||||
BLANK HEADER
|
{SITELOGO}
|
||||||
</div>
|
<div class="nav-collapse collapse">
|
||||||
<div style="height: 20px;"><!-- --></div>
|
<div class="dropdown nav pull-right navbar-text ">
|
||||||
<div class="navigation">
|
{CUSTOM=login}
|
||||||
<div id="main-nav">{SITELINKS}</div>
|
</div>
|
||||||
<div class="clear"><!-- --></div>
|
|
||||||
</div>
|
<div class="dropdown nav">
|
||||||
</div>
|
{SITELINKS}
|
||||||
<div class="page-body">
|
</div>
|
||||||
<table class="main-table" cellpadding="0" cellspacing="0">
|
</div><!--/.nav-collapse -->
|
||||||
<tr>
|
</div>
|
||||||
|
</div>
|
||||||
<td class="col-left">
|
</div><div class="container-fluid">
|
||||||
{SETSTYLE=menu}
|
<div class="row-fluid">
|
||||||
{MENU=1}
|
<div class="span2">
|
||||||
</td>
|
{SETSTYLE=site_info}
|
||||||
|
|
||||||
<td>
|
{MENU=2}
|
||||||
<div class="col-main">
|
|
||||||
<div class="inner-wrapper">
|
</div>
|
||||||
{SETSTYLE=content}
|
<div class="span10">
|
||||||
{FEATUREBOX|default=notablestyle}
|
|
||||||
{FEATUREBOX|dynamic=notablestyle}
|
|
||||||
';
|
';
|
||||||
$FOOTER['default'] = '
|
$FOOTER['default'] = '
|
||||||
{FEATUREBOX|tabs=notablestyle&cols='.e107::getThemePref('fb_tabs_cols', 1).'}
|
</div><!--/span-->
|
||||||
</div>
|
</div><!--/row-->
|
||||||
</div>
|
|
||||||
</td>
|
<hr>
|
||||||
<td class="col-right">
|
|
||||||
<div class="col-right">
|
<footer class="center">
|
||||||
{SETSTYLE=menu}
|
Copyright © 2008-2012 e107 Inc (e107.org)<br />
|
||||||
{MENU=2}
|
</footer>
|
||||||
</div>
|
|
||||||
</td>
|
</div><!--/.fluid-container-->';
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
<div class="footer">
|
|
||||||
<!-- -->
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
';
|
|
||||||
|
|
||||||
$HEADER['alternate'] = '';
|
$HEADER['alternate'] = '';
|
||||||
$FOOTER['alternate'] = '';
|
$FOOTER['alternate'] = '';
|
||||||
|
@@ -3,7 +3,7 @@
|
|||||||
<author name ="e107 Inc" email="e107inc@something.com" url="http://e107.org" />
|
<author name ="e107 Inc" email="e107inc@something.com" url="http://e107.org" />
|
||||||
<description>Bootstrap e107 admin theme</description>
|
<description>Bootstrap e107 admin theme</description>
|
||||||
<layouts>
|
<layouts>
|
||||||
<layout name='default' title='2 Columns' preview='preview.jpg' previewFull='preview_full.png' >
|
<layout name='default' title='2 Columns' preview='preview.jpg' default='true' previewFull='preview_full.png' >
|
||||||
<custompages>usersettings.php</custompages>
|
<custompages>usersettings.php</custompages>
|
||||||
</layout>
|
</layout>
|
||||||
</layouts>
|
</layouts>
|
||||||
|
Reference in New Issue
Block a user