예제 #1
0
<?php

//Search results page template
if (isset($_POST['keyword'])) {
    $query = str_replace("'", "/", $_POST['keyword']);
    $cid = isset($_POST['cid']) ? $_POST['cid'] : 0;
    print '<div id="feeds">';
    if ($query == '') {
        print '<b>Please type the keyword to search</b>';
    } else {
        print search_question($query, $cid, 10);
    }
    print '</div>';
}
예제 #2
0
<?php

//Paging for search results page
require_once '../includes/functions.inc.php';
require_once '../includes/admin.inc.php';
if (isset($_POST['keyword'])) {
    $query = str_replace("'", "/", $_POST['keyword']);
    $count = isset($_POST['count']) ? $_POST['count'] : '';
    $cid = isset($_POST['cid']) ? $_POST['cid'] : '';
    $page = isset($_POST['page']) ? $_POST['page'] : '';
    print search_question($query, $cid, $count, $page);
}
?>
<script type="text/javascript">
$("a.button.disabled").click(function(){
	openLogin();
});
$('#feeds [title]').qtip({
	style: {
		padding: 7,
		background: '#404041',
		color: 'white',
		fontSize: '10px',
		textAlign: 'center',
		border: {
			width: 2,
			color: 'white'
		},
		tip: 'topLeft',
		name: 'dark' // Inherit the rest of the attributes from the preset dark style
	},