• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revisionb641d8b8ffe3d91dad81ef1ced390709b38623e8 (tree)
Time2013-04-30 14:04:29
Authortes-okumura <tes-okumura@sint...>
Commitertes-okumura

Log Message

時間帯を表す帯(オレンジのボックス)を追加

Change Summary

Incremental Difference

--- a/dto/JobDetailDto.php
+++ b/dto/JobDetailDto.php
@@ -19,5 +19,6 @@ final class JobDetailDto extends Dto {
1919 public $conditionList = array();
2020 public $remarkList = array();
2121 public $timeList = array();
22+ public $boxList = array();
2223 }
2324 //EOF.
--- a/dto/JobListDto.php
+++ b/dto/JobListDto.php
@@ -13,5 +13,6 @@ final class JobListDto extends Dto {
1313 public $currentPage = 1;
1414 public $totalPage = 1;
1515 public $mode = 'recent';
16+ public $boxList = array();
1617 }
1718 //EOF.
--- a/front/app/JobDetail.php
+++ b/front/app/JobDetail.php
@@ -6,6 +6,7 @@ require_once DAO . 'OfferCompensationDao.php';
66 require_once DAO . 'OfferHoursDao.php';
77 require_once DAO . 'OfferConditionDao.php';
88 require_once DAO . 'OfferRemarkDao.php';
9+require_once DAO . 'OfferTimeDao.php';
910 require_once DTO . 'JobDetailDto.php';
1011 final class JobDetail extends Action {
1112 private $dto;
@@ -64,6 +65,11 @@ final class JobDetail extends Action {
6465 while ($remark = mysql_fetch_assoc($remarkList)) {
6566 $this->dto->remarkList[] = $remark['remark'];
6667 }
68+ $dao = new OfferTimeDao();
69+ $boxList = $dao->getByOfferCode($this->dto->offerCode);
70+ while ($box = mysql_fetch_assoc($boxList)) {
71+ $this->dto->boxList[$box['search_time']] = 'dummy';
72+ }
6773 return new forward();
6874 }
6975 }
--- a/front/app/JobList.php
+++ b/front/app/JobList.php
@@ -3,6 +3,7 @@ require_once DAO . 'OfferDao.php';
33 require_once DAO . 'OfferHoursDao.php';
44 require_once DAO . 'OfferSalaryDao.php';
55 require_once DAO . 'OfferConditionDao.php';
6+require_once DAO . 'OfferTimeDao.php';
67 require_once DTO . 'JobListDto.php';
78 require_once INTERNAL . 'Pager.php';
89 final class JobList extends Action {
@@ -21,6 +22,7 @@ final class JobList extends Action {
2122 $offerHoursDao = new OfferHoursDao();
2223 $offerSalaryDao = new OfferSalaryDao();
2324 $offerConditionDao = new OfferConditionDao();
25+ $offerTimeDao = new OfferTimeDao();
2426 $pager = new Pager($this->dto->totalRow, $this->dto->currentPage);
2527 $jobList = $offerdao->getRecent($pager->getStartRow(), Pager::PAGE_ROWS);
2628 $pager->setTotalRow($offerdao->foundRows());
@@ -40,6 +42,10 @@ final class JobList extends Action {
4042 while ($condition = mysql_fetch_assoc($conditionList)) {
4143 $this->dto->conditionList[$row['offer_code']][] = $condition['condition_name'];
4244 }
45+ $boxList = $offerTimeDao->getByOfferCode($row['offer_code']);
46+ while ($box = mysql_fetch_assoc($boxList)) {
47+ $this->dto->boxList[$row['offer_code']][$box['search_time']] = 'dummy';
48+ }
4349 }
4450 $this->dto->mode = 'recent';
4551 return new forward();
@@ -53,6 +59,7 @@ final class JobList extends Action {
5359 $offerHoursDao = new OfferHoursDao();
5460 $offerSalaryDao = new OfferSalaryDao();
5561 $offerConditionDao = new OfferConditionDao();
62+ $offerTimeDao = new OfferTimeDao();
5663 $pager = new Pager($this->dto->totalRow, $this->dto->currentPage);
5764 $jobList = $offerdao->getJobList($this->dto->area, $this->dto->category, $this->dto->time, $this->dto->condition, $this->dto->compensation, $pager->getStartRow(), Pager::PAGE_ROWS);
5865 $pager->setTotalRow($offerdao->foundRows());
@@ -72,6 +79,10 @@ final class JobList extends Action {
7279 while ($condition = mysql_fetch_assoc($conditionList)) {
7380 $this->dto->conditionList[$row['offer_code']][] = $condition['condition_name'];
7481 }
82+ $boxList = $offerTimeDao->getByOfferCode($row['offer_code']);
83+ while ($box = mysql_fetch_assoc($boxList)) {
84+ $this->dto->boxList[$row['offer_code']][$box['search_time']] = 'dummy';
85+ }
7586 }
7687 $this->dto->mode = 'move';
7788 $_SESSION['SEARCH'] = serialize(array($this->dto->area, $this->dto->category, $this->dto->time, $this->dto->condition, $this->dto->compensation));
--- a/front/html/job_detail.html
+++ b/front/html/job_detail.html
@@ -2,7 +2,8 @@
22 <html>
33 <head>
44 <meta charset="UTF-8">
5-<title>「<?=mb_convert_kana($shopName, 'as', 'UTF-8')?>」の求人情報詳細</title>
5+<title>「<?=mb_convert_kana($shopName, 'as', 'UTF-8')?>」の求人情報詳細
6+</title>
67 <link rel="stylesheet" href="<?=DOMAIN?>front/css/sexybuttons.css">
78 <link rel="stylesheet" href="<?=DOMAIN?>front/css/common.css">
89 <link rel="stylesheet" href="<?=DOMAIN?>front/css/header.css">
@@ -95,6 +96,27 @@
9596 background-color: #FFFFFF;
9697 }
9798
99+.left10 {
100+ width: 10%;
101+ float: left;
102+ text-align: center;
103+ border: 1px solid #FFA500;
104+ color: #FFA500;
105+}
106+
107+.left10s {
108+ width: 10%;
109+ float: left;
110+ text-align: center;
111+ border-left: 1px solid #FFFFFF;
112+ border-right: 1px solid #FFFFFF;
113+ border-top: 1px solid #FFA500;
114+ border-bottom: 1px solid #FFA500;
115+ font-weight: bold;
116+ background-color: #FFA500;
117+ color: #FFFFFF;
118+}
119+
98120 .left20 {
99121 width: 20%;
100122 float: left;
@@ -172,6 +194,16 @@
172194 </div>
173195 <br clear="all" style="clear: both;">
174196 </div>
197+ <div style="margin-top: 1em;">
198+ <div class="left20">&nbsp;</div>
199+ <div class="left10<?=isset($boxList['1']) ? 's' : ''?>">早朝</div>
200+ <div class="left10<?=isset($boxList['2']) ? 's' : ''?>">朝</div>
201+ <div class="left10<?=isset($boxList['3']) ? 's' : ''?>">昼</div>
202+ <div class="left10<?=isset($boxList['4']) ? 's' : ''?>">夕方</div>
203+ <div class="left10<?=isset($boxList['5']) ? 's' : ''?>">夜</div>
204+ <div class="left10<?=isset($boxList['6']) ? 's' : ''?>">深夜</div>
205+ <br clear="all" style="clear: both;">
206+ </div>
175207 <div style="margin: 1em 0; text-align: center; background-color: #FFFFFF;">
176208 <button type="button" class="sexybutton sexysimple sexyorange" id="open_map">
177209 <span class="map">MAP</span>
--- a/front/html/job_list.html
+++ b/front/html/job_list.html
@@ -55,6 +55,27 @@
5555 background-color: #FFFFFF;
5656 }
5757
58+.left10 {
59+ width: 10%;
60+ float: left;
61+ text-align: center;
62+ border: 1px solid #FFA500;
63+ color: #FFA500;
64+}
65+
66+.left10s {
67+ width: 10%;
68+ float: left;
69+ text-align: center;
70+ border-left: 1px solid #FFFFFF;
71+ border-right: 1px solid #FFFFFF;
72+ border-top: 1px solid #FFA500;
73+ border-bottom: 1px solid #FFA500;
74+ font-weight: bold;
75+ background-color: #FFA500;
76+ color: #FFFFFF;
77+}
78+
5879 .left20 {
5980 width: 20%;
6081 float: left;
@@ -189,6 +210,16 @@
189210 </div>
190211 <br clear="all" style="clear: both;">
191212 </div>
213+ <div style="margin-top: 1em;">
214+ <div class="left20">&nbsp;</div>
215+ <div class="left10<?=isset($boxList[$val['offer_code']]['1']) ? 's' : ''?>">早朝</div>
216+ <div class="left10<?=isset($boxList[$val['offer_code']]['2']) ? 's' : ''?>">朝</div>
217+ <div class="left10<?=isset($boxList[$val['offer_code']]['3']) ? 's' : ''?>">昼</div>
218+ <div class="left10<?=isset($boxList[$val['offer_code']]['4']) ? 's' : ''?>">夕方</div>
219+ <div class="left10<?=isset($boxList[$val['offer_code']]['5']) ? 's' : ''?>">夜</div>
220+ <div class="left10<?=isset($boxList[$val['offer_code']]['6']) ? 's' : ''?>">深夜</div>
221+ <br clear="all" style="clear: both;">
222+ </div>
192223 <div style="margin: 1em 0; text-align: center;">
193224 <a href="<?=DOMAIN?>job_detail/index/<?=$val['offer_code']?>" class="sexybutton sexysimple sexyorange">詳細を見る</a>
194225 </div>