search from network page
This commit is contained in:
parent
7acb8fa6e7
commit
341f853b04
4 changed files with 39 additions and 6 deletions
6
boot.php
6
boot.php
|
@ -2106,10 +2106,10 @@ function micropro($contact, $redirect = false, $class = '', $textmode = false) {
|
|||
|
||||
|
||||
if(! function_exists('search')) {
|
||||
function search($s) {
|
||||
function search($s,$id='search-box',$url='/search') {
|
||||
$a = get_app();
|
||||
$o = '<div id="search-box">';
|
||||
$o .= '<form action="' . $a->get_baseurl() . '/search' . '" method="get" >';
|
||||
$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') . '" />';
|
||||
$o .= '</form></div>';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue