summaryrefslogtreecommitdiffstats
path: root/help
diff options
context:
space:
mode:
authorJakob Sack <kde@jakobsack.de>2011-04-17 20:00:25 +0200
committerJakob Sack <kde@jakobsack.de>2011-04-17 20:00:25 +0200
commit21def39dacd2c452d401c7658b91c86087b5e8e1 (patch)
treeac0fcc8ccdd5974f4dfc134c5c91b1f49b4bbee2 /help
parentee3d32b023642b675b66f0e14fa5747bc5671f95 (diff)
parent91b5d8575a403877106e4cd048d90e0c117dae66 (diff)
downloadnextcloud-server-21def39dacd2c452d401c7658b91c86087b5e8e1.tar.gz
nextcloud-server-21def39dacd2c452d401c7658b91c86087b5e8e1.zip
Merge branch 'refactoring' of git://anongit.kde.org/owncloud into refactoring
Diffstat (limited to 'help')
-rw-r--r--help/index.php7
-rw-r--r--help/templates/index.php6
2 files changed, 12 insertions, 1 deletions
diff --git a/help/index.php b/help/index.php
index e6a2d5661f5..de461c29412 100644
--- a/help/index.php
+++ b/help/index.php
@@ -7,6 +7,11 @@ if( !OC_USER::isLoggedIn()){
exit();
}
+//hardcode for testing
+$pagecount=8;
+$page=2;
+
+
// Load the files we need
OC_UTIL::addStyle( "help", "help" );
OC_APP::setActiveNavigationEntry( "help" );
@@ -16,6 +21,8 @@ $kbe=OC_OCSCLIENT::getKnownledgebaseEntries();
$tmpl = new OC_TEMPLATE( "help", "index", "admin" );
$tmpl->assign( "kbe", $kbe );
+$tmpl->assign( "pagecount", $pagecount );
+$tmpl->assign( "page", $page );
$tmpl->printPage();
?>
diff --git a/help/templates/index.php b/help/templates/index.php
index b8444c556e9..262ab3d8cab 100644
--- a/help/templates/index.php
+++ b/help/templates/index.php
@@ -1,7 +1,7 @@
<h1>Questions and Answers</h1>
-<table cellspacing="0">
+<table cellspacing="0" width="100%">
<tbody>
<?php foreach($_["kbe"] as $kb): ?>
<tr>
@@ -13,6 +13,10 @@
<?php endforeach; ?>
</tbody>
</table>
+<?php
+ $url=OC_HELPER::linkTo( "help", "index.php" ).'?page=';
+ OC_UTIL::showPageNavi($_['pagecount'],$_['page'],$url);
+?>
<a target="_blank" class="prettybutton" href="http://apps.owncloud.com/knowledgebase/editquestion.php?action=new">ASK A QUESTION</a>