summaryrefslogtreecommitdiffstats
path: root/search/templates
diff options
context:
space:
mode:
authorRobin Appelman <icewind1991@gmail.com>2011-04-24 16:09:07 +0200
committerRobin Appelman <icewind1991@gmail.com>2011-04-24 16:09:27 +0200
commitb7aba15f179125455298aaee411864ebf4ed86f9 (patch)
tree781cd833dfb6fa18eeb89967f3094dcf0fa5a33e /search/templates
parent8d52fdb7faf4be4ed4282ecdd3e3a08af1fbf150 (diff)
downloadnextcloud-server-b7aba15f179125455298aaee411864ebf4ed86f9.tar.gz
nextcloud-server-b7aba15f179125455298aaee411864ebf4ed86f9.zip
add search functionality, for now only searches files but plugins/apps can extend that
Diffstat (limited to 'search/templates')
-rw-r--r--search/templates/index.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/search/templates/index.php b/search/templates/index.php
new file mode 100644
index 00000000000..7241553e7fc
--- /dev/null
+++ b/search/templates/index.php
@@ -0,0 +1,17 @@
+<ul id='searchresults'>
+ <?php foreach($_['resultTypes'] as $resultType):?>
+ <li class='resultHeader'>
+ <p><?php echo $resultType[0]->type?></p>
+ </li>
+ <?php foreach($resultType as $result):?>
+ <li class='result'>
+ <p>
+ <a href='<?php echo $result->link?>' title='<?php echo $result->name?>'><?php echo $result->name?></a>
+ </p>
+ <p>
+ <?php echo $result->text?>
+ </p>
+ </li>
+ <?php endforeach;?>
+ <?php endforeach;?>
+</ul>