From abc6c1897ac5c424942693652750d08266b0fd2f Mon Sep 17 00:00:00 2001 From: piaip Date: Fri, 15 Jul 2005 17:31:39 +0000 Subject: - scroll for recommending articles - confirm vote_admin git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2932 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/bbs.c | 3 +++ mbbsd/vote.c | 8 +++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c index 9c37f228..29a6e14c 100644 --- a/mbbsd/bbs.c +++ b/mbbsd/bbs.c @@ -1788,6 +1788,9 @@ recommend(int ent, fileheader_t * fhdr, const char *direct) } type = 0; + /* scroll down */ + move(b_lines-1, 0); + scroll(); scroll(); scroll(); /* clear screen */ move(b_lines-3, 0); diff --git a/mbbsd/vote.c b/mbbsd/vote.c index 2cbcb806..0bc47449 100644 --- a/mbbsd/vote.c +++ b/mbbsd/vote.c @@ -613,7 +613,6 @@ vote_maintain(const char *bname) if ((pos = getbnum(bname)) <= 0) return 0; - stand_title("羭快щ布"); fhp = bcache + pos - 1; if (fhp->bvote != 0) { @@ -665,6 +664,13 @@ vote_maintain(const char *bname) if (x >= MAX_VOTE_NR) return FULLUPDATE; + getdata(b_lines - 1, 0, + "絋﹚璶羭快щ布盾 [y/N]: ", + inbuf, 4, LCECHO); + if (inbuf[0] != 'y') + return FULLUPDATE; + + stand_title("羭快щ布"); snprintf(vbuf.ballots, sizeof(vbuf.ballots), "%s%d", STR_bv_ballots, x); snprintf(vbuf.control, sizeof(vbuf.control), "%s%d", STR_bv_control, x); snprintf(vbuf.desc, sizeof(vbuf.desc), "%s%d", STR_bv_desc, x); -- cgit v1.2.3