thinkphp to generate admission ticket online

Source: Internet
Author: User
How to make each user's admission ticket (especially the admission ticket number, the test place) according to the existing user registration information in the library table, how to realize, mainly is the thought, asks the big God to instruct?


Reply to discussion (solution)

The ticket number is not generated online, but is pre-generated and saved
Candidates from the same location should be distributed evenly to each test site. Candidates from the same location are not adjacent

The ticket number is not generated online, but is pre-generated and saved
Candidates from the same location should be distributed evenly to each test site. Candidates from the same location are not adjacent

Yes, well, that makes sense, but how exactly does it correspond?

The basic algorithm is roughly like this:
Number of test sites known, sequential numbering, candidates sorted by source
Traverse candidates and assign test centers. Each assigned one, test center number plus One (cycle count)
For each test center, repeat the above procedure, assign seats

Okay, it's been solved.

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.