001.
<?php
002.
session_start();
003.
$_SESSION
[
"lang"
] =
$_GET
[
"lang"
];
004.
include_once
"connect.php"
;
005.
include
"function/time1.php"
;
006.
include_once
"function/paging.php"
;
007.
include
"function/wrap.php"
;
008.
009.
$sql
=
"select * from tb_job"
;
010.
$rs
= mysql_query(
$sql
);
011.
012.
013.
014.
$Num_Rows
= mysql_num_rows(
$rs
);
015.
016.
$Per_Page
= 3;
017.
018.
$Page
=
$_GET
[
"Page"
];
019.
if
(!
$_GET
[
"Page"
])
020.
{
021.
$Page
=1;
022.
}
023.
024.
$Prev_Page
=
$Page
-1;
025.
$Next_Page
=
$Page
+1;
026.
027.
$Page_Start
= ((
$Per_Page
*
$Page
)-
$Per_Page
);
028.
if
(
$Num_Rows
<=
$Per_Page
)
029.
{
030.
$Num_Pages
=1;
031.
}
032.
else
if
((
$Num_Rows
%
$Per_Page
)==0)
033.
{
034.
$Num_Pages
=(
$Num_Rows
/
$Per_Page
) ;
035.
}
036.
else
037.
{
038.
$Num_Pages
=(
$Num_Rows
/
$Per_Page
)+1;
039.
$Num_Pages
= (int)
$Num_Pages
;
040.
}
041.
042.
$sql
.=
" order by job_id DESC LIMIT $Page_Start , $Per_Page"
;
043.
$rs
= mysql_query(
$sql
);
044.
?>
045.
048.
<head>
049.
<meta http-equiv=
"Content-Type"
content=
"text/html; charset=utf-8"
/>
050.
<link href=
"css/reset.css"
rel=
"stylesheet"
type=
"text/css"
/>
051.
<link href=
"css/style.css"
rel=
"stylesheet"
type=
"text/css"
/>
052.
<script src=
"SpryAssets/SpryMenuBar.js"
type=
"text/javascript"
></script>
053.
<link href=
"SpryAssets/SpryMenuBarHorizontal.css"
rel=
"stylesheet"
type=
"text/css"
/>
054.
<?php
include_once
"fancybox/funcybox1.php"
;?>
055.
</head>
056.
057.
<body>
058.
<div
class
=
"wrapper"
>
059.
<?php
include
"header.php"
?>
060.
<!-- Content -->
061.
<div id=
"content"
>
062.
<div id=
"nav-lang"
class
=
"opensans"
><a href=
"job.php?lang=TH"
>TH </a><span>|</span><a href=
"job.php?lang=EN"
> EN</a></div>
063.
<div id=
"pix-news"
><img src=
"images/head-job.png"
width=
"155"
height=
"37"
/></div>
064.
<div id=
"content-job"
>
065.
<!-- Job -->
066.
<!-- ดึงข้อมูล Thai -->
067.
<?php
if
(
$_SESSION
[
"lang"
] ==
'TH'
){?>
068.
<?php
if
(!
empty
(
$rs
)): ?>
069.
<?php
while
(
$r
= mysql_fetch_assoc(
$rs
)): ?>
070.
<div
class
=
"news-detail"
>
071.
<h1><?php
echo
$r
[
"job_name"
];?></h1>
072.
<?php
073.
$text
=
$r
[
"job_detail"
];
074.
075.
echo
wraptext(
$text
, 0 , 60);
076.
?>
077.
วันที่ลงประกาศ : <?php
echo
$r
[
"job_created_date"
];?>
078.
<a href=
"job_detail.php?job_id=<?=$r["
job_id
"];?>"
class
=
"fancybox fancybox.iframe"
>อ่านต่อ >></a>
079.
080.
<div
class
=
"clear"
></div>
081.
</div>
082.
<?php
endwhile
?>
083.
<?php
endif
?>
084.
<!-- ดึงข้อมูล Eng -->
085.
<?php }
else
{?>
086.
<?php
if
(!
empty
(
$rs
)): ?>
087.
<?php
while
(
$r
= mysql_fetch_assoc(
$rs
)): ?>
088.
<div
class
=
"news-detail"
>
089.
<h1><?php
echo
$r
[
"job_name_en"
];?></h1>
090.
<?php
091.
$text
=
$r
[
"job_detail_en"
];
092.
093.
echo
wraptext(
$text
, 0 , 60);
094.
?>
095.
Date
: <?php
echo
$r
[
"job_created_date"
];?>
096.
<a href=
"job_detail.php?job_id=<?=$r["
job_id
"];?>"
class
=
"fancybox fancybox.iframe"
>More Detail >></a>
097.
098.
<div
class
=
"clear"
></div>
099.
</div>
100.
<?php
endwhile
?>
101.
<?php
endif
?>
102.
<?php
103.
}
104.
?>
105.
<!-------- แสดงแบ่งหน้า ---------->
106.
<div
class
=
"clear"
></div>
107.
<div
class
=
"paging_space"
>
108.
<?
109.
110.
$pages
=
new
Paginator;
111.
$pages
->items_total =
$Num_Rows
;
112.
$pages
->mid_range = 10;
113.
$pages
->current_page =
$Page
;
114.
$pages
->default_ipp =
$Per_Page
;
115.
$pages
->url_next =
"job.php?QueryString=value&Page="
;
116.
117.
$pages
->paginate();
118.
119.
echo
$pages
->display_pages()
120.
?>
121.
</div>
122.
<?php
include_once
"mysql_close.php"
; ?>
123.
<!-- Job -->
124.
125.
</div>
126.
<div id=
"content-job2"
>
127.
<h1>สวัสดิการ</h1>
128.
Lorem Ipsum คือ เนื้อหาจำลองแบบเรียบๆ ที่ใช้กันในธุรกิจงานพิมพ์หรืองานเรียงพิมพ์ มันได้กลายมาเป็นเนื้อหาจำลองมาตรฐานของธุรกิจดังกล่าวมาตั้งแต่ศตวรรษที่ 16 เมื่อเครื่องพิมพ์โนเนมเครื่องหนึ่งนำรางตัวพิมพ์มาสลับสับตำแหน่งตัวอักษรเพื่อทำหนังสือตัวอย่าง Lorem Ipsum อยู่ยงคงกระพันมาไม่ใช่แค่เพียงห้าศตวรรษ แต่อยู่มาจนถึงยุคที่พลิกโฉมเข้าสู่งานเรียงพิมพ์ด้วยวิธีทางอิเล็กทรอนิกส์ และยังคงสภาพเดิมไว้อย่างไม่มีการเปลี่ยนแปลง มันได้รับความนิยมมากขึ้นในยุค ค.ศ. 1960 เมื่อแผ่น Letraset วางจำหน่ายโดยมีข้อความบนนั้นเป็น Lorem Ipsum และล่าสุดกว่านั้น คือเมื่อซอฟท์แวร์การทำสื่อสิ่งพิมพ์ (Desktop Publishing) อย่าง Aldus PageMaker ได้รวมเอา Lorem Ipsum เวอร์ชั่นต่างๆ เข้าไว้ในซอฟท์แวร์ด้วย
129.
</div>
130.
<div id=
"pix-job"
>
131.
<img src=
"images/pix-job.gif"
width=
"911"
height=
"25"
/></div>
132.
</div>
133.
<!-- Content -->
134.
<?php
include
"footer.php"
?>
135.
136.
</div>
137.
<script type=
"text/javascript"
>
138.
var
MenuBar1 =
new
Spry.Widget.MenuBar(
"MenuBar1"
, {imgDown:
"SpryAssets/SpryMenuBarDownHover.gif"
, imgRight:
"SpryAssets/SpryMenuBarRightHover.gif"
});
139.
</script>
140.
141.
</body>
142.
</html>