while($row = $rst->fetch_assoc()){ $strParamList = array('cast_id','cast_view','cast_type','cast_num','cast_num_schedule','cast_name','cast_limited','cast_newface','cast_age','cast_tall','cast_weigh','cast_bust','cast_waist','cast_hip','cast_profile','cast_kirakira','cast_pickup','cast_count','image_main','image_profile0','image_profile1','image_profile2','image_profile3','image_profile4','day0','day1','day2','day3','day4','day5','day6','day7','day8','day9','day10','day11','day12','day13','day14','day15','day16','day17','day18','day19','day20','schedule0','schedule1','schedule2','schedule3','schedule4','schedule5','schedule6','schedule7','schedule8','schedule9','schedule10','schedule11','schedule12','schedule13','schedule14','schedule15','schedule16','schedule17','schedule18','schedule19','schedule20','standby0','standby1','standby2','standby3','standby4','standby5','standby6','standby7','standby8','standby9','standby10','standby11','standby12','standby13','standby14','standby15','standby16','standby17','standby18','standby19','standby20','last0','last1','last2','last3','last4','last5','last6','last7','last8','last9','last10','last11','last12','last13','last14','last15','last16','last17','last18','last19','last20','expiry0','expiry1','expiry2','expiry3','expiry4','expiry5','expiry6','expiry7','expiry8','expiry9','expiry10','expiry11','expiry12','expiry13','expiry14','expiry15','expiry16','expiry17','expiry18','expiry19','expiry20'); foreach($row as $key => $value){ if(in_array($key,$strParamList)){ $value = trim($value); $$key = $value; } } // schedule switch($base_day0){ case $day0 : $web_schedule0 = $schedule0; $web_standby0 = $standby0; $web_last0 = $last0; $web_expiry0 = $expiry0; break; case $day1 : $web_schedule0 = $schedule1; $web_standby0 = $standby1; $web_last0 = $last1; $web_expiry0 = $expiry1; break; case $day2 : $web_schedule0 = $schedule2; $web_standby0 = $standby2; $web_last0 = $last2; $web_expiry0 = $expiry2; break; case $day3 : $web_schedule0 = $schedule3; $web_standby0 = $standby3; $web_last0 = $last3; $web_expiry0 = $expiry3; break; case $day4 : $web_schedule0 = $schedule4; $web_standby0 = $standby4; $web_last0 = $last4; $web_expiry0 = $expiry4; break; case $day5 : $web_schedule0 = $schedule5; $web_standby0 = $standby5; $web_last0 = $last5; $web_expiry0 = $expiry5; break; case $day6 : $web_schedule0 = $schedule6; $web_standby0 = $standby6; $web_last0 = $last6; $web_expiry0 = $expiry6; break; case $day7 : $web_schedule0 = $schedule7; $web_standby0 = $standby7; $web_last0 = $last7; $web_expiry0 = $expiry7; break; case $day8 : $web_schedule0 = $schedule8; $web_standby0 = $standby8; $web_last0 = $last8; $web_expiry0 = $expiry8; break; case $day9 : $web_schedule0 = $schedule9; $web_standby0 = $standby9; $web_last0 = $last9; $web_expiry0 = $expiry9; break; case $day10 : $web_schedule0 = $schedule10; $web_standby0 = $standby10; $web_last0 = $last10; $web_expiry0 = $expiry10; break; case $day11 : $web_schedule0 = $schedule11; $web_standby0 = $standby11; $web_last0 = $last11; $web_expiry0 = $expiry11; break; case $day12 : $web_schedule0 = $schedule12; $web_standby0 = $standby12; $web_last0 = $last12; $web_expiry0 = $expiry12; break; case $day13 : $web_schedule0 = $schedule13; $web_standby0 = $standby13; $web_last0 = $last13; $web_expiry0 = $expiry13; break; case $day14 : $web_schedule0 = $schedule14; $web_standby0 = $standby14; $web_last0 = $last14; $web_expiry0 = $expiry14; break; case $day15 : $web_schedule0 = $schedule15; $web_standby0 = $standby15; $web_last0 = $last15; $web_expiry0 = $expiry15; break; case $day16 : $web_schedule0 = $schedule16; $web_standby0 = $standby16; $web_last0 = $last16; $web_expiry0 = $expiry16; break; case $day17 : $web_schedule0 = $schedule17; $web_standby0 = $standby17; $web_last0 = $last17; $web_expiry0 = $expiry17; break; case $day18 : $web_schedule0 = $schedule18; $web_standby0 = $standby18; $web_last0 = $last18; $web_expiry0 = $expiry18; break; case $day19 : $web_schedule0 = $schedule19; $web_standby0 = $standby19; $web_last0 = $last19; $web_expiry0 = $expiry19; break; case $day20 : $web_schedule0 = $schedule20; $web_standby0 = $standby20; $web_last0 = $last20; $web_expiry0 = $expiry20; break; default : $web_schedule0 = ""; $web_standby0 = ""; $web_last0 = 0; $web_expiry0 = 0; } switch($base_day1){ case $day0 : $web_schedule1 = $schedule0; $web_standby1 = $standby0; $web_last1 = $last0; $web_expiry1 = $expiry0; break; case $day1 : $web_schedule1 = $schedule1; $web_standby1 = $standby1; $web_last1 = $last1; $web_expiry1 = $expiry1; break; case $day2 : $web_schedule1 = $schedule2; $web_standby1 = $standby2; $web_last1 = $last2; $web_expiry1 = $expiry2; break; case $day3 : $web_schedule1 = $schedule3; $web_standby1 = $standby3; $web_last1 = $last3; $web_expiry1 = $expiry3; break; case $day4 : $web_schedule1 = $schedule4; $web_standby1 = $standby4; $web_last1 = $last4; $web_expiry1 = $expiry4; break; case $day5 : $web_schedule1 = $schedule5; $web_standby1 = $standby5; $web_last1 = $last5; $web_expiry1 = $expiry5; break; case $day6 : $web_schedule1 = $schedule6; $web_standby1 = $standby6; $web_last1 = $last6; $web_expiry1 = $expiry6; break; case $day7 : $web_schedule1 = $schedule7; $web_standby1 = $standby7; $web_last1 = $last7; $web_expiry1 = $expiry7; break; case $day8 : $web_schedule1 = $schedule8; $web_standby1 = $standby8; $web_last1 = $last8; $web_expiry1 = $expiry8; break; case $day9 : $web_schedule1 = $schedule9; $web_standby1 = $standby9; $web_last1 = $last9; $web_expiry1 = $expiry9; break; case $day10 : $web_schedule1 = $schedule10; $web_standby1 = $standby10; $web_last1 = $last10; $web_expiry1 = $expiry10; break; case $day11 : $web_schedule1 = $schedule11; $web_standby1 = $standby11; $web_last1 = $last11; $web_expiry1 = $expiry11; break; case $day12 : $web_schedule1 = $schedule12; $web_standby1 = $standby12; $web_last1 = $last12; $web_expiry1 = $expiry12; break; case $day13 : $web_schedule1 = $schedule13; $web_standby1 = $standby13; $web_last1 = $last13; $web_expiry1 = $expiry13; break; case $day14 : $web_schedule1 = $schedule14; $web_standby1 = $standby14; $web_last1 = $last14; $web_expiry1 = $expiry14; break; case $day15 : $web_schedule1 = $schedule15; $web_standby1 = $standby15; $web_last1 = $last15; $web_expiry1 = $expiry15; break; case $day16 : $web_schedule1 = $schedule16; $web_standby1 = $standby16; $web_last1 = $last16; $web_expiry1 = $expiry16; break; case $day17 : $web_schedule1 = $schedule17; $web_standby1 = $standby17; $web_last1 = $last17; $web_expiry1 = $expiry17; break; case $day18 : $web_schedule1 = $schedule18; $web_standby1 = $standby18; $web_last1 = $last18; $web_expiry1 = $expiry18; break; case $day19 : $web_schedule1 = $schedule19; $web_standby1 = $standby19; $web_last1 = $last19; $web_expiry1 = $expiry19; break; case $day20 : $web_schedule1 = $schedule20; $web_standby1 = $standby20; $web_last1 = $last20; $web_expiry1 = $expiry20; break; default : $web_schedule1 = ""; $web_standby1 = ""; $web_last1 = 0; $web_expiry1 = 0; } switch($base_day2){ case $day0 : $web_schedule2 = $schedule0; $web_standby2 = $standby0; $web_last2 = $last0; $web_expiry2 = $expiry0; break; case $day1 : $web_schedule2 = $schedule1; $web_standby2 = $standby1; $web_last2 = $last1; $web_expiry2 = $expiry1; break; case $day2 : $web_schedule2 = $schedule2; $web_standby2 = $standby2; $web_last2 = $last2; $web_expiry2 = $expiry2; break; case $day3 : $web_schedule2 = $schedule3; $web_standby2 = $standby3; $web_last2 = $last3; $web_expiry2 = $expiry3; break; case $day4 : $web_schedule2 = $schedule4; $web_standby2 = $standby4; $web_last2 = $last4; $web_expiry2 = $expiry4; break; case $day5 : $web_schedule2 = $schedule5; $web_standby2 = $standby5; $web_last2 = $last5; $web_expiry2 = $expiry5; break; case $day6 : $web_schedule2 = $schedule6; $web_standby2 = $standby6; $web_last2 = $last6; $web_expiry2 = $expiry6; break; case $day7 : $web_schedule2 = $schedule7; $web_standby2 = $standby7; $web_last2 = $last7; $web_expiry2 = $expiry7; break; case $day8 : $web_schedule2 = $schedule8; $web_standby2 = $standby8; $web_last2 = $last8; $web_expiry2 = $expiry8; break; case $day9 : $web_schedule2 = $schedule9; $web_standby2 = $standby9; $web_last2 = $last9; $web_expiry2 = $expiry9; break; case $day10 : $web_schedule2 = $schedule10; $web_standby2 = $standby10; $web_last2 = $last10; $web_expiry2 = $expiry10; break; case $day11 : $web_schedule2 = $schedule11; $web_standby2 = $standby11; $web_last2 = $last11; $web_expiry2 = $expiry11; break; case $day12 : $web_schedule2 = $schedule12; $web_standby2 = $standby12; $web_last2 = $last12; $web_expiry2 = $expiry12; break; case $day13 : $web_schedule2 = $schedule13; $web_standby2 = $standby13; $web_last2 = $last13; $web_expiry2 = $expiry13; break; case $day14 : $web_schedule2 = $schedule14; $web_standby2 = $standby14; $web_last2 = $last14; $web_expiry2 = $expiry14; break; case $day15 : $web_schedule2 = $schedule15; $web_standby2 = $standby15; $web_last2 = $last15; $web_expiry2 = $expiry15; break; case $day16 : $web_schedule2 = $schedule16; $web_standby2 = $standby16; $web_last2 = $last16; $web_expiry2 = $expiry16; break; case $day17 : $web_schedule2 = $schedule17; $web_standby2 = $standby17; $web_last2 = $last17; $web_expiry2 = $expiry17; break; case $day18 : $web_schedule2 = $schedule18; $web_standby2 = $standby18; $web_last2 = $last18; $web_expiry2 = $expiry18; break; case $day19 : $web_schedule2 = $schedule19; $web_standby2 = $standby19; $web_last2 = $last19; $web_expiry2 = $expiry19; break; case $day20 : $web_schedule2 = $schedule20; $web_standby2 = $standby20; $web_last2 = $last20; $web_expiry2 = $expiry20; break; default : $web_schedule2 = ""; $web_standby2 = ""; $web_last2 = 0; $web_expiry2 = 0; } switch($base_day3){ case $day0 : $web_schedule3 = $schedule0; $web_standby3 = $standby0; $web_last3 = $last0; $web_expiry3 = $expiry0; break; case $day1 : $web_schedule3 = $schedule1; $web_standby3 = $standby1; $web_last3 = $last1; $web_expiry3 = $expiry1; break; case $day2 : $web_schedule3 = $schedule2; $web_standby3 = $standby2; $web_last3 = $last2; $web_expiry3 = $expiry2; break; case $day3 : $web_schedule3 = $schedule3; $web_standby3 = $standby3; $web_last3 = $last3; $web_expiry3 = $expiry3; break; case $day4 : $web_schedule3 = $schedule4; $web_standby3 = $standby4; $web_last3 = $last4; $web_expiry3 = $expiry4; break; case $day5 : $web_schedule3 = $schedule5; $web_standby3 = $standby5; $web_last3 = $last5; $web_expiry3 = $expiry5; break; case $day6 : $web_schedule3 = $schedule6; $web_standby3 = $standby6; $web_last3 = $last6; $web_expiry3 = $expiry6; break; case $day7 : $web_schedule3 = $schedule7; $web_standby3 = $standby7; $web_last3 = $last7; $web_expiry3 = $expiry7; break; case $day8 : $web_schedule3 = $schedule8; $web_standby3 = $standby8; $web_last3 = $last8; $web_expiry3 = $expiry8; break; case $day9 : $web_schedule3 = $schedule9; $web_standby3 = $standby9; $web_last3 = $last9; $web_expiry3 = $expiry9; break; case $day10 : $web_schedule3 = $schedule10; $web_standby3 = $standby10; $web_last3 = $last10; $web_expiry3 = $expiry10; break; case $day11 : $web_schedule3 = $schedule11; $web_standby3 = $standby11; $web_last3 = $last11; $web_expiry3 = $expiry11; break; case $day12 : $web_schedule3 = $schedule12; $web_standby3 = $standby12; $web_last3 = $last12; $web_expiry3 = $expiry12; break; case $day13 : $web_schedule3 = $schedule13; $web_standby3 = $standby13; $web_last3 = $last13; $web_expiry3 = $expiry13; break; case $day14 : $web_schedule3 = $schedule14; $web_standby3 = $standby14; $web_last3 = $last14; $web_expiry3 = $expiry14; break; case $day15 : $web_schedule3 = $schedule15; $web_standby3 = $standby15; $web_last3 = $last15; $web_expiry3 = $expiry15; break; case $day16 : $web_schedule3 = $schedule16; $web_standby3 = $standby16; $web_last3 = $last16; $web_expiry3 = $expiry16; break; case $day17 : $web_schedule3 = $schedule17; $web_standby3 = $standby17; $web_last3 = $last17; $web_expiry3 = $expiry17; break; case $day18 : $web_schedule3 = $schedule18; $web_standby3 = $standby18; $web_last3 = $last18; $web_expiry3 = $expiry18; break; case $day19 : $web_schedule3 = $schedule19; $web_standby3 = $standby19; $web_last3 = $last19; $web_expiry3 = $expiry19; break; case $day20 : $web_schedule3 = $schedule20; $web_standby3 = $standby20; $web_last3 = $last20; $web_expiry3 = $expiry20; break; default : $web_schedule3 = ""; $web_standby3 = ""; $web_last3 = 0; $web_expiry3 = 0; } switch($base_day4){ case $day0 : $web_schedule4 = $schedule0; $web_standby4 = $standby0; $web_last4 = $last0; $web_expiry4 = $expiry0; break; case $day1 : $web_schedule4 = $schedule1; $web_standby4 = $standby1; $web_last4 = $last1; $web_expiry4 = $expiry1; break; case $day2 : $web_schedule4 = $schedule2; $web_standby4 = $standby2; $web_last4 = $last2; $web_expiry4 = $expiry2; break; case $day3 : $web_schedule4 = $schedule3; $web_standby4 = $standby3; $web_last4 = $last3; $web_expiry4 = $expiry3; break; case $day4 : $web_schedule4 = $schedule4; $web_standby4 = $standby4; $web_last4 = $last4; $web_expiry4 = $expiry4; break; case $day5 : $web_schedule4 = $schedule5; $web_standby4 = $standby5; $web_last4 = $last5; $web_expiry4 = $expiry5; break; case $day6 : $web_schedule4 = $schedule6; $web_standby4 = $standby6; $web_last4 = $last6; $web_expiry4 = $expiry6; break; case $day7 : $web_schedule4 = $schedule7; $web_standby4 = $standby7; $web_last4 = $last7; $web_expiry4 = $expiry7; break; case $day8 : $web_schedule4 = $schedule8; $web_standby4 = $standby8; $web_last4 = $last8; $web_expiry4 = $expiry8; break; case $day9 : $web_schedule4 = $schedule9; $web_standby4 = $standby9; $web_last4 = $last9; $web_expiry4 = $expiry9; break; case $day10 : $web_schedule4 = $schedule10; $web_standby4 = $standby10; $web_last4 = $last10; $web_expiry4 = $expiry10; break; case $day11 : $web_schedule4 = $schedule11; $web_standby4 = $standby11; $web_last4 = $last11; $web_expiry4 = $expiry11; break; case $day12 : $web_schedule4 = $schedule12; $web_standby4 = $standby12; $web_last4 = $last12; $web_expiry4 = $expiry12; break; case $day13 : $web_schedule4 = $schedule13; $web_standby4 = $standby13; $web_last4 = $last13; $web_expiry4 = $expiry13; break; case $day14 : $web_schedule4 = $schedule14; $web_standby4 = $standby14; $web_last4 = $last14; $web_expiry4 = $expiry14; break; case $day15 : $web_schedule4 = $schedule15; $web_standby4 = $standby15; $web_last4 = $last15; $web_expiry4 = $expiry15; break; case $day16 : $web_schedule4 = $schedule16; $web_standby4 = $standby16; $web_last4 = $last16; $web_expiry4 = $expiry16; break; case $day17 : $web_schedule4 = $schedule17; $web_standby4 = $standby17; $web_last4 = $last17; $web_expiry4 = $expiry17; break; case $day18 : $web_schedule4 = $schedule18; $web_standby4 = $standby18; $web_last4 = $last18; $web_expiry4 = $expiry18; break; case $day19 : $web_schedule4 = $schedule19; $web_standby4 = $standby19; $web_last4 = $last19; $web_expiry4 = $expiry19; break; case $day20 : $web_schedule4 = $schedule20; $web_standby4 = $standby20; $web_last4 = $last20; $web_expiry4 = $expiry20; break; default : $web_schedule4 = ""; $web_standby4 = ""; $web_last4 = 0; $web_expiry4 = 0; } switch($base_day5){ case $day0 : $web_schedule5 = $schedule0; $web_standby5 = $standby0; $web_last5 = $last0; $web_expiry5 = $expiry0; break; case $day1 : $web_schedule5 = $schedule1; $web_standby5 = $standby1; $web_last5 = $last1; $web_expiry5 = $expiry1; break; case $day2 : $web_schedule5 = $schedule2; $web_standby5 = $standby2; $web_last5 = $last2; $web_expiry5 = $expiry2; break; case $day3 : $web_schedule5 = $schedule3; $web_standby5 = $standby3; $web_last5 = $last3; $web_expiry5 = $expiry3; break; case $day4 : $web_schedule5 = $schedule4; $web_standby5 = $standby4; $web_last5 = $last4; $web_expiry5 = $expiry4; break; case $day5 : $web_schedule5 = $schedule5; $web_standby5 = $standby5; $web_last5 = $last5; $web_expiry5 = $expiry5; break; case $day6 : $web_schedule5 = $schedule6; $web_standby5 = $standby6; $web_last5 = $last6; $web_expiry5 = $expiry6; break; case $day7 : $web_schedule5 = $schedule7; $web_standby5 = $standby7; $web_last5 = $last7; $web_expiry5 = $expiry7; break; case $day8 : $web_schedule5 = $schedule8; $web_standby5 = $standby8; $web_last5 = $last8; $web_expiry5 = $expiry8; break; case $day9 : $web_schedule5 = $schedule9; $web_standby5 = $standby9; $web_last5 = $last9; $web_expiry5 = $expiry9; break; case $day10 : $web_schedule5 = $schedule10; $web_standby5 = $standby10; $web_last5 = $last10; $web_expiry5 = $expiry10; break; case $day11 : $web_schedule5 = $schedule11; $web_standby5 = $standby11; $web_last5 = $last11; $web_expiry5 = $expiry11; break; case $day12 : $web_schedule5 = $schedule12; $web_standby5 = $standby12; $web_last5 = $last12; $web_expiry5 = $expiry12; break; case $day13 : $web_schedule5 = $schedule13; $web_standby5 = $standby13; $web_last5 = $last13; $web_expiry5 = $expiry13; break; case $day14 : $web_schedule5 = $schedule14; $web_standby5 = $standby14; $web_last5 = $last14; $web_expiry5 = $expiry14; break; case $day15 : $web_schedule5 = $schedule15; $web_standby5 = $standby15; $web_last5 = $last15; $web_expiry5 = $expiry15; break; case $day16 : $web_schedule5 = $schedule16; $web_standby5 = $standby16; $web_last5 = $last16; $web_expiry5 = $expiry16; break; case $day17 : $web_schedule5 = $schedule17; $web_standby5 = $standby17; $web_last5 = $last17; $web_expiry5 = $expiry17; break; case $day18 : $web_schedule5 = $schedule18; $web_standby5 = $standby18; $web_last5 = $last18; $web_expiry5 = $expiry18; break; case $day19 : $web_schedule5 = $schedule19; $web_standby5 = $standby19; $web_last5 = $last19; $web_expiry5 = $expiry19; break; case $day20 : $web_schedule5 = $schedule20; $web_standby5 = $standby20; $web_last5 = $last20; $web_expiry5 = $expiry20; break; default : $web_schedule5 = ""; $web_standby5 = ""; $web_last5 = 0; $web_expiry5 = 0; } switch($base_day6){ case $day0 : $web_schedule6 = $schedule0; $web_standby6 = $standby0; $web_last6 = $last0; $web_expiry6 = $expiry0; break; case $day1 : $web_schedule6 = $schedule1; $web_standby6 = $standby1; $web_last6 = $last1; $web_expiry6 = $expiry1; break; case $day2 : $web_schedule6 = $schedule2; $web_standby6 = $standby2; $web_last6 = $last2; $web_expiry6 = $expiry2; break; case $day3 : $web_schedule6 = $schedule3; $web_standby6 = $standby3; $web_last6 = $last3; $web_expiry6 = $expiry3; break; case $day4 : $web_schedule6 = $schedule4; $web_standby6 = $standby4; $web_last6 = $last4; $web_expiry6 = $expiry4; break; case $day5 : $web_schedule6 = $schedule5; $web_standby6 = $standby5; $web_last6 = $last5; $web_expiry6 = $expiry5; break; case $day6 : $web_schedule6 = $schedule6; $web_standby6 = $standby6; $web_last6 = $last6; $web_expiry6 = $expiry6; break; case $day7 : $web_schedule6 = $schedule7; $web_standby6 = $standby7; $web_last6 = $last7; $web_expiry6 = $expiry7; break; case $day8 : $web_schedule6 = $schedule8; $web_standby6 = $standby8; $web_last6 = $last8; $web_expiry6 = $expiry8; break; case $day9 : $web_schedule6 = $schedule9; $web_standby6 = $standby9; $web_last6 = $last9; $web_expiry6 = $expiry9; break; case $day10 : $web_schedule6 = $schedule10; $web_standby6 = $standby10; $web_last6 = $last10; $web_expiry6 = $expiry10; break; case $day11 : $web_schedule6 = $schedule11; $web_standby6 = $standby11; $web_last6 = $last11; $web_expiry6 = $expiry11; break; case $day12 : $web_schedule6 = $schedule12; $web_standby6 = $standby12; $web_last6 = $last12; $web_expiry6 = $expiry12; break; case $day13 : $web_schedule6 = $schedule13; $web_standby6 = $standby13; $web_last6 = $last13; $web_expiry6 = $expiry13; break; case $day14 : $web_schedule6 = $schedule14; $web_standby6 = $standby14; $web_last6 = $last14; $web_expiry6 = $expiry14; break; case $day15 : $web_schedule6 = $schedule15; $web_standby6 = $standby15; $web_last6 = $last15; $web_expiry6 = $expiry15; break; case $day16 : $web_schedule6 = $schedule16; $web_standby6 = $standby16; $web_last6 = $last16; $web_expiry6 = $expiry16; break; case $day17 : $web_schedule6 = $schedule17; $web_standby6 = $standby17; $web_last6 = $last17; $web_expiry6 = $expiry17; break; case $day18 : $web_schedule6 = $schedule18; $web_standby6 = $standby18; $web_last6 = $last18; $web_expiry6 = $expiry18; break; case $day19 : $web_schedule6 = $schedule19; $web_standby6 = $standby19; $web_last6 = $last19; $web_expiry6 = $expiry19; break; case $day20 : $web_schedule6 = $schedule20; $web_standby6 = $standby20; $web_last6 = $last20; $web_expiry6 = $expiry20; break; default : $web_schedule6 = ""; $web_standby6 = ""; $web_last6 = 0; $web_expiry6 = 0; } // 初期化 $body_standby0 = ""; $body_standby1 = ""; $body_standby2 = ""; $body_standby3 = ""; $body_standby4 = ""; $body_standby5 = ""; $body_standby6 = ""; switch($web_standby0){ case "sapporo" : $body_standby0 = "札幌店待機"; break; case "hakodate" : $body_standby0 = "函館店待機"; break; case "asahikawa" : $body_standby0 = "旭川店待機"; break; } switch($web_standby1){ case "sapporo" : $body_standby1 = "札幌店待機"; break; case "hakodate" : $body_standby1 = "函館店待機"; break; case "asahikawa" : $body_standby1 = "旭川店待機"; break; } switch($web_standby2){ case "sapporo" : $body_standby2 = "札幌店待機"; break; case "hakodate" : $body_standby2 = "函館店待機"; break; case "asahikawa" : $body_standby2 = "旭川店待機"; break; } switch($web_standby3){ case "sapporo" : $body_standby3 = "札幌店待機"; break; case "hakodate" : $body_standby3 = "函館店待機"; break; case "asahikawa" : $body_standby3 = "旭川店待機"; break; } switch($web_standby4){ case "sapporo" : $body_standby4 = "札幌店待機"; break; case "hakodate" : $body_standby4 = "函館店待機"; break; case "asahikawa" : $body_standby4 = "旭川店待機"; break; } switch($web_standby5){ case "sapporo" : $body_standby5 = "札幌店待機"; break; case "hakodate" : $body_standby5 = "函館店待機"; break; case "asahikawa" : $body_standby5 = "旭川店待機"; break; } switch($web_standby6){ case "sapporo" : $body_standby6 = "札幌店待機"; break; case "hakodate" : $body_standby6 = "函館店待機"; break; case "asahikawa" : $body_standby6 = "旭川店待機"; break; } // コンバート if($cast_limited){ $cast_name = "[期間限定]" .$cast_name; } if($cast_newface){ $cast_name = "[新人]" .$cast_name; } if($web_last0){ $web_schedule0 = "残り1枠" .$web_schedule0; } if($web_last1){ $web_schedule1 = "残り1枠" .$web_schedule1; } if($web_last2){ $web_schedule2 = "残り1枠" .$web_schedule2; } if($web_last3){ $web_schedule3 = "残り1枠" .$web_schedule3; } if($web_last4){ $web_schedule4 = "残り1枠" .$web_schedule4; } if($web_last5){ $web_schedule5 = "残り1枠" .$web_schedule5; } if($web_last6){ $web_schedule6 = "残り1枠" .$web_schedule6; } if($web_expiry0){ $web_schedule0 = "予約満了"; } if($web_expiry1){ $web_schedule1 = "予約満了"; } if($web_expiry2){ $web_schedule2 = "予約満了"; } if($web_expiry3){ $web_schedule3 = "予約満了"; } if($web_expiry4){ $web_schedule4 = "予約満了"; } if($web_expiry5){ $web_schedule5 = "予約満了"; } if($web_expiry6){ $web_schedule6 = "予約満了"; } // html $body_week_schedule .= "
"; $body_week_schedule .= ""; $body_week_schedule .= ""; $body_week_schedule .= ""; $body_week_schedule .= ""; $body_week_schedule .= ""; $body_week_schedule .= ""; $body_week_schedule .= ""; $body_week_schedule .= ""; $body_week_schedule .= ""; $body_week_schedule .= ""; $body_week_schedule .= ""; $body_week_schedule .= ""; $body_week_schedule .= ""; $body_week_schedule .= ""; $body_week_schedule .= ""; $body_week_schedule .= ""; $body_week_schedule .= ""; $body_week_schedule .= ""; $body_week_schedule .= ""; $body_week_schedule .= ""; $body_week_schedule .= "
"; // 画像 if($image_main){ $body_week_schedule .= ""; }else{ $body_week_schedule .= ""; } $body_week_schedule .= "
{$cast_name}
{$web_week_day0}{$web_week_day1}{$web_week_day2}{$web_week_day3}{$web_week_day4}{$web_week_day5}{$web_week_day6}
{$body_standby0}" .nl2br($web_schedule0) ."
{$body_standby1}" .nl2br($web_schedule1) ."
{$body_standby2}" .nl2br($web_schedule2) ."
{$body_standby3}" .nl2br($web_schedule3) ."
{$body_standby4}" .nl2br($web_schedule4) ."
{$body_standby5}" .nl2br($web_schedule5) ."
{$body_standby6}" .nl2br($web_schedule6) ."
"; $body_week_schedule .= "
"; } // 非表示キーワード $sql = "SELECT * FROM $TABLE_LIBE_SCHEDULE_KEYWORD"; $rst = $con->query($sql); while($row = $rst->fetch_assoc()){ // データ取得 $strParamList = array('schedule_keyword'); foreach($row as $key => $value){ if(in_array($key,$strParamList)){ $value = trim($value); $value = preg_quote($value,"/"); $$key = htmlspecialchars($value,ENT_QUOTES,'utf-8'); } } // html $schedule_keywords .= "{$schedule_keyword}|"; } $schedule_keywords .= "完全休業中"; // キャスト・イメージ・スケジュール取得 $sql = "SELECT * FROM $TABLE_LIBE_CAST INNER JOIN $TABLE_LIBE_CAST_IMAGE ON $TABLE_LIBE_CAST.cast_id = $TABLE_LIBE_CAST_IMAGE.cast_id INNER JOIN $TABLE_LIBE_CAST_SCHEDULE ON $TABLE_LIBE_CAST.cast_id = $TABLE_LIBE_CAST_SCHEDULE.cast_id WHERE ($TABLE_LIBE_CAST.cast_view like '%[{$shop_city}]%') ORDER BY $TABLE_LIBE_CAST.cast_num_schedule DESC"; $rst = $con->query($sql); $i = 0; while($row = $rst->fetch_assoc()){ $strParamList = array('cast_id','cast_view','cast_type','cast_num','cast_num_schedule','cast_name','cast_limited','cast_newface','cast_age','cast_tall','cast_weigh','cast_bust','cast_waist','cast_hip','cast_profile','cast_kirakira','cast_pickup','cast_count','image_main','image_profile0','image_profile1','image_profile2','image_profile3','image_profile4','day0','day1','day2','day3','day4','day5','day6','day7','day8','day9','day10','day11','day12','day13','day14','day15','day16','day17','day18','day19','day20','schedule0','schedule1','schedule2','schedule3','schedule4','schedule5','schedule6','schedule7','schedule8','schedule9','schedule10','schedule11','schedule12','schedule13','schedule14','schedule15','schedule16','schedule17','schedule18','schedule19','schedule20','standby0','standby1','standby2','standby3','standby4','standby5','standby6','standby7','standby8','standby9','standby10','standby11','standby12','standby13','standby14','standby15','standby16','standby17','standby18','standby19','standby20','last0','last1','last2','last3','last4','last5','last6','last7','last8','last9','last10','last11','last12','last13','last14','last15','last16','last17','last18','last19','last20','expiry0','expiry1','expiry2','expiry3','expiry4','expiry5','expiry6','expiry7','expiry8','expiry9','expiry10','expiry11','expiry12','expiry13','expiry14','expiry15','expiry16','expiry17','expiry18','expiry19','expiry20'); foreach($row as $key => $value){ if(in_array($key,$strParamList)){ $value = trim($value); $$key = $value; } } //コンバート $cast_num_schedule = 1000 - $cast_num_schedule; // schedule switch($base_day0){ case $day0 : $web_schedule0 = $schedule0; $web_standby0 = $standby0; $web_last0 = $last0; $web_expiry0 = $expiry0; break; case $day1 : $web_schedule0 = $schedule1; $web_standby0 = $standby1; $web_last0 = $last1; $web_expiry0 = $expiry1; break; case $day2 : $web_schedule0 = $schedule2; $web_standby0 = $standby2; $web_last0 = $last2; $web_expiry0 = $expiry2; break; case $day3 : $web_schedule0 = $schedule3; $web_standby0 = $standby3; $web_last0 = $last3; $web_expiry0 = $expiry3; break; case $day4 : $web_schedule0 = $schedule4; $web_standby0 = $standby4; $web_last0 = $last4; $web_expiry0 = $expiry4; break; case $day5 : $web_schedule0 = $schedule5; $web_standby0 = $standby5; $web_last0 = $last5; $web_expiry0 = $expiry5; break; case $day6 : $web_schedule0 = $schedule6; $web_standby0 = $standby6; $web_last0 = $last6; $web_expiry0 = $expiry6; break; case $day7 : $web_schedule0 = $schedule7; $web_standby0 = $standby7; $web_last0 = $last7; $web_expiry0 = $expiry7; break; case $day8 : $web_schedule0 = $schedule8; $web_standby0 = $standby8; $web_last0 = $last8; $web_expiry0 = $expiry8; break; case $day9 : $web_schedule0 = $schedule9; $web_standby0 = $standby9; $web_last0 = $last9; $web_expiry0 = $expiry9; break; case $day10 : $web_schedule0 = $schedule10; $web_standby0 = $standby10; $web_last0 = $last10; $web_expiry0 = $expiry10; break; case $day11 : $web_schedule0 = $schedule11; $web_standby0 = $standby11; $web_last0 = $last11; $web_expiry0 = $expiry11; break; case $day12 : $web_schedule0 = $schedule12; $web_standby0 = $standby12; $web_last0 = $last12; $web_expiry0 = $expiry12; break; case $day13 : $web_schedule0 = $schedule13; $web_standby0 = $standby13; $web_last0 = $last13; $web_expiry0 = $expiry13; break; case $day14 : $web_schedule0 = $schedule14; $web_standby0 = $standby14; $web_last0 = $last14; $web_expiry0 = $expiry14; break; case $day15 : $web_schedule0 = $schedule15; $web_standby0 = $standby15; $web_last0 = $last15; $web_expiry0 = $expiry15; break; case $day16 : $web_schedule0 = $schedule16; $web_standby0 = $standby16; $web_last0 = $last16; $web_expiry0 = $expiry16; break; case $day17 : $web_schedule0 = $schedule17; $web_standby0 = $standby17; $web_last0 = $last17; $web_expiry0 = $expiry17; break; case $day18 : $web_schedule0 = $schedule18; $web_standby0 = $standby18; $web_last0 = $last18; $web_expiry0 = $expiry18; break; case $day19 : $web_schedule0 = $schedule19; $web_standby0 = $standby19; $web_last0 = $last19; $web_expiry0 = $expiry19; break; case $day20 : $web_schedule0 = $schedule20; $web_standby0 = $standby20; $web_last0 = $last20; $web_expiry0 = $expiry20; break; default : $web_schedule0 = ""; $web_standby0 = ""; $web_last0 = 0; $web_expiry0 = 0; } switch($base_day1){ case $day0 : $web_schedule1 = $schedule0; $web_standby1 = $standby0; $web_last1 = $last0; $web_expiry1 = $expiry0; break; case $day1 : $web_schedule1 = $schedule1; $web_standby1 = $standby1; $web_last1 = $last1; $web_expiry1 = $expiry1; break; case $day2 : $web_schedule1 = $schedule2; $web_standby1 = $standby2; $web_last1 = $last2; $web_expiry1 = $expiry2; break; case $day3 : $web_schedule1 = $schedule3; $web_standby1 = $standby3; $web_last1 = $last3; $web_expiry1 = $expiry3; break; case $day4 : $web_schedule1 = $schedule4; $web_standby1 = $standby4; $web_last1 = $last4; $web_expiry1 = $expiry4; break; case $day5 : $web_schedule1 = $schedule5; $web_standby1 = $standby5; $web_last1 = $last5; $web_expiry1 = $expiry5; break; case $day6 : $web_schedule1 = $schedule6; $web_standby1 = $standby6; $web_last1 = $last6; $web_expiry1 = $expiry6; break; case $day7 : $web_schedule1 = $schedule7; $web_standby1 = $standby7; $web_last1 = $last7; $web_expiry1 = $expiry7; break; case $day8 : $web_schedule1 = $schedule8; $web_standby1 = $standby8; $web_last1 = $last8; $web_expiry1 = $expiry8; break; case $day9 : $web_schedule1 = $schedule9; $web_standby1 = $standby9; $web_last1 = $last9; $web_expiry1 = $expiry9; break; case $day10 : $web_schedule1 = $schedule10; $web_standby1 = $standby10; $web_last1 = $last10; $web_expiry1 = $expiry10; break; case $day11 : $web_schedule1 = $schedule11; $web_standby1 = $standby11; $web_last1 = $last11; $web_expiry1 = $expiry11; break; case $day12 : $web_schedule1 = $schedule12; $web_standby1 = $standby12; $web_last1 = $last12; $web_expiry1 = $expiry12; break; case $day13 : $web_schedule1 = $schedule13; $web_standby1 = $standby13; $web_last1 = $last13; $web_expiry1 = $expiry13; break; case $day14 : $web_schedule1 = $schedule14; $web_standby1 = $standby14; $web_last1 = $last14; $web_expiry1 = $expiry14; break; case $day15 : $web_schedule1 = $schedule15; $web_standby1 = $standby15; $web_last1 = $last15; $web_expiry1 = $expiry15; break; case $day16 : $web_schedule1 = $schedule16; $web_standby1 = $standby16; $web_last1 = $last16; $web_expiry1 = $expiry16; break; case $day17 : $web_schedule1 = $schedule17; $web_standby1 = $standby17; $web_last1 = $last17; $web_expiry1 = $expiry17; break; case $day18 : $web_schedule1 = $schedule18; $web_standby1 = $standby18; $web_last1 = $last18; $web_expiry1 = $expiry18; break; case $day19 : $web_schedule1 = $schedule19; $web_standby1 = $standby19; $web_last1 = $last19; $web_expiry1 = $expiry19; break; case $day20 : $web_schedule1 = $schedule20; $web_standby1 = $standby20; $web_last1 = $last20; $web_expiry1 = $expiry20; break; default : $web_schedule1 = ""; $web_standby1 = ""; $web_last1 = 0; $web_expiry1 = 0; } switch($base_day2){ case $day0 : $web_schedule2 = $schedule0; $web_standby2 = $standby0; $web_last2 = $last0; $web_expiry2 = $expiry0; break; case $day1 : $web_schedule2 = $schedule1; $web_standby2 = $standby1; $web_last2 = $last1; $web_expiry2 = $expiry1; break; case $day2 : $web_schedule2 = $schedule2; $web_standby2 = $standby2; $web_last2 = $last2; $web_expiry2 = $expiry2; break; case $day3 : $web_schedule2 = $schedule3; $web_standby2 = $standby3; $web_last2 = $last3; $web_expiry2 = $expiry3; break; case $day4 : $web_schedule2 = $schedule4; $web_standby2 = $standby4; $web_last2 = $last4; $web_expiry2 = $expiry4; break; case $day5 : $web_schedule2 = $schedule5; $web_standby2 = $standby5; $web_last2 = $last5; $web_expiry2 = $expiry5; break; case $day6 : $web_schedule2 = $schedule6; $web_standby2 = $standby6; $web_last2 = $last6; $web_expiry2 = $expiry6; break; case $day7 : $web_schedule2 = $schedule7; $web_standby2 = $standby7; $web_last2 = $last7; $web_expiry2 = $expiry7; break; case $day8 : $web_schedule2 = $schedule8; $web_standby2 = $standby8; $web_last2 = $last8; $web_expiry2 = $expiry8; break; case $day9 : $web_schedule2 = $schedule9; $web_standby2 = $standby9; $web_last2 = $last9; $web_expiry2 = $expiry9; break; case $day10 : $web_schedule2 = $schedule10; $web_standby2 = $standby10; $web_last2 = $last10; $web_expiry2 = $expiry10; break; case $day11 : $web_schedule2 = $schedule11; $web_standby2 = $standby11; $web_last2 = $last11; $web_expiry2 = $expiry11; break; case $day12 : $web_schedule2 = $schedule12; $web_standby2 = $standby12; $web_last2 = $last12; $web_expiry2 = $expiry12; break; case $day13 : $web_schedule2 = $schedule13; $web_standby2 = $standby13; $web_last2 = $last13; $web_expiry2 = $expiry13; break; case $day14 : $web_schedule2 = $schedule14; $web_standby2 = $standby14; $web_last2 = $last14; $web_expiry2 = $expiry14; break; case $day15 : $web_schedule2 = $schedule15; $web_standby2 = $standby15; $web_last2 = $last15; $web_expiry2 = $expiry15; break; case $day16 : $web_schedule2 = $schedule16; $web_standby2 = $standby16; $web_last2 = $last16; $web_expiry2 = $expiry16; break; case $day17 : $web_schedule2 = $schedule17; $web_standby2 = $standby17; $web_last2 = $last17; $web_expiry2 = $expiry17; break; case $day18 : $web_schedule2 = $schedule18; $web_standby2 = $standby18; $web_last2 = $last18; $web_expiry2 = $expiry18; break; case $day19 : $web_schedule2 = $schedule19; $web_standby2 = $standby19; $web_last2 = $last19; $web_expiry2 = $expiry19; break; case $day20 : $web_schedule2 = $schedule20; $web_standby2 = $standby20; $web_last2 = $last20; $web_expiry2 = $expiry20; break; default : $web_schedule2 = ""; $web_standby2 = ""; $web_last2 = 0; $web_expiry2 = 0; } switch($base_day3){ case $day0 : $web_schedule3 = $schedule0; $web_standby3 = $standby0; $web_last3 = $last0; $web_expiry3 = $expiry0; break; case $day1 : $web_schedule3 = $schedule1; $web_standby3 = $standby1; $web_last3 = $last1; $web_expiry3 = $expiry1; break; case $day2 : $web_schedule3 = $schedule2; $web_standby3 = $standby2; $web_last3 = $last2; $web_expiry3 = $expiry2; break; case $day3 : $web_schedule3 = $schedule3; $web_standby3 = $standby3; $web_last3 = $last3; $web_expiry3 = $expiry3; break; case $day4 : $web_schedule3 = $schedule4; $web_standby3 = $standby4; $web_last3 = $last4; $web_expiry3 = $expiry4; break; case $day5 : $web_schedule3 = $schedule5; $web_standby3 = $standby5; $web_last3 = $last5; $web_expiry3 = $expiry5; break; case $day6 : $web_schedule3 = $schedule6; $web_standby3 = $standby6; $web_last3 = $last6; $web_expiry3 = $expiry6; break; case $day7 : $web_schedule3 = $schedule7; $web_standby3 = $standby7; $web_last3 = $last7; $web_expiry3 = $expiry7; break; case $day8 : $web_schedule3 = $schedule8; $web_standby3 = $standby8; $web_last3 = $last8; $web_expiry3 = $expiry8; break; case $day9 : $web_schedule3 = $schedule9; $web_standby3 = $standby9; $web_last3 = $last9; $web_expiry3 = $expiry9; break; case $day10 : $web_schedule3 = $schedule10; $web_standby3 = $standby10; $web_last3 = $last10; $web_expiry3 = $expiry10; break; case $day11 : $web_schedule3 = $schedule11; $web_standby3 = $standby11; $web_last3 = $last11; $web_expiry3 = $expiry11; break; case $day12 : $web_schedule3 = $schedule12; $web_standby3 = $standby12; $web_last3 = $last12; $web_expiry3 = $expiry12; break; case $day13 : $web_schedule3 = $schedule13; $web_standby3 = $standby13; $web_last3 = $last13; $web_expiry3 = $expiry13; break; case $day14 : $web_schedule3 = $schedule14; $web_standby3 = $standby14; $web_last3 = $last14; $web_expiry3 = $expiry14; break; case $day15 : $web_schedule3 = $schedule15; $web_standby3 = $standby15; $web_last3 = $last15; $web_expiry3 = $expiry15; break; case $day16 : $web_schedule3 = $schedule16; $web_standby3 = $standby16; $web_last3 = $last16; $web_expiry3 = $expiry16; break; case $day17 : $web_schedule3 = $schedule17; $web_standby3 = $standby17; $web_last3 = $last17; $web_expiry3 = $expiry17; break; case $day18 : $web_schedule3 = $schedule18; $web_standby3 = $standby18; $web_last3 = $last18; $web_expiry3 = $expiry18; break; case $day19 : $web_schedule3 = $schedule19; $web_standby3 = $standby19; $web_last3 = $last19; $web_expiry3 = $expiry19; break; case $day20 : $web_schedule3 = $schedule20; $web_standby3 = $standby20; $web_last3 = $last20; $web_expiry3 = $expiry20; break; default : $web_schedule3 = ""; $web_standby3 = ""; $web_last3 = 0; $web_expiry3 = 0; } switch($base_day4){ case $day0 : $web_schedule4 = $schedule0; $web_standby4 = $standby0; $web_last4 = $last0; $web_expiry4 = $expiry0; break; case $day1 : $web_schedule4 = $schedule1; $web_standby4 = $standby1; $web_last4 = $last1; $web_expiry4 = $expiry1; break; case $day2 : $web_schedule4 = $schedule2; $web_standby4 = $standby2; $web_last4 = $last2; $web_expiry4 = $expiry2; break; case $day3 : $web_schedule4 = $schedule3; $web_standby4 = $standby3; $web_last4 = $last3; $web_expiry4 = $expiry3; break; case $day4 : $web_schedule4 = $schedule4; $web_standby4 = $standby4; $web_last4 = $last4; $web_expiry4 = $expiry4; break; case $day5 : $web_schedule4 = $schedule5; $web_standby4 = $standby5; $web_last4 = $last5; $web_expiry4 = $expiry5; break; case $day6 : $web_schedule4 = $schedule6; $web_standby4 = $standby6; $web_last4 = $last6; $web_expiry4 = $expiry6; break; case $day7 : $web_schedule4 = $schedule7; $web_standby4 = $standby7; $web_last4 = $last7; $web_expiry4 = $expiry7; break; case $day8 : $web_schedule4 = $schedule8; $web_standby4 = $standby8; $web_last4 = $last8; $web_expiry4 = $expiry8; break; case $day9 : $web_schedule4 = $schedule9; $web_standby4 = $standby9; $web_last4 = $last9; $web_expiry4 = $expiry9; break; case $day10 : $web_schedule4 = $schedule10; $web_standby4 = $standby10; $web_last4 = $last10; $web_expiry4 = $expiry10; break; case $day11 : $web_schedule4 = $schedule11; $web_standby4 = $standby11; $web_last4 = $last11; $web_expiry4 = $expiry11; break; case $day12 : $web_schedule4 = $schedule12; $web_standby4 = $standby12; $web_last4 = $last12; $web_expiry4 = $expiry12; break; case $day13 : $web_schedule4 = $schedule13; $web_standby4 = $standby13; $web_last4 = $last13; $web_expiry4 = $expiry13; break; case $day14 : $web_schedule4 = $schedule14; $web_standby4 = $standby14; $web_last4 = $last14; $web_expiry4 = $expiry14; break; case $day15 : $web_schedule4 = $schedule15; $web_standby4 = $standby15; $web_last4 = $last15; $web_expiry4 = $expiry15; break; case $day16 : $web_schedule4 = $schedule16; $web_standby4 = $standby16; $web_last4 = $last16; $web_expiry4 = $expiry16; break; case $day17 : $web_schedule4 = $schedule17; $web_standby4 = $standby17; $web_last4 = $last17; $web_expiry4 = $expiry17; break; case $day18 : $web_schedule4 = $schedule18; $web_standby4 = $standby18; $web_last4 = $last18; $web_expiry4 = $expiry18; break; case $day19 : $web_schedule4 = $schedule19; $web_standby4 = $standby19; $web_last4 = $last19; $web_expiry4 = $expiry19; break; case $day20 : $web_schedule4 = $schedule20; $web_standby4 = $standby20; $web_last4 = $last20; $web_expiry4 = $expiry20; break; default : $web_schedule4 = ""; $web_standby4 = ""; $web_last4 = 0; $web_expiry4 = 0; } switch($base_day5){ case $day0 : $web_schedule5 = $schedule0; $web_standby5 = $standby0; $web_last5 = $last0; $web_expiry5 = $expiry0; break; case $day1 : $web_schedule5 = $schedule1; $web_standby5 = $standby1; $web_last5 = $last1; $web_expiry5 = $expiry1; break; case $day2 : $web_schedule5 = $schedule2; $web_standby5 = $standby2; $web_last5 = $last2; $web_expiry5 = $expiry2; break; case $day3 : $web_schedule5 = $schedule3; $web_standby5 = $standby3; $web_last5 = $last3; $web_expiry5 = $expiry3; break; case $day4 : $web_schedule5 = $schedule4; $web_standby5 = $standby4; $web_last5 = $last4; $web_expiry5 = $expiry4; break; case $day5 : $web_schedule5 = $schedule5; $web_standby5 = $standby5; $web_last5 = $last5; $web_expiry5 = $expiry5; break; case $day6 : $web_schedule5 = $schedule6; $web_standby5 = $standby6; $web_last5 = $last6; $web_expiry5 = $expiry6; break; case $day7 : $web_schedule5 = $schedule7; $web_standby5 = $standby7; $web_last5 = $last7; $web_expiry5 = $expiry7; break; case $day8 : $web_schedule5 = $schedule8; $web_standby5 = $standby8; $web_last5 = $last8; $web_expiry5 = $expiry8; break; case $day9 : $web_schedule5 = $schedule9; $web_standby5 = $standby9; $web_last5 = $last9; $web_expiry5 = $expiry9; break; case $day10 : $web_schedule5 = $schedule10; $web_standby5 = $standby10; $web_last5 = $last10; $web_expiry5 = $expiry10; break; case $day11 : $web_schedule5 = $schedule11; $web_standby5 = $standby11; $web_last5 = $last11; $web_expiry5 = $expiry11; break; case $day12 : $web_schedule5 = $schedule12; $web_standby5 = $standby12; $web_last5 = $last12; $web_expiry5 = $expiry12; break; case $day13 : $web_schedule5 = $schedule13; $web_standby5 = $standby13; $web_last5 = $last13; $web_expiry5 = $expiry13; break; case $day14 : $web_schedule5 = $schedule14; $web_standby5 = $standby14; $web_last5 = $last14; $web_expiry5 = $expiry14; break; case $day15 : $web_schedule5 = $schedule15; $web_standby5 = $standby15; $web_last5 = $last15; $web_expiry5 = $expiry15; break; case $day16 : $web_schedule5 = $schedule16; $web_standby5 = $standby16; $web_last5 = $last16; $web_expiry5 = $expiry16; break; case $day17 : $web_schedule5 = $schedule17; $web_standby5 = $standby17; $web_last5 = $last17; $web_expiry5 = $expiry17; break; case $day18 : $web_schedule5 = $schedule18; $web_standby5 = $standby18; $web_last5 = $last18; $web_expiry5 = $expiry18; break; case $day19 : $web_schedule5 = $schedule19; $web_standby5 = $standby19; $web_last5 = $last19; $web_expiry5 = $expiry19; break; case $day20 : $web_schedule5 = $schedule20; $web_standby5 = $standby20; $web_last5 = $last20; $web_expiry5 = $expiry20; break; default : $web_schedule5 = ""; $web_standby5 = ""; $web_last5 = 0; $web_expiry5 = 0; } switch($base_day6){ case $day0 : $web_schedule6 = $schedule0; $web_standby6 = $standby0; $web_last6 = $last0; $web_expiry6 = $expiry0; break; case $day1 : $web_schedule6 = $schedule1; $web_standby6 = $standby1; $web_last6 = $last1; $web_expiry6 = $expiry1; break; case $day2 : $web_schedule6 = $schedule2; $web_standby6 = $standby2; $web_last6 = $last2; $web_expiry6 = $expiry2; break; case $day3 : $web_schedule6 = $schedule3; $web_standby6 = $standby3; $web_last6 = $last3; $web_expiry6 = $expiry3; break; case $day4 : $web_schedule6 = $schedule4; $web_standby6 = $standby4; $web_last6 = $last4; $web_expiry6 = $expiry4; break; case $day5 : $web_schedule6 = $schedule5; $web_standby6 = $standby5; $web_last6 = $last5; $web_expiry6 = $expiry5; break; case $day6 : $web_schedule6 = $schedule6; $web_standby6 = $standby6; $web_last6 = $last6; $web_expiry6 = $expiry6; break; case $day7 : $web_schedule6 = $schedule7; $web_standby6 = $standby7; $web_last6 = $last7; $web_expiry6 = $expiry7; break; case $day8 : $web_schedule6 = $schedule8; $web_standby6 = $standby8; $web_last6 = $last8; $web_expiry6 = $expiry8; break; case $day9 : $web_schedule6 = $schedule9; $web_standby6 = $standby9; $web_last6 = $last9; $web_expiry6 = $expiry9; break; case $day10 : $web_schedule6 = $schedule10; $web_standby6 = $standby10; $web_last6 = $last10; $web_expiry6 = $expiry10; break; case $day11 : $web_schedule6 = $schedule11; $web_standby6 = $standby11; $web_last6 = $last11; $web_expiry6 = $expiry11; break; case $day12 : $web_schedule6 = $schedule12; $web_standby6 = $standby12; $web_last6 = $last12; $web_expiry6 = $expiry12; break; case $day13 : $web_schedule6 = $schedule13; $web_standby6 = $standby13; $web_last6 = $last13; $web_expiry6 = $expiry13; break; case $day14 : $web_schedule6 = $schedule14; $web_standby6 = $standby14; $web_last6 = $last14; $web_expiry6 = $expiry14; break; case $day15 : $web_schedule6 = $schedule15; $web_standby6 = $standby15; $web_last6 = $last15; $web_expiry6 = $expiry15; break; case $day16 : $web_schedule6 = $schedule16; $web_standby6 = $standby16; $web_last6 = $last16; $web_expiry6 = $expiry16; break; case $day17 : $web_schedule6 = $schedule17; $web_standby6 = $standby17; $web_last6 = $last17; $web_expiry6 = $expiry17; break; case $day18 : $web_schedule6 = $schedule18; $web_standby6 = $standby18; $web_last6 = $last18; $web_expiry6 = $expiry18; break; case $day19 : $web_schedule6 = $schedule19; $web_standby6 = $standby19; $web_last6 = $last19; $web_expiry6 = $expiry19; break; case $day20 : $web_schedule6 = $schedule20; $web_standby6 = $standby20; $web_last6 = $last20; $web_expiry6 = $expiry20; break; default : $web_schedule6 = ""; $web_standby6 = ""; $web_last6 = 0; $web_expiry6 = 0; } // 0日目 if($base_day0 == $day0 || $base_day0 == $day1 || $base_day0 == $day2 || $base_day0 == $day3 || $base_day0 == $day4 || $base_day0 == $day5 || $base_day0 == $day6 || $base_day0 == $day7 || $base_day0 == $day8 || $base_day0 == $day9 || $base_day0 == $day10 || $base_day0 == $day11 || $base_day0 == $day12 || $base_day0 == $day13 || $base_day0 == $day14 || $base_day0 == $day15 || $base_day0 == $day16 || $base_day0 == $day17 || $base_day0 == $day18 || $base_day0 == $day19 || $base_day0 == $day20){ #if(preg_match("/$sort10/",$web_schedule0) || $web_expiry0 == 1){ $sort_key0 = 10; }else{ $sort_key0 = 0; } $sort_key0 = $cast_num_schedule; if(preg_match("/$sort10/",$web_schedule0) || $web_expiry0 == 1){ $sort_key0 += 9999; } $array_schedule0["$i"]["sort_key"] = $sort_key0; $array_schedule0["$i"]["schedule"] = $web_schedule0; $array_schedule0["$i"]['standby'] = $web_standby0; $array_schedule0["$i"]["last"] = $web_last0; $array_schedule0["$i"]["expiry"] = $web_expiry0; } // 1日目 if($base_day1 == $day0 || $base_day1 == $day1 || $base_day1 == $day2 || $base_day1 == $day3 || $base_day1 == $day4 || $base_day1 == $day5 || $base_day1 == $day6 || $base_day1 == $day7 || $base_day1 == $day8 || $base_day1 == $day9 || $base_day1 == $day10 || $base_day1 == $day11 || $base_day1 == $day12 || $base_day1 == $day13 || $base_day1 == $day14 || $base_day1 == $day15 || $base_day1 == $day16 || $base_day1 == $day17 || $base_day1 == $day18 || $base_day1 == $day19 || $base_day1 == $day20){ #if(preg_match("/$sort10/",$web_schedule1) || $web_expiry1 == 1){ $sort_key1 = 10; }else{ $sort_key1 = 0; } $sort_key1 = $cast_num_schedule; if(preg_match("/$sort10/",$web_schedule1) || $web_expiry1 == 1){ $sort_key1 += 9999; } $array_schedule1["$i"]["sort_key"] = $sort_key1; $array_schedule1["$i"]["schedule"] = $web_schedule1; $array_schedule1["$i"]['standby'] = $web_standby1; $array_schedule1["$i"]["last"] = $web_last1; $array_schedule1["$i"]["expiry"] = $web_expiry1; } // 2日目 if($base_day2 == $day0 || $base_day2 == $day1 || $base_day2 == $day2 || $base_day2 == $day3 || $base_day2 == $day4 || $base_day2 == $day5 || $base_day2 == $day6 || $base_day2 == $day7 || $base_day2 == $day8 || $base_day2 == $day9 || $base_day2 == $day10 || $base_day2 == $day11 || $base_day2 == $day12 || $base_day2 == $day13 || $base_day2 == $day14 || $base_day2 == $day15 || $base_day2 == $day16 || $base_day2 == $day17 || $base_day2 == $day18 || $base_day2 == $day19 || $base_day2 == $day20){ #if(preg_match("/$sort10/",$web_schedule2) || $web_expiry2 == 1){ $sort_key2 = 10; }else{ $sort_key2 = 0; } $sort_key2 = $cast_num_schedule; if(preg_match("/$sort10/",$web_schedule2) || $web_expiry2 == 1){ $sort_key2 += 9999; } $array_schedule2["$i"]["sort_key"] = $sort_key2; $array_schedule2["$i"]["schedule"] = $web_schedule2; $array_schedule2["$i"]['standby'] = $web_standby2; $array_schedule2["$i"]["last"] = $web_last2; $array_schedule2["$i"]["expiry"] = $web_expiry2; } // 3日目 if($base_day3 == $day0 || $base_day3 == $day1 || $base_day3 == $day2 || $base_day3 == $day3 || $base_day3 == $day4 || $base_day3 == $day5 || $base_day3 == $day6 || $base_day3 == $day7 || $base_day3 == $day8 || $base_day3 == $day9 || $base_day3 == $day10 || $base_day3 == $day11 || $base_day3 == $day12 || $base_day3 == $day13 || $base_day3 == $day14 || $base_day3 == $day15 || $base_day3 == $day16 || $base_day3 == $day17 || $base_day3 == $day18 || $base_day3 == $day19 || $base_day3 == $day20){ #if(preg_match("/$sort10/",$web_schedule3) || $web_expiry3 == 1){ $sort_key3 = 10; }else{ $sort_key3 = 0; } $sort_key3 = $cast_num_schedule; if(preg_match("/$sort10/",$web_schedule3) || $web_expiry3 == 1){ $sort_key3 += 9999; } $array_schedule3["$i"]["sort_key"] = $sort_key3; $array_schedule3["$i"]["schedule"] = $web_schedule3; $array_schedule3["$i"]['standby'] = $web_standby3; $array_schedule3["$i"]["last"] = $web_last3; $array_schedule3["$i"]["expiry"] = $web_expiry3; } // 4日目 if($base_day4 == $day0 || $base_day4 == $day1 || $base_day4 == $day2 || $base_day4 == $day3 || $base_day4 == $day4 || $base_day4 == $day5 || $base_day4 == $day6 || $base_day4 == $day7 || $base_day4 == $day8 || $base_day4 == $day9 || $base_day4 == $day10 || $base_day4 == $day11 || $base_day4 == $day12 || $base_day4 == $day13 || $base_day4 == $day14 || $base_day4 == $day15 || $base_day4 == $day16 || $base_day4 == $day17 || $base_day4 == $day18 || $base_day4 == $day19 || $base_day4 == $day20){ #if(preg_match("/$sort10/",$web_schedule4) || $web_expiry4 == 1){ $sort_key4 = 10; }else{ $sort_key4 = 0; } $sort_key4 = $cast_num_schedule; if(preg_match("/$sort10/",$web_schedule4) || $web_expiry4 == 1){ $sort_key4 += 9999; } $array_schedule4["$i"]["sort_key"] = $sort_key4; $array_schedule4["$i"]["schedule"] = $web_schedule4; $array_schedule4["$i"]['standby'] = $web_standby4; $array_schedule4["$i"]["last"] = $web_last4; $array_schedule4["$i"]["expiry"] = $web_expiry4; } // 5日目 if($base_day5 == $day0 || $base_day5 == $day1 || $base_day5 == $day2 || $base_day5 == $day3 || $base_day5 == $day4 || $base_day5 == $day5 || $base_day5 == $day6 || $base_day5 == $day7 || $base_day5 == $day8 || $base_day5 == $day9 || $base_day5 == $day10 || $base_day5 == $day11 || $base_day5 == $day12 || $base_day5 == $day13 || $base_day5 == $day14 || $base_day5 == $day15 || $base_day5 == $day16 || $base_day5 == $day17 || $base_day5 == $day18 || $base_day5 == $day19 || $base_day5 == $day20){ #if(preg_match("/$sort10/",$web_schedule5) || $web_expiry5 == 1){ $sort_key5 = 10; }else{ $sort_key5 = 0; } $sort_key5 = $cast_num_schedule; if(preg_match("/$sort10/",$web_schedule5) || $web_expiry5 == 1){ $sort_key5 += 9999; } $array_schedule5["$i"]["sort_key"] = $sort_key5; $array_schedule5["$i"]["schedule"] = $web_schedule5; $array_schedule5["$i"]['standby'] = $web_standby5; $array_schedule5["$i"]["last"] = $web_last5; $array_schedule5["$i"]["expiry"] = $web_expiry5; } // 6日目 if($base_day6 == $day0 || $base_day6 == $day1 || $base_day6 == $day2 || $base_day6 == $day3 || $base_day6 == $day4 || $base_day6 == $day5 || $base_day6 == $day6 || $base_day6 == $day7 || $base_day6 == $day8 || $base_day6 == $day9 || $base_day6 == $day10 || $base_day6 == $day11 || $base_day6 == $day12 || $base_day6 == $day13 || $base_day6 == $day14 || $base_day6 == $day15 || $base_day6 == $day16 || $base_day6 == $day17 || $base_day6 == $day18 || $base_day6 == $day19 || $base_day6 == $day20){ #if(preg_match("/$sort10/",$web_schedule6) || $web_expiry6 == 1){ $sort_key6 = 10; }else{ $sort_key6 = 0; } $sort_key6 = $cast_num_schedule; if(preg_match("/$sort10/",$web_schedule6) || $web_expiry6 == 1){ $sort_key6 += 9999; } $array_schedule6["$i"]["sort_key"] = $sort_key6; $array_schedule6["$i"]["schedule"] = $web_schedule6; $array_schedule6["$i"]['standby'] = $web_standby6; $array_schedule6["$i"]["last"] = $web_last6; $array_schedule6["$i"]["expiry"] = $web_expiry6; } // 0日目 $array_schedule0["$i"]["cast_num_schedule"] = $cast_num_schedule; $array_schedule0["$i"]["cast_id"] = $cast_id; $array_schedule0["$i"]["cast_type"] = $cast_type; $array_schedule0["$i"]["cast_name"] = $cast_name; $array_schedule0["$i"]["cast_limited"] = $cast_limited; $array_schedule0["$i"]["cast_newface"] = $cast_newface; $array_schedule0["$i"]["cast_kirakira"] = $cast_kirakira; $array_schedule0["$i"]["image_main"] = $image_main; // 1日目 $array_schedule1["$i"]["cast_num_schedule"] = $cast_num_schedule; $array_schedule1["$i"]["cast_id"] = $cast_id; $array_schedule1["$i"]["cast_type"] = $cast_type; $array_schedule1["$i"]["cast_name"] = $cast_name; $array_schedule1["$i"]["cast_limited"] = $cast_limited; $array_schedule1["$i"]["cast_newface"] = $cast_newface; $array_schedule1["$i"]["cast_kirakira"] = $cast_kirakira; $array_schedule1["$i"]["image_main"] = $image_main; // 2日目 $array_schedule2["$i"]["cast_num_schedule"] = $cast_num_schedule; $array_schedule2["$i"]["cast_id"] = $cast_id; $array_schedule2["$i"]["cast_type"] = $cast_type; $array_schedule2["$i"]["cast_name"] = $cast_name; $array_schedule2["$i"]["cast_limited"] = $cast_limited; $array_schedule2["$i"]["cast_newface"] = $cast_newface; $array_schedule2["$i"]["cast_kirakira"] = $cast_kirakira; $array_schedule2["$i"]["image_main"] = $image_main; // 3日目 $array_schedule3["$i"]["cast_num_schedule"] = $cast_num_schedule; $array_schedule3["$i"]["cast_id"] = $cast_id; $array_schedule3["$i"]["cast_type"] = $cast_type; $array_schedule3["$i"]["cast_name"] = $cast_name; $array_schedule3["$i"]["cast_limited"] = $cast_limited; $array_schedule3["$i"]["cast_newface"] = $cast_newface; $array_schedule3["$i"]["cast_kirakira"] = $cast_kirakira; $array_schedule3["$i"]["image_main"] = $image_main; // 4日目 $array_schedule4["$i"]["cast_num_schedule"] = $cast_num_schedule; $array_schedule4["$i"]["cast_id"] = $cast_id; $array_schedule4["$i"]["cast_type"] = $cast_type; $array_schedule4["$i"]["cast_name"] = $cast_name; $array_schedule4["$i"]["cast_limited"] = $cast_limited; $array_schedule4["$i"]["cast_newface"] = $cast_newface; $array_schedule4["$i"]["cast_kirakira"] = $cast_kirakira; $array_schedule4["$i"]["image_main"] = $image_main; // 5日目 $array_schedule5["$i"]["cast_num_schedule"] = $cast_num_schedule; $array_schedule5["$i"]["cast_id"] = $cast_id; $array_schedule5["$i"]["cast_type"] = $cast_type; $array_schedule5["$i"]["cast_name"] = $cast_name; $array_schedule5["$i"]["cast_limited"] = $cast_limited; $array_schedule5["$i"]["cast_newface"] = $cast_newface; $array_schedule5["$i"]["cast_kirakira"] = $cast_kirakira; $array_schedule5["$i"]["image_main"] = $image_main; // 6日目 $array_schedule6["$i"]["cast_num_schedule"] = $cast_num_schedule; $array_schedule6["$i"]["cast_id"] = $cast_id; $array_schedule6["$i"]["cast_type"] = $cast_type; $array_schedule6["$i"]["cast_name"] = $cast_name; $array_schedule6["$i"]["cast_limited"] = $cast_limited; $array_schedule6["$i"]["cast_newface"] = $cast_newface; $array_schedule6["$i"]["cast_kirakira"] = $cast_kirakira; $array_schedule6["$i"]["image_main"] = $image_main; $i++; } // 0日目 if($array_schedule0){ array_multisort($array_schedule0,SORT_ASC); foreach($array_schedule0 as $key => $value){ $sort_key = $array_schedule0[$key]["sort_key"]; $schedule = $array_schedule0[$key]["schedule"]; $cast_id = $array_schedule0[$key]["cast_id"]; $cast_type = $array_schedule0[$key]["cast_type"]; $cast_name = $array_schedule0[$key]["cast_name"]; $cast_limited = $array_schedule0[$key]["cast_limited"]; $cast_newface = $array_schedule0[$key]["cast_newface"]; $cast_kirakira = $array_schedule0[$key]["cast_kirakira"]; $image_main = $array_schedule0[$key]["image_main"]; $standby = $array_schedule0["$key"]['standby']; $last = $array_schedule0[$key]["last"]; $expiry = $array_schedule0[$key]["expiry"]; if($schedule){ if(!preg_match("/{$schedule_keywords}/",$schedule)){ $body00 .= "
"; $body00 .= ""; $body00 .= "
"; // 画像 if($image_main){ $body00 .= "\"{$cast_name}\""; }else{ $body00 .= "\"{$cast_name}\""; } if($last && !$expiry){ $body00 .= "

残り1枠!!

"; } if($expiry){ $body00 .= "

本日満了

"; } if($cast_limited){ $body00 .= "

期間限定

"; } if($cast_newface){ $body00 .= "

新人

"; } if($cast_kirakira){ $body00 .= "

キラキラ

"; } $body00 .= "
"; $body00 .= "
{$cast_name}
"; $body00 .= "
"; if(!$expiry && $standby == "sapporo"){ $body00 .= "札幌店待機"; } elseif(!$expiry && $standby == "hakodate"){ $body00 .= "函館店待機"; } elseif(!$expiry && $standby == "asahikawa"){ $body00 .= "旭川店待機"; } $body00 .= nl2br($schedule); $body00 .= "
"; $body00 .= "
"; } } $schedule = preg_replace("/\r/","
\\",$schedule); if($schedule){ if(!preg_match("/{$schedule_keywords}/",$schedule)){ $body0 .= "
"; $body0 .= ""; $body0 .= "
"; // 画像 if($image_main){ $body0 .= "\"{$cast_name}\""; }else{ $body0 .= "\"{$cast_name}\""; } if($last && !$expiry){ $body0 .= "

残り1枠!!

"; } if($expiry){ $body0 .= "

本日満了

"; } if($cast_limited){ $body0 .= "

期間限定

"; } if($cast_newface){ $body0 .= "

新人

"; } if($cast_kirakira){ $body0 .= "

キラキラ

"; } $body0 .= "
"; $body0 .= "
{$cast_name}
"; $body0 .= "
"; if(!$expiry && $standby == "sapporo"){ $body0 .= "札幌店待機"; } elseif(!$expiry && $standby == "hakodate"){ $body0 .= "函館店待機"; } elseif(!$expiry && $standby == "asahikawa"){ $body0 .= "旭川店待機"; } $body0 .= "{$schedule}
"; $body0 .= "
"; } } } } // 1日目 if($array_schedule1){ array_multisort($array_schedule1,SORT_ASC); foreach($array_schedule1 as $key => $value){ $sort_key = $array_schedule1[$key]["sort_key"]; $schedule = $array_schedule1[$key]["schedule"]; $cast_id = $array_schedule1[$key]["cast_id"]; $cast_type = $array_schedule1[$key]["cast_type"]; $cast_name = $array_schedule1[$key]["cast_name"]; $cast_limited = $array_schedule1[$key]["cast_limited"]; $cast_newface = $array_schedule1[$key]["cast_newface"]; $cast_kirakira = $array_schedule1[$key]["cast_kirakira"]; $image_main = $array_schedule1[$key]["image_main"]; $standby = $array_schedule1["$key"]['standby']; $last = $array_schedule1[$key]["last"]; $expiry = $array_schedule1[$key]["expiry"]; $schedule = preg_replace("/\r/","
\\",$schedule); if($schedule){ if(!preg_match("/{$schedule_keywords}/",$schedule)){ $body1 .= "
"; $body1 .= ""; $body1 .= "
"; // 画像 if($image_main){ $body1 .= "\"{$cast_name}\""; }else{ $body1 .= "\"{$cast_name}\""; } if($last && !$expiry){ $body1 .= "

残り1枠!!

"; } if($expiry){ $body1 .= "

本日満了

"; } if($cast_limited){ $body1 .= "

期間限定

"; } if($cast_newface){ $body1 .= "

新人

"; } if($cast_kirakira){ $body1 .= "

キラキラ

"; } $body1 .= "
"; $body1 .= "
{$cast_name}
"; if(!$expiry && $standby == "sapporo"){ $body1 .= "札幌店待機"; } elseif(!$expiry && $standby == "hakodate"){ $body1 .= "函館店待機"; } elseif(!$expiry && $standby == "asahikawa"){ $body1 .= "旭川店待機"; } $body1 .= "{$schedule}
"; $body1 .= ""; } } } } // 2日目 if($array_schedule2){ array_multisort($array_schedule2,SORT_ASC); foreach($array_schedule2 as $key => $value){ $sort_key = $array_schedule2[$key]["sort_key"]; $schedule = $array_schedule2[$key]["schedule"]; $cast_id = $array_schedule2[$key]["cast_id"]; $cast_type = $array_schedule2[$key]["cast_type"]; $cast_name = $array_schedule2[$key]["cast_name"]; $cast_limited = $array_schedule2[$key]["cast_limited"]; $cast_newface = $array_schedule2[$key]["cast_newface"]; $cast_kirakira = $array_schedule2[$key]["cast_kirakira"]; $image_main = $array_schedule2[$key]["image_main"]; $standby = $array_schedule2["$key"]['standby']; $last = $array_schedule2[$key]["last"]; $expiry = $array_schedule2[$key]["expiry"]; $schedule = preg_replace("/\r/","
\\",$schedule); if($schedule){ if(!preg_match("/{$schedule_keywords}/",$schedule)){ $body2 .= "
"; $body2 .= ""; $body2 .= "
"; // 画像 if($image_main){ $body2 .= "\"{$cast_name}\""; }else{ $body2 .= "\"{$cast_name}\""; } if($last && !$expiry){ $body2 .= "

残り1枠!!

"; } if($expiry){ $body2 .= "

本日満了

"; } if($cast_limited){ $body2 .= "

期間限定

"; } if($cast_newface){ $body2 .= "

新人

"; } if($cast_kirakira){ $body2 .= "

キラキラ

"; } $body2 .= "
"; $body2 .= "
{$cast_name}
"; if(!$expiry && $standby == "sapporo"){ $body2 .= "札幌店待機"; } elseif(!$expiry && $standby == "hakodate"){ $body2 .= "函館店待機"; } elseif(!$expiry && $standby == "asahikawa"){ $body2 .= "旭川店待機"; } $body2 .= "{$schedule}
"; $body2 .= ""; } } } } // 3日目 if($array_schedule3){ array_multisort($array_schedule3,SORT_ASC); foreach($array_schedule3 as $key => $value){ $sort_key = $array_schedule3[$key]["sort_key"]; $schedule = $array_schedule3[$key]["schedule"]; $cast_id = $array_schedule3[$key]["cast_id"]; $cast_type = $array_schedule3[$key]["cast_type"]; $cast_name = $array_schedule3[$key]["cast_name"]; $cast_limited = $array_schedule3[$key]["cast_limited"]; $cast_newface = $array_schedule3[$key]["cast_newface"]; $cast_kirakira = $array_schedule3[$key]["cast_kirakira"]; $image_main = $array_schedule3[$key]["image_main"]; $standby = $array_schedule3["$key"]['standby']; $last = $array_schedule3[$key]["last"]; $expiry = $array_schedule3[$key]["expiry"]; $schedule = preg_replace("/\r/","
\\",$schedule); if($schedule){ if(!preg_match("/{$schedule_keywords}/",$schedule)){ $body3 .= "
"; $body3 .= ""; $body3 .= "
"; // 画像 if($image_main){ $body3 .= "\"{$cast_name}\""; }else{ $body3 .= "\"{$cast_name}\""; } if($last && !$expiry){ $body3 .= "

残り1枠!!

"; } if($expiry){ $body3 .= "

本日満了

"; } if($cast_limited){ $body3 .= "

期間限定

"; } if($cast_newface){ $body3 .= "

新人

"; } if($cast_kirakira){ $body3 .= "

キラキラ

"; } $body3 .= "
"; $body3 .= "
{$cast_name}
"; if(!$expiry && $standby == "sapporo"){ $body3 .= "札幌店待機"; } elseif(!$expiry && $standby == "hakodate"){ $body3 .= "函館店待機"; } elseif(!$expiry && $standby == "asahikawa"){ $body3 .= "旭川店待機"; } $body3 .= "{$schedule}
"; $body3 .= ""; } } } } // 4日目 if($array_schedule4){ array_multisort($array_schedule4,SORT_ASC); foreach($array_schedule4 as $key => $value){ $sort_key = $array_schedule4[$key]["sort_key"]; $schedule = $array_schedule4[$key]["schedule"]; $cast_id = $array_schedule4[$key]["cast_id"]; $cast_type = $array_schedule4[$key]["cast_type"]; $cast_name = $array_schedule4[$key]["cast_name"]; $cast_limited = $array_schedule4[$key]["cast_limited"]; $cast_newface = $array_schedule4[$key]["cast_newface"]; $cast_kirakira = $array_schedule4[$key]["cast_kirakira"]; $image_main = $array_schedule4[$key]["image_main"]; $standby = $array_schedule4["$key"]['standby']; $last = $array_schedule4[$key]["last"]; $expiry = $array_schedule4[$key]["expiry"]; $schedule = preg_replace("/\r/","
\\",$schedule); if($schedule){ if(!preg_match("/{$schedule_keywords}/",$schedule)){ $body4 .= "
"; $body4 .= ""; $body4 .= "
"; // 画像 if($image_main){ $body4 .= "\"{$cast_name}\""; }else{ $body4 .= "\"{$cast_name}\""; } if($last && !$expiry){ $body4 .= "

残り1枠!!

"; } if($expiry){ $body4 .= "

本日満了

"; } if($cast_limited){ $body4 .= "

期間限定

"; } if($cast_newface){ $body4 .= "

新人

"; } if($cast_kirakira){ $body4 .= "

キラキラ

"; } $body4 .= "
"; $body4 .= "
{$cast_name}
"; if(!$expiry && $standby == "sapporo"){ $body4 .= "札幌店待機"; } elseif(!$expiry && $standby == "hakodate"){ $body4 .= "函館店待機"; } elseif(!$expiry && $standby == "asahikawa"){ $body4 .= "旭川店待機"; } $body4 .= "{$schedule}
"; $body4 .= ""; } } } } // 5日目 if($array_schedule5){ array_multisort($array_schedule5,SORT_ASC); foreach($array_schedule5 as $key => $value){ $sort_key = $array_schedule5[$key]["sort_key"]; $schedule = $array_schedule5[$key]["schedule"]; $cast_id = $array_schedule5[$key]["cast_id"]; $cast_type = $array_schedule5[$key]["cast_type"]; $cast_name = $array_schedule5[$key]["cast_name"]; $cast_limited = $array_schedule5[$key]["cast_limited"]; $cast_newface = $array_schedule5[$key]["cast_newface"]; $cast_kirakira = $array_schedule5[$key]["cast_kirakira"]; $image_main = $array_schedule5[$key]["image_main"]; $standby = $array_schedule5["$key"]['standby']; $last = $array_schedule5[$key]["last"]; $expiry = $array_schedule5[$key]["expiry"]; $schedule = preg_replace("/\r/","
\\",$schedule); if($schedule){ if(!preg_match("/{$schedule_keywords}/",$schedule)){ $body5 .= "
"; $body5 .= ""; $body5 .= "
"; // 画像 if($image_main){ $body5 .= "\"{$cast_name}\""; }else{ $body5 .= "\"{$cast_name}\""; } if($last && !$expiry){ $body5 .= "

残り1枠!!

"; } if($expiry){ $body5 .= "

本日満了

"; } if($cast_limited){ $body5 .= "

期間限定

"; } if($cast_newface){ $body5 .= "

新人

"; } if($cast_kirakira){ $body5 .= "

キラキラ

"; } $body5 .= "
"; $body5 .= "
{$cast_name}
"; if(!$expiry && $standby == "sapporo"){ $body5 .= "札幌店待機"; } elseif(!$expiry && $standby == "hakodate"){ $body5 .= "函館店待機"; } elseif(!$expiry && $standby == "asahikawa"){ $body5 .= "旭川店待機"; } $body5 .= "{$schedule}
"; $body5 .= ""; } } } } // 6日目 if($array_schedule6){ array_multisort($array_schedule6,SORT_ASC); foreach($array_schedule6 as $key => $value){ $sort_key = $array_schedule6[$key]["sort_key"]; $schedule = $array_schedule6[$key]["schedule"]; $cast_id = $array_schedule6[$key]["cast_id"]; $cast_type = $array_schedule6[$key]["cast_type"]; $cast_name = $array_schedule6[$key]["cast_name"]; $cast_limited = $array_schedule6[$key]["cast_limited"]; $cast_newface = $array_schedule6[$key]["cast_newface"]; $cast_kirakira = $array_schedule6[$key]["cast_kirakira"]; $image_main = $array_schedule6[$key]["image_main"]; $standby = $array_schedule6["$key"]['standby']; $last = $array_schedule6[$key]["last"]; $expiry = $array_schedule6[$key]["expiry"]; $schedule = preg_replace("/\r/","
\\",$schedule); if($schedule){ if(!preg_match("/{$schedule_keywords}/",$schedule)){ $body6 .= "
"; $body6 .= ""; $body6 .= "
"; // 画像 if($image_main){ $body6 .= "\"{$cast_name}\""; }else{ $body6 .= "\"{$cast_name}\""; } if($last && !$expiry){ $body6 .= "

残り1枠!!

"; } if($expiry){ $body6 .= "

本日満了

"; } if($cast_limited){ $body6 .= "

期間限定

"; } if($cast_newface){ $body6 .= "

新人

"; } if($cast_kirakira){ $body6 .= "

キラキラ

"; } $body6 .= "
"; $body6 .= "
{$cast_name}
"; if(!$expiry && $standby == "sapporo"){ $body6 .= "札幌店待機"; } elseif(!$expiry && $standby == "hakodate"){ $body6 .= "函館店待機"; } elseif(!$expiry && $standby == "asahikawa"){ $body6 .= "旭川店待機"; } $body6 .= "{$schedule}
"; $body6 .= ""; } } } } // DB切断 include('./db_close.php'); $body_web_day .= "
{$web_day0}
"; $body_web_day .= "
{$web_day1}
"; $body_web_day .= "
{$web_day2}
"; $body_web_day .= "
{$web_day3}
"; $body_web_day .= "
{$web_day4}
"; $body_web_day .= "
{$web_day5}
"; $body_web_day .= "
{$web_day6}
"; function getTime($value){ #$now = date('Y-m-d H:i'); #if($now >= '2019-12-27 00:00' && $now < '2020-01-04 02:14'){ # $delay = 8100; //8100秒(2時間15分)遅らせる #}else{ # $delay = 900; //900秒(15分)遅らせる #} $time = time() + 9 * 3600 + 86400 * $value - 10800; //3時間(10800秒)遅らせる $week = array("日","月","火","水","木","金","土"); $yobi = $week[gmdate("w",$time)]; if($yobi == "土"){ $color = "0000ff"; }elseif($yobi == "日"){ $color = "ff0000"; }else{ $color = "333333"; } $datetime = "" .gmdate("n/j({$yobi})",$time) .""; return $datetime; } function getTime2($value){ #$now = date('Y-m-d H:i'); #if($now >= '2019-12-27 00:00' && $now < '2020-01-04 02:14'){ # $delay = 8100; //8100秒(2時間15分)遅らせる #}else{ # $delay = 900; //900秒(15分)遅らせる #} $time = time() + 9 * 3600 + 86400 * $value - 10800; //3時間(10800秒)遅らせる $week = array("日","月","火","水","木","金","土"); $yobi = $week[gmdate("w",$time)]; if($yobi == "土"){ $color = "0000ff"; }elseif($yobi == "日"){ $color = "ff0000"; }else{ $color = "000000"; } $datetime = "" .gmdate("n/j({$yobi})",$time) .""; return $datetime; } ?> 来週の出勤予定 | ニューハーフヘルスLIBE旭川店

LIBE旭川店 トップ > 来週|キャスト出勤予定ページ

 SCHEDULE12/19(木) ~12/25(水)

12/19(木)
12/20(金)
12/21(土)
12/22(日)
12/23(月)
12/24(火)
12/25(水)
美波 わかな
美波 わかな
札幌店待機14:00-24:00
(泊:○)
唯恋 蒼美(いれん そら)
唯恋 蒼美(いれん そら)
旭川店待機14:00-26:00
(泊:△)
今週の予定へ
※営業時間14:00~24:00以外の時間帯は事前にご相談いただきますと、ご予約・ご利用が可能な場合がございます。お気軽におたずねください。
※前日と書いてあるスタッフは前日までのご予約のみ受付を行っております。当日はご予約をお受けすることは難しいです。
※予定は急遽更新される場合がございますので、お気軽にお電話またはメールにてお問い合わせください。

週間出勤予定


[期間限定]花ノ いちか
12/19(木)12/20(金)12/21(土)12/22(日)12/23(月)12/24(火)12/25(水)

[期間限定]夕霧なぎ
12/19(木)12/20(金)12/21(土)12/22(日)12/23(月)12/24(火)12/25(水)

[期間限定]犬屋敷 ぽち
12/19(木)12/20(金)12/21(土)12/22(日)12/23(月)12/24(火)12/25(水)

終末 はるか
12/19(木)12/20(金)12/21(土)12/22(日)12/23(月)12/24(火)12/25(水)

天羽 翠桜(あまは みお)
12/19(木)12/20(金)12/21(土)12/22(日)12/23(月)12/24(火)12/25(水)
休み
福岡天神店出張中!
休み
福岡天神店出張中!
休み
福岡天神店出張中!
休み
福岡天神店出張中!
休み
休み

美波 わかな
12/19(木)12/20(金)12/21(土)12/22(日)12/23(月)12/24(火)12/25(水)
札幌店待機14:00-24:00
(泊:○)
札幌店待機14:00-24:00
(泊:○)

水月 かさね(すいげつ かさね)
12/19(木)12/20(金)12/21(土)12/22(日)12/23(月)12/24(火)12/25(水)

夢姫 みそら
12/19(木)12/20(金)12/21(土)12/22(日)12/23(月)12/24(火)12/25(水)

近衛 ちか
12/19(木)12/20(金)12/21(土)12/22(日)12/23(月)12/24(火)12/25(水)

唯恋 蒼美(いれん そら)
12/19(木)12/20(金)12/21(土)12/22(日)12/23(月)12/24(火)12/25(水)
旭川店待機14:00-26:00
(泊:△)
旭川店待機14:00-26:00
(泊:△)
旭川店待機14:00-26:00
(泊:△)
旭川店待機14:00-26:00
(泊:△)
休み
札幌店待機14:00-26:00
(泊:△)
札幌店待機14:00-26:00
(泊:△)

星野 こころ
12/19(木)12/20(金)12/21(土)12/22(日)12/23(月)12/24(火)12/25(水)

虹川 あかり
12/19(木)12/20(金)12/21(土)12/22(日)12/23(月)12/24(火)12/25(水)
休み
札幌店待機14:00-24:00
札幌店待機14:00-24:00
札幌店待機14:00-24:00
休み
札幌店待機14:00-24:00
札幌店待機14:00-19:00

[新人]星宮 なぎ
12/19(木)12/20(金)12/21(土)12/22(日)12/23(月)12/24(火)12/25(水)

新崎 まゆ(しんざき まゆ)
12/19(木)12/20(金)12/21(土)12/22(日)12/23(月)12/24(火)12/25(水)

[新人]七海 乃音(のん)
12/19(木)12/20(金)12/21(土)12/22(日)12/23(月)12/24(火)12/25(水)
休み
札幌店待機14:00-23:00
要事前予約
要問合せ
札幌店待機14:00-23:00
要事前予約
要問合せ
休み
札幌店待機14:00-23:00
要事前予約
要問合せ
札幌店待機14:00-23:00
要事前予約
要問合せ
札幌店待機14:00-23:00
要事前予約
要問合せ

結月 みん
12/19(木)12/20(金)12/21(土)12/22(日)12/23(月)12/24(火)12/25(水)

[新人]姫野 みな
12/19(木)12/20(金)12/21(土)12/22(日)12/23(月)12/24(火)12/25(水)

[新人]水嶋 かれん
12/19(木)12/20(金)12/21(土)12/22(日)12/23(月)12/24(火)12/25(水)

[新人]本城 ゆうき
12/19(木)12/20(金)12/21(土)12/22(日)12/23(月)12/24(火)12/25(水)

[新人]京泉 雫月(きょういずみ しづく)
12/19(木)12/20(金)12/21(土)12/22(日)12/23(月)12/24(火)12/25(水)

亜城 りお
12/19(木)12/20(金)12/21(土)12/22(日)12/23(月)12/24(火)12/25(水)

[新人]りさ
12/19(木)12/20(金)12/21(土)12/22(日)12/23(月)12/24(火)12/25(水)

[新人]佑凪(ゆな)
12/19(木)12/20(金)12/21(土)12/22(日)12/23(月)12/24(火)12/25(水)