| Revision | b641d8b8ffe3d91dad81ef1ced390709b38623e8 (tree) |
|---|---|
| Time | 2013-04-30 14:04:29 |
| Author | tes-okumura <tes-okumura@sint...> |
| Commiter | tes-okumura |
時間帯を表す帯(オレンジのボックス)を追加
| @@ -19,5 +19,6 @@ final class JobDetailDto extends Dto { | ||
| 19 | 19 | public $conditionList = array(); |
| 20 | 20 | public $remarkList = array(); |
| 21 | 21 | public $timeList = array(); |
| 22 | + public $boxList = array(); | |
| 22 | 23 | } |
| 23 | 24 | //EOF. |
| @@ -13,5 +13,6 @@ final class JobListDto extends Dto { | ||
| 13 | 13 | public $currentPage = 1; |
| 14 | 14 | public $totalPage = 1; |
| 15 | 15 | public $mode = 'recent'; |
| 16 | + public $boxList = array(); | |
| 16 | 17 | } |
| 17 | 18 | //EOF. |
| @@ -6,6 +6,7 @@ require_once DAO . 'OfferCompensationDao.php'; | ||
| 6 | 6 | require_once DAO . 'OfferHoursDao.php'; |
| 7 | 7 | require_once DAO . 'OfferConditionDao.php'; |
| 8 | 8 | require_once DAO . 'OfferRemarkDao.php'; |
| 9 | +require_once DAO . 'OfferTimeDao.php'; | |
| 9 | 10 | require_once DTO . 'JobDetailDto.php'; |
| 10 | 11 | final class JobDetail extends Action { |
| 11 | 12 | private $dto; |
| @@ -64,6 +65,11 @@ final class JobDetail extends Action { | ||
| 64 | 65 | while ($remark = mysql_fetch_assoc($remarkList)) { |
| 65 | 66 | $this->dto->remarkList[] = $remark['remark']; |
| 66 | 67 | } |
| 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 | + } | |
| 67 | 73 | return new forward(); |
| 68 | 74 | } |
| 69 | 75 | } |
| @@ -3,6 +3,7 @@ require_once DAO . 'OfferDao.php'; | ||
| 3 | 3 | require_once DAO . 'OfferHoursDao.php'; |
| 4 | 4 | require_once DAO . 'OfferSalaryDao.php'; |
| 5 | 5 | require_once DAO . 'OfferConditionDao.php'; |
| 6 | +require_once DAO . 'OfferTimeDao.php'; | |
| 6 | 7 | require_once DTO . 'JobListDto.php'; |
| 7 | 8 | require_once INTERNAL . 'Pager.php'; |
| 8 | 9 | final class JobList extends Action { |
| @@ -21,6 +22,7 @@ final class JobList extends Action { | ||
| 21 | 22 | $offerHoursDao = new OfferHoursDao(); |
| 22 | 23 | $offerSalaryDao = new OfferSalaryDao(); |
| 23 | 24 | $offerConditionDao = new OfferConditionDao(); |
| 25 | + $offerTimeDao = new OfferTimeDao(); | |
| 24 | 26 | $pager = new Pager($this->dto->totalRow, $this->dto->currentPage); |
| 25 | 27 | $jobList = $offerdao->getRecent($pager->getStartRow(), Pager::PAGE_ROWS); |
| 26 | 28 | $pager->setTotalRow($offerdao->foundRows()); |
| @@ -40,6 +42,10 @@ final class JobList extends Action { | ||
| 40 | 42 | while ($condition = mysql_fetch_assoc($conditionList)) { |
| 41 | 43 | $this->dto->conditionList[$row['offer_code']][] = $condition['condition_name']; |
| 42 | 44 | } |
| 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 | + } | |
| 43 | 49 | } |
| 44 | 50 | $this->dto->mode = 'recent'; |
| 45 | 51 | return new forward(); |
| @@ -53,6 +59,7 @@ final class JobList extends Action { | ||
| 53 | 59 | $offerHoursDao = new OfferHoursDao(); |
| 54 | 60 | $offerSalaryDao = new OfferSalaryDao(); |
| 55 | 61 | $offerConditionDao = new OfferConditionDao(); |
| 62 | + $offerTimeDao = new OfferTimeDao(); | |
| 56 | 63 | $pager = new Pager($this->dto->totalRow, $this->dto->currentPage); |
| 57 | 64 | $jobList = $offerdao->getJobList($this->dto->area, $this->dto->category, $this->dto->time, $this->dto->condition, $this->dto->compensation, $pager->getStartRow(), Pager::PAGE_ROWS); |
| 58 | 65 | $pager->setTotalRow($offerdao->foundRows()); |
| @@ -72,6 +79,10 @@ final class JobList extends Action { | ||
| 72 | 79 | while ($condition = mysql_fetch_assoc($conditionList)) { |
| 73 | 80 | $this->dto->conditionList[$row['offer_code']][] = $condition['condition_name']; |
| 74 | 81 | } |
| 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 | + } | |
| 75 | 86 | } |
| 76 | 87 | $this->dto->mode = 'move'; |
| 77 | 88 | $_SESSION['SEARCH'] = serialize(array($this->dto->area, $this->dto->category, $this->dto->time, $this->dto->condition, $this->dto->compensation)); |
| @@ -2,7 +2,8 @@ | ||
| 2 | 2 | <html> |
| 3 | 3 | <head> |
| 4 | 4 | <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> | |
| 6 | 7 | <link rel="stylesheet" href="<?=DOMAIN?>front/css/sexybuttons.css"> |
| 7 | 8 | <link rel="stylesheet" href="<?=DOMAIN?>front/css/common.css"> |
| 8 | 9 | <link rel="stylesheet" href="<?=DOMAIN?>front/css/header.css"> |
| @@ -95,6 +96,27 @@ | ||
| 95 | 96 | background-color: #FFFFFF; |
| 96 | 97 | } |
| 97 | 98 | |
| 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 | + | |
| 98 | 120 | .left20 { |
| 99 | 121 | width: 20%; |
| 100 | 122 | float: left; |
| @@ -172,6 +194,16 @@ | ||
| 172 | 194 | </div> |
| 173 | 195 | <br clear="all" style="clear: both;"> |
| 174 | 196 | </div> |
| 197 | + <div style="margin-top: 1em;"> | |
| 198 | + <div class="left20"> </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> | |
| 175 | 207 | <div style="margin: 1em 0; text-align: center; background-color: #FFFFFF;"> |
| 176 | 208 | <button type="button" class="sexybutton sexysimple sexyorange" id="open_map"> |
| 177 | 209 | <span class="map">MAP</span> |
| @@ -55,6 +55,27 @@ | ||
| 55 | 55 | background-color: #FFFFFF; |
| 56 | 56 | } |
| 57 | 57 | |
| 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 | + | |
| 58 | 79 | .left20 { |
| 59 | 80 | width: 20%; |
| 60 | 81 | float: left; |
| @@ -189,6 +210,16 @@ | ||
| 189 | 210 | </div> |
| 190 | 211 | <br clear="all" style="clear: both;"> |
| 191 | 212 | </div> |
| 213 | + <div style="margin-top: 1em;"> | |
| 214 | + <div class="left20"> </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> | |
| 192 | 223 | <div style="margin: 1em 0; text-align: center;"> |
| 193 | 224 | <a href="<?=DOMAIN?>job_detail/index/<?=$val['offer_code']?>" class="sexybutton sexysimple sexyorange">詳細を見る</a> |
| 194 | 225 | </div> |