@login_required
def showreply(request, page):
    title = request.GET.get('title', '')
    if (title != ''):
        replys = Reply.objects.filter(title=title)
    else:
        replys = Reply.objects.filter(username=request.user).order_by('-date', '-id')
    (replys, pageList, paginator, page) = djangoPage(replys, page, PAGE_NUM)
    offset = (PAGE_NUM * (page - 1))
    return render(request, 'guestbook/showreply.html', context=locals())
@login_required
def showreply(request, page):
    title = request.GET.get('title', )
    if (title != ):
        replys = Reply.objects.filter(title=title)
    else:
        replys = Reply.objects.filter(username=request.user).order_by('-date', '-id')
    (replys, pageList, paginator, page) = djangoPage(replys, page, PAGE_NUM)
    offset = (PAGE_NUM * (page - 1))
    return render(request, 'guestbook/showreply.html', context=locals())