Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dokuwiki
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
BRIC
dokuwiki
Commits
72645b75
Commit
72645b75
authored
19 years ago
by
Andreas Gohr
Browse files
Options
Downloads
Patches
Plain Diff
options for searchform template function
darcs-hash:20051101223559-7ad00-cca84b64eb86d2c72b880bc558fb337ba29d992a.gz
parent
13ddd508
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
inc/template.php
+11
-3
11 additions, 3 deletions
inc/template.php
with
11 additions
and
3 deletions
inc/template.php
+
11
−
3
View file @
72645b75
...
...
@@ -464,19 +464,27 @@ function tpl_actionlink($type,$pre='',$suf=''){
/**
* Print the search form
*
* If the first parameter is given a div with the ID 'qsearch_out' will
* be added which instructs the ajax pagequicksearch to kick in and place
* its output into this div. The second parameter controls the propritary
* attribute autocomplete. If set to false this attribute will be set with an
* value of "off" to instruct the browser to disable it's own built in
* autocompletion feature (MSIE and Firefox)
*
* @author Andreas Gohr <andi@splitbrain.org>
*/
function
tpl_searchform
(
$
with
ajax
=
true
){
function
tpl_searchform
(
$ajax
=
true
,
$autocomplete
=
true
){
global
$lang
;
global
$ACT
;
print
'<form action="'
.
wl
()
.
'" accept-charset="utf-8" class="search" name="search">'
;
print
'<input type="hidden" name="do" value="search" />'
;
print
'<input type="text" '
;
if
(
$ACT
==
'search'
)
print
'value="'
.
htmlspecialchars
(
$_REQUEST
[
'id'
])
.
'" '
;
if
(
$ACT
==
'search'
)
print
'value="'
.
htmlspecialchars
(
$_REQUEST
[
'id'
])
.
'" '
;
if
(
!
$autocomplete
)
print
'autocomplete="off" '
;
print
'id="qsearch_in" accesskey="f" name="id" class="edit" />'
;
print
'<input type="submit" value="'
.
$lang
[
'btn_search'
]
.
'" class="button" />'
;
print
'<div id="qsearch_out" class="ajax_qsearch JSpopup"></div>'
;
if
(
$ajax
)
print
'<div id="qsearch_out" class="ajax_qsearch JSpopup"></div>'
;
print
'</form>'
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment