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
...]
为情所困2017-06-10 09:49:44
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 js
code
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
曾经蜡笔没有小新2017-06-10 09:49:44
This has nothing to do with TP, just write a loop and output the JS code to open a new window in the loop
阿神2017-06-10 09:49:44
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.