function evgs_item_div($topic_id) { global $db, $pun_user, $pun_config, $lang_topic, $lang_common; $result = $db->query('SELECT * FROM ' . $db->prefix . 'glossary_items WHERE topic_id=' . $topic_id) or error('Could not fetch glossary item info', __FILE__, __LINE__, $db->error()); if (!$db->num_rows($result)) { return; } $cur_gloss = $db->fetch_assoc($result); $cur_gloss['description'] = parse_message($cur_gloss['description'], '1'); $username = '******' . $cur_gloss['user_id'] . '">' . pun_htmlspecialchars($cur_gloss['username']) . '</a>'; show_gloss_item($cur_gloss, 'viewtopic'); }
: <br/> <?php echo $cur_gloss['description']; ?> </dd> </div> </fieldset> </div> <p><input type="submit" name="search" value="<?php echo $lang_common['Submit']; ?> " accesskey="s" /></p> </form> </div> </div> <?php break; default: $result = $db->query('SELECT * FROM ' . $db->prefix . 'glossary_items WHERE id=' . $id) or error('Could not fetch glossary item info', __FILE__, __LINE__, $db->error()); if (!$db->num_rows($result)) { message($lang_common['Bad request']); } $cur_gloss = $db->fetch_assoc($result); show_gloss_item($cur_gloss); $result = $db->query('SELECT * FROM ' . $db->prefix . 'glossrev_items WHERE id=' . $id . ' ORDER by rev_id DESC') or error('Could not fetch glossary item info', __FILE__, __LINE__, $db->error()); while ($cur_gloss = $db->fetch_assoc($result)) { show_gloss_item($cur_gloss, true); } } include PUN_ROOT . 'footer.php';
$db->free_result($result); $page_title = pun_htmlspecialchars($pun_config['o_board_title']) . ' / ' . $lang_search['Search results']; require PUN_ROOT . 'header.php'; ?> <div class="linkst"> <div class="inbox"> <p class="pagelink"><?php echo $paging_links; ?> </p> </div> </div> <?php foreach ($search_set as $cur_gloss) { show_gloss_item($cur_gloss); ?> <!-- <div class="blockpost"> <h2><?php echo '__Glossary'; ?> </h2> <div class="box"> <div class="inbox"> <div class="postleft"> <dl> <dt><strong><?php echo $username; ?> </strong></dt>