2011-04-16 15:49:57 +00:00
|
|
|
<?php
|
2011-08-22 23:40:13 +00:00
|
|
|
/**
|
|
|
|
* Copyright (c) 2011, Frank Karlitschek karlitschek@kde.org
|
|
|
|
* This file is licensed under the Affero General Public License version 3 or later.
|
|
|
|
* See the COPYING-README file.
|
|
|
|
*/
|
2011-04-16 15:49:57 +00:00
|
|
|
|
|
|
|
require_once('../lib/base.php');
|
2011-09-18 19:31:56 +00:00
|
|
|
OC_Util::checkLoggedIn();
|
2011-04-16 15:49:57 +00:00
|
|
|
|
2011-04-17 17:46:09 +00:00
|
|
|
|
2011-04-16 23:11:44 +00:00
|
|
|
// Load the files we need
|
2011-08-13 02:04:48 +00:00
|
|
|
OC_Util::addStyle( "settings", "settings" );
|
2011-07-29 19:36:03 +00:00
|
|
|
OC_App::setActiveNavigationEntry( "help" );
|
2011-04-16 15:49:57 +00:00
|
|
|
|
2011-08-18 17:22:39 +00:00
|
|
|
$pagesize=7;
|
2011-08-16 22:24:50 +00:00
|
|
|
if(isset($_GET['page'])) $page=$_GET['page']; else $page=0;
|
|
|
|
$kbe=OC_OCSClient::getKnownledgebaseEntries($page,$pagesize);
|
|
|
|
$totalitems=$kbe['totalitems'];
|
|
|
|
unset($kbe['totalitems']);
|
|
|
|
$pagecount=ceil($totalitems/$pagesize);
|
2011-04-16 15:49:57 +00:00
|
|
|
|
2011-08-13 02:04:48 +00:00
|
|
|
$tmpl = new OC_Template( "settings", "help", "user" );
|
2011-04-16 22:53:10 +00:00
|
|
|
$tmpl->assign( "kbe", $kbe );
|
2011-04-17 17:46:09 +00:00
|
|
|
$tmpl->assign( "pagecount", $pagecount );
|
|
|
|
$tmpl->assign( "page", $page );
|
2011-04-16 15:49:57 +00:00
|
|
|
$tmpl->printPage();
|
|
|
|
|
|
|
|
?>
|