Advertisement
Guest User

Untitled

a guest
Oct 5th, 2017
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 6.69 KB | None | 0 0
  1. <html>
  2.  
  3. <head>
  4. <meta http-equiv="Content-Language" content="en-us">
  5. <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
  6. <title>Worker's Alley - Home</title>
  7. <link href="crackedNut.css" rel="stylesheet" type="text/css">
  8. </head>
  9.  
  10. <body background="images/backrgound.jpg">
  11.  
  12. <div align="center">
  13.     <table border="0" width="800" cellspacing="0" cellpadding="0">
  14.         <tr>
  15.             <td class="celltextsmall" bgcolor="#FFFFFF" colspan="2" align="left">
  16.             User: <?php
  17.             $username = $_COOKIE['myusername'];
  18.             echo "<b>$username</b> ";
  19.             ?>
  20.             is logged in | <a href="Logout.php">Logout</a>
  21.             </td>
  22.         </tr>
  23.         <tr>
  24.             <td bgcolor="#008000" colspan="2" align="center" valign="bottom" height="51">
  25.             <div align="center">
  26.                 <table border="0" width="640" cellspacing="0" cellpadding="0">
  27.                     <tr>
  28.                         <td class="celltextsmall" bgcolor="#FE6100" align="center" width="91">
  29.                         <font color="#008000">
  30.                         <a href="indexsek.php" style="text-decoration: none">
  31.                         <font color="#000000">Home</font></a></font></td>
  32.                         <td class="celltextsmall" align="center" width="91">
  33.                         <font color="#FFFFFF">
  34.                         <a href="sek-aboutus.php" style="text-decoration: none">
  35.                         <font color="#FFFFFF">About Us</font></a></font></td>
  36.                         <td class="celltextsmall" align="center" width="91" bgcolor="#008000">
  37.                         <a href="sek-webservices.php" style="text-decoration: none">
  38.                         <font color="#FFFFFF">Web Services</font></a></td>
  39.                         <td class="celltextsmall" align="center" width="91">
  40.                         <font color="#FFFFFF">
  41.                         <a href="sek-links.php" style="text-decoration: none">
  42.                         <font color="#FFFFFF">Links</font></a></font></td>
  43.                         <td class="celltextsmall" align="center" width="92">
  44.                         <font color="#FFFFFF">
  45.                         <a href="sek-links.php" style="text-decoration: none">
  46.                         <font color="#FFFFFF">Resources</font></a></font></td>
  47.                         <td class="celltextsmall" align="center" width="92">&nbsp;</td>
  48.                         <td class="celltextsmall" align="center" width="92">&nbsp;</td>
  49.                     </tr>
  50.                 </table>
  51.             </div>
  52.             </td>
  53.         </tr>
  54.         <tr>
  55.             <td bgcolor="#FFFFFF" width="776" align="left" valign="top" colspan="2">
  56.             <img border="0" src="images/arena.jpg" width="800" height="203"></td>
  57.         </tr>
  58.         <tr>
  59.             <td class="celltextsmall" bgcolor="#FFFFFF" width="174" align="left" valign="top">
  60.             <table border="0" width="100%" cellspacing="0" cellpadding="10">
  61.                 <tr>
  62.                     <td class="celltextsmall" colspan="2"><b>TASKS AVAILABLE</b></td>
  63.                 </tr>
  64.                 <tr>
  65.                     <td class="celltextsmall">&nbsp;</td>
  66.                     <td class="celltextsmall"><a href="list_records_sek.php">Edit my
  67.                     profile</a></td>
  68.                 </tr>
  69.                 <tr>
  70.                     <td class="celltextsmall">&nbsp;</td>
  71.                     <td class="celltextsmall"><a href="update-resume.php">Update
  72.                     my resume</a></td>
  73.                 </tr>
  74.                 <tr>
  75.                     <td class="celltextsmall">&nbsp;</td>
  76.                     <td class="celltextsmall"><a href="my-applications.php">My
  77.                     applications</a></td>
  78.                 </tr>
  79.                 <tr>
  80.                     <td class="celltextsmall">&nbsp;</td>
  81.                     <td class="celltextsmall"><a href="search-jobs-db.htm">
  82.                     Search for jobs</a></td>
  83.                 </tr>
  84.                 </table>
  85.             </td>
  86.             <td class="celltextsmall" bgcolor="#FFFFFF" align="center" valign="top">
  87.             <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); ">
  88.             <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; ">
  89.                 <tr>
  90.                     <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; ">
  91.                     &nbsp;
  92.                     <?php
  93.                     ?>                 
  94.                     <link href="crackedNut.css" rel="stylesheet" type="text/css">
  95.                     <table width="400" border="0" cellspacing="1" cellpadding="0" colspan = "4">
  96.                         <tr>
  97.                             <td class='celltextsmall'> 
  98.                                 <table width="400" border="1" cellspacing="1" cellpadding="6" class='celltextsmall' bordercolor=""#009900">
  99.                                     <tr>
  100.                                         <td colspan="4"><strong>Job Listing</strong> </td>
  101.                                     </tr>
  102.                        
  103.                                     <tr>
  104.                                         <td align="center" class='celltextsmall'><strong>Job ID</strong></td>
  105.                                         <td align="center" class='celltextsmall'><strong>Company</strong></td>
  106.                                         <td align="center" class='celltextsmall'><strong>Position</strong></td>
  107.                                         <td align="center" class='celltextsmall'><strong>Action</strong></td>
  108.                                     </tr>
  109.                                     <?php
  110.                                     $host="localhost"; // Host name
  111.                                     $username="accesf38_lhouse"; // Mysql username
  112.                                     $password="Theo1976"; // Mysql password
  113.                                     $db_name="accesf38_LH"; // Database name
  114.                                     $tbl_name="jobposting"; // Table name
  115.                                    
  116.                                     // Connect to server and select database.
  117.                                     mysql_connect("$host", "$username", "$password")or die("cannot connect");
  118.                                     mysql_select_db("$db_name")or die("cannot select DB");
  119.                                    
  120.                                     $whoami = $_COOKIE['myusername'];
  121.                                     $industry=$_POST['industry'];
  122.                                     $sql="SELECT * FROM $tbl_name WHERE industry = '$industry'";
  123.                                     $result=mysql_query($sql);
  124.                                    
  125.                                     // Mysql_num_row is counting table row
  126.                                     //$count=mysql_num_rows($result);
  127.                                     //echo "$industry";
  128.                                     //echo "$count";
  129.  
  130.                                     while($rows=mysql_fetch_array($result)){
  131.                                     ?>
  132.                                     <tr>
  133.                                         <td align="center"><a href="job_details.php?id=<? echo $rows['jobid']; ?>"><? echo $rows['jobid']; ?></a></td>
  134.                                         <td class='celltextsmall'><? echo $rows['company']; ?></td>
  135.                                         <td class='celltextsmall'><? echo $rows['position']; ?></td>
  136.                                         <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>
  137.                                     </tr>
  138.                                     <?php
  139.                                 }
  140.                             ?>
  141.                     </table>
  142.                     </td>
  143.                     </tr>
  144.                     </table>
  145.                     <?php
  146.                         mysql_close();
  147.                     ?>
  148.                     </td>
  149.                 </tr>
  150.                 </table>
  151.             </span></td>
  152.         </tr>
  153.         <tr>
  154.             <td class="celltextsmall" bgcolor="#FFFFFF" colspan="2">Copyright ©
  155.             2011 | Guppy Vs Shark Web Development</td>
  156.         </tr>
  157.     </table>
  158. </div>
  159.  
  160. </body>
  161.  
  162. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement