Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <meta http-equiv="Content-Language" content="en-us">
- <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
- <title>Worker's Alley - Home</title>
- <link href="crackedNut.css" rel="stylesheet" type="text/css">
- </head>
- <body background="images/backrgound.jpg">
- <div align="center">
- <table border="0" width="800" cellspacing="0" cellpadding="0">
- <tr>
- <td class="celltextsmall" bgcolor="#FFFFFF" colspan="2" align="left">
- User: <?php
- $username = $_COOKIE['myusername'];
- echo "<b>$username</b> ";
- ?>
- is logged in | <a href="Logout.php">Logout</a>
- </td>
- </tr>
- <tr>
- <td bgcolor="#008000" colspan="2" align="center" valign="bottom" height="51">
- <div align="center">
- <table border="0" width="640" cellspacing="0" cellpadding="0">
- <tr>
- <td class="celltextsmall" bgcolor="#FE6100" align="center" width="91">
- <font color="#008000">
- <a href="indexsek.php" style="text-decoration: none">
- <font color="#000000">Home</font></a></font></td>
- <td class="celltextsmall" align="center" width="91">
- <font color="#FFFFFF">
- <a href="sek-aboutus.php" style="text-decoration: none">
- <font color="#FFFFFF">About Us</font></a></font></td>
- <td class="celltextsmall" align="center" width="91" bgcolor="#008000">
- <a href="sek-webservices.php" style="text-decoration: none">
- <font color="#FFFFFF">Web Services</font></a></td>
- <td class="celltextsmall" align="center" width="91">
- <font color="#FFFFFF">
- <a href="sek-links.php" style="text-decoration: none">
- <font color="#FFFFFF">Links</font></a></font></td>
- <td class="celltextsmall" align="center" width="92">
- <font color="#FFFFFF">
- <a href="sek-links.php" style="text-decoration: none">
- <font color="#FFFFFF">Resources</font></a></font></td>
- <td class="celltextsmall" align="center" width="92"> </td>
- <td class="celltextsmall" align="center" width="92"> </td>
- </tr>
- </table>
- </div>
- </td>
- </tr>
- <tr>
- <td bgcolor="#FFFFFF" width="776" align="left" valign="top" colspan="2">
- <img border="0" src="images/arena.jpg" width="800" height="203"></td>
- </tr>
- <tr>
- <td class="celltextsmall" bgcolor="#FFFFFF" width="174" align="left" valign="top">
- <table border="0" width="100%" cellspacing="0" cellpadding="10">
- <tr>
- <td class="celltextsmall" colspan="2"><b>TASKS AVAILABLE</b></td>
- </tr>
- <tr>
- <td class="celltextsmall"> </td>
- <td class="celltextsmall"><a href="list_records_sek.php">Edit my
- profile</a></td>
- </tr>
- <tr>
- <td class="celltextsmall"> </td>
- <td class="celltextsmall"><a href="update-resume.php">Update
- my resume</a></td>
- </tr>
- <tr>
- <td class="celltextsmall"> </td>
- <td class="celltextsmall"><a href="my-applications.php">My
- applications</a></td>
- </tr>
- <tr>
- <td class="celltextsmall"> </td>
- <td class="celltextsmall"><a href="search-jobs-db.htm">
- Search for jobs</a></td>
- </tr>
- </table>
- </td>
- <td class="celltextsmall" bgcolor="#FFFFFF" align="center" valign="top">
- <span class="Apple-style-span" style="color: rgb(255, 255, 255); font-family: Verdana, Tahoma; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-center; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); ">
- <table border="0" width="90%" cellspacing="10" cellpadding="0" class="celltextsmall" style="font-family: Verdana, Tahoma; font-size: 8pt; padding-right: 6px; padding-top: 6px; padding-left: 6px; padding-bottom: 6px; ">
- <tr>
- <td class="celltextsmall" width="768" align="left" valign="top" style="font-family: Verdana, Tahoma; font-size: 8pt; padding-right: 6px; padding-top: 6px; padding-left: 6px; padding-bottom: 6px; ">
-
- <?php
- ?>
- <link href="crackedNut.css" rel="stylesheet" type="text/css">
- <table width="400" border="0" cellspacing="1" cellpadding="0" colspan = "4">
- <tr>
- <td class='celltextsmall'>
- <table width="400" border="1" cellspacing="1" cellpadding="6" class='celltextsmall' bordercolor=""#009900">
- <tr>
- <td colspan="4"><strong>Job Listing</strong> </td>
- </tr>
- <tr>
- <td align="center" class='celltextsmall'><strong>Job ID</strong></td>
- <td align="center" class='celltextsmall'><strong>Company</strong></td>
- <td align="center" class='celltextsmall'><strong>Position</strong></td>
- <td align="center" class='celltextsmall'><strong>Action</strong></td>
- </tr>
- <?php
- $host="localhost"; // Host name
- $username="accesf38_lhouse"; // Mysql username
- $password="Theo1976"; // Mysql password
- $db_name="accesf38_LH"; // Database name
- $tbl_name="jobposting"; // Table name
- // Connect to server and select database.
- mysql_connect("$host", "$username", "$password")or die("cannot connect");
- mysql_select_db("$db_name")or die("cannot select DB");
- $whoami = $_COOKIE['myusername'];
- $industry=$_POST['industry'];
- $sql="SELECT * FROM $tbl_name WHERE industry = '$industry'";
- $result=mysql_query($sql);
- // Mysql_num_row is counting table row
- //$count=mysql_num_rows($result);
- //echo "$industry";
- //echo "$count";
- while($rows=mysql_fetch_array($result)){
- ?>
- <tr>
- <td align="center"><a href="job_details.php?id=<? echo $rows['jobid']; ?>"><? echo $rows['jobid']; ?></a></td>
- <td class='celltextsmall'><? echo $rows['company']; ?></td>
- <td class='celltextsmall'><? echo $rows['position']; ?></td>
- <td align="center"><a href="apply_job_sek.php?id=<? echo "username=";echo $whoami;echo "&id=". $rows['jobid'];echo "&position=";echo $rows['position'];echo "&company=";echo $rows['company'];echo "&owner=";echo $rows['username']; ?>">Apply</a></td>
- </tr>
- <?php
- }
- ?>
- </table>
- </td>
- </tr>
- </table>
- <?php
- mysql_close();
- ?>
- </td>
- </tr>
- </table>
- </span></td>
- </tr>
- <tr>
- <td class="celltextsmall" bgcolor="#FFFFFF" colspan="2">Copyright ©
- 2011 | Guppy Vs Shark Web Development</td>
- </tr>
- </table>
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement