Site Widgets
Sitenizde en son iş ilanlarını görüntülemek ister misiniz?
Uygulamamıznı iki türü var.
- İş Widget: Kategoriye göre iş ilanları, gönderme süresi ve iş tipi.
Bu uygulamada kullanılan parametrelerin listesi:- action: "getJobs" - tüm iş ilanları
- type: "0" - all / "fulltime" / "parttime" / "freelance"
- category: "0" - all / "programmers" / "designers" / "administrators" / "managers" / "testers" / "editors"
- count: iş ilanları sayısı gösterilecek
- random: "1" - display randomly / "0" - display ordered by publish date (newest on top)
- days_behind: get only jobs posted in the past X days (type "0" if you don't want to limit this)
- response: "js" - returns jobs as JavaScript code / "json" - returns only a JSON string / "xml" - returns an XML
Bu yöntemin örnek kodları:- Aşağıdaki kod, tam zamanlı olarak yönetici kategorisinde son 10 gün içinde yayınlanan ilan ve yayın tarihine göre sıralı son 5 işi (üstte Son) görüntüler:
<script src="http://www.isilanlari.us/api/api.php?action=getJobs
&type=fulltime&category=administrators&count=5&random=0&days_behind=10&response=js"
type="text/javascript"></script>
<script type="text/javascript">showJobs('jobber-container', 'jobber-list');</script> - Aşağıdaki kod tüm kategoriler arasından rasgele sırada son 7 gün içinde yayınlanan son 5 iş ilanını görüntüler:
<script src="http://www.isilanlari.us/api/api.php?action=getJobs
&type=0&category=0&count=5&random=1&days_behind=7&response=js" type="text/javascript"></script>
<script type="text/javascript">showJobs('jobber-container', 'jobber-list');</script>
- Firmalara Göre İş İlanları: Bu widget şirkete ve sayıma dayalı iş ilanlarını almak için kullanılır.
Bu uygulamada kullanılan parametrelerin listesi:- action: "getJobsByCompany" - tek bir şirketin iş ilanları
- count: iş ilanlarının sayısı gösterilecek
- response: "js" - returns jobs as JavaScript code / "json" - returns only a JSON string / "xml" - returns an XML
Google tarafından yayınlanan son 10 iş için kod:<script src="http://www.isilanlari.us/api/api.php?action=getJobsByCompany
&company=google&count=10&response=js" type="text/javascript"></script>
<script type="text/javascript">showJobs('jobber-container', 'jobber-list');</script>
CSS Styling
Bu ekranda, iş listesi tarzı bazı özel css kullanabilirsiniz. İşte bir örnek kod:ul.jobber-list {
list-style-type: none;
margin: 0;
padding: 0;
}
ul.jobber-list li {
margin-bottom: 5px;
}
Note:
- You can notice that there are two script codes for each implementation, the script which points to the api.php class can be included anywhere in your site but the second code should appear at the place where you want to display the jobs.
- There is a live demo script using the api code. Test it now. You can view its source in browser to check its implmentation. You can edit it live to test it before implementing the code live elsewhere.


