nextcloud/settings/templates/help.php

25 lines
1001 B
PHP
Raw Normal View History

<?php if(is_null($_["kbe"])):?>
Can't connect to Q&amp;A database
<?php else:?>
2011-08-08 16:13:11 +04:00
<table id="help" cellspacing="20">
<tbody>
<?php foreach($_["kbe"] as $kb): ?>
<tr>
<td width="1"><?php if($kb["preview1"] <> "") { echo('<img class="preview" border="0" src="'.$kb["preview1"].'" />'); } ?> </a></td>
2011-08-08 16:13:11 +04:00
<td class="name"><p><strong><?php echo $kb["name"]; ?></strong></p><?php echo('<span class="type">'.$kb['description'].'</span>'); ?>
<?php if($kb['answer']<>'') echo('<br /><span class="type"><b>Answer:</b></span><br /><span class="type">'.$kb['answer'].'</span>');?>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
<?php
$url=OC_Helper::linkTo( "settings", "help.php" ).'?page=';
2011-07-29 23:36:03 +04:00
$pageNavi=OC_Util::getPageNavi($_['pagecount'],$_['page'],$url);
$pageNavi->printPage();
?>
2011-08-03 07:09:42 +04:00
<a target="_blank" class="prettybutton" href="http://apps.owncloud.com/knowledgebase/editquestion.php?action=new"><?php echo $l->t( 'Ask a question' ); ?></a>
<?php endif;?>