Login   Register  
PHP Classes
elePHPant
Icontem

File: example.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Mikhail  >  jobSeeker  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: it's example where I am looking for the job in Boston area
Class: jobSeeker
Search for jobs in different job sites
Author: By
Last change: added tag a
Date: 2012-12-28 14:29
Size: 852 bytes
 

Contents

Class file image Download
<?php 
require_once ('job_search_class.php');
$data = array(
                
'keywords' => array('php','linux','apache'),
                
'sites'    => array('monster','indeed','craigslist','career_jet'),
                
'city'     => 'Boston',
                
'max_item' => 5,
                
'distanse' => '150'  //in miles
);
$jobseekerobj=new jobseeker($data);
echo(
"<table style='font-family:arial;font-size:13;'>");
foreach (
$jobseekerobj->jobseek_res as $res=>$data)
{
    echo(
"<tr><td><h3>".$res."</h3></td></tr>");
    foreach(
$data['title'] as $title)
    {
        echo(
"<tr><td>$title</td></tr>");
        echo(
"<tr><td>".$data['descr']["{$title}"]."<br></td></tr>");
        echo(
"<tr><td><i><a href='".$data['link']["{$title}"]."'>Link</a><br><br><br></td></tr>");
        
    }
        
}
echo(
"</table>");
?>