diff options
author | Jakob Sack <kde@jakobsack.de> | 2011-04-17 20:00:25 +0200 |
---|---|---|
committer | Jakob Sack <kde@jakobsack.de> | 2011-04-17 20:00:25 +0200 |
commit | 21def39dacd2c452d401c7658b91c86087b5e8e1 (patch) | |
tree | ac0fcc8ccdd5974f4dfc134c5c91b1f49b4bbee2 /help | |
parent | ee3d32b023642b675b66f0e14fa5747bc5671f95 (diff) | |
parent | 91b5d8575a403877106e4cd048d90e0c117dae66 (diff) | |
download | nextcloud-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.php | 7 | ||||
-rw-r--r-- | help/templates/index.php | 6 |
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> |