aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntonio Gallo <tonicucoz@gmail.com>2012-05-28 16:04:30 +0000
committerAntonio Gallo <tonicucoz@gmail.com>2012-05-28 16:04:30 +0000
commit3bc07dabc797c7acdeafed68cf63c77c48077005 (patch)
tree32e53b26e9dfc3083ca2792d0927412b4b18aa7e
parent129934f892850a90f98f8f5a0e7746cfe57bb958 (diff)
administrators can now view the actions of a single user in a compact format - part 2
-rw-r--r--h-source/Application/Controllers/SpecialController.php3
-rw-r--r--h-source/Application/Views/Desktop/Special/modactions.php8
-rwxr-xr-xh-source/Library/Helper/List.php2
-rw-r--r--h-source/Public/Css/main.css14
4 files changed, 25 insertions, 2 deletions
diff --git a/h-source/Application/Controllers/SpecialController.php b/h-source/Application/Controllers/SpecialController.php
index a118211..4acbb5e 100644
--- a/h-source/Application/Controllers/SpecialController.php
+++ b/h-source/Application/Controllers/SpecialController.php
@@ -97,6 +97,9 @@ class SpecialController extends BaseController
$data['pageList'] = $this->h['Pages']->render($page-5,11);
+ //the value of the filter
+ $data['filterValue'] = strcmp($this->viewArgs['username'],'undef') === 0 ? null : $this->viewArgs['username'];
+
$this->append($data);
$this->load($viewFile);
$this->right();
diff --git a/h-source/Application/Views/Desktop/Special/modactions.php b/h-source/Application/Views/Desktop/Special/modactions.php
index 43c7a44..3e58c62 100644
--- a/h-source/Application/Views/Desktop/Special/modactions.php
+++ b/h-source/Application/Views/Desktop/Special/modactions.php
@@ -44,7 +44,13 @@
</tr>
<tr>
<td>&nbsp</td>
- <td>&nbsp</td>
+ <td>
+ <form class="user_action_filter" action="<?php echo $this->currPage."/1/undef";?>">
+ <input class="user_action_filter_text" type="text" name="username" value="<?php echo $filterValue;?>" />
+ <a title='clear the filter' href='<?php echo $this->currPage."/1/undef";?>'><img src='<?php echo Url::getRoot();?>/Public/Img/Icons/elementary_2_5/clear_filter.png' /></a>
+ <input class="user_action_filter_submit" type='image' title='filter' src='<?php echo $this->baseUrl?>/Public/Img/Icons/elementary_2_5/find.png' value='trova'>
+ </form>
+ </td>
<td>&nbsp</td>
<td>&nbsp</td>
<td>&nbsp</td>
diff --git a/h-source/Library/Helper/List.php b/h-source/Library/Helper/List.php
index c455454..ba59643 100755
--- a/h-source/Library/Helper/List.php
+++ b/h-source/Library/Helper/List.php
@@ -172,7 +172,7 @@ class Helper_List extends Helper_Html {
public function replaceFields($string,$rowArray) {
$this->__rowArray = $rowArray; //used by the replaceField method
- $string = preg_replace_callback('/(\;)(.*?)(\;)/', array($this, 'replaceField') ,$string);
+ $string = preg_replace_callback('/(\;)(.*?)(\;)/', 'Helper_List::replaceField' ,$string);
return $string;
}
diff --git a/h-source/Public/Css/main.css b/h-source/Public/Css/main.css
index 0b8253b..d0fc65c 100644
--- a/h-source/Public/Css/main.css
+++ b/h-source/Public/Css/main.css
@@ -2099,6 +2099,20 @@ div#description_tabs_content
{
vertical-align:-3px;
}
+
+.user_action_filter
+{
+ width:190px;
+}
+.user_action_filter img, .user_action_filter_submit
+{
+ vertical-align:middle;
+}
+.user_action_filter_text
+{
+ width:130px;
+}
+
/*.version_div a
{
display:block;