diff options
author | Antonio Gallo <tonicucoz@gmail.com> | 2010-12-04 16:08:32 +0000 |
---|---|---|
committer | Antonio Gallo <tonicucoz@gmail.com> | 2010-12-04 16:08:32 +0000 |
commit | b64ea63443e33fc070298c0130461c834de342bc (patch) | |
tree | 12ddddc2c060b6916c6e8ed921a73a03c64d0f1e /h-source | |
parent | 498e38bfaecf95b1f854c63c5d15d57f4b34ea89 (diff) |
moderators can now consult the list of actions carried out by other moderators
Diffstat (limited to 'h-source')
-rw-r--r-- | h-source/Application/Controllers/HistoryController.php | 44 | ||||
-rw-r--r-- | h-source/Application/Controllers/ModeratorsController.php | 70 | ||||
-rw-r--r-- | h-source/Application/Views/Meet/contributions.php | 14 | ||||
-rw-r--r-- | h-source/Application/Views/Moderators/index.php | 74 | ||||
-rw-r--r-- | h-source/Application/Views/My/panel.php | 6 | ||||
-rw-r--r-- | h-source/Application/Views/Search/results.php | 2 | ||||
-rw-r--r-- | h-source/Config/Route.php | 1 | ||||
-rwxr-xr-x | h-source/Public/Css/website.css | 141 | ||||
-rw-r--r-- | h-source/tables.sql | 3 |
9 files changed, 281 insertions, 74 deletions
diff --git a/h-source/Application/Controllers/HistoryController.php b/h-source/Application/Controllers/HistoryController.php index 997878b..76b1158 100644 --- a/h-source/Application/Controllers/HistoryController.php +++ b/h-source/Application/Controllers/HistoryController.php @@ -76,6 +76,7 @@ class HistoryController extends BaseController 'id_name' => 'id_mes', 'field_name' => 'deleted', 'actions' => array('hide','show'), + 'group' => 'moderator', ), @@ -86,6 +87,7 @@ class HistoryController extends BaseController 'id_name' => 'id_talk', 'field_name' => 'deleted', 'actions' => array('hide','show'), + 'group' => 'moderator', ), @@ -96,6 +98,7 @@ class HistoryController extends BaseController 'id_name' => 'id_user', 'field_name' => 'blocked', 'actions' => array('block','unblock'), + 'group' => 'moderator', ), @@ -142,22 +145,23 @@ class HistoryController extends BaseController if ($this->s['registered']->status['status'] === 'logged') { - if ($this->ismoderator) + if (!$this->s['registered']->checkCsrf($clean['token'])) die("wrong token"); + + if ($this->m['UsersModel']->isBlocked($this->s['registered']->status['id_user'])) die("your account has been blocked"); + + $clean['id_user'] = (int)$this->s['registered']->status['id_user']; + $clean['id'] = $this->request->post('id',0,'forceInt'); + $type = $this->request->post('type','','sanitizeAll'); + $message = $this->request->post('message',''); + + $modelName = 'error'; + + if (array_key_exists($type,$this->types)) { - if (!$this->s['registered']->checkCsrf($clean['token'])) die("wrong token"); - - if ($this->m['UsersModel']->isBlocked($this->s['registered']->status['id_user'])) die("your account has been blocked"); - - $clean['id_user'] = (int)$this->s['registered']->status['id_user']; - $clean['id'] = $this->request->post('id',0,'forceInt'); - $type = $this->request->post('type',0,'sanitizeAll'); - $message = $this->request->post('message',''); - - $modelName = 'error'; - - if (array_key_exists($type,$this->types)) + if (in_array($action,$this->types[$type]['actions'])) { - if (in_array($action,$this->types[$type]['actions'])) + $clean['group'] = $this->types[$type]['group']; + if (in_array($clean['group'],$this->s['registered']->status['groups'])) { $modelName = $this->types[$type]['model_name']; $clean['type'] = $this->types[$type]['clean_type']; @@ -182,6 +186,7 @@ class HistoryController extends BaseController { $this->m['HistoryModel']->setFields('id:forceInt,type,message','sanitizeAll'); $this->m['HistoryModel']->values['created_by'] = $clean['id_user']; + $this->m['HistoryModel']->values['gr'] = $clean['group']; $this->m['HistoryModel']->values['action'] = $this->strings[$action]['action']; $this->m['HistoryModel']->updateTable('insert'); @@ -217,12 +222,13 @@ class HistoryController extends BaseController if ($this->s['registered']->status['status'] === 'logged') { - if ($this->ismoderator) + if (!$this->m['UsersModel']->isBlocked($this->s['registered']->status['id_user'])) { - if (!$this->m['UsersModel']->isBlocked($this->s['registered']->status['id_user'])) + $clean['id'] = (int)$id; + if (array_key_exists($type,$this->types)) { - $clean['id'] = (int)$id; - if (array_key_exists($type,$this->types)) + $clean['group'] = $this->types[$type]['group']; + if (in_array($clean['group'],$this->s['registered']->status['groups'])) { $clean['type'] = $this->types[$type]['clean_type']; @@ -237,7 +243,7 @@ class HistoryController extends BaseController break; } - $data['res'] = $this->m['HistoryModel']->select()->where(array('id'=>$clean['id'],'type'=>$clean['type']))->send(); + $data['res'] = $this->m['HistoryModel']->select()->where(array('id'=>$clean['id'],'type'=>$clean['type'],'gr'=>$clean['group']))->send(); $data['md_action'] = array('hide'=>'hidden','show'=>'restored','block'=>'blocked','unblock'=>'un-blocked'); diff --git a/h-source/Application/Controllers/ModeratorsController.php b/h-source/Application/Controllers/ModeratorsController.php new file mode 100644 index 0000000..f7a5737 --- /dev/null +++ b/h-source/Application/Controllers/ModeratorsController.php @@ -0,0 +1,70 @@ +<?php + +// h-source, a web software to build a community of people that want to share their hardware information. +// Copyright (C) 2010 Antonio Gallo (h-source-copyright.txt) +// +// This file is part of h-source +// +// h-source is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// h-source is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with h-source. If not, see <http://www.gnu.org/licenses/>. + +if (!defined('EG')) die('Direct access not allowed!'); + +class ModeratorsController extends BaseController +{ + + public function __construct($model, $controller, $queryString) + { + parent::__construct($model, $controller, $queryString); + + $this->model('HistoryModel'); + + $this->modelName = 'HistoryModel'; + + $data['title'] = 'moderators page - '.Website::$generalName; + $this->append($data); + + $this->setArgKeys(array('page:forceNat'=>1)); + } + + public function actions($lang = 'en') + { + $this->shift(1); + + Params::$nullQueryValue = 'undef'; + + $this->s['registered']->check('moderator'); + + $whereClauseArray = array( + 'gr' => 'moderator', + ); + + $this->helper('Pages','moderators/actions/'.$this->lang,'page'); + + $this->m['HistoryModel']->clear()->select()->where($whereClauseArray)->orderBy('id_history desc'); + + $recordNumber = $this->m['HistoryModel']->rowNumber(); + $page = $this->viewArgs['page']; + + $this->m['HistoryModel']->limit = $this->h['Pages']->getLimit($page,$recordNumber,30); + + $data['table'] = $this->m['HistoryModel']->send(); + + $data['pageList'] = $this->h['Pages']->render($page-4,8); + + $this->append($data); + $this->load('index'); + $this->right(); + } + +}
\ No newline at end of file diff --git a/h-source/Application/Views/Meet/contributions.php b/h-source/Application/Views/Meet/contributions.php index a62160d..1ebbf30 100644 --- a/h-source/Application/Views/Meet/contributions.php +++ b/h-source/Application/Views/Meet/contributions.php @@ -39,6 +39,13 @@ </div> <?php } ?> + <!--talk messages submitted--> + <?php if ($hasTalk) { ?> + <div class="user_hardware_pages"> + <a href="<?php echo $this->baseUrl."/meet/talk/$lang/$meet_username".$this->viewStatus;?>">talk messages submitted by <b><?php echo $meet_username;?></b></a> + </div> + <?php } ?> + <!--issues opened--> <?php if ($hasIssues) { ?> <div class="user_hardware_pages"> @@ -53,13 +60,6 @@ </div> <?php } ?> - <!--talk messages submitted--> - <?php if ($hasTalk) { ?> - <div class="user_hardware_pages"> - <a href="<?php echo $this->baseUrl."/meet/talk/$lang/$meet_username".$this->viewStatus;?>">talk messages submitted by <b><?php echo $meet_username;?></b></a> - </div> - <?php } ?> - </div> </div>
\ No newline at end of file diff --git a/h-source/Application/Views/Moderators/index.php b/h-source/Application/Views/Moderators/index.php new file mode 100644 index 0000000..7594695 --- /dev/null +++ b/h-source/Application/Views/Moderators/index.php @@ -0,0 +1,74 @@ +<?php if (!defined('EG')) die('Direct access not allowed!'); ?> + +<?php +// h-source, a web software to build a community of people that want to share their hardware information. +// Copyright (C) 2010 Antonio Gallo (h-source-copyright.txt) +// +// This file is part of h-source +// +// h-source is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// h-source is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with h-source. If not, see <http://www.gnu.org/licenses/>. +?> + + <div id="left"> + + <div class="position_tree_box"> + <a href="<?php echo $this->baseUrl."/home/index/$lang";?>">Home</a> » <a href="<?php echo $this->baseUrl."/my/home/$lang/$token";?>">panel</a> » moderators' page + </div> + + <div class="contrib_explain_box"> + List of actions carried out by moderators + </div> + + <table class="listTable"> + <tr class="listHead"> + <td class="simpleText">ACTION ID</td> + <td class="simpleText">MODERATOR</td> + <td class="simpleText">ACTION</td> + <td class="simpleText">TYPE</td> + <td class="simpleText">OBJECT ID</td> + <td class="simpleText text_item_date">DATE</td> + <td class="simpleText">MOTIVATION</td> + </tr> + <?php foreach ($table as $row) { ?> + <tr class="listRow"> + <td class="simpleText"> + <span class='textItem'><?php echo $row['history']['id_history'];?></span> + </td> + <td class="simpleText"> + <span class='textItem'><?php echo $u->getUser($row['history']['created_by']);?></span> + </td> + <td class="simpleText"> + <span class='textItem'><?php echo $row['history']['action'];?></span> + </td> + <td class="simpleText"> + <span class='textItem'><?php echo $row['history']['type'];?></span> + </td> + <td class="simpleText"> + <span class='textItem'><?php echo $row['history']['id'];?></span> + </td> + <td class="simpleText text_item_date"> + <span class='textItem'><?php echo smartDate($row['history']['creation_date']);?></span> + </td> + <td class="simpleText"> + <span class='textItem'><?php echo $row['history']['message'];?></span> + </td> + </tr> + <?php } ?> + </table> + + <div class="history_page_list"> + <?php echo gtext("page list");?>: <?php echo $pageList;?> + </div> + + </div> diff --git a/h-source/Application/Views/My/panel.php b/h-source/Application/Views/My/panel.php index 44f159e..b5cc35e 100644 --- a/h-source/Application/Views/My/panel.php +++ b/h-source/Application/Views/My/panel.php @@ -32,6 +32,12 @@ </div> <?php } ?> + <?php if ($ismoderator) { ?> + <div class="moderator_panel_link"> + watch all the <a href="<?php echo Url::getRoot('moderators/actions/'.$lang);?>">moderators' actions</a> + </div> + <?php } ?> + <ul class='panelApplicationList'> <li><a href="<?php echo Url::getRoot('meet/user/'.$lang.'/'.$username);?>">Watch your public profile</a></li> <li><a href="<?php echo Url::getRoot('my/profile/'.$lang.'/'.$token);?>">Edit your profile</a></li> diff --git a/h-source/Application/Views/Search/results.php b/h-source/Application/Views/Search/results.php index d092bd7..1b6a27d 100644 --- a/h-source/Application/Views/Search/results.php +++ b/h-source/Application/Views/Search/results.php @@ -39,7 +39,7 @@ <div class="search_result_item"> <div> - <?php echo gtext("model name");?>: <b><a href="<?php echo $this->baseUrl."/".MyStrings::$reverse[$row['hardware']['type']]."/view/$lang/".$row['hardware']['id_hard']."/".$row['hardware']['model'];?>"><?php echo $row['hardware']['model'];?></a></b> + <?php echo gtext("model name");?>: <b><a href="<?php echo $this->baseUrl."/".MyStrings::$reverse[$row['hardware']['type']]."/view/$lang/".$row['hardware']['id_hard']."/".encodeUrl($row['hardware']['model']);?>"><?php echo $row['hardware']['model'];?></a></b> </div> <div> <?php echo gtext("model type");?>: <b><?php echo $row['hardware']['type'];?></b> diff --git a/h-source/Config/Route.php b/h-source/Config/Route.php index 145947e..7807f09 100644 --- a/h-source/Config/Route.php +++ b/h-source/Config/Route.php @@ -109,6 +109,7 @@ class Route 'threegcards,differences', 'threegcards,climb', 'threegcards,talk', + 'moderators,actions', ); //it can be 'yes' or 'no' diff --git a/h-source/Public/Css/website.css b/h-source/Public/Css/website.css index 0f50c7d..1586249 100755 --- a/h-source/Public/Css/website.css +++ b/h-source/Public/Css/website.css @@ -7,7 +7,7 @@ html, body body { - font:normal 15px/1.3 sans-serif,Verdana,arial; + font:normal 15px/1.3 sans-serif,arial; text-align: center; background:#ffffff; } @@ -57,7 +57,7 @@ div#top_menu_external div#top_menu { - font:bold 15px sans-serif,Verdana,arial; + font:bold 15px sans-serif,arial; text-align:left; padding:0.4em 0px; background:#015512; @@ -72,7 +72,7 @@ div#top_menu div#top_menu a { - font:bold 16px sans-serif,Verdana,arial; + font:bold 16px sans-serif,arial; padding:0.4em 10px; text-decoration:none; font-weight:bold; @@ -197,7 +197,7 @@ div#right overflow:hidden; /* background:red; */ margin:10px 0px 10px 10px; - font:normal 14px/1 sans-serif,Verdana,arial; + font:normal 14px/1 sans-serif,arial; } .notebook_insert_link @@ -273,7 +273,7 @@ div#footer{ /*div#navigation li{background: url(immagini/tabella1.png) no-repeat left center;}*/ a.link_menu { - font: bold 16px/1.75em Verdana,"Times New Roman",sans-serif; + font: bold 16px/1.75em sans-serif,arial; text-decoration: none; color:#4169E1; margin-left:10px; @@ -295,7 +295,7 @@ a.link_menu border-top:2px solid #8080a6; border-bottom:2px solid #8080a6; - font: normal 16px/1.3 sans-serif,Verdana,arial; + font: normal 16px/1.3 sans-serif,arial; } /*singolo box contentente un portatile in view all*/ @@ -306,7 +306,7 @@ a.link_menu margin:40px 0px; padding:3px; /* border:2px solid #7dafe7; */ - font: normal 14px/1.5 sans-serif,Verdana,arial; + font: normal 14px/1.5 sans-serif,arial; } .model_viewall @@ -324,7 +324,7 @@ a.link_menu overflow:hidden; width:100%; /* margin-bottom:10px; */ - font:normal 14px/1 sans-serif,arial,Verdana; + font:normal 14px/1 sans-serif,arial; border-bottom:1px solid #7e0000; } .notebook_vendor, .notebook_compatibility, .notebook_kernel, .model_tested_on @@ -355,7 +355,7 @@ a.link_menu margin:0px 5px; margin-top:1.5em; /* margin-bottom:10px; */ - font:bold 14px/1 sans-serif,arial,Verdana; + font:bold 14px/1 sans-serif,arial; border-bottom:1px solid #7e0000; /* border-bottom:1px solid #228B22; */ } @@ -378,7 +378,7 @@ a.link_menu .alert { clear:left; clear:right; - font:bold 12px/1.5 Verdana,arial; + font:bold 12px/1.5 sans-serif,arial; padding:2px; margin:5px 5px 15px 5px; /* background:TOMATO; */ @@ -389,7 +389,7 @@ a.link_menu /*executed operation string*/ .executed { - font:bold 12px/1.5 Verdana,arial; + font:bold 12px/1.5 sans-serif,,arial; padding:5px; margin:5px 5px 15px 5px; background:#E0FFFF; @@ -427,7 +427,7 @@ a.link_menu { padding:2px; width:45px; - font:normal 14px/1 sans-serif,Verdana,arial; + font:normal 14px/1 sans-serif,arial; cursor:pointer; } /*div that contains the link to the history page*/ @@ -467,7 +467,7 @@ a.link_menu } .history_title { - font:normal 14px/1 sans-serif,Verdana; + font:normal 14px/1 sans-serif; margin:10px; padding:3px; } @@ -485,7 +485,7 @@ a.link_menu /*page list in history*/ .history_page_list, .history_page_list_news { text-align:left; - font:normal 14px/1 Verdana,arial; + font:normal 14px/1 sans-serif,arial; padding:10px; margin-bottom:15px; } @@ -516,7 +516,7 @@ div.history_page_list_news a .viewall_no_items_found { - font:normal 14px/1 sans-serif,Verdana,arial; + font:normal 14px/1 sans-serif,arial; margin:10px; padding:5px; } @@ -546,7 +546,7 @@ div.history_page_list_news a margin-left:3px; color:#FF4500; font-weight:bold; - font: bold 13px/1 sans-serif,arial,Verdana; + font: bold 13px/1 sans-serif,arial; } ul#menuBlock { @@ -557,7 +557,6 @@ ul#menuBlock { list-style:none; height:24px; } - ul#menuBlock li { position:relative; display:block; @@ -573,7 +572,7 @@ ul#menuBlock li { ul#menuBlock li a { color:#000000; - font: normal 12px/1 sans-serif,Verdana,arial; + font: normal 12px/1 sans-serif,arial; } ul#menuBlock li ul { @@ -585,7 +584,10 @@ ul#menuBlock li ul { left:-3px; display:none; } - +ul#menuBlock:hover li ul +{ + display:block; +} ul#menuBlock li ul li { background:#ffef84; border-top:1px solid #ec8459; @@ -625,7 +627,7 @@ ins { margin:5px 5px 25px 5px; padding:5px; - font:normal 14px/1 sans-serif,arial,Verdana; + font:normal 14px/1 sans-serif,arial; border-top:1px solid #DC143C; border-bottom:1px solid #DC143C; } @@ -681,7 +683,7 @@ ins .div_h1 { - font:bold 15px/1 sans-serif,arial,Verdana; + font:bold 15px/1 sans-serif,arial; border-bottom:1px solid gray; padding:3px 0px; margin:10px 0px; @@ -689,12 +691,12 @@ ins } .div_h2 { - font:bold 14px/1 sans-serif,arial,Verdana; + font:bold 14px/1 sans-serif,arial; color:gray; } .div_h3 { - font:bold 13px/1 sans-serif,arial,Verdana; + font:bold 13px/1 sans-serif,arial; color:gray; } @@ -702,7 +704,7 @@ ins { margin:5px 5px; padding:5px; - font:bold 14px/1 sans-serif,arial,Verdana; + font:bold 14px/1 sans-serif,arial; /* border:1px solid #4169E1; */ /* color:#4169E1; */ /* background:#9acee3; */ @@ -719,12 +721,12 @@ ins } .talk_message_item_title { - font:bold 14px/1 sans-serif,arial,Verdana; + font:bold 14px/1 sans-serif,arial; margin-bottom:5px; } .talk_message_item_date { - font:normal 12px/1 sans-serif,arial,Verdana; + font:normal 12px/1 sans-serif,arial; color:gray; } .talk_message_item_content @@ -738,7 +740,7 @@ ins .model_id { - font:normal 12px/1 sans-serif,arial,Verdana; + font:normal 12px/1 sans-serif,arial; /* color:gray; */ margin:5px 3px; padding:3px; @@ -782,7 +784,7 @@ ins /*form*/ .entryLabel { display:block; - font:bold 12px/1em Verdana,arial; + font:bold 12px/1em sans-serif,arial; padding:3px 0px; margin-top:10px; /* background:#E6E6FA; */ @@ -820,7 +822,7 @@ ins background-color:#C1E3EF; margin:5px 5px 35px 5px; padding:10px; - font:bold 14px/1 sans-serif,arial,Verdana; + font:bold 14px/1 sans-serif,arial; border-bottom:1px solid #097fbc; } .panel_top_box a @@ -836,7 +838,7 @@ ins .panelApplicationList li { display:block; - width:200px; + width:250px; height:30px; margin:5px; padding-top:9px; @@ -845,7 +847,7 @@ ins .panelApplicationList li a { margin:5px; - font: bold 14px/1 sans-serif,Verdana,arial; + font: bold 14px/1 sans-serif,arial; color:#097fbc; } @@ -853,7 +855,7 @@ ins { margin:10px; /* padding:10px; */ - font:normal 14px/1.5 sans-serif,arial,Verdana; + font:normal 14px/1.5 sans-serif,arial; } .meet_item @@ -940,7 +942,7 @@ ins .bottom_licence_notice { - font:normal 12px/1.2 sans-serif,arial,Verdana; + font:normal 12px/1.2 sans-serif,arial; padding:10px; background:#E0FFFF; margin:25px 0px 5px 0px; @@ -949,7 +951,7 @@ ins { clear:left; clear:right; - font:normal 12px/1.2 sans-serif,arial,Verdana; + font:normal 12px/1.2 sans-serif,arial; padding:10px; background:#E0FFFF; margin:25px 0px 5px 0px; @@ -959,7 +961,7 @@ ins /*.copyright_notice_box { text-align:right; - font: normal 12px/1 sans-serif,arial,Verdana; + font: normal 12px/1 sans-serif,arial; padding:14px; }*/ @@ -967,7 +969,7 @@ ins { width:120px; float:right; - font: normal 12px/1 sans-serif,arial,Verdana; + font: normal 12px/1 sans-serif,arial; padding:14px; border-left:3px solid #FFF; } @@ -1028,7 +1030,7 @@ ins } .issues_viewall_table { - font:normal 14px/1 sans-serif,arial,Verdana; + font:normal 14px/1 sans-serif,arial; } .issues_viewall_table td { @@ -1046,14 +1048,14 @@ ins .issues_view_title, .issues_view_description_title { - font:bold 14px/1 sans-serif,arial,Verdana; + font:bold 14px/1 sans-serif,arial; padding:5px 0px; border-bottom:1px solid black; } .issues_view_status_and_priority { margin:20px 0px; - font:normal 12px/1 sans-serif,arial,Verdana; + font:normal 12px/1 sans-serif,arial; } .issues_view_description { @@ -1209,7 +1211,7 @@ ins } .news_item_date { - font: normal 13px/1 sans-serif,arial,Verdana; + font: normal 13px/1 sans-serif,arial; /* color:#e86a17; */ color:gray; margin:0px 0px 10px 0px; @@ -1243,7 +1245,7 @@ ins color:#800000; border-top:1px solid #800000; border-bottom:1px solid #800000; - font:normal 20px/1 sans-serif,arial,Verdana; + font:normal 20px/1 sans-serif,arial; } .right_box_ext_box @@ -1298,7 +1300,7 @@ ins .message_preview_notice { margin:3px 3px; - font:bold 14px/1 sans-serif,arial,Verdana; + font:bold 14px/1 sans-serif,arial; } .useful_links_ext div { @@ -1311,7 +1313,7 @@ ins { color:#000; text-decoration:none; - font:normal 14px/1 sans-serif,arial,Verdana; + font:normal 14px/1 sans-serif,arial; } .issues_message_item_user { @@ -1422,12 +1424,12 @@ ins } .hidden_message_view_details { - font:normal 12px/1 sans-serif,Verdana,arial; + font:normal 12px/1 sans-serif,arial; } .deleted_message_show { margin:8px 0px 0px 0px; - font:normal 13px/1 sans-serif,arial,Verdana; + font:normal 13px/1 sans-serif,arial; } .noscript_dist_alert @@ -1444,7 +1446,7 @@ ins background:#dff1f8; border:1px solid #6495ED; padding:5px; - font:normal 14px/1.5 sans-serif,arial,Verdana; + font:normal 14px/1.5 sans-serif,arial; } .user_hardware_pages @@ -1464,4 +1466,51 @@ ins margin:5px 5px 25px 5px; background:#fbd59a; border:1px solid #f65637; +} + + +.listTable +{ + margin:20px 5px; +} + +/*MODERATORS' PAGE*/ +tr.listRow td{ + font: normal 14px/1 sans-serif,arial; + padding:10px 5px; +} + +tr.listHead { + font: bold 14px/1 sans-serif,arial; +} + +tr.listHead td { + padding:8px; + background:#ADD8E6; + border-top:1px solid #4169E1; + border-bottom:1px solid #4169E1; +} + +.recordsBox { + margin:10px 5px; +} + +.recordsBox table { + width:100%; +} + +a.linkItem { +/* background:red; */ + font:bold 12px/1 sans-serif,arial; +} + +td.text_item_date +{ + width:25%; +} +.moderator_panel_link +{ + padding:10px; + border:1px solid #ED9F4A; + background:#F6EA99; }
\ No newline at end of file diff --git a/h-source/tables.sql b/h-source/tables.sql index 7ecd6d8..6ec4d72 100644 --- a/h-source/tables.sql +++ b/h-source/tables.sql @@ -223,7 +223,8 @@ create table history ( type char(10) not null, action char(10) not null, id INT UNSIGNED NOT NULL, - message text CHARACTER SET utf8 not null + message text CHARACTER SET utf8 not null, + gr char(15) not null ); insert into reggroups (name) values ('moderator'); |