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