Displaying light box
Permalink
Hi Guys,
I am working on a site in which a block will list the jobs title and description. When we click on the job title a pop up box will open, which shows the entire details of the job and contains a apply button for applying job.
So what i did in block/myblock/view.php is
the above code displays all the jobs from database.
Now when i click the first job, an pop up opens and not if i click second, third , etc
And also i need to pass the jobs id from blocks/myblock/view.php to apply_jobs.php
Is this possible?
I have attached a screen shot, it will explain about the job listing.
Any help would be appreciable.
Many thanks
Karthik
I am working on a site in which a block will list the jobs title and description. When we click on the job title a pop up box will open, which shows the entire details of the job and contains a apply button for applying job.
So what i did in block/myblock/view.php is
<?php while($jobs = mysql_fetch_assoc($row)) { ?> <tr> <td> <?php echo $jobs['Id'];?> </td> <?php $ids=$jobs['fID'];?> <td class="jobs"> <span class="job_head"> <a dialog-title="This is the dialog title." dialog-modal="false" dialog-width="550" dialog-height="480" id="myDialog" href="apply_jobs.php"> <?php echo $jobs['name'] ?> </a></span> <p class="desc"> <?php echo $jobs['factsDescription']?> </p></td> </tr> <?php } ?>
the above code displays all the jobs from database.
Now when i click the first job, an pop up opens and not if i click second, third , etc
And also i need to pass the jobs id from blocks/myblock/view.php to apply_jobs.php
Is this possible?
I have attached a screen shot, it will explain about the job listing.
Any help would be appreciable.
Many thanks
Karthik
Hi hereNT,
Thanks dude. I will give it a try.
Thanks
Karthik
Thanks dude. I will give it a try.
Thanks
Karthik
you could try passing the job id as a query?
Then use htaccess to do the replacements?
[code]
//.htaccss
RewriteRule ^apply_jobs/([0-9]+)/?$ apply_jobs.php [L]
<?php
href="apply_jobs/<?=$jobs['id']?>"
//or
href="apply_jobs.php?job=<?=$jobs['id']?>"
?>
Then use htaccess to do the replacements?
[code]
//.htaccss
RewriteRule ^apply_jobs/([0-9]+)/?$ apply_jobs.php [L]
<?php
href="apply_jobs/<?=$jobs['id']?>"
//or
href="apply_jobs.php?job=<?=$jobs['id']?>"
?>
id="myDialog-<?=jobs['ID'];?>"
Not sure if that will help you or not, but that's my first thought...