Create admission ticket online using ThinkPHP

Source: Internet
Author: User
How to generate an admission ticket online based on the existing user registration information in the database table and create an admission ticket for each user (especially the admission ticket number and test location, could you please give me some advice?


Reply to discussion (solution)

The admission ticket number is not generated and saved online.
Generally, candidates from the same location should be evenly assigned to each test site. candidates from the same location are not adjacent to each test site.

The admission ticket number is not generated and saved online.
Generally, candidates from the same location should be evenly assigned to each test site. candidates from the same location are not adjacent to each test site.

Well, it makes sense, but how can this problem be solved?

The basic algorithm is roughly as follows:
The number of test sites is known, and the number is sequential. candidates are sorted by source.
Traverse candidates and assign test sites. For each assignment, the test site number is plus one (cyclic count)
Repeat the above process for each test site to allocate seats

Okay, 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.