thinkphp realization of online generation of admission ticket, how to deal with
Source: Internet
Author: User
thinkphp to generate admission ticket online
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?
------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
------Solution--------------------
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
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.