aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-09-04 17:35:06 -0700
committerFriendika <info@friendika.com>2011-09-04 17:35:06 -0700
commit481853d2cc44a4bf6c540e72c741ff453305a925 (patch)
treec29357adbc460d0e3096ef57e2a4844d44eaaef1 /include
parentf6a43afb8da061ac13d778eb7fba6e2ea6dda6d7 (diff)
downloadvolse-hubzilla-481853d2cc44a4bf6c540e72c741ff453305a925.tar.gz
volse-hubzilla-481853d2cc44a4bf6c540e72c741ff453305a925.tar.bz2
volse-hubzilla-481853d2cc44a4bf6c540e72c741ff453305a925.zip
saved searches on network page
Diffstat (limited to 'include')
-rw-r--r--include/group.php2
-rw-r--r--include/text.php4
2 files changed, 4 insertions, 2 deletions
diff --git a/include/group.php b/include/group.php
index cd89739e1..8798adf5a 100644
--- a/include/group.php
+++ b/include/group.php
@@ -170,7 +170,7 @@ EOT;
$selected = (($group_id == $rr['id']) ? ' class="group-selected" ' : '');
$o .= ' <li class="sidebar-group-li">'
. (($edit) ? "<a href=\"group/{$rr['id']}\" title=\"" . t('Edit')
- . "\" ><img src=\"images/spencil.gif\" alt=\"" . t('Edit') . "\"></a> " : "")
+ . "\" class=\"groupsideedit\" ><img src=\"images/spencil.gif\" alt=\"" . t('Edit') . "\"></a> " : "")
. (($cid) ? '<input type="checkbox" class="' . (($selected) ? 'ticked' : 'unticked') . '" onclick="contactgroupChangeMember(' . $rr['id'] . ',' . $cid . ');return true;" '
. ((in_array($rr['id'],$member_of)) ? ' checked="checked" ' : '') . '/>' : '')
. "<a href=\"$each/{$rr['id']}\" class=\"sidebar-group-element\" $selected >{$rr['name']}</a></li>\r\n";
diff --git a/include/text.php b/include/text.php
index 66447069e..e3d984a1f 100644
--- a/include/text.php
+++ b/include/text.php
@@ -602,12 +602,14 @@ function micropro($contact, $redirect = false, $class = '', $textmode = false) {
if(! function_exists('search')) {
-function search($s,$id='search-box',$url='/search') {
+function search($s,$id='search-box',$url='/search',$save = false) {
$a = get_app();
$o = '<div id="' . $id . '">';
$o .= '<form action="' . $a->get_baseurl() . $url . '" method="get" >';
$o .= '<input type="text" name="search" id="search-text" value="' . $s .'" />';
$o .= '<input type="submit" name="submit" id="search-submit" value="' . t('Search') . '" />';
+ if($save)
+ $o .= '<input type="submit" name="save" id="search-save" value="' . t('Save') . '" />';
$o .= '</form></div>';
return $o;
}}