thinkphp batch open window problem
高洛峰
高洛峰 2017-06-10 09:47:44
0
3
760

Now I have a batch of resumes in the background such as

]
When you click on the detailed information, the personal details will be displayed.
Now I have more Select several resumes, and when you click to open them in batches, these resumes can be displayed in a row.
How to solve this problem in the thinkphp framework! ! ! ! ! !

One more thing, when I click to open in batches, it displays in a row like this
Like
...]

高洛峰
高洛峰

拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...

reply all(3)
为情所困

Suppose the questioner has a way to open the resume as view, pass in the ID of the resume, and then get the resume details and render it to the template file
Two methods:
The first one is in the js code. Get the ID selected to open the resume, and then splice url in js, open in a loop (window.open() is the js method to open a new window), for example, the selected resume ID is 1 ,2,3, the js code is


for(var i = 0; i < jianli.length; i++){
 window.open('http://xxx.com/view/' + jianli[i])
}

The second one is implemented in php. You also pass in all the resume IDs to be opened, splice url, and output jscode

foreach ($jianli as $id) {
    $url = 'http://xxx.com/view/' . $id;
    echo "<script>window.open('".$url."')</script>";
 }
The implementation in

php should be like this. It is recommended that the subject write the code on the js side to open a new window

曾经蜡笔没有小新

This has nothing to do with TP, just write a loop and output the JS code to open a new window in the loop

阿神

This is not a relationship framework issue. This is a layout issue.
You can use ajax to pull out all the resumes, and then create a new layer to display all the resumes.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!