isAdmin($xoopsModule->mid()) ;
$xoopsTpl->assign('link_admin', true);
} else {
$adminview=0;
}
$myts =& MyTextSanitizer::getInstance();
$xoopsTpl->assign('lang_title', _RECIPE_RECIPE);
$sqlquery=$xoopsDB->query("SELECT * from ".$xoopsDB->prefix("recipe")." where id=$id");
while ($sqlfetch=$xoopsDB->fetchArray($sqlquery)) {
$post = array();
$comments = $sqlfetch["comments"];
$post['id'] = $myts->sanitizeForDisplay($sqlfetch["id"]);
$post['letter'] = $myts->sanitizeForDisplay($sqlfetch["letter"]);
$post['name'] = $myts->sanitizeForDisplay($sqlfetch["name"]);
$post['definition'] = $sqlfetch["definition"];
$post['print'] = "
";
$post['mail'] = "
";
$post['admin'] = "[ "._EDIT." | "._DELETE." ] ";
if ($comments != 0) {
$post['comments'] = "".$comments." "._COMMENTS."";
} else {
$post['comments'] = ""._COMMENTS." ?";
}
$xoopsTpl->append('dic_post', $post);
}
$xoopsTpl->assign('lang_copyright', copyright());
include XOOPS_ROOT_PATH.'/include/comment_view.php';
include(XOOPS_ROOT_PATH."/footer.php");
?>