0, 'message' => '', 'content' => ''); $cmt = new stdClass(); $cmt->id = isset($_GET['id']) ? intval($_GET['id']) : 0; $cmt->libType = isset($_GET['libType']) ? intval($_GET['libType']) : 0; $cmt->type = isset($_GET['type']) ? intval($_GET['type']) : 0; $cmt->page = isset($_GET['page']) && intval($_GET['page']) > 0 ? intval($_GET['page']) : 1; if ($result['error'] == 0) { if($cmt->libType == 1){ $reply_list = single_show_reply_list($cmt->id, $cmt->page); $smarty->assign('comment_list', $reply_list['comment_list']); $smarty->assign('reply_paper', $reply_list['reply_paper']); $result['content'] = $smarty->fetch("library/comment_reply_show.lbi"); }else{ $single_reply = assign_comments_single_reply($cmt->id, $cmt->type, $cmt->page); $reply_comments = $single_reply['reply_comments']; $reply_paper = $single_reply['reply_paper']; $smarty->assign('reply_comments', $reply_comments); $smarty->assign('reply_paper', $reply_paper); $result['comment_id'] = $cmt->id; $result['content'] = $smarty->fetch("library/comment_reply_list.lbi"); } } echo $json->encode($result); ?>