[php] test

Viewer

  1. <?$week_start=new DateTime();$week_start->setISODate($year,$week,"1");$timestamp=strtotime('2021-02-02');$todays_date=date('j M');$current_time=date('Hi');$klockan=0;$current_time0=$current_time1=$current_time2=$current_time3=$current_time4=$current_time5=$current_time6=$current_time7=$current_time8=$current_time9=$current_time10=$current_time11=$current_time12=$current_time13=$current_time14=$current_time15=$current_time16=$current_time17=$current_time18=$current_time19=$current_time20=$current_time21=$current_time22=$current_time23=$current_time24=$current_time25=$current_time26=$current_time27=$current_time28=2401;$time0=$time1=$time2=$time3=$time4=$time5=$time6=$time7=$time8=$time9=$time10=$time11=$time12=$time13=$time14=$time15=$time16=$time17=$time18=$time19=$time20=$time21=$time22=$time23=$time24=$time26=$time27=$time28=2401;?><?php
  2. $datum_output=$week_start->format('j M');$datum_output=str_replace('May','Maj',$datum_output);if($todays_date==$week_start->format('j M')){echo'<span class="weekday today">Idag '.$datum_output.'</span>';}else{echo'<span class="weekday">Måndag '.$datum_output.'</span><br>';}?><?php
  3. $repeat_field=get_post_meta($post->ID,'mandag');echo'<ul>';if($repeat_field){foreach($repeat_field as $field){$values=explode('|',$field);if($todays_date==$week_start->format('j M')){$klockan=$current_time;}?><?php
  4. $time0=630;$time1=660;$time2=730;$time3=760;$time4=830;$time5=860;$time6=930;$time7=960;$time8=1030;$time9=1060;$time10=1130;$time11=1160;$time12=1230;$time13=1260;$time14=1330;$time15=1360;$time16=1430;$time17=1460;$time18=1530;$time19=1560;$time20=1630;$time21=1660;$time22=1730;$time23=1760;$time24=1830;$time25=1860;$time26=1930;$time27=1960;$time28=2030;if($values[0]){$current_time0=str_replace(".","","{$values[0]}")-70;}
  5. if($values[1]){$current_time1=str_replace(".","","{$values[1]}")-70;}
  6. if($values[2]){$current_time2=str_replace(".","","{$values[2]}")-70;}
  7. if($values[3]){$current_time3=str_replace(".","","{$values[3]}")-70;}
  8. if($values[4]){$current_time4=str_replace(".","","{$values[4]}")-70;}
  9. if($values[5]){$current_time5=str_replace(".","","{$values[5]}")-70;}
  10. if($values[6]){$current_time6=str_replace(".","","{$values[6]}")-70;}
  11. if($values[7]){$current_time7=str_replace(".","","{$values[7]}")-70;}
  12. if($values[8]){$current_time8=str_replace(".","","{$values[8]}")-70;}
  13. if($values[9]){$current_time9=str_replace(".","","{$values[9]}")-70;}
  14. if($values[10]){$current_time10=str_replace(".","","{$values[10]}")-70;}
  15. if($values[11]){$current_time11=str_replace(".","","{$values[11]}")-70;}
  16. if($values[12]){$current_time12=str_replace(".","","{$values[12]}")-70;}
  17. if($values[13]){$current_time13=str_replace(".","","{$values[13]}")-70;}
  18. if($values[14]){$current_time14=str_replace(".","","{$values[14]}")-70;}
  19. if($values[15]){$current_time15=str_replace(".","","{$values[15]}")-70;}
  20. if($values[16]){$current_time16=str_replace(".","","{$values[16]}")-70;}
  21. if($values[17]){$current_time17=str_replace(".","","{$values[17]}")-70;}
  22. if($values[18]){$current_time18=str_replace(".","","{$values[18]}")-70;}
  23. if($values[19]){$current_time19=str_replace(".","","{$values[19]}")-70;}
  24. if($values[20]){$current_time20=str_replace(".","","{$values[20]}")-70;}
  25. if($values[21]){$current_time21=str_replace(".","","{$values[21]}")-70;}
  26. if($values[22]){$current_time22=str_replace(".","","{$values[22]}")-70;}
  27. if($values[23]){$current_time23=str_replace(".","","{$values[23]}")-70;}
  28. if($values[24]){$current_time24=str_replace(".","","{$values[24]}")-70;}
  29. if($values[25]){$current_time25=str_replace(".","","{$values[25]}")-70;}
  30. if($values[26]){$current_time26=str_replace(".","","{$values[26]}")-70;}
  31. if($values[27]){$current_time27=str_replace(".","","{$values[27]}")-70;}
  32. if($values[28]){$current_time28=str_replace(".","","{$values[28]}")-70;}?><?php $mandag_time_id0=''.$week_start->format('Y-m-d').'_0700';?><?php $mandag_time_id0_check=''.$week_start->format('Y-m-d').'_0700';?><?php $mandag_time_id1=''.$week_start->format('Y-m-d').'_0730';?><?php $mandag_time_id1_check=''.$week_start->format('Y-m-d').'_0730';?><?php $mandag_time_id2=''.$week_start->format('Y-m-d').'_0800';?><?php $mandag_time_id2_check=''.$week_start->format('Y-m-d').'_0800';?><?php $mandag_time_id3=''.$week_start->format('Y-m-d').'_0830';?><?php $mandag_time_id3_check=''.$week_start->format('Y-m-d').'_0830';?><?php $mandag_time_id4=''.$week_start->format('Y-m-d').'_0900';?><?php $mandag_time_id4_check=''.$week_start->format('Y-m-d').'_0900';?><?php $mandag_time_id5=''.$week_start->format('Y-m-d').'_0930';?><?php $mandag_time_id5_check=''.$week_start->format('Y-m-d').'_0930';?><?php $mandag_time_id6=''.$week_start->format('Y-m-d').'_1000';?><?php $mandag_time_id6_check=''.$week_start->format('Y-m-d').'_1000';?><?php $mandag_time_id7=''.$week_start->format('Y-m-d').'_1030';?><?php $mandag_time_id7_check=''.$week_start->format('Y-m-d').'_1030';?><?php $mandag_time_id8=''.$week_start->format('Y-m-d').'_1100';?><?php $mandag_time_id8_check=''.$week_start->format('Y-m-d').'_1100';?><?php $mandag_time_id9=''.$week_start->format('Y-m-d').'_1130';?><?php $mandag_time_id9_check=''.$week_start->format('Y-m-d').'_1130';?><?php $mandag_time_id10=''.$week_start->format('Y-m-d').'_1200';?><?php $mandag_time_id10_check=''.$week_start->format('Y-m-d').'_1200';?><?php $mandag_time_id11=''.$week_start->format('Y-m-d').'_1230';?><?php $mandag_time_id11_check=''.$week_start->format('Y-m-d').'_1230';?><?php $mandag_time_id12=''.$week_start->format('Y-m-d').'_1300';?><?php $mandag_time_id12_check=''.$week_start->format('Y-m-d').'_1300';?><?php $mandag_time_id13=''.$week_start->format('Y-m-d').'_1330';?><?php $mandag_time_id13_check=''.$week_start->format('Y-m-d').'_1330';?><?php $mandag_time_id14=''.$week_start->format('Y-m-d').'_1400';?><?php $mandag_time_id14_check=''.$week_start->format('Y-m-d').'_1400';?><?php $mandag_time_id15=''.$week_start->format('Y-m-d').'_1430';?><?php $mandag_time_id15_check=''.$week_start->format('Y-m-d').'_1430';?><?php $mandag_time_id16=''.$week_start->format('Y-m-d').'_1500';?><?php $mandag_time_id16_check=''.$week_start->format('Y-m-d').'_1500';?><?php $mandag_time_id17=''.$week_start->format('Y-m-d').'_1530';?><?php $mandag_time_id17_check=''.$week_start->format('Y-m-d').'_1530';?><?php $mandag_time_id18=''.$week_start->format('Y-m-d').'_1600';?><?php $mandag_time_id18_check=''.$week_start->format('Y-m-d').'_1600';?><?php $mandag_time_id19=''.$week_start->format('Y-m-d').'_1630';?><?php $mandag_time_id19_check=''.$week_start->format('Y-m-d').'_1630';?><?php $mandag_time_id20=''.$week_start->format('Y-m-d').'_1700';?><?php $mandag_time_id20_check=''.$week_start->format('Y-m-d').'_1700';?><?php $mandag_time_id21=''.$week_start->format('Y-m-d').'_1730';?><?php $mandag_time_id21_check=''.$week_start->format('Y-m-d').'_1730';?><?php $mandag_time_id22=''.$week_start->format('Y-m-d').'_1800';?><?php $mandag_time_id22_check=''.$week_start->format('Y-m-d').'_1800';?><?php $mandag_time_id23=''.$week_start->format('Y-m-d').'_1830';?><?php $mandag_time_id23_check=''.$week_start->format('Y-m-d').'_1830';?><?php $mandag_time_id24=''.$week_start->format('Y-m-d').'_1900';?><?php $mandag_time_id24_check=''.$week_start->format('Y-m-d').'_1900';?><?php $mandag_time_id25=''.$week_start->format('Y-m-d').'_1930';?><?php $mandag_time_id25_check=''.$week_start->format('Y-m-d').'_1930';?><?php $mandag_time_id26=''.$week_start->format('Y-m-d').'_2000';?><?php $mandag_time_id26_check=''.$week_start->format('Y-m-d').'_2000';?><?php $mandag_time_id27=''.$week_start->format('Y-m-d').'_2030';?><?php $mandag_time_id27_check=''.$week_start->format('Y-m-d').'_2030';?><?php $mandag_time_id28=''.$week_start->format('Y-m-d').'_2100';?><?php $mandag_time_id28_check=''.$week_start->format('Y-m-d').'_2100';?><?php
  33. $args=array('post_type'=>'bokningar','title'=>$curauth->ID,'posts_per_page'=>-1);$result=new WP_Query($args);if($result->have_posts()){?><?php while($result->have_posts()):$result->the_post();?><?php $datumet=get_post_meta(get_the_ID(),'datum',true);?><?php $tiden=get_post_meta(get_the_ID(),'tid',true);$tiden=str_replace(".","","$tiden");?><?php $title=''.$datumet.'_'.$tiden.'';?><?php $bokningsid=get_the_ID();?><?php
  34. $bekraftadbokning=get_page_by_title($bokningsid,OBJECT,'bekraftade-bokningar');$bekraftadbokning_check=get_the_title($bekraftadbokning->ID);$status=2;$status=get_post_meta($bekraftadbokning->ID,'status',true);?><?php if($status==2){?><?php if($title==$mandag_time_id28){$mandag_time_id28='';}?><?php if($title==$mandag_time_id27){$mandag_time_id27='';}?><?php if($title==$mandag_time_id26){$mandag_time_id26='';}?><?php if($title==$mandag_time_id25){$mandag_time_id25='';}?><?php if($title==$mandag_time_id24){$mandag_time_id24='';}?><?php if($title==$mandag_time_id23){$mandag_time_id23='';}?><?php if($title==$mandag_time_id22){$mandag_time_id22='';}?><?php if($title==$mandag_time_id21){$mandag_time_id21='';}?><?php if($title==$mandag_time_id20){$mandag_time_id20='';}?><?php if($title==$mandag_time_id19){$mandag_time_id19='';}?><?php if($title==$mandag_time_id18){$mandag_time_id18='';}?><?php if($title==$mandag_time_id17){$mandag_time_id17='';}?><?php if($title==$mandag_time_id16){$mandag_time_id16='';}?><?php if($title==$mandag_time_id15){$mandag_time_id15='';}?><?php if($title==$mandag_time_id14){$mandag_time_id14='';}?><?php if($title==$mandag_time_id13){$mandag_time_id13='';}?><?php if($title==$mandag_time_id12){$mandag_time_id12='';}?><?php if($title==$mandag_time_id11){$mandag_time_id11='';}?><?php if($title==$mandag_time_id10){$mandag_time_id10='';}?><?php if($title==$mandag_time_id9){$mandag_time_id9='';}?><?php if($title==$mandag_time_id8){$mandag_time_id8='';}?><?php if($title==$mandag_time_id7){$mandag_time_id7='';}?><?php if($title==$mandag_time_id6){$mandag_time_id6='';}?><?php if($title==$mandag_time_id5){$mandag_time_id5='';}?><?php if($title==$mandag_time_id4){$mandag_time_id4='';}?><?php if($title==$mandag_time_id3){$mandag_time_id3='';}?><?php if($title==$mandag_time_id2){$mandag_time_id2='';}?><?php if($title==$mandag_time_id1){$mandag_time_id1='';}?><?php if($title==$mandag_time_id0){$mandag_time_id0='';}?><?php}?><?php endwhile;?><?php}?><?php if(date('Y-m-d')>$week_start->format('Y-m-d')){echo'<span style="opacity: 0.5;">Inga lediga tider</span>';}else{?><!--time 0 start--><?php if($mandag_time_id0_check==$mandag_time_id0){?><?php
  35. if($current_time0==$time0||$current_time1==$time0||$current_time2==$time0||$current_time3==$time0||$current_time4==$time0||$current_time5==$time0||$current_time6==$time0||$current_time7==$time0||$current_time8==$time0||$current_time9==$time0||$current_time10==$time0||$current_time11==$time0||$current_time12==$time0||$current_time13==$time0||$current_time14==$time0||$current_time15==$time0||$current_time16==$time0||$current_time17==$time0||$current_time18==$time0||$current_time19==$time0||$current_time20==$time0||$current_time21==$time0||$current_time22==$time0||$current_time23==$time0||$current_time24==$time0||$current_time25==$time0||$current_time26==$time0||$current_time27==$time0||$current_time28==$time0){?><?php if($time0>$klockan){?><li><input type=radio id='<?php echo $year; ?>_vecka<?php echo $week; ?>_mandag_700'name=valj_en_tid value='Måndag <?php echo $week_start->format('Y-m-d'); ?> 07.00'><label for='<?php echo $year; ?>_vecka<?php echo $week; ?>_mandag_700'>07.00</label></li><?php}}}?><!--time 0 end--><!--time 1 start--><?php if($mandag_time_id1_check==$mandag_time_id1){?><?php
  36. if($current_time0==$time1||$current_time1==$time1||$current_time2==$time1||$current_time3==$time1||$current_time4==$time1||$current_time5==$time1||$current_time6==$time1||$current_time7==$time1||$current_time8==$time1||$current_time9==$time1||$current_time10==$time1||$current_time11==$time1||$current_time12==$time1||$current_time13==$time1||$current_time14==$time1||$current_time15==$time1||$current_time16==$time1||$current_time17==$time1||$current_time18==$time1||$current_time19==$time1||$current_time20==$time1||$current_time21==$time1||$current_time22==$time1||$current_time23==$time1||$current_time24==$time1||$current_time25==$time1||$current_time26==$time1||$current_time27==$time1||$current_time28==$time1){?><?php if($time1>$klockan){?><li><input type=radio id='<?php echo $year; ?>_vecka<?php echo $week; ?>_mandag_730'name=valj_en_tid value='Måndag <?php echo $week_start->format('Y-m-d'); ?> 07.30'><label for='<?php echo $year; ?>_vecka<?php echo $week; ?>_mandag_730'>07.30</label></li><?php}}}?><!--time 1 end--><!--time 2 start--><?php if($mandag_time_id2_check==$mandag_time_id2){?><?php
  37. if($current_time0==$time2||$current_time1==$time2||$current_time2==$time2||$current_time3==$time2||$current_time4==$time2||$current_time5==$time2||$current_time6==$time2||$current_time7==$time2||$current_time8==$time2||$current_time9==$time2||$current_time10==$time2||$current_time11==$time2||$current_time12==$time2||$current_time13==$time2||$current_time14==$time2||$current_time15==$time2||$current_time16==$time2||$current_time17==$time2||$current_time18==$time2||$current_time19==$time2||$current_time20==$time2||$current_time21==$time2||$current_time22==$time2||$current_time23==$time2||$current_time24==$time2||$current_time25==$time2||$current_time26==$time2||$current_time27==$time2||$current_time28==$time2){?><?php if($time2>$klockan){?><li><input type=radio id='<?php echo $year; ?>_vecka<?php echo $week; ?>_mandag_800'name=valj_en_tid value='Måndag <?php echo $week_start->format('Y-m-d'); ?> 08.00'><label for='<?php echo $year; ?>_vecka<?php echo $week; ?>_mandag_800'>08.00</label></li><?php}}}?><!--time 2 end--><!--time 3 start--><?php if($mandag_time_id3_check==$mandag_time_id3){?><?php
  38. if($current_time0==$time3||$current_time1==$time3||$current_time2==$time3||$current_time3==$time3||$current_time4==$time3||$current_time5==$time3||$current_time6==$time3||$current_time7==$time3||$current_time8==$time3||$current_time9==$time3||$current_time10==$time3||$current_time11==$time3||$current_time12==$time3||$current_time13==$time3||$current_time14==$time3||$current_time15==$time3||$current_time16==$time3||$current_time17==$time3||$current_time18==$time3||$current_time19==$time3||$current_time20==$time3||$current_time21==$time3||$current_time22==$time3||$current_time23==$time3||$current_time24==$time3||$current_time25==$time3||$current_time26==$time3||$current_time27==$time3||$current_time28==$time3){?><?php if($time3>$klockan){?><li><input type=radio id='<?php echo $year; ?>_vecka<?php echo $week; ?>_mandag_830'name=valj_en_tid value='Måndag <?php echo $week_start->format('Y-m-d'); ?> 08.30'><label for='<?php echo $year; ?>_vecka<?php echo $week; ?>_mandag_830'>08.30</label></li><?php}}}?><!--time 3 end--><!--time 4 start--><?php if($mandag_time_id4_check==$mandag_time_id4){?><?php
  39. if($current_time0==$time4||$current_time1==$time4||$current_time2==$time4||$current_time3==$time4||$current_time4==$time4||$current_time5==$time4||$current_time6==$time4||$current_time7==$time4||$current_time8==$time4||$current_time9==$time4||$current_time10==$time4||$current_time11==$time4||$current_time12==$time4||$current_time13==$time4||$current_time14==$time4||$current_time15==$time4||$current_time16==$time4||$current_time17==$time4||$current_time18==$time4||$current_time19==$time4||$current_time20==$time4||$current_time21==$time4||$current_time22==$time4||$current_time23==$time4||$current_time24==$time4||$current_time25==$time4||$current_time26==$time4||$current_time27==$time4||$current_time28==$time4){?><?php if($time4>$klockan){?><li><input type=radio id='<?php echo $year; ?>_vecka<?php echo $week; ?>_mandag_900'name=valj_en_tid value='Måndag <?php echo $week_start->format('Y-m-d'); ?> 09.00'><label for='<?php echo $year; ?>_vecka<?php echo $week; ?>_mandag_900'>09.00</label></li><?php}}}?><!--time 4 end--><!--time 5 start--><?php if($mandag_time_id5_check==$mandag_time_id5){?><?php
  40. if($current_time0==$time5||$current_time1==$time5||$current_time2==$time5||$current_time3==$time5||$current_time4==$time5||$current_time5==$time5||$current_time6==$time5||$current_time7==$time5||$current_time8==$time5||$current_time9==$time5||$current_time10==$time5||$current_time11==$time5||$current_time12==$time5||$current_time13==$time5||$current_time14==$time5||$current_time15==$time5||$current_time16==$time5||$current_time17==$time5||$current_time18==$time5||$current_time19==$time5||$current_time20==$time5||$current_time21==$time5||$current_time22==$time5||$current_time23==$time5||$current_time24==$time5||$current_time25==$time5||$current_time26==$time5||$current_time27==$time5||$current_time28==$time5){?><?php if($time5>$klockan){?><li><input type=radio id='<?php echo $year; ?>_vecka<?php echo $week; ?>_mandag_930'name=valj_en_tid value='Måndag <?php echo $week_start->format('Y-m-d'); ?> 09.30'><label for='<?php echo $year; ?>_vecka<?php echo $week; ?>_mandag_930'>09.30</label></li><?php}}}?><!--time 5 end--><!--time 6 start--><?php if($mandag_time_id6_check==$mandag_time_id6){?><?php
  41. if($current_time0==$time6||$current_time1==$time6||$current_time2==$time6||$current_time3==$time6||$current_time4==$time6||$current_time5==$time6||$current_time6==$time6||$current_time7==$time6||$current_time8==$time6||$current_time9==$time6||$current_time10==$time6||$current_time11==$time6||$current_time12==$time6||$current_time13==$time6||$current_time14==$time6||$current_time15==$time6||$current_time16==$time6||$current_time17==$time6||$current_time18==$time6||$current_time19==$time6||$current_time20==$time6||$current_time21==$time6||$current_time22==$time6||$current_time23==$time6||$current_time24==$time6||$current_time25==$time6||$current_time26==$time6||$current_time27==$time6||$current_time28==$time6){?><?php if($time6>$klockan){?><li><input type=radio id='<?php echo $year; ?>_vecka<?php echo $week; ?>_mandag_1000'name=valj_en_tid value='Måndag <?php echo $week_start->format('Y-m-d'); ?> 10.00'><label for='<?php echo $year; ?>_vecka<?php echo $week; ?>_mandag_1000'>10.00</label></li><?php}}}?><!--time 6 end--><!--time 7 start--><?php if($mandag_time_id7_check==$mandag_time_id7){?><?php
  42. if($current_time0==$time7||$current_time1==$time7||$current_time2==$time7||$current_time3==$time7||$current_time4==$time7||$current_time5==$time7||$current_time6==$time7||$current_time7==$time7||$current_time8==$time7||$current_time9==$time7||$current_time10==$time7||$current_time11==$time7||$current_time12==$time7||$current_time13==$time7||$current_time14==$time7||$current_time15==$time7||$current_time16==$time7||$current_time17==$time7||$current_time18==$time7||$current_time19==$time7||$current_time20==$time7||$current_time21==$time7||$current_time22==$time7||$current_time23==$time7||$current_time24==$time7||$current_time25==$time7||$current_time26==$time7||$current_time27==$time7||$current_time28==$time7){?><?php if($time7>$klockan){?><li><input type=radio id='<?php echo $year; ?>_vecka<?php echo $week; ?>_mandag_1030'name=valj_en_tid value='Måndag <?php echo $week_start->format('Y-m-d'); ?> 10.30'><label for='<?php echo $year; ?>_vecka<?php echo $week; ?>_mandag_1030'>10.30</label></li><?php}}}?><!--time 7 end--><!--time 8 start--><?php if($mandag_time_id8_check==$mandag_time_id8){?><?php
  43. if($current_time0==$time8||$current_time1==$time8||$current_time2==$time8||$current_time3==$time8||$current_time4==$time8||$current_time5==$time8||$current_time6==$time8||$current_time7==$time8||$current_time8==$time8||$current_time9==$time8||$current_time10==$time8||$current_time11==$time8||$current_time12==$time8||$current_time13==$time8||$current_time14==$time8||$current_time15==$time8||$current_time16==$time8||$current_time17==$time8||$current_time18==$time8||$current_time19==$time8||$current_time20==$time8||$current_time21==$time8||$current_time22==$time8||$current_time23==$time8||$current_time24==$time8||$current_time25==$time8||$current_time26==$time8||$current_time27==$time8||$current_time28==$time8){?><?php if($time8>$klockan){?><li><input type=radio id='<?php echo $year; ?>_vecka<?php echo $week; ?>_mandag_1100'name=valj_en_tid value='Måndag <?php echo $week_start->format('Y-m-d'); ?> 11.00'><label for='<?php echo $year; ?>_vecka<?php echo $week; ?>_mandag_1100'>11.00</label></li><?php}}}?><!--time 8 end--><!--time 9 start--><?php if($mandag_time_id9_check==$mandag_time_id9){?><?php
  44. if($current_time0==$time9||$current_time1==$time9||$current_time2==$time9||$current_time3==$time9||$current_time4==$time9||$current_time5==$time9||$current_time6==$time9||$current_time7==$time9||$current_time8==$time9||$current_time9==$time9||$current_time10==$time9||$current_time11==$time9||$current_time12==$time9||$current_time13==$time9||$current_time14==$time9||$current_time15==$time9||$current_time16==$time9||$current_time17==$time9||$current_time18==$time9||$current_time19==$time9||$current_time20==$time9||$current_time21==$time9||$current_time22==$time9||$current_time23==$time9||$current_time24==$time9||$current_time25==$time9||$current_time26==$time9||$current_time27==$time9||$current_time28==$time9){?><?php if($time9>$klockan){?><li><input type=radio id='<?php echo $year; ?>_vecka<?php echo $week; ?>_mandag_1130'name=valj_en_tid value='Måndag <?php echo $week_start->format('Y-m-d'); ?> 11.30'><label for='<?php echo $year; ?>_vecka<?php echo $week; ?>_mandag_1130'>11.30</label></li><?php}}}?><!--time 9 end--><!--time 10 start--><?php if($mandag_time_id10_check==$mandag_time_id10){?><?php
  45. if($current_time0==$time10||$current_time1==$time10||$current_time2==$time10||$current_time3==$time10||$current_time4==$time10||$current_time5==$time10||$current_time6==$time10||$current_time7==$time10||$current_time8==$time10||$current_time9==$time10||$current_time10==$time10||$current_time11==$time10||$current_time12==$time10||$current_time13==$time10||$current_time14==$time10||$current_time15==$time10||$current_time16==$time10||$current_time17==$time10||$current_time18==$time10||$current_time19==$time10||$current_time20==$time10||$current_time21==$time10||$current_time22==$time10||$current_time23==$time10||$current_time24==$time10||$current_time25==$time10||$current_time26==$time10||$current_time27==$time10||$current_time28==$time10){?><?php if($time10>$klockan){?><li><input type=radio id='<?php echo $year; ?>_vecka<?php echo $week; ?>_mandag_1200'name=valj_en_tid value='Måndag <?php echo $week_start->format('Y-m-d'); ?> 12.00'><label for='<?php echo $year; ?>_vecka<?php echo $week; ?>_mandag_1200'>12.00</label></li><?php}}}?><!--time 10 end--><!--time 11 start--><?php if($mandag_time_id11_check==$mandag_time_id11){?><?php
  46. if($current_time0==$time11||$current_time1==$time11||$current_time2==$time11||$current_time3==$time11||$current_time4==$time11||$current_time5==$time11||$current_time6==$time11||$current_time7==$time11||$current_time8==$time11||$current_time9==$time11||$current_time10==$time11||$current_time11==$time11||$current_time12==$time11||$current_time13==$time11||$current_time14==$time11||$current_time15==$time11||$current_time16==$time11||$current_time17==$time11||$current_time18==$time11||$current_time19==$time11||$current_time20==$time11||$current_time21==$time11||$current_time22==$time11||$current_time23==$time11||$current_time24==$time11||$current_time25==$time11||$current_time26==$time11||$current_time27==$time11||$current_time28==$time11){?><?php if($time11>$klockan){?><li><input type=radio id='<?php echo $year; ?>_vecka<?php echo $week; ?>_mandag_1230'name=valj_en_tid value='Måndag <?php echo $week_start->format('Y-m-d'); ?> 12.30'><label for='<?php echo $year; ?>_vecka<?php echo $week; ?>_mandag_1230'>12.30</label></li><?php}}}?><!--time 11 end--><!--time 12 start--><?php if($mandag_time_id12_check==$mandag_time_id12){?><?php
  47. if($current_time0==$time12||$current_time1==$time12||$current_time2==$time12||$current_time3==$time12||$current_time4==$time12||$current_time5==$time12||$current_time6==$time12||$current_time7==$time12||$current_time8==$time12||$current_time9==$time12||$current_time10==$time12||$current_time11==$time12||$current_time12==$time12||$current_time13==$time12||$current_time14==$time12||$current_time15==$time12||$current_time16==$time12||$current_time17==$time12||$current_time18==$time12||$current_time19==$time12||$current_time20==$time12||$current_time21==$time12||$current_time22==$time12||$current_time23==$time12||$current_time24==$time12||$current_time25==$time12||$current_time26==$time12||$current_time27==$time12||$current_time28==$time12){?><?php if($time12>$klockan){?><li><input type=radio id='<?php echo $year; ?>_vecka<?php echo $week; ?>_mandag_1300'name=valj_en_tid value='Måndag <?php echo $week_start->format('Y-m-d'); ?> 13.00'><label for='<?php echo $year; ?>_vecka<?php echo $week; ?>_mandag_1300'>13.00</label></li><?php}}}?><!--time 12 end--><!--time 13 start--><?php if($mandag_time_id13_check==$mandag_time_id13){?><?php
  48. if($current_time0==$time13||$current_time1==$time13||$current_time2==$time13||$current_time3==$time13||$current_time4==$time13||$current_time5==$time13||$current_time6==$time13||$current_time7==$time13||$current_time8==$time13||$current_time9==$time13||$current_time10==$time13||$current_time11==$time13||$current_time12==$time13||$current_time13==$time13||$current_time14==$time13||$current_time15==$time13||$current_time16==$time13||$current_time17==$time13||$current_time18==$time13||$current_time19==$time13||$current_time20==$time13||$current_time21==$time13||$current_time22==$time13||$current_time23==$time13||$current_time24==$time13||$current_time25==$time13||$current_time26==$time13||$current_time27==$time13||$current_time28==$time13){?><?php if($time13>$klockan){?><li><input type=radio id='<?php echo $year; ?>_vecka<?php echo $week; ?>_mandag_1330'name=valj_en_tid value='Måndag <?php echo $week_start->format('Y-m-d'); ?> 13.30'><label for='<?php echo $year; ?>_vecka<?php echo $week; ?>_mandag_1330'>13.30</label></li><?php}}}?><!--time 13 end--><!--time 14 start--><?php if($mandag_time_id14_check==$mandag_time_id14){?><?php
  49. if($current_time0==$time14||$current_time1==$time14||$current_time2==$time14||$current_time3==$time14||$current_time4==$time14||$current_time5==$time14||$current_time6==$time14||$current_time7==$time14||$current_time8==$time14||$current_time9==$time14||$current_time10==$time14||$current_time11==$time14||$current_time12==$time14||$current_time13==$time14||$current_time14==$time14||$current_time15==$time14||$current_time16==$time14||$current_time17==$time14||$current_time18==$time14||$current_time19==$time14||$current_time20==$time14||$current_time21==$time14||$current_time22==$time14||$current_time23==$time14||$current_time24==$time14||$current_time25==$time14||$current_time26==$time14||$current_time27==$time14||$current_time28==$time14){?><?php if($time14>$klockan){?><li><input type=radio id='<?php echo $year; ?>_vecka<?php echo $week; ?>_mandag_1400'name=valj_en_tid value='Måndag <?php echo $week_start->format('Y-m-d'); ?> 14.00'><label for='<?php echo $year; ?>_vecka<?php echo $week; ?>_mandag_1400'>14.00</label></li><?php}}}?><!--time 14 end--><!--time 15 start--><?php if($mandag_time_id15_check==$mandag_time_id15){?><?php
  50. if($current_time0==$time15||$current_time1==$time15||$current_time2==$time15||$current_time3==$time15||$current_time4==$time15||$current_time5==$time15||$current_time6==$time15||$current_time7==$time15||$current_time8==$time15||$current_time9==$time15||$current_time10==$time15||$current_time11==$time15||$current_time12==$time15||$current_time13==$time15||$current_time14==$time15||$current_time15==$time15||$current_time16==$time15||$current_time17==$time15||$current_time18==$time15||$current_time19==$time15||$current_time20==$time15||$current_time21==$time15||$current_time22==$time15||$current_time23==$time15||$current_time24==$time15||$current_time25==$time15||$current_time26==$time15||$current_time27==$time15||$current_time28==$time15){?><?php if($time15>$klockan){?><li><input type=radio id='<?php echo $year; ?>_vecka<?php echo $week; ?>_mandag_1430'name=valj_en_tid value='Måndag <?php echo $week_start->format('Y-m-d'); ?> 14.30'><label for='<?php echo $year; ?>_vecka<?php echo $week; ?>_mandag_1430'>14.30</label></li><?php}}}?><!--time 15 end--><!--time 16 start--><?php if($mandag_time_id16_check==$mandag_time_id16){?><?php
  51. if($current_time0==$time16||$current_time1==$time16||$current_time2==$time16||$current_time3==$time16||$current_time4==$time16||$current_time5==$time16||$current_time6==$time16||$current_time7==$time16||$current_time8==$time16||$current_time9==$time16||$current_time10==$time16||$current_time11==$time16||$current_time12==$time16||$current_time13==$time16||$current_time14==$time16||$current_time15==$time16||$current_time16==$time16||$current_time17==$time16||$current_time18==$time16||$current_time19==$time16||$current_time20==$time16||$current_time21==$time16||$current_time22==$time16||$current_time23==$time16||$current_time24==$time16||$current_time25==$time16||$current_time26==$time16||$current_time27==$time16||$current_time28==$time16){?><?php if($time16>$klockan){?><li><input type=radio id='<?php echo $year; ?>_vecka<?php echo $week; ?>_mandag_1500'name=valj_en_tid value='Måndag <?php echo $week_start->format('Y-m-d'); ?> 15.00'><label for='<?php echo $year; ?>_vecka<?php echo $week; ?>_mandag_1500'>15.00</label></li><?php}}}?><!--time 16 end--><!--time 17 start--><?php if($mandag_time_id17_check==$mandag_time_id17){?><?php
  52. if($current_time0==$time17||$current_time1==$time17||$current_time2==$time17||$current_time3==$time17||$current_time4==$time17||$current_time5==$time17||$current_time6==$time17||$current_time7==$time17||$current_time8==$time17||$current_time9==$time17||$current_time10==$time17||$current_time11==$time17||$current_time12==$time17||$current_time13==$time17||$current_time14==$time17||$current_time15==$time17||$current_time16==$time17||$current_time17==$time17||$current_time18==$time17||$current_time19==$time17||$current_time20==$time17||$current_time21==$time17||$current_time22==$time17||$current_time23==$time17||$current_time24==$time17||$current_time25==$time17||$current_time26==$time17||$current_time27==$time17||$current_time28==$time17){?><?php if($time17>$klockan){?><li><input type=radio id='<?php echo $year; ?>_vecka<?php echo $week; ?>_mandag_1530'name=valj_en_tid value='Måndag <?php echo $week_start->format('Y-m-d'); ?> 15.30'><label for='<?php echo $year; ?>_vecka<?php echo $week; ?>_mandag_1530'>15.30</label></li><?php}}}?><!--time 17 end--><!--time 18 start--><?php if($mandag_time_id18_check==$mandag_time_id18){?><?php
  53. if($current_time0==$time18||$current_time1==$time18||$current_time2==$time18||$current_time3==$time18||$current_time4==$time18||$current_time5==$time18||$current_time6==$time18||$current_time7==$time18||$current_time8==$time18||$current_time9==$time18||$current_time10==$time18||$current_time11==$time18||$current_time12==$time18||$current_time13==$time18||$current_time14==$time18||$current_time15==$time18||$current_time16==$time18||$current_time17==$time18||$current_time18==$time18||$current_time19==$time18||$current_time20==$time18||$current_time21==$time18||$current_time22==$time18||$current_time23==$time18||$current_time24==$time18||$current_time25==$time18||$current_time26==$time18||$current_time27==$time18||$current_time28==$time18){?><?php if($time18>$klockan){?><li><input type=radio id='<?php echo $year; ?>_vecka<?php echo $week; ?>_mandag_1600'name=valj_en_tid value='Måndag <?php echo $week_start->format('Y-m-d'); ?> 16.00'><label for='<?php echo $year; ?>_vecka<?php echo $week; ?>_mandag_1600'>16.00</label></li><?php}}}?><!--time 18 end--><!--time 19 start--><?php if($mandag_time_id19_check==$mandag_time_id19){?><?php
  54. if($current_time0==$time19||$current_time1==$time19||$current_time2==$time19||$current_time3==$time19||$current_time4==$time19||$current_time5==$time19||$current_time6==$time19||$current_time7==$time19||$current_time8==$time19||$current_time9==$time19||$current_time10==$time19||$current_time11==$time19||$current_time12==$time19||$current_time13==$time19||$current_time14==$time19||$current_time15==$time19||$current_time16==$time19||$current_time17==$time19||$current_time18==$time19||$current_time19==$time19||$current_time20==$time19||$current_time21==$time19||$current_time22==$time19||$current_time23==$time19||$current_time24==$time19||$current_time25==$time19||$current_time26==$time19||$current_time27==$time19||$current_time28==$time19){?><?php if($time19>$klockan){?><li><input type=radio id='<?php echo $year; ?>_vecka<?php echo $week; ?>_mandag_1630'name=valj_en_tid value='Måndag <?php echo $week_start->format('Y-m-d'); ?> 16.30'><label for='<?php echo $year; ?>_vecka<?php echo $week; ?>_mandag_1630'>16.30</label></li><?php}}}?><!--time 19 end--><!--time 20 start--><?php if($mandag_time_id20_check==$mandag_time_id20){?><?php
  55. if($current_time0==$time20||$current_time1==$time20||$current_time2==$time20||$current_time3==$time20||$current_time4==$time20||$current_time5==$time20||$current_time6==$time20||$current_time7==$time20||$current_time8==$time20||$current_time9==$time20||$current_time10==$time20||$current_time11==$time20||$current_time12==$time20||$current_time13==$time20||$current_time14==$time20||$current_time15==$time20||$current_time16==$time20||$current_time17==$time20||$current_time18==$time20||$current_time19==$time20||$current_time20==$time20||$current_time21==$time20||$current_time22==$time20||$current_time23==$time20||$current_time24==$time20||$current_time25==$time20||$current_time26==$time20||$current_time27==$time20||$current_time28==$time20){?><?php if($time20>$klockan){?><li><input type=radio id='<?php echo $year; ?>_vecka<?php echo $week; ?>_mandag_1700'name=valj_en_tid value='Måndag <?php echo $week_start->format('Y-m-d'); ?> 17.00'><label for='<?php echo $year; ?>_vecka<?php echo $week; ?>_mandag_1700'>17.00</label></li><?php}}}?><!--time 20 end--><!--time 21 start--><?php if($mandag_time_id21_check==$mandag_time_id21){?><?php
  56. if($current_time0==$time21||$current_time1==$time21||$current_time2==$time21||$current_time3==$time21||$current_time4==$time21||$current_time5==$time21||$current_time6==$time21||$current_time7==$time21||$current_time8==$time21||$current_time9==$time21||$current_time10==$time21||$current_time11==$time21||$current_time12==$time21||$current_time13==$time21||$current_time14==$time21||$current_time15==$time21||$current_time16==$time21||$current_time17==$time21||$current_time18==$time21||$current_time19==$time21||$current_time20==$time21||$current_time21==$time21||$current_time22==$time21||$current_time23==$time21||$current_time24==$time21||$current_time25==$time21||$current_time26==$time21||$current_time27==$time21||$current_time28==$time21){?><?php if($time21>$klockan){?><li><input type=radio id='<?php echo $year; ?>_vecka<?php echo $week; ?>_mandag_1730'name=valj_en_tid value='Måndag <?php echo $week_start->format('Y-m-d'); ?> 17.30'><label for='<?php echo $year; ?>_vecka<?php echo $week; ?>_mandag_1730'>17.30</label></li><?php}}}?><!--time 21 end--><!--time 22 start--><?php if($mandag_time_id22_check==$mandag_time_id22){?><?php
  57. if($current_time0==$time22||$current_time1==$time22||$current_time2==$time22||$current_time3==$time22||$current_time4==$time22||$current_time5==$time22||$current_time6==$time22||$current_time7==$time22||$current_time8==$time22||$current_time9==$time22||$current_time10==$time22||$current_time11==$time22||$current_time12==$time22||$current_time13==$time22||$current_time14==$time22||$current_time15==$time22||$current_time16==$time22||$current_time17==$time22||$current_time18==$time22||$current_time19==$time22||$current_time20==$time22||$current_time21==$time22||$current_time22==$time22||$current_time23==$time22||$current_time24==$time22||$current_time25==$time22||$current_time26==$time22||$current_time27==$time22||$current_time28==$time22){?><?php if($time22>$klockan){?><li><input type=radio id='<?php echo $year; ?>_vecka<?php echo $week; ?>_mandag_1800'name=valj_en_tid value='Måndag <?php echo $week_start->format('Y-m-d'); ?> 18.00'><label for='<?php echo $year; ?>_vecka<?php echo $week; ?>_mandag_1800'>18.00</label></li><?php}}}?><!--time 22 end--><!--time 23 start--><?php if($mandag_time_id23_check==$mandag_time_id23){?><?php
  58. if($current_time0==$time23||$current_time1==$time23||$current_time2==$time23||$current_time3==$time23||$current_time4==$time23||$current_time5==$time23||$current_time6==$time23||$current_time7==$time23||$current_time8==$time23||$current_time9==$time23||$current_time10==$time23||$current_time11==$time23||$current_time12==$time23||$current_time13==$time23||$current_time14==$time23||$current_time15==$time23||$current_time16==$time23||$current_time17==$time23||$current_time18==$time23||$current_time19==$time23||$current_time20==$time23||$current_time21==$time23||$current_time22==$time23||$current_time23==$time23||$current_time24==$time23||$current_time25==$time23||$current_time26==$time23||$current_time27==$time23||$current_time28==$time23){?><?php if($time23>$klockan){?><li><input type=radio id='<?php echo $year; ?>_vecka<?php echo $week; ?>_mandag_1830'name=valj_en_tid value='Måndag <?php echo $week_start->format('Y-m-d'); ?> 18.30'><label for='<?php echo $year; ?>_vecka<?php echo $week; ?>_mandag_1830'>18.30</label></li><?php}}}?><!--time 23 end--><!--time 24 start--><?php if($mandag_time_id24_check==$mandag_time_id24){?><?php
  59. if($current_time0==$time24||$current_time1==$time24||$current_time2==$time24||$current_time3==$time24||$current_time4==$time24||$current_time5==$time24||$current_time6==$time24||$current_time7==$time24||$current_time8==$time24||$current_time9==$time24||$current_time10==$time24||$current_time11==$time24||$current_time12==$time24||$current_time13==$time24||$current_time14==$time24||$current_time15==$time24||$current_time16==$time24||$current_time17==$time24||$current_time18==$time24||$current_time19==$time24||$current_time20==$time24||$current_time21==$time24||$current_time22==$time24||$current_time23==$time24||$current_time24==$time24||$current_time25==$time24||$current_time26==$time24||$current_time27==$time24||$current_time28==$time24){?><?php if($time24>$klockan){?><li><input type=radio id='<?php echo $year; ?>_vecka<?php echo $week; ?>_mandag_1900'name=valj_en_tid value='Måndag <?php echo $week_start->format('Y-m-d'); ?> 19.00'><label for='<?php echo $year; ?>_vecka<?php echo $week; ?>_mandag_1900'>19.00</label></li><?php}}}?><!--time 24 end--><!--time 25 start--><?php if($mandag_time_id25_check==$mandag_time_id25){?><?php
  60. if($current_time0==$time25||$current_time1==$time25||$current_time2==$time25||$current_time3==$time25||$current_time4==$time25||$current_time5==$time25||$current_time6==$time25||$current_time7==$time25||$current_time8==$time25||$current_time9==$time25||$current_time10==$time25||$current_time11==$time25||$current_time12==$time25||$current_time13==$time25||$current_time14==$time25||$current_time15==$time25||$current_time16==$time25||$current_time17==$time25||$current_time18==$time25||$current_time19==$time25||$current_time20==$time25||$current_time21==$time25||$current_time22==$time25||$current_time23==$time25||$current_time24==$time25||$current_time25==$time25||$current_time26==$time25||$current_time27==$time25||$current_time28==$time25){?><?php if($time25>$klockan){?><li><input type=radio id='<?php echo $year; ?>_vecka<?php echo $week; ?>_mandag_1930'name=valj_en_tid value='Måndag <?php echo $week_start->format('Y-m-d'); ?> 19.30'><label for='<?php echo $year; ?>_vecka<?php echo $week; ?>_mandag_1930'>19.30</label></li><?php}}}?><!--time 25 end--><!--time 26 start--><?php if($mandag_time_id26_check==$mandag_time_id26){?><?php
  61. if($current_time0==$time26||$current_time1==$time26||$current_time2==$time26||$current_time3==$time26||$current_time4==$time26||$current_time5==$time26||$current_time6==$time26||$current_time7==$time26||$current_time8==$time26||$current_time9==$time26||$current_time10==$time26||$current_time11==$time26||$current_time12==$time26||$current_time13==$time26||$current_time14==$time26||$current_time15==$time26||$current_time16==$time26||$current_time17==$time26||$current_time18==$time26||$current_time19==$time26||$current_time20==$time26||$current_time21==$time26||$current_time22==$time26||$current_time23==$time26||$current_time24==$time26||$current_time25==$time26||$current_time26==$time26||$current_time27==$time26||$current_time28==$time26){?><?php if($time26>$klockan){?><li><input type=radio id='<?php echo $year; ?>_vecka<?php echo $week; ?>_mandag_2000'name=valj_en_tid value='Måndag <?php echo $week_start->format('Y-m-d'); ?> 20.00'><label for='<?php echo $year; ?>_vecka<?php echo $week; ?>_mandag_2000'>20.00</label></li><?php}}}?><!--time 26 end--><!--time 27 start--><?php if($mandag_time_id27_check==$mandag_time_id27){?><?php
  62. if($current_time0==$time27||$current_time1==$time27||$current_time2==$time27||$current_time3==$time27||$current_time4==$time27||$current_time5==$time27||$current_time6==$time27||$current_time7==$time27||$current_time8==$time27||$current_time9==$time27||$current_time10==$time27||$current_time11==$time27||$current_time12==$time27||$current_time13==$time27||$current_time14==$time27||$current_time15==$time27||$current_time16==$time27||$current_time17==$time27||$current_time18==$time27||$current_time19==$time27||$current_time20==$time27||$current_time21==$time27||$current_time22==$time27||$current_time23==$time27||$current_time24==$time27||$current_time25==$time27||$current_time26==$time27||$current_time27==$time27||$current_time28==$time27){?><?php if($time27>$klockan){?><li><input type=radio id='<?php echo $year; ?>_vecka<?php echo $week; ?>_mandag_2030'name=valj_en_tid value='Måndag <?php echo $week_start->format('Y-m-d'); ?> 20.30'><label for='<?php echo $year; ?>_vecka<?php echo $week; ?>_mandag_2030'>20.30</label></li><?php}}}?><!--time 27 end--><!--time 28 start--><?php if($mandag_time_id28_check==$mandag_time_id28){?><?php
  63. if($current_time0==$time28||$current_time1==$time28||$current_time2==$time28||$current_time3==$time28||$current_time4==$time28||$current_time5==$time28||$current_time6==$time28||$current_time7==$time28||$current_time8==$time28||$current_time9==$time28||$current_time10==$time28||$current_time11==$time28||$current_time12==$time28||$current_time13==$time28||$current_time14==$time28||$current_time15==$time28||$current_time16==$time28||$current_time17==$time28||$current_time18==$time28||$current_time19==$time28||$current_time20==$time28||$current_time21==$time28||$current_time22==$time28||$current_time23==$time28||$current_time24==$time28||$current_time25==$time28||$current_time26==$time28||$current_time27==$time28||$current_time28==$time28){?><?php if($time28>$klockan){?><li><input type=radio id='<?php echo $year; ?>_vecka<?php echo $week; ?>_mandag_2100'name=valj_en_tid value='Måndag <?php echo $week_start->format('Y-m-d'); ?> 21.00'><label for='<?php echo $year; ?>_vecka<?php echo $week; ?>_mandag_2100'>21.00</label></li><?php}}}?><!--time 28 end--><?php if($values[0]or $values[1]or $values[2]or $values[3]or $values[4]or $values[5]or $values[6]or $values[7]or $values[8]or $values[9]or $values[10]or $values[11]or $values[12]or $values[13]or $values[14]or $values[15]or $values[16]or $values[17]or $values[18]or $values[19]or $values[20]or $values[21]or $values[22]or $values[23]or $values[24 or $values[25]or $values[26]or $values[27]or $values[28]]){}else{echo'<span style="opacity: 0.5;">Inga lediga tider</span>';}?><?php}?><?php}}?><?php wp_reset_postdata();?><?php echo'</ul>';?><!--===================================--><?$week_start=new DateTime();$week_start->setISODate($year,$week,"2");$timestamp=strtotime('2021-02-02');$todays_date=date('j M');$current_time=date('Hi');$klockan=0;$current_time0=$current_time1=$current_time2=$current_time3=$current_time4=$current_time5=$current_time6=$current_time7=$current_time8=$current_time9=$current_time10=$current_time11=$current_time12=$current_time13=$current_time14=$current_time15=$current_time16=$current_time17=$current_time18=$current_time19=$current_time20=$current_time21=$current_time22=$current_time23=$current_time24=$current_time25=$current_time26=$current_time27=$current_time28=2401;$time0=$time1=$time2=$time3=$time4=$time5=$time6=$time7=$time8=$time9=$time10=$time11=$time12=$time13=$time14=$time15=$time16=$time17=$time18=$time19=$time20=$time21=$time22=$time23=$time24=$time26=$time27=$time28=2401;?><?php
  64. $datum_output=$week_start->format('j M');$datum_output=str_replace('May','Maj',$datum_output);if($todays_date==$week_start->format('j M')){echo'<span class="weekday today">Idag '.$datum_output.'</span>';}else{echo'<span class="weekday">Tisdag '.$datum_output.'</span><br>';}?><?php
  65. $repeat_field=get_post_meta($post->ID,'tisdag');echo'<ul>';if($repeat_field){foreach($repeat_field as $field){$values=explode('|',$field);if($todays_date==$week_start->format('j M')){$klockan=$current_time;}?><?php
  66. $time0=630;$time1=660;$time2=730;$time3=760;$time4=830;$time5=860;$time6=930;$time7=960;$time8=1030;$time9=1060;$time10=1130;$time11=1160;$time12=1230;$time13=1260;$time14=1330;$time15=1360;$time16=1430;$time17=1460;$time18=1530;$time19=1560;$time20=1630;$time21=1660;$time22=1730;$time23=1760;$time24=1830;$time25=1860;$time26=1930;$time27=1960;$time28=2030;if($values[0]){$current_time0=str_replace(".","","{$values[0]}")-70;}
  67. if($values[1]){$current_time1=str_replace(".","","{$values[1]}")-70;}
  68. if($values[2]){$current_time2=str_replace(".","","{$values[2]}")-70;}
  69. if($values[3]){$current_time3=str_replace(".","","{$values[3]}")-70;}
  70. if($values[4]){$current_time4=str_replace(".","","{$values[4]}")-70;}
  71. if($values[5]){$current_time5=str_replace(".","","{$values[5]}")-70;}
  72. if($values[6]){$current_time6=str_replace(".","","{$values[6]}")-70;}
  73. if($values[7]){$current_time7=str_replace(".","","{$values[7]}")-70;}
  74. if($values[8]){$current_time8=str_replace(".","","{$values[8]}")-70;}
  75. if($values[9]){$current_time9=str_replace(".","","{$values[9]}")-70;}
  76. if($values[10]){$current_time10=str_replace(".","","{$values[10]}")-70;}
  77. if($values[11]){$current_time11=str_replace(".","","{$values[11]}")-70;}
  78. if($values[12]){$current_time12=str_replace(".","","{$values[12]}")-70;}
  79. if($values[13]){$current_time13=str_replace(".","","{$values[13]}")-70;}
  80. if($values[14]){$current_time14=str_replace(".","","{$values[14]}")-70;}
  81. if($values[15]){$current_time15=str_replace(".","","{$values[15]}")-70;}
  82. if($values[16]){$current_time16=str_replace(".","","{$values[16]}")-70;}
  83. if($values[17]){$current_time17=str_replace(".","","{$values[17]}")-70;}
  84. if($values[18]){$current_time18=str_replace(".","","{$values[18]}")-70;}
  85. if($values[19]){$current_time19=str_replace(".","","{$values[19]}")-70;}
  86. if($values[20]){$current_time20=str_replace(".","","{$values[20]}")-70;}
  87. if($values[21]){$current_time21=str_replace(".","","{$values[21]}")-70;}
  88. if($values[22]){$current_time22=str_replace(".","","{$values[22]}")-70;}
  89. if($values[23]){$current_time23=str_replace(".","","{$values[23]}")-70;}
  90. if($values[24]){$current_time24=str_replace(".","","{$values[24]}")-70;}
  91. if($values[25]){$current_time25=str_replace(".","","{$values[25]}")-70;}
  92. if($values[26]){$current_time26=str_replace(".","","{$values[26]}")-70;}
  93. if($values[27]){$current_time27=str_replace(".","","{$values[27]}")-70;}
  94. if($values[28]){$current_time28=str_replace(".","","{$values[28]}")-70;}?><?php $tisdag_time_id0=''.$week_start->format('Y-m-d').'_0700';?><?php $tisdag_time_id0_check=''.$week_start->format('Y-m-d').'_0700';?><?php $tisdag_time_id1=''.$week_start->format('Y-m-d').'_0730';?><?php $tisdag_time_id1_check=''.$week_start->format('Y-m-d').'_0730';?><?php $tisdag_time_id2=''.$week_start->format('Y-m-d').'_0800';?><?php $tisdag_time_id2_check=''.$week_start->format('Y-m-d').'_0800';?><?php $tisdag_time_id3=''.$week_start->format('Y-m-d').'_0830';?><?php $tisdag_time_id3_check=''.$week_start->format('Y-m-d').'_0830';?><?php $tisdag_time_id4=''.$week_start->format('Y-m-d').'_0900';?><?php $tisdag_time_id4_check=''.$week_start->format('Y-m-d').'_0900';?><?php $tisdag_time_id5=''.$week_start->format('Y-m-d').'_0930';?><?php $tisdag_time_id5_check=''.$week_start->format('Y-m-d').'_0930';?><?php $tisdag_time_id6=''.$week_start->format('Y-m-d').'_1000';?><?php $tisdag_time_id6_check=''.$week_start->format('Y-m-d').'_1000';?><?php $tisdag_time_id7=''.$week_start->format('Y-m-d').'_1030';?><?php $tisdag_time_id7_check=''.$week_start->format('Y-m-d').'_1030';?><?php $tisdag_time_id8=''.$week_start->format('Y-m-d').'_1100';?><?php $tisdag_time_id8_check=''.$week_start->format('Y-m-d').'_1100';?><?php $tisdag_time_id9=''.$week_start->format('Y-m-d').'_1130';?><?php $tisdag_time_id9_check=''.$week_start->format('Y-m-d').'_1130';?><?php $tisdag_time_id10=''.$week_start->format('Y-m-d').'_1200';?><?php $tisdag_time_id10_check=''.$week_start->format('Y-m-d').'_1200';?><?php $tisdag_time_id11=''.$week_start->format('Y-m-d').'_1230';?><?php $tisdag_time_id11_check=''.$week_start->format('Y-m-d').'_1230';?><?php $tisdag_time_id12=''.$week_start->format('Y-m-d').'_1300';?><?php $tisdag_time_id12_check=''.$week_start->format('Y-m-d').'_1300';?><?php $tisdag_time_id13=''.$week_start->format('Y-m-d').'_1330';?><?php $tisdag_time_id13_check=''.$week_start->format('Y-m-d').'_1330';?><?php $tisdag_time_id14=''.$week_start->format('Y-m-d').'_1400';?><?php $tisdag_time_id14_check=''.$week_start->format('Y-m-d').'_1400';?><?php $tisdag_time_id15=''.$week_start->format('Y-m-d').'_1430';?><?php $tisdag_time_id15_check=''.$week_start->format('Y-m-d').'_1430';?><?php $tisdag_time_id16=''.$week_start->format('Y-m-d').'_1500';?><?php $tisdag_time_id16_check=''.$week_start->format('Y-m-d').'_1500';?><?php $tisdag_time_id17=''.$week_start->format('Y-m-d').'_1530';?><?php $tisdag_time_id17_check=''.$week_start->format('Y-m-d').'_1530';?><?php $tisdag_time_id18=''.$week_start->format('Y-m-d').'_1600';?><?php $tisdag_time_id18_check=''.$week_start->format('Y-m-d').'_1600';?><?php $tisdag_time_id19=''.$week_start->format('Y-m-d').'_1630';?><?php $tisdag_time_id19_check=''.$week_start->format('Y-m-d').'_1630';?><?php $tisdag_time_id20=''.$week_start->format('Y-m-d').'_1700';?><?php $tisdag_time_id20_check=''.$week_start->format('Y-m-d').'_1700';?><?php $tisdag_time_id21=''.$week_start->format('Y-m-d').'_1730';?><?php $tisdag_time_id21_check=''.$week_start->format('Y-m-d').'_1730';?><?php $tisdag_time_id22=''.$week_start->format('Y-m-d').'_1800';?><?php $tisdag_time_id22_check=''.$week_start->format('Y-m-d').'_1800';?><?php $tisdag_time_id23=''.$week_start->format('Y-m-d').'_1830';?><?php $tisdag_time_id23_check=''.$week_start->format('Y-m-d').'_1830';?><?php $tisdag_time_id24=''.$week_start->format('Y-m-d').'_1900';?><?php $tisdag_time_id24_check=''.$week_start->format('Y-m-d').'_1900';?><?php $tisdag_time_id25=''.$week_start->format('Y-m-d').'_1930';?><?php $tisdag_time_id25_check=''.$week_start->format('Y-m-d').'_1930';?><?php $tisdag_time_id26=''.$week_start->format('Y-m-d').'_2000';?><?php $tisdag_time_id26_check=''.$week_start->format('Y-m-d').'_2000';?><?php $tisdag_time_id27=''.$week_start->format('Y-m-d').'_2030';?><?php $tisdag_time_id27_check=''.$week_start->format('Y-m-d').'_2030';?><?php $tisdag_time_id28=''.$week_start->format('Y-m-d').'_2100';?><?php $tisdag_time_id28_check=''.$week_start->format('Y-m-d').'_2100';?><?php
  95. $args=array('post_type'=>'bokningar','title'=>$curauth->ID,'posts_per_page'=>-1);$result=new WP_Query($args);if($result->have_posts()){?><?php while($result->have_posts()):$result->the_post();?><?php $datumet=get_post_meta(get_the_ID(),'datum',true);?><?php $tiden=get_post_meta(get_the_ID(),'tid',true);$tiden=str_replace(".","","$tiden");?><?php $title=''.$datumet.'_'.$tiden.'';?><?php $bokningsid=get_the_ID();?><?php
  96. $bekraftadbokning=get_page_by_title($bokningsid,OBJECT,'bekraftade-bokningar');$bekraftadbokning_check=get_the_title($bekraftadbokning->ID);$status=2;$status=get_post_meta($bekraftadbokning->ID,'status',true);?><?php if($status==2){?><?php if($title==$tisdag_time_id28){$tisdag_time_id28='';}?><?php if($title==$tisdag_time_id27){$tisdag_time_id27='';}?><?php if($title==$tisdag_time_id26){$tisdag_time_id26='';}?><?php if($title==$tisdag_time_id25){$tisdag_time_id25='';}?><?php if($title==$tisdag_time_id24){$tisdag_time_id24='';}?><?php if($title==$tisdag_time_id23){$tisdag_time_id23='';}?><?php if($title==$tisdag_time_id22){$tisdag_time_id22='';}?><?php if($title==$tisdag_time_id21){$tisdag_time_id21='';}?><?php if($title==$tisdag_time_id20){$tisdag_time_id20='';}?><?php if($title==$tisdag_time_id19){$tisdag_time_id19='';}?><?php if($title==$tisdag_time_id18){$tisdag_time_id18='';}?><?php if($title==$tisdag_time_id17){$tisdag_time_id17='';}?><?php if($title==$tisdag_time_id16){$tisdag_time_id16='';}?><?php if($title==$tisdag_time_id15){$tisdag_time_id15='';}?><?php if($title==$tisdag_time_id14){$tisdag_time_id14='';}?><?php if($title==$tisdag_time_id13){$tisdag_time_id13='';}?><?php if($title==$tisdag_time_id12){$tisdag_time_id12='';}?><?php if($title==$tisdag_time_id11){$tisdag_time_id11='';}?><?php if($title==$tisdag_time_id10){$tisdag_time_id10='';}?><?php if($title==$tisdag_time_id9){$tisdag_time_id9='';}?><?php if($title==$tisdag_time_id8){$tisdag_time_id8='';}?><?php if($title==$tisdag_time_id7){$tisdag_time_id7='';}?><?php if($title==$tisdag_time_id6){$tisdag_time_id6='';}?><?php if($title==$tisdag_time_id5){$tisdag_time_id5='';}?><?php if($title==$tisdag_time_id4){$tisdag_time_id4='';}?><?php if($title==$tisdag_time_id3){$tisdag_time_id3='';}?><?php if($title==$tisdag_time_id2){$tisdag_time_id2='';}?><?php if($title==$tisdag_time_id1){$tisdag_time_id1='';}?><?php if($title==$tisdag_time_id0){$tisdag_time_id0='';}?><?php}?><?php endwhile;?><?php}?><?php if(date('Y-m-d')>$week_start->format('Y-m-d')){echo'<span style="opacity: 0.5;">Inga lediga tider</span>';}else{?><!--time 0 start--><?php if($tisdag_time_id0_check==$tisdag_time_id0){?><?php
  97. if($current_time0==$time0||$current_time1==$time0||$current_time2==$time0||$current_time3==$time0||$current_time4==$time0||$current_time5==$time0||$current_time6==$time0||$current_time7==$time0||$current_time8==$time0||$current_time9==$time0||$current_time10==$time0||$current_time11==$time0||$current_time12==$time0||$current_time13==$time0||$current_time14==$time0||$current_time15==$time0||$current_time16==$time0||$current_time17==$time0||$current_time18==$time0||$current_time19==$time0||$current_time20==$time0||$current_time21==$time0||$current_time22==$time0||$current_time23==$time0||$current_time24==$time0||$current_time25==$time0||$current_time26==$time0||$current_time27==$time0||$current_time28==$time0){?><?php if($time0>$klockan){?><li><input type=radio id='<?php echo $year; ?>_vecka<?php echo $week; ?>_tisdag_700'name=valj_en_tid value='Tisdag <?php echo $week_start->format('Y-m-d'); ?> 07.00'><label for='<?php echo $year; ?>_vecka<?php echo $week; ?>_tisdag_700'>07.00</label></li><?php}}}?><!--time 0 end--><!--time 1 start--><?php if($tisdag_time_id1_check==$tisdag_time_id1){?><?php
  98. if($current_time0==$time1||$current_time1==$time1||$current_time2==$time1||$current_time3==$time1||$current_time4==$time1||$current_time5==$time1||$current_time6==$time1||$current_time7==$time1||$current_time8==$time1||$current_time9==$time1||$current_time10==$time1||$current_time11==$time1||$current_time12==$time1||$current_time13==$time1||$current_time14==$time1||$current_time15==$time1||$current_time16==$time1||$current_time17==$time1||$current_time18==$time1||$current_time19==$time1||$current_time20==$time1||$current_time21==$time1||$current_time22==$time1||$current_time23==$time1||$current_time24==$time1||$current_time25==$time1||$current_time26==$time1||$current_time27==$time1||$current_time28==$time1){?><?php if($time1>$klockan){?><li><input type=radio id='<?php echo $year; ?>_vecka<?php echo $week; ?>_tisdag_730'name=valj_en_tid value='Tisdag <?php echo $week_start->format('Y-m-d'); ?> 07.30'><label for='<?php echo $year; ?>_vecka<?php echo $week; ?>_tisdag_730'>07.30</label></li><?php}}}?><!--time 1 end--><!--time 2 start--><?php if($tisdag_time_id2_check==$tisdag_time_id2){?><?php
  99. if($current_time0==$time2||$current_time1==$time2||$current_time2==$time2||$current_time3==$time2||$current_time4==$time2||$current_time5==$time2||$current_time6==$time2||$current_time7==$time2||$current_time8==$time2||$current_time9==$time2||$current_time10==$time2||$current_time11==$time2||$current_time12==$time2||$current_time13==$time2||$current_time14==$time2||$current_time15==$time2||$current_time16==$time2||$current_time17==$time2||$current_time18==$time2||$current_time19==$time2||$current_time20==$time2||$current_time21==$time2||$current_time22==$time2||$current_time23==$time2||$current_time24==$time2||$current_time25==$time2||$current_time26==$time2||$current_time27==$time2||$current_time28==$time2){?><?php if($time2>$klockan){?><li><input type=radio id='<?php echo $year; ?>_vecka<?php echo $week; ?>_tisdag_800'name=valj_en_tid value='Tisdag <?php echo $week_start->format('Y-m-d'); ?> 08.00'><label for='<?php echo $year; ?>_vecka<?php echo $week; ?>_tisdag_800'>08.00</label></li><?php}}}?><!--time 2 end--><!--time 3 start--><?php if($tisdag_time_id3_check==$tisdag_time_id3){?><?php
  100. if($current_time0==$time3||$current_time1==$time3||$current_time2==$time3||$current_time3==$time3||$current_time4==$time3||$current_time5==$time3||$current_time6==$time3||$current_time7==$time3||$current_time8==$time3||$current_time9==$time3||$current_time10==$time3||$current_time11==$time3||$current_time12==$time3||$current_time13==$time3||$current_time14==$time3||$current_time15==$time3||$current_time16==$time3||$current_time17==$time3||$current_time18==$time3||$current_time19==$time3||$current_time20==$time3||$current_time21==$time3||$current_time22==$time3||$current_time23==$time3||$current_time24==$time3||$current_time25==$time3||$current_time26==$time3||$current_time27==$time3||$current_time28==$time3){?><?php if($time3>$klockan){?><li><input type=radio id='<?php echo $year; ?>_vecka<?php echo $week; ?>_tisdag_830'name=valj_en_tid value='Tisdag <?php echo $week_start->format('Y-m-d'); ?> 08.30'><label for='<?php echo $year; ?>_vecka<?php echo $week; ?>_tisdag_830'>08.30</label></li><?php}}}?><!--time 3 end--><!--time 4 start--><?php if($tisdag_time_id4_check==$tisdag_time_id4){?><?php
  101. if($current_time0==$time4||$current_time1==$time4||$current_time2==$time4||$current_time3==$time4||$current_time4==$time4||$current_time5==$time4||$current_time6==$time4||$current_time7==$time4||$current_time8==$time4||$current_time9==$time4||$current_time10==$time4||$current_time11==$time4||$current_time12==$time4||$current_time13==$time4||$current_time14==$time4||$current_time15==$time4||$current_time16==$time4||$current_time17==$time4||$current_time18==$time4||$current_time19==$time4||$current_time20==$time4||$current_time21==$time4||$current_time22==$time4||$current_time23==$time4||$current_time24==$time4||$current_time25==$time4||$current_time26==$time4||$current_time27==$time4||$current_time28==$time4){?><?php if($time4>$klockan){?><li><input type=radio id='<?php echo $year; ?>_vecka<?php echo $week; ?>_tisdag_900'name=valj_en_tid value='Tisdag <?php echo $week_start->format('Y-m-d'); ?> 09.00'><label for='<?php echo $year; ?>_vecka<?php echo $week; ?>_tisdag_900'>09.00</label></li><?php}}}?><!--time 4 end--><!--time 5 start--><?php if($tisdag_time_id5_check==$tisdag_time_id5){?><?php
  102. if($current_time0==$time5||$current_time1==$time5||$current_time2==$time5||$current_time3==$time5||$current_time4==$time5||$current_time5==$time5||$current_time6==$time5||$current_time7==$time5||$current_time8==$time5||$current_time9==$time5||$current_time10==$time5||$current_time11==$time5||$current_time12==$time5||$current_time13==$time5||$current_time14==$time5||$current_time15==$time5||$current_time16==$time5||$current_time17==$time5||$current_time18==$time5||$current_time19==$time5||$current_time20==$time5||$current_time21==$time5||$current_time22==$time5||$current_time23==$time5||$current_time24==$time5||$current_time25==$time5||$current_time26==$time5||$current_time27==$time5||$current_time28==$time5){?><?php if($time5>$klockan){?><li><input type=radio id='<?php echo $year; ?>_vecka<?php echo $week; ?>_tisdag_930'name=valj_en_tid value='Tisdag <?php echo $week_start->format('Y-m-d'); ?> 09.30'><label for='<?php echo $year; ?>_vecka<?php echo $week; ?>_tisdag_930'>09.30</label></li><?php}}}?><!--time 5 end--><!--time 6 start--><?php if($tisdag_time_id6_check==$tisdag_time_id6){?><?php
  103. if($current_time0==$time6||$current_time1==$time6||$current_time2==$time6||$current_time3==$time6||$current_time4==$time6||$current_time5==$time6||$current_time6==$time6||$current_time7==$time6||$current_time8==$time6||$current_time9==$time6||$current_time10==$time6||$current_time11==$time6||$current_time12==$time6||$current_time13==$time6||$current_time14==$time6||$current_time15==$time6||$current_time16==$time6||$current_time17==$time6||$current_time18==$time6||$current_time19==$time6||$current_time20==$time6||$current_time21==$time6||$current_time22==$time6||$current_time23==$time6||$current_time24==$time6||$current_time25==$time6||$current_time26==$time6||$current_time27==$time6||$current_time28==$time6){?><?php if($time6>$klockan){?><li><input type=radio id='<?php echo $year; ?>_vecka<?php echo $week; ?>_tisdag_1000'name=valj_en_tid value='Tisdag <?php echo $week_start->format('Y-m-d'); ?> 10.00'><label for='<?php echo $year; ?>_vecka<?php echo $week; ?>_tisdag_1000'>10.00</label></li><?php}}}?><!--time 6 end--><!--time 7 start--><?php if($tisdag_time_id7_check==$tisdag_time_id7){?><?php
  104. if($current_time0==$time7||$current_time1==$time7||$current_time2==$time7||$current_time3==$time7||$current_time4==$time7||$current_time5==$time7||$current_time6==$time7||$current_time7==$time7||$current_time8==$time7||$current_time9==$time7||$current_time10==$time7||$current_time11==$time7||$current_time12==$time7||$current_time13==$time7||$current_time14==$time7||$current_time15==$time7||$current_time16==$time7||$current_time17==$time7||$current_time18==$time7||$current_time19==$time7||$current_time20==$time7||$current_time21==$time7||$current_time22==$time7||$current_time23==$time7||$current_time24==$time7||$current_time25==$time7||$current_time26==$time7||$current_time27==$time7||$current_time28==$time7){?><?php if($time7>$klockan){?><li><input type=radio id='<?php echo $year; ?>_vecka<?php echo $week; ?>_tisdag_1030'name=valj_en_tid value='Tisdag <?php echo $week_start->format('Y-m-d'); ?> 10.30'><label for='<?php echo $year; ?>_vecka<?php echo $week; ?>_tisdag_1030'>10.30</label></li><?php}}}?><!--time 7 end--><!--time 8 start--><?php if($tisdag_time_id8_check==$tisdag_time_id8){?><?php
  105. if($current_time0==$time8||$current_time1==$time8||$current_time2==$time8||$current_time3==$time8||$current_time4==$time8||$current_time5==$time8||$current_time6==$time8||$current_time7==$time8||$current_time8==$time8||$current_time9==$time8||$current_time10==$time8||$current_time11==$time8||$current_time12==$time8||$current_time13==$time8||$current_time14==$time8||$current_time15==$time8||$current_time16==$time8||$current_time17==$time8||$current_time18==$time8||$current_time19==$time8||$current_time20==$time8||$current_time21==$time8||$current_time22==$time8||$current_time23==$time8||$current_time24==$time8||$current_time25==$time8||$current_time26==$time8||$current_time27==$time8||$current_time28==$time8){?><?php if($time8>$klockan){?><li><input type=radio id='<?php echo $year; ?>_vecka<?php echo $week; ?>_tisdag_1100'name=valj_en_tid value='Tisdag <?php echo $week_start->format('Y-m-d'); ?> 11.00'><label for='<?php echo $year; ?>_vecka<?php echo $week; ?>_tisdag_1100'>11.00</label></li><?php}}}?><!--time 8 end--><!--time 9 start--><?php if($tisdag_time_id9_check==$tisdag_time_id9){?><?php
  106. if($current_time0==$time9||$current_time1==$time9||$current_time2==$time9||$current_time3==$time9||$current_time4==$time9||$current_time5==$time9||$current_time6==$time9||$current_time7==$time9||$current_time8==$time9||$current_time9==$time9||$current_time10==$time9||$current_time11==$time9||$current_time12==$time9||$current_time13==$time9||$current_time14==$time9||$current_time15==$time9||$current_time16==$time9||$current_time17==$time9||$current_time18==$time9||$current_time19==$time9||$current_time20==$time9||$current_time21==$time9||$current_time22==$time9||$current_time23==$time9||$current_time24==$time9||$current_time25==$time9||$current_time26==$time9||$current_time27==$time9||$current_time28==$time9){?><?php if($time9>$klockan){?><li><input type=radio id='<?php echo $year; ?>_vecka<?php echo $week; ?>_tisdag_1130'name=valj_en_tid value='Tisdag <?php echo $week_start->format('Y-m-d'); ?> 11.30'><label for='<?php echo $year; ?>_vecka<?php echo $week; ?>_tisdag_1130'>11.30</label></li><?php}}}?><!--time 9 end--><!--time 10 start--><?php if($tisdag_time_id10_check==$tisdag_time_id10){?><?php
  107. if($current_time0==$time10||$current_time1==$time10||$current_time2==$time10||$current_time3==$time10||$current_time4==$time10||$current_time5==$time10||$current_time6==$time10||$current_time7==$time10||$current_time8==$time10||$current_time9==$time10||$current_time10==$time10||$current_time11==$time10||$current_time12==$time10||$current_time13==$time10||$current_time14==$time10||$current_time15==$time10||$current_time16==$time10||$current_time17==$time10||$current_time18==$time10||$current_time19==$time10||$current_time20==$time10||$current_time21==$time10||$current_time22==$time10||$current_time23==$time10||$current_time24==$time10||$current_time25==$time10||$current_time26==$time10||$current_time27==$time10||$current_time28==$time10){?><?php if($time10>$klockan){?><li><input type=radio id='<?php echo $year; ?>_vecka<?php echo $week; ?>_tisdag_1200'name=valj_en_tid value='Tisdag <?php echo $week_start->format('Y-m-d'); ?> 12.00'><label for='<?php echo $year; ?>_vecka<?php echo $week; ?>_tisdag_1200'>12.00</label></li><?php}}}?><!--time 10 end--><!--time 11 start--><?php if($tisdag_time_id11_check==$tisdag_time_id11){?><?php
  108. if($current_time0==$time11||$current_time1==$time11||$current_time2==$time11||$current_time3==$time11||$current_time4==$time11||$current_time5==$time11||$current_time6==$time11||$current_time7==$time11||$current_time8==$time11||$current_time9==$time11||$current_time10==$time11||$current_time11==$time11||$current_time12==$time11||$current_time13==$time11||$current_time14==$time11||$current_time15==$time11||$current_time16==$time11||$current_time17==$time11||$current_time18==$time11||$current_time19==$time11||$current_time20==$time11||$current_time21==$time11||$current_time22==$time11||$current_time23==$time11||$current_time24==$time11||$current_time25==$time11||$current_time26==$time11||$current_time27==$time11||$current_time28==$time11){?><?php if($time11>$klockan){?><li><input type=radio id='<?php echo $year; ?>_vecka<?php echo $week; ?>_tisdag_1230'name=valj_en_tid value='Tisdag <?php echo $week_start->format('Y-m-d'); ?> 12.30'><label for='<?php echo $year; ?>_vecka<?php echo $week; ?>_tisdag_1230'>12.30</label></li><?php}}}?><!--time 11 end--><!--time 12 start--><?php if($tisdag_time_id12_check==$tisdag_time_id12){?><?php
  109. if($current_time0==$time12||$current_time1==$time12||$current_time2==$time12||$current_time3==$time12||$current_time4==$time12||$current_time5==$time12||$current_time6==$time12||$current_time7==$time12||$current_time8==$time12||$current_time9==$time12||$current_time10==$time12||$current_time11==$time12||$current_time12==$time12||$current_time13==$time12||$current_time14==$time12||$current_time15==$time12||$current_time16==$time12||$current_time17==$time12||$current_time18==$time12||$current_time19==$time12||$current_time20==$time12||$current_time21==$time12||$current_time22==$time12||$current_time23==$time12||$current_time24==$time12||$current_time25==$time12||$current_time26==$time12||$current_time27==$time12||$current_time28==$time12){?><?php if($time12>$klockan){?><li><input type=radio id='<?php echo $year; ?>_vecka<?php echo $week; ?>_tisdag_1300'name=valj_en_tid value='Tisdag <?php echo $week_start->format('Y-m-d'); ?> 13.00'><label for='<?php echo $year; ?>_vecka<?php echo $week; ?>_tisdag_1300'>13.00</label></li><?php}}}?><!--time 12 end--><!--time 13 start--><?php if($tisdag_time_id13_check==$tisdag_time_id13){?><?php
  110. if($current_time0==$time13||$current_time1==$time13||$current_time2==$time13||$current_time3==$time13||$current_time4==$time13||$current_time5==$time13||$current_time6==$time13||$current_time7==$time13||$current_time8==$time13||$current_time9==$time13||$current_time10==$time13||$current_time11==$time13||$current_time12==$time13||$current_time13==$time13||$current_time14==$time13||$current_time15==$time13||$current_time16==$time13||$current_time17==$time13||$current_time18==$time13||$current_time19==$time13||$current_time20==$time13||$current_time21==$time13||$current_time22==$time13||$current_time23==$time13||$current_time24==$time13||$current_time25==$time13||$current_time26==$time13||$current_time27==$time13||$current_time28==$time13){?><?php if($time13>$klockan){?><li><input type=radio id='<?php echo $year; ?>_vecka<?php echo $week; ?>_tisdag_1330'name=valj_en_tid value='Tisdag <?php echo $week_start->format('Y-m-d'); ?> 13.30'><label for='<?php echo $year; ?>_vecka<?php echo $week; ?>_tisdag_1330'>13.30</label></li><?php}}}?><!--time 13 end--><!--time 14 start--><?php if($tisdag_time_id14_check==$tisdag_time_id14){?><?php
  111. if($current_time0==$time14||$current_time1==$time14||$current_time2==$time14||$current_time3==$time14||$current_time4==$time14||$current_time5==$time14||$current_time6==$time14||$current_time7==$time14||$current_time8==$time14||$current_time9==$time14||$current_time10==$time14||$current_time11==$time14||$current_time12==$time14||$current_time13==$time14||$current_time14==$time14||$current_time15==$time14||$current_time16==$time14||$current_time17==$time14||$current_time18==$time14||$current_time19==$time14||$current_time20==$time14||$current_time21==$time14||$current_time22==$time14||$current_time23==$time14||$current_time24==$time14||$current_time25==$time14||$current_time26==$time14||$current_time27==$time14||$current_time28==$time14){?><?php if($time14>$klockan){?><li><input type=radio id='<?php echo $year; ?>_vecka<?php echo $week; ?>_tisdag_1400'name=valj_en_tid value='Tisdag <?php echo $week_start->format('Y-m-d'); ?> 14.00'><label for='<?php echo $year; ?>_vecka<?php echo $week; ?>_tisdag_1400'>14.00</label></li><?php}}}?><!--time 14 end--><!--time 15 start--><?php if($tisdag_time_id15_check==$tisdag_time_id15){?><?php
  112. if($current_time0==$time15||$current_time1==$time15||$current_time2==$time15||$current_time3==$time15||$current_time4==$time15||$current_time5==$time15||$current_time6==$time15||$current_time7==$time15||$current_time8==$time15||$current_time9==$time15||$current_time10==$time15||$current_time11==$time15||$current_time12==$time15||$current_time13==$time15||$current_time14==$time15||$current_time15==$time15||$current_time16==$time15||$current_time17==$time15||$current_time18==$time15||$current_time19==$time15||$current_time20==$time15||$current_time21==$time15||$current_time22==$time15||$current_time23==$time15||$current_time24==$time15||$current_time25==$time15||$current_time26==$time15||$current_time27==$time15||$current_time28==$time15){?><?php if($time15>$klockan){?><li><input type=radio id='<?php echo $year; ?>_vecka<?php echo $week; ?>_tisdag_1430'name=valj_en_tid value='Tisdag <?php echo $week_start->format('Y-m-d'); ?> 14.30'><label for='<?php echo $year; ?>_vecka<?php echo $week; ?>_tisdag_1430'>14.30</label></li><?php}}}?><!--time 15 end--><!--time 16 start--><?php if($tisdag_time_id16_check==$tisdag_time_id16){?><?php
  113. if($current_time0==$time16||$current_time1==$time16||$current_time2==$time16||$current_time3==$time16||$current_time4==$time16||$current_time5==$time16||$current_time6==$time16||$current_time7==$time16||$current_time8==$time16||$current_time9==$time16||$current_time10==$time16||$current_time11==$time16||$current_time12==$time16||$current_time13==$time16||$current_time14==$time16||$current_time15==$time16||$current_time16==$time16||$current_time17==$time16||$current_time18==$time16||$current_time19==$time16||$current_time20==$time16||$current_time21==$time16||$current_time22==$time16||$current_time23==$time16||$current_time24==$time16||$current_time25==$time16||$current_time26==$time16||$current_time27==$time16||$current_time28==$time16){?><?php if($time16>$klockan){?><li><input type=radio id='<?php echo $year; ?>_vecka<?php echo $week; ?>_tisdag_1500'name=valj_en_tid value='Tisdag <?php echo $week_start->format('Y-m-d'); ?> 15.00'><label for='<?php echo $year; ?>_vecka<?php echo $week; ?>_tisdag_1500'>15.00</label></li><?php}}}?><!--time 16 end--><!--time 17 start--><?php if($tisdag_time_id17_check==$tisdag_time_id17){?><?php
  114. if($current_time0==$time17||$current_time1==$time17||$current_time2==$time17||$current_time3==$time17||$current_time4==$time17||$current_time5==$time17||$current_time6==$time17||$current_time7==$time17||$current_time8==$time17||$current_time9==$time17||$current_time10==$time17||$current_time11==$time17||$current_time12==$time17||$current_time13==$time17||$current_time14==$time17||$current_time15==$time17||$current_time16==$time17||$current_time17==$time17||$current_time18==$time17||$current_time19==$time17||$current_time20==$time17||$current_time21==$time17||$current_time22==$time17||$current_time23==$time17||$current_time24==$time17||$current_time25==$time17||$current_time26==$time17||$current_time27==$time17||$current_time28==$time17){?><?php if($time17>$klockan){?><li><input type=radio id='<?php echo $year; ?>_vecka<?php echo $week; ?>_tisdag_1530'name=valj_en_tid value='Tisdag <?php echo $week_start->format('Y-m-d'); ?> 15.30'><label for='<?php echo $year; ?>_vecka<?php echo $week; ?>_tisdag_1530'>15.30</label></li><?php}}}?><!--time 17 end--><!--time 18 start--><?php if($tisdag_time_id18_check==$tisdag_time_id18){?><?php
  115. if($current_time0==$time18||$current_time1==$time18||$current_time2==$time18||$current_time3==$time18||$current_time4==$time18||$current_time5==$time18||$current_time6==$time18||$current_time7==$time18||$current_time8==$time18||$current_time9==$time18||$current_time10==$time18||$current_time11==$time18||$current_time12==$time18||$current_time13==$time18||$current_time14==$time18||$current_time15==$time18||$current_time16==$time18||$current_time17==$time18||$current_time18==$time18||$current_time19==$time18||$current_time20==$time18||$current_time21==$time18||$current_time22==$time18||$current_time23==$time18||$current_time24==$time18||$current_time25==$time18||$current_time26==$time18||$current_time27==$time18||$current_time28==$time18){?><?php if($time18>$klockan){?><li><input type=radio id='<?php echo $year; ?>_vecka<?php echo $week; ?>_tisdag_1600'name=valj_en_tid value='Tisdag <?php echo $week_start->format('Y-m-d'); ?> 16.00'><label for='<?php echo $year; ?>_vecka<?php echo $week; ?>_tisdag_1600'>16.00</label></li><?php}}}?><!--time 18 end--><!--time 19 start--><?php if($tisdag_time_id19_check==$tisdag_time_id19){?><?php
  116. if($current_time0==$time19||$current_time1==$time19||$current_time2==$time19||$current_time3==$time19||$current_time4==$time19||$current_time5==$time19||$current_time6==$time19||$current_time7==$time19||$current_time8==$time19||$current_time9==$time19||$current_time10==$time19||$current_time11==$time19||$current_time12==$time19||$current_time13==$time19||$current_time14==$time19||$current_time15==$time19||$current_time16==$time19||$current_time17==$time19||$current_time18==$time19||$current_time19==$time19||$current_time20==$time19||$current_time21==$time19||$current_time22==$time19||$current_time23==$time19||$current_time24==$time19||$current_time25==$time19||$current_time26==$time19||$current_time27==$time19||$current_time28==$time19){?><?php if($time19>$klockan){?><li><input type=radio id='<?php echo $year; ?>_vecka<?php echo $week; ?>_tisdag_1630'name=valj_en_tid value='Tisdag <?php echo $week_start->format('Y-m-d'); ?> 16.30'><label for='<?php echo $year; ?>_vecka<?php echo $week; ?>_tisdag_1630'>16.30</label></li><?php}}}?><!--time 19 end--><!--time 20 start--><?php if($tisdag_time_id20_check==$tisdag_time_id20){?><?php
  117. if($current_time0==$time20||$current_time1==$time20||$current_time2==$time20||$current_time3==$time20||$current_time4==$time20||$current_time5==$time20||$current_time6==$time20||$current_time7==$time20||$current_time8==$time20||$current_time9==$time20||$current_time10==$time20||$current_time11==$time20||$current_time12==$time20||$current_time13==$time20||$current_time14==$time20||$current_time15==$time20||$current_time16==$time20||$current_time17==$time20||$current_time18==$time20||$current_time19==$time20||$current_time20==$time20||$current_time21==$time20||$current_time22==$time20||$current_time23==$time20||$current_time24==$time20||$current_time25==$time20||$current_time26==$time20||$current_time27==$time20||$current_time28==$time20){?><?php if($time20>$klockan){?><li><input type=radio id='<?php echo $year; ?>_vecka<?php echo $week; ?>_tisdag_1700'name=valj_en_tid value='Tisdag <?php echo $week_start->format('Y-m-d'); ?> 17.00'><label for='<?php echo $year; ?>_vecka<?php echo $week; ?>_tisdag_1700'>17.00</label></li><?php}}}?><!--time 20 end--><!--time 21 start--><?php if($tisdag_time_id21_check==$tisdag_time_id21){?><?php
  118. if($current_time0==$time21||$current_time1==$time21||$current_time2==$time21||$current_time3==$time21||$current_time4==$time21||$current_time5==$time21||$current_time6==$time21||$current_time7==$time21||$current_time8==$time21||$current_time9==$time21||$current_time10==$time21||$current_time11==$time21||$current_time12==$time21||$current_time13==$time21||$current_time14==$time21||$current_time15==$time21||$current_time16==$time21||$current_time17==$time21||$current_time18==$time21||$current_time19==$time21||$current_time20==$time21||$current_time21==$time21||$current_time22==$time21||$current_time23==$time21||$current_time24==$time21||$current_time25==$time21||$current_time26==$time21||$current_time27==$time21||$current_time28==$time21){?><?php if($time21>$klockan){?><li><input type=radio id='<?php echo $year; ?>_vecka<?php echo $week; ?>_tisdag_1730'name=valj_en_tid value='Tisdag <?php echo $week_start->format('Y-m-d'); ?> 17.30'><label for='<?php echo $year; ?>_vecka<?php echo $week; ?>_tisdag_1730'>17.30</label></li><?php}}}?><!--time 21 end--><!--time 22 start--><?php if($tisdag_time_id22_check==$tisdag_time_id22){?><?php
  119. if($current_time0==$time22||$current_time1==$time22||$current_time2==$time22||$current_time3==$time22||$current_time4==$time22||$current_time5==$time22||$current_time6==$time22||$current_time7==$time22||$current_time8==$time22||$current_time9==$time22||$current_time10==$time22||$current_time11==$time22||$current_time12==$time22||$current_time13==$time22||$current_time14==$time22||$current_time15==$time22||$current_time16==$time22||$current_time17==$time22||$current_time18==$time22||$current_time19==$time22||$current_time20==$time22||$current_time21==$time22||$current_time22==$time22||$current_time23==$time22||$current_time24==$time22||$current_time25==$time22||$current_time26==$time22||$current_time27==$time22||$current_time28==$time22){?><?php if($time22>$klockan){?><li><input type=radio id='<?php echo $year; ?>_vecka<?php echo $week; ?>_tisdag_1800'name=valj_en_tid value='Tisdag <?php echo $week_start->format('Y-m-d'); ?> 18.00'><label for='<?php echo $year; ?>_vecka<?php echo $week; ?>_tisdag_1800'>18.00</label></li><?php}}}?><!--time 22 end--><!--time 23 start--><?php if($tisdag_time_id23_check==$tisdag_time_id23){?><?php
  120. if($current_time0==$time23||$current_time1==$time23||$current_time2==$time23||$current_time3==$time23||$current_time4==$time23||$current_time5==$time23||$current_time6==$time23||$current_time7==$time23||$current_time8==$time23||$current_time9==$time23||$current_time10==$time23||$current_time11==$time23||$current_time12==$time23||$current_time13==$time23||$current_time14==$time23||$current_time15==$time23||$current_time16==$time23||$current_time17==$time23||$current_time18==$time23||$current_time19==$time23||$current_time20==$time23||$current_time21==$time23||$current_time22==$time23||$current_time23==$time23||$current_time24==$time23||$current_time25==$time23||$current_time26==$time23||$current_time27==$time23||$current_time28==$time23){?><?php if($time23>$klockan){?><li><input type=radio id='<?php echo $year; ?>_vecka<?php echo $week; ?>_tisdag_1830'name=valj_en_tid value='Tisdag <?php echo $week_start->format('Y-m-d'); ?> 18.30'><label for='<?php echo $year; ?>_vecka<?php echo $week; ?>_tisdag_1830'>18.30</label></li><?php}}}?><!--time 23 end--><!--time 24 start--><?php if($tisdag_time_id24_check==$tisdag_time_id24){?><?php
  121. if($current_time0==$time24||$current_time1==$time24||$current_time2==$time24||$current_time3==$time24||$current_time4==$time24||$current_time5==$time24||$current_time6==$time24||$current_time7==$time24||$current_time8==$time24||$current_time9==$time24||$current_time10==$time24||$current_time11==$time24||$current_time12==$time24||$current_time13==$time24||$current_time14==$time24||$current_time15==$time24||$current_time16==$time24||$current_time17==$time24||$current_time18==$time24||$current_time19==$time24||$current_time20==$time24||$current_time21==$time24||$current_time22==$time24||$current_time23==$time24||$current_time24==$time24||$current_time25==$time24||$current_time26==$time24||$current_time27==$time24||$current_time28==$time24){?><?php if($time24>$klockan){?><li><input type=radio id='<?php echo $year; ?>_vecka<?php echo $week; ?>_tisdag_1900'name=valj_en_tid value='Tisdag <?php echo $week_start->format('Y-m-d'); ?> 19.00'><label for='<?php echo $year; ?>_vecka<?php echo $week; ?>_tisdag_1900'>19.00</label></li><?php}}}?><!--time 24 end--><!--time 25 start--><?php if($tisdag_time_id25_check==$tisdag_time_id25){?><?php
  122. if($current_time0==$time25||$current_time1==$time25||$current_time2==$time25||$current_time3==$time25||$current_time4==$time25||$current_time5==$time25||$current_time6==$time25||$current_time7==$time25||$current_time8==$time25||$current_time9==$time25||$current_time10==$time25||$current_time11==$time25||$current_time12==$time25||$current_time13==$time25||$current_time14==$time25||$current_time15==$time25||$current_time16==$time25||$current_time17==$time25||$current_time18==$time25||$current_time19==$time25||$current_time20==$time25||$current_time21==$time25||$current_time22==$time25||$current_time23==$time25||$current_time24==$time25||$current_time25==$time25||$current_time26==$time25||$current_time27==$time25||$current_time28==$time25){?><?php if($time25>$klockan){?><li><input type=radio id='<?php echo $year; ?>_vecka<?php echo $week; ?>_tisdag_1930'name=valj_en_tid value='Tisdag <?php echo $week_start->format('Y-m-d'); ?> 19.30'><label for='<?php echo $year; ?>_vecka<?php echo $week; ?>_tisdag_1930'>19.30</label></li><?php}}}?><!--time 25 end--><!--time 26 start--><?php if($tisdag_time_id26_check==$tisdag_time_id26){?><?php
  123. if($current_time0==$time26||$current_time1==$time26||$current_time2==$time26||$current_time3==$time26||$current_time4==$time26||$current_time5==$time26||$current_time6==$time26||$current_time7==$time26||$current_time8==$time26||$current_time9==$time26||$current_time10==$time26||$current_time11==$time26||$current_time12==$time26||$current_time13==$time26||$current_time14==$time26||$current_time15==$time26||$current_time16==$time26||$current_time17==$time26||$current_time18==$time26||$current_time19==$time26||$current_time20==$time26||$current_time21==$time26||$current_time22==$time26||$current_time23==$time26||$current_time24==$time26||$current_time25==$time26||$current_time26==$time26||$current_time27==$time26||$current_time28==$time26){?><?php if($time26>$klockan){?><li><input type=radio id='<?php echo $year; ?>_vecka<?php echo $week; ?>_tisdag_2000'name=valj_en_tid value='Tisdag <?php echo $week_start->format('Y-m-d'); ?> 20.00'><label for='<?php echo $year; ?>_vecka<?php echo $week; ?>_tisdag_2000'>20.00</label></li><?php}}}?><!--time 26 end--><!--time 27 start--><?php if($tisdag_time_id27_check==$tisdag_time_id27){?><?php
  124. if($current_time0==$time27||$current_time1==$time27||$current_time2==$time27||$current_time3==$time27||$current_time4==$time27||$current_time5==$time27||$current_time6==$time27||$current_time7==$time27||$current_time8==$time27||$current_time9==$time27||$current_time10==$time27||$current_time11==$time27||$current_time12==$time27||$current_time13==$time27||$current_time14==$time27||$current_time15==$time27||$current_time16==$time27||$current_time17==$time27||$current_time18==$time27||$current_time19==$time27||$current_time20==$time27||$current_time21==$time27||$current_time22==$time27||$current_time23==$time27||$current_time24==$time27||$current_time25==$time27||$current_time26==$time27||$current_time27==$time27||$current_time28==$time27){?><?php if($time27>$klockan){?><li><input type=radio id='<?php echo $year; ?>_vecka<?php echo $week; ?>_tisdag_2030'name=valj_en_tid value='Tisdag <?php echo $week_start->format('Y-m-d'); ?> 20.30'><label for='<?php echo $year; ?>_vecka<?php echo $week; ?>_tisdag_2030'>20.30</label></li><?php}}}?><!--time 27 end--><!--time 28 start--><?php if($tisdag_time_id28_check==$tisdag_time_id28){?><?php
  125. if($current_time0==$time28||$current_time1==$time28||$current_time2==$time28||$current_time3==$time28||$current_time4==$time28||$current_time5==$time28||$current_time6==$time28||$current_time7==$time28||$current_time8==$time28||$current_time9==$time28||$current_time10==$time28||$current_time11==$time28||$current_time12==$time28||$current_time13==$time28||$current_time14==$time28||$current_time15==$time28||$current_time16==$time28||$current_time17==$time28||$current_time18==$time28||$current_time19==$time28||$current_time20==$time28||$current_time21==$time28||$current_time22==$time28||$current_time23==$time28||$current_time24==$time28||$current_time25==$time28||$current_time26==$time28||$current_time27==$time28||$current_time28==$time28){?><?php if($time28>$klockan){?><li><input type=radio id='<?php echo $year; ?>_vecka<?php echo $week; ?>_tisdag_2100'name=valj_en_tid value='Tisdag <?php echo $week_start->format('Y-m-d'); ?> 21.00'><label for='<?php echo $year; ?>_vecka<?php echo $week; ?>_tisdag_2100'>21.00</label></li><?php}}}?><!--time 28 end--><?php if($values[0]or $values[1]or $values[2]or $values[3]or $values[4]or $values[5]or $values[6]or $values[7]or $values[8]or $values[9]or $values[10]or $values[11]or $values[12]or $values[13]or $values[14]or $values[15]or $values[16]or $values[17]or $values[18]or $values[19]or $values[20]or $values[21]or $values[22]or $values[23]or $values[24 or $values[25]or $values[26]or $values[27]or $values[28]]){}else{echo'<span style="opacity: 0.5;">Inga lediga tider</span>';}?><?php}?><?php}}?><?php wp_reset_postdata();?><?php echo'</ul>';?><!--===================================--><?$week_start=new DateTime();$week_start->setISODate($year,$week,"3");$timestamp=strtotime('2021-02-02');$todays_date=date('j M');$current_time=date('Hi');$klockan=0;$current_time0=$current_time1=$current_time2=$current_time3=$current_time4=$current_time5=$current_time6=$current_time7=$current_time8=$current_time9=$current_time10=$current_time11=$current_time12=$current_time13=$current_time14=$current_time15=$current_time16=$current_time17=$current_time18=$current_time19=$current_time20=$current_time21=$current_time22=$current_time23=$current_time24=$current_time25=$current_time26=$current_time27=$current_time28=2401;$time0=$time1=$time2=$time3=$time4=$time5=$time6=$time7=$time8=$time9=$time10=$time11=$time12=$time13=$time14=$time15=$time16=$time17=$time18=$time19=$time20=$time21=$time22=$time23=$time24=$time26=$time27=$time28=2401;?><?php
  126. $datum_output=$week_start->format('j M');$datum_output=str_replace('May','Maj',$datum_output);if($todays_date==$week_start->format('j M')){echo'<span class="weekday today">Idag '.$datum_output.'</span>';}else{echo'<span class="weekday">Onsdag '.$datum_output.'</span><br>';}?><?php
  127. $repeat_field=get_post_meta($post->ID,'onsdag');echo'<ul>';if($repeat_field){foreach($repeat_field as $field){$values=explode('|',$field);if($todays_date==$week_start->format('j M')){$klockan=$current_time;}?><?php
  128. $time0=630;$time1=660;$time2=730;$time3=760;$time4=830;$time5=860;$time6=930;$time7=960;$time8=1030;$time9=1060;$time10=1130;$time11=1160;$time12=1230;$time13=1260;$time14=1330;$time15=1360;$time16=1430;$time17=1460;$time18=1530;$time19=1560;$time20=1630;$time21=1660;$time22=1730;$time23=1760;$time24=1830;$time25=1860;$time26=1930;$time27=1960;$time28=2030;if($values[0]){$current_time0=str_replace(".","","{$values[0]}")-70;}
  129. if($values[1]){$current_time1=str_replace(".","","{$values[1]}")-70;}
  130. if($values[2]){$current_time2=str_replace(".","","{$values[2]}")-70;}
  131. if($values[3]){$current_time3=str_replace(".","","{$values[3]}")-70;}
  132. if($values[4]){$current_time4=str_replace(".","","{$values[4]}")-70;}
  133. if($values[5]){$current_time5=str_replace(".","","{$values[5]}")-70;}
  134. if($values[6]){$current_time6=str_replace(".","","{$values[6]}")-70;}
  135. if($values[7]){$current_time7=str_replace(".","","{$values[7]}")-70;}
  136. if($values[8]){$current_time8=str_replace(".","","{$values[8]}")-70;}
  137. if($values[9]){$current_time9=str_replace(".","","{$values[9]}")-70;}
  138. if($values[10]){$current_time10=str_replace(".","","{$values[10]}")-70;}
  139. if($values[11]){$current_time11=str_replace(".","","{$values[11]}")-70;}
  140. if($values[12]){$current_time12=str_replace(".","","{$values[12]}")-70;}
  141. if($values[13]){$current_time13=str_replace(".","","{$values[13]}")-70;}
  142. if($values[14]){$current_time14=str_replace(".","","{$values[14]}")-70;}
  143. if($values[15]){$current_time15=str_replace(".","","{$values[15]}")-70;}
  144. if($values[16]){$current_time16=str_replace(".","","{$values[16]}")-70;}
  145. if($values[17]){$current_time17=str_replace(".","","{$values[17]}")-70;}
  146. if($values[18]){$current_time18=str_replace(".","","{$values[18]}")-70;}
  147. if($values[19]){$current_time19=str_replace(".","","{$values[19]}")-70;}
  148. if($values[20]){$current_time20=str_replace(".","","{$values[20]}")-70;}
  149. if($values[21]){$current_time21=str_replace(".","","{$values[21]}")-70;}
  150. if($values[22]){$current_time22=str_replace(".","","{$values[22]}")-70;}
  151. if($values[23]){$current_time23=str_replace(".","","{$values[23]}")-70;}
  152. if($values[24]){$current_time24=str_replace(".","","{$values[24]}")-70;}
  153. if($values[25]){$current_time25=str_replace(".","","{$values[25]}")-70;}
  154. if($values[26]){$current_time26=str_replace(".","","{$values[26]}")-70;}
  155. if($values[27]){$current_time27=str_replace(".","","{$values[27]}")-70;}
  156. if($values[28]){$current_time28=str_replace(".","","{$values[28]}")-70;}?><?php $onsdag_time_id0=''.$week_start->format('Y-m-d').'_0700';?><?php $onsdag_time_id0_check=''.$week_start->format('Y-m-d').'_0700';?><?php $onsdag_time_id1=''.$week_start->format('Y-m-d').'_0730';?><?php $onsdag_time_id1_check=''.$week_start->format('Y-m-d').'_0730';?><?php $onsdag_time_id2=''.$week_start->format('Y-m-d').'_0800';?><?php $onsdag_time_id2_check=''.$week_start->format('Y-m-d').'_0800';?><?php $onsdag_time_id3=''.$week_start->format('Y-m-d').'_0830';?><?php $onsdag_time_id3_check=''.$week_start->format('Y-m-d').'_0830';?><?php $onsdag_time_id4=''.$week_start->format('Y-m-d').'_0900';?><?php $onsdag_time_id4_check=''.$week_start->format('Y-m-d').'_0900';?><?php $onsdag_time_id5=''.$week_start->format('Y-m-d').'_0930';?><?php $onsdag_time_id5_check=''.$week_start->format('Y-m-d').'_0930';?><?php $onsdag_time_id6=''.$week_start->format('Y-m-d').'_1000';?><?php $onsdag_time_id6_check=''.$week_start->format('Y-m-d').'_1000';?><?php $onsdag_time_id7=''.$week_start->format('Y-m-d').'_1030';?><?php $onsdag_time_id7_check=''.$week_start->format('Y-m-d').'_1030';?><?php $onsdag_time_id8=''.$week_start->format('Y-m-d').'_1100';?><?php $onsdag_time_id8_check=''.$week_start->format('Y-m-d').'_1100';?><?php $onsdag_time_id9=''.$week_start->format('Y-m-d').'_1130';?><?php $onsdag_time_id9_check=''.$week_start->format('Y-m-d').'_1130';?><?php $onsdag_time_id10=''.$week_start->format('Y-m-d').'_1200';?><?php $onsdag_time_id10_check=''.$week_start->format('Y-m-d').'_1200';?><?php $onsdag_time_id11=''.$week_start->format('Y-m-d').'_1230';?><?php $onsdag_time_id11_check=''.$week_start->format('Y-m-d').'_1230';?><?php $onsdag_time_id12=''.$week_start->format('Y-m-d').'_1300';?><?php $onsdag_time_id12_check=''.$week_start->format('Y-m-d').'_1300';?><?php $onsdag_time_id13=''.$week_start->format('Y-m-d').'_1330';?><?php $onsdag_time_id13_check=''.$week_start->format('Y-m-d').'_1330';?><?php $onsdag_time_id14=''.$week_start->format('Y-m-d').'_1400';?><?php $onsdag_time_id14_check=''.$week_start->format('Y-m-d').'_1400';?><?php $onsdag_time_id15=''.$week_start->format('Y-m-d').'_1430';?><?php $onsdag_time_id15_check=''.$week_start->format('Y-m-d').'_1430';?><?php $onsdag_time_id16=''.$week_start->format('Y-m-d').'_1500';?><?php $onsdag_time_id16_check=''.$week_start->format('Y-m-d').'_1500';?><?php $onsdag_time_id17=''.$week_start->format('Y-m-d').'_1530';?><?php $onsdag_time_id17_check=''.$week_start->format('Y-m-d').'_1530';?><?php $onsdag_time_id18=''.$week_start->format('Y-m-d').'_1600';?><?php $onsdag_time_id18_check=''.$week_start->format('Y-m-d').'_1600';?><?php $onsdag_time_id19=''.$week_start->format('Y-m-d').'_1630';?><?php $onsdag_time_id19_check=''.$week_start->format('Y-m-d').'_1630';?><?php $onsdag_time_id20=''.$week_start->format('Y-m-d').'_1700';?><?php $onsdag_time_id20_check=''.$week_start->format('Y-m-d').'_1700';?><?php $onsdag_time_id21=''.$week_start->format('Y-m-d').'_1730';?><?php $onsdag_time_id21_check=''.$week_start->format('Y-m-d').'_1730';?><?php $onsdag_time_id22=''.$week_start->format('Y-m-d').'_1800';?><?php $onsdag_time_id22_check=''.$week_start->format('Y-m-d').'_1800';?><?php $onsdag_time_id23=''.$week_start->format('Y-m-d').'_1830';?><?php $onsdag_time_id23_check=''.$week_start->format('Y-m-d').'_1830';?><?php $onsdag_time_id24=''.$week_start->format('Y-m-d').'_1900';?><?php $onsdag_time_id24_check=''.$week_start->format('Y-m-d').'_1900';?><?php $onsdag_time_id25=''.$week_start->format('Y-m-d').'_1930';?><?php $onsdag_time_id25_check=''.$week_start->format('Y-m-d').'_1930';?><?php $onsdag_time_id26=''.$week_start->format('Y-m-d').'_2000';?><?php $onsdag_time_id26_check=''.$week_start->format('Y-m-d').'_2000';?><?php $onsdag_time_id27=''.$week_start->format('Y-m-d').'_2030';?><?php $onsdag_time_id27_check=''.$week_start->format('Y-m-d').'_2030';?><?php $onsdag_time_id28=''.$week_start->format('Y-m-d').'_2100';?><?php $onsdag_time_id28_check=''.$week_start->format('Y-m-d').'_2100';?><?php
  157. $args=array('post_type'=>'bokningar','title'=>$curauth->ID,'posts_per_page'=>-1);$result=new WP_Query($args);if($result->have_posts()){?><?php while($result->have_posts()):$result->the_post();?><?php $datumet=get_post_meta(get_the_ID(),'datum',true);?><?php $tiden=get_post_meta(get_the_ID(),'tid',true);$tiden=str_replace(".","","$tiden");?><?php $title=''.$datumet.'_'.$tiden.'';?><?php $bokningsid=get_the_ID();?><?php
  158. $bekraftadbokning=get_page_by_title($bokningsid,OBJECT,'bekraftade-bokningar');$bekraftadbokning_check=get_the_title($bekraftadbokning->ID);$status=2;$status=get_post_meta($bekraftadbokning->ID,'status',true);?><?php if($status==2){?><?php if($title==$onsdag_time_id28){$onsdag_time_id28='';}?><?php if($title==$onsdag_time_id27){$onsdag_time_id27='';}?><?php if($title==$onsdag_time_id26){$onsdag_time_id26='';}?><?php if($title==$onsdag_time_id25){$onsdag_time_id25='';}?><?php if($title==$onsdag_time_id24){$onsdag_time_id24='';}?><?php if($title==$onsdag_time_id23){$onsdag_time_id23='';}?><?php if($title==$onsdag_time_id22){$onsdag_time_id22='';}?><?php if($title==$onsdag_time_id21){$onsdag_time_id21='';}?><?php if($title==$onsdag_time_id20){$onsdag_time_id20='';}?><?php if($title==$onsdag_time_id19){$onsdag_time_id19='';}?><?php if($title==$onsdag_time_id18){$onsdag_time_id18='';}?><?php if($title==$onsdag_time_id17){$onsdag_time_id17='';}?><?php if($title==$onsdag_time_id16){$onsdag_time_id16='';}?><?php if($title==$onsdag_time_id15){$onsdag_time_id15='';}?><?php if($title==$onsdag_time_id14){$onsdag_time_id14='';}?><?php if($title==$onsdag_time_id13){$onsdag_time_id13='';}?><?php if($title==$onsdag_time_id12){$onsdag_time_id12='';}?><?php if($title==$onsdag_time_id11){$onsdag_time_id11='';}?><?php if($title==$onsdag_time_id10){$onsdag_time_id10='';}?><?php if($title==$onsdag_time_id9){$onsdag_time_id9='';}?><?php if($title==$onsdag_time_id8){$onsdag_time_id8='';}?><?php if($title==$onsdag_time_id7){$onsdag_time_id7='';}?><?php if($title==$onsdag_time_id6){$onsdag_time_id6='';}?><?php if($title==$onsdag_time_id5){$onsdag_time_id5='';}?><?php if($title==$onsdag_time_id4){$onsdag_time_id4='';}?><?php if($title==$onsdag_time_id3){$onsdag_time_id3='';}?><?php if($title==$onsdag_time_id2){$onsdag_time_id2='';}?><?php if($title==$onsdag_time_id1){$onsdag_time_id1='';}?><?php if($title==$onsdag_time_id0){$onsdag_time_id0='';}?><?php}?><?php endwhile;?><?php}?><?php if(date('Y-m-d')>$week_start->format('Y-m-d')){echo'<span style="opacity: 0.5;">Inga lediga tider</span>';}else{?><!--time 0 start--><?php if($onsdag_time_id0_check==$onsdag_time_id0){?><?php
  159. if($current_time0==$time0||$current_time1==$time0||$current_time2==$time0||$current_time3==$time0||$current_time4==$time0||$current_time5==$time0||$current_time6==$time0||$current_time7==$time0||$current_time8==$time0||$current_time9==$time0||$current_time10==$time0||$current_time11==$time0||$current_time12==$time0||$current_time13==$time0||$current_time14==$time0||$current_time15==$time0||$current_time16==$time0||$current_time17==$time0||$current_time18==$time0||$current_time19==$time0||$current_time20==$time0||$current_time21==$time0||$current_time22==$time0||$current_time23==$time0||$current_time24==$time0||$current_time25==$time0||$current_time26==$time0||$current_time27==$time0||$current_time28==$time0){?><?php if($time0>$klockan){?><li><input type=radio id='<?php echo $year; ?>_vecka<?php echo $week; ?>_onsdag_700'name=valj_en_tid value='Onsdag <?php echo $week_start->format('Y-m-d'); ?> 07.00'><label for='<?php echo $year; ?>_vecka<?php echo $week; ?>_onsdag_700'>07.00</label></li><?php}}}?><!--time 0 end--><!--time 1 start--><?php if($onsdag_time_id1_check==$onsdag_time_id1){?><?php
  160. if($current_time0==$time1||$current_time1==$time1||$current_time2==$time1||$current_time3==$time1||$current_time4==$time1||$current_time5==$time1||$current_time6==$time1||$current_time7==$time1||$current_time8==$time1||$current_time9==$time1||$current_time10==$time1||$current_time11==$time1||$current_time12==$time1||$current_time13==$time1||$current_time14==$time1||$current_time15==$time1||$current_time16==$time1||$current_time17==$time1||$current_time18==$time1||$current_time19==$time1||$current_time20==$time1||$current_time21==$time1||$current_time22==$time1||$current_time23==$time1||$current_time24==$time1||$current_time25==$time1||$current_time26==$time1||$current_time27==$time1||$current_time28==$time1){?><?php if($time1>$klockan){?><li><input type=radio id='<?php echo $year; ?>_vecka<?php echo $week; ?>_onsdag_730'name=valj_en_tid value='Onsdag <?php echo $week_start->format('Y-m-d'); ?> 07.30'><label for='<?php echo $year; ?>_vecka<?php echo $week; ?>_onsdag_730'>07.30</label></li><?php}}}?><!--time 1 end--><!--time 2 start--><?php if($onsdag_time_id2_check==$onsdag_time_id2){?><?php
  161. if($current_time0==$time2||$current_time1==$time2||$current_time2==$time2||$current_time3==$time2||$current_time4==$time2||$current_time5==$time2||$current_time6==$time2||$current_time7==$time2||$current_time8==$time2||$current_time9==$time2||$current_time10==$time2||$current_time11==$time2||$current_time12==$time2||$current_time13==$time2||$current_time14==$time2||$current_time15==$time2||$current_time16==$time2||$current_time17==$time2||$current_time18==$time2||$current_time19==$time2||$current_time20==$time2||$current_time21==$time2||$current_time22==$time2||$current_time23==$time2||$current_time24==$time2||$current_time25==$time2||$current_time26==$time2||$current_time27==$time2||$current_time28==$time2){?><?php if($time2>$klockan){?><li><input type=radio id='<?php echo $year; ?>_vecka<?php echo $week; ?>_onsdag_800'name=valj_en_tid value='Onsdag <?php echo $week_start->format('Y-m-d'); ?> 08.00'><label for='<?php echo $year; ?>_vecka<?php echo $week; ?>_onsdag_800'>08.00</label></li><?php}}}?><!--time 2 end--><!--time 3 start--><?php if($onsdag_time_id3_check==$onsdag_time_id3){?><?php
  162. if($current_time0==$time3||$current_time1==$time3||$current_time2==$time3||$current_time3==$time3||$current_time4==$time3||$current_time5==$time3||$current_time6==$time3||$current_time7==$time3||$current_time8==$time3||$current_time9==$time3||$current_time10==$time3||$current_time11==$time3||$current_time12==$time3||$current_time13==$time3||$current_time14==$time3||$current_time15==$time3||$current_time16==$time3||$current_time17==$time3||$current_time18==$time3||$current_time19==$time3||$current_time20==$time3||$current_time21==$time3||$current_time22==$time3||$current_time23==$time3||$current_time24==$time3||$current_time25==$time3||$current_time26==$time3||$current_time27==$time3||$current_time28==$time3){?><?php if($time3>$klockan){?><li><input type=radio id='<?php echo $year; ?>_vecka<?php echo $week; ?>_onsdag_830'name=valj_en_tid value='Onsdag <?php echo $week_start->format('Y-m-d'); ?> 08.30'><label for='<?php echo $year; ?>_vecka<?php echo $week; ?>_onsdag_830'>08.30</label></li><?php}}}?><!--time 3 end--><!--time 4 start--><?php if($onsdag_time_id4_check==$onsdag_time_id4){?><?php
  163. if($current_time0==$time4||$current_time1==$time4||$current_time2==$time4||$current_time3==$time4||$current_time4==$time4||$current_time5==$time4||$current_time6==$time4||$current_time7==$time4||$current_time8==$time4||$current_time9==$time4||$current_time10==$time4||$current_time11==$time4||$current_time12==$time4||$current_time13==$time4||$current_time14==$time4||$current_time15==$time4||$current_time16==$time4||$current_time17==$time4||$current_time18==$time4||$current_time19==$time4||$current_time20==$time4||$current_time21==$time4||$current_time22==$time4||$current_time23==$time4||$current_time24==$time4||$current_time25==$time4||$current_time26==$time4||$current_time27==$time4||$current_time28==$time4){?><?php if($time4>$klockan){?><li><input type=radio id='<?php echo $year; ?>_vecka<?php echo $week; ?>_onsdag_900'name=valj_en_tid value='Onsdag <?php echo $week_start->format('Y-m-d'); ?> 09.00'><label for='<?php echo $year; ?>_vecka<?php echo $week; ?>_onsdag_900'>09.00</label></li><?php}}}?><!--time 4 end--><!--time 5 start--><?php if($onsdag_time_id5_check==$onsdag_time_id5){?><?php
  164. if($current_time0==$time5||$current_time1==$time5||$current_time2==$time5||$current_time3==$time5||$current_time4==$time5||$current_time5==$time5||$current_time6==$time5||$current_time7==$time5||$current_time8==$time5||$current_time9==$time5||$current_time10==$time5||$current_time11==$time5||$current_time12==$time5||$current_time13==$time5||$current_time14==$time5||$current_time15==$time5||$current_time16==$time5||$current_time17==$time5||$current_time18==$time5||$current_time19==$time5||$current_time20==$time5||$current_time21==$time5||$current_time22==$time5||$current_time23==$time5||$current_time24==$time5||$current_time25==$time5||$current_time26==$time5||$current_time27==$time5||$current_time28==$time5){?><?php if($time5>$klockan){?><li><input type=radio id='<?php echo $year; ?>_vecka<?php echo $week; ?>_onsdag_930'name=valj_en_tid value='Onsdag <?php echo $week_start->format('Y-m-d'); ?> 09.30'><label for='<?php echo $year; ?>_vecka<?php echo $week; ?>_onsdag_930'>09.30</label></li><?php}}}?><!--time 5 end--><!--time 6 start--><?php if($onsdag_time_id6_check==$onsdag_time_id6){?><?php
  165. if($current_time0==$time6||$current_time1==$time6||$current_time2==$time6||$current_time3==$time6||$current_time4==$time6||$current_time5==$time6||$current_time6==$time6||$current_time7==$time6||$current_time8==$time6||$current_time9==$time6||$current_time10==$time6||$current_time11==$time6||$current_time12==$time6||$current_time13==$time6||$current_time14==$time6||$current_time15==$time6||$current_time16==$time6||$current_time17==$time6||$current_time18==$time6||$current_time19==$time6||$current_time20==$time6||$current_time21==$time6||$current_time22==$time6||$current_time23==$time6||$current_time24==$time6||$current_time25==$time6||$current_time26==$time6||$current_time27==$time6||$current_time28==$time6){?><?php if($time6>$klockan){?><li><input type=radio id='<?php echo $year; ?>_vecka<?php echo $week; ?>_onsdag_1000'name=valj_en_tid value='Onsdag <?php echo $week_start->format('Y-m-d'); ?> 10.00'><label for='<?php echo $year; ?>_vecka<?php echo $week; ?>_onsdag_1000'>10.00</label></li><?php}}}?><!--time 6 end--><!--time 7 start--><?php if($onsdag_time_id7_check==$onsdag_time_id7){?><?php
  166. if($current_time0==$time7||$current_time1==$time7||$current_time2==$time7||$current_time3==$time7||$current_time4==$time7||$current_time5==$time7||$current_time6==$time7||$current_time7==$time7||$current_time8==$time7||$current_time9==$time7||$current_time10==$time7||$current_time11==$time7||$current_time12==$time7||$current_time13==$time7||$current_time14==$time7||$current_time15==$time7||$current_time16==$time7||$current_time17==$time7||$current_time18==$time7||$current_time19==$time7||$current_time20==$time7||$current_time21==$time7||$current_time22==$time7||$current_time23==$time7||$current_time24==$time7||$current_time25==$time7||$current_time26==$time7||$current_time27==$time7||$current_time28==$time7){?><?php if($time7>$klockan){?><li><input type=radio id='<?php echo $year; ?>_vecka<?php echo $week; ?>_onsdag_1030'name=valj_en_tid value='Onsdag <?php echo $week_start->format('Y-m-d'); ?> 10.30'><label for='<?php echo $year; ?>_vecka<?php echo $week; ?>_onsdag_1030'>10.30</label></li><?php}}}?><!--time 7 end--><!--time 8 start--><?php if($onsdag_time_id8_check==$onsdag_time_id8){?><?php
  167. if($current_time0==$time8||$current_time1==$time8||$current_time2==$time8||$current_time3==$time8||$current_time4==$time8||$current_time5==$time8||$current_time6==$time8||$current_time7==$time8||$current_time8==$time8||$current_time9==$time8||$current_time10==$time8||$current_time11==$time8||$current_time12==$time8||$current_time13==$time8||$current_time14==$time8||$current_time15==$time8||$current_time16==$time8||$current_time17==$time8||$current_time18==$time8||$current_time19==$time8||$current_time20==$time8||$current_time21==$time8||$current_time22==$time8||$current_time23==$time8||$current_time24==$time8||$current_time25==$time8||$current_time26==$time8||$current_time27==$time8||$current_time28==$time8){?><?php if($time8>$klockan){?><li><input type=radio id='<?php echo $year; ?>_vecka<?php echo $week; ?>_onsdag_1100'name=valj_en_tid value='Onsdag <?php echo $week_start->format('Y-m-d'); ?> 11.00'><label for='<?php echo $year; ?>_vecka<?php echo $week; ?>_onsdag_1100'>11.00</label></li><?php}}}?><!--time 8 end--><!--time 9 start--><?php if($onsdag_time_id9_check==$onsdag_time_id9){?><?php
  168. if($current_time0==$time9||$current_time1==$time9||$current_time2==$time9||$current_time3==$time9||$current_time4==$time9||$current_time5==$time9||$current_time6==$time9||$current_time7==$time9||$current_time8==$time9||$current_time9==$time9||$current_time10==$time9||$current_time11==$time9||$current_time12==$time9||$current_time13==$time9||$current_time14==$time9||$current_time15==$time9||$current_time16==$time9||$current_time17==$time9||$current_time18==$time9||$current_time19==$time9||$current_time20==$time9||$current_time21==$time9||$current_time22==$time9||$current_time23==$time9||$current_time24==$time9||$current_time25==$time9||$current_time26==$time9||$current_time27==$time9||$current_time28==$time9){?><?php if($time9>$klockan){?><li><input type=radio id='<?php echo $year; ?>_vecka<?php echo $week; ?>_onsdag_1130'name=valj_en_tid value='Onsdag <?php echo $week_start->format('Y-m-d'); ?> 11.30'><label for='<?php echo $year; ?>_vecka<?php echo $week; ?>_onsdag_1130'>11.30</label></li><?php}}}?><!--time 9 end--><!--time 10 start--><?php if($onsdag_time_id10_check==$onsdag_time_id10){?><?php
  169. if($current_time0==$time10||$current_time1==$time10||$current_time2==$time10||$current_time3==$time10||$current_time4==$time10||$current_time5==$time10||$current_time6==$time10||$current_time7==$time10||$current_time8==$time10||$current_time9==$time10||$current_time10==$time10||$current_time11==$time10||$current_time12==$time10||$current_time13==$time10||$current_time14==$time10||$current_time15==$time10||$current_time16==$time10||$current_time17==$time10||$current_time18==$time10||$current_time19==$time10||$current_time20==$time10||$current_time21==$time10||$current_time22==$time10||$current_time23==$time10||$current_time24==$time10||$current_time25==$time10||$current_time26==$time10||$current_time27==$time10||$current_time28==$time10){?><?php if($time10>$klockan){?><li><input type=radio id='<?php echo $year; ?>_vecka<?php echo $week; ?>_onsdag_1200'name=valj_en_tid value='Onsdag <?php echo $week_start->format('Y-m-d'); ?> 12.00'><label for='<?php echo $year; ?>_vecka<?php echo $week; ?>_onsdag_1200'>12.00</label></li><?php}}}?><!--time 10 end--><!--time 11 start--><?php if($onsdag_time_id11_check==$onsdag_time_id11){?><?php
  170. if($current_time0==$time11||$current_time1==$time11||$current_time2==$time11||$current_time3==$time11||$current_time4==$time11||$current_time5==$time11||$current_time6==$time11||$current_time7==$time11||$current_time8==$time11||$current_time9==$time11||$current_time10==$time11||$current_time11==$time11||$current_time12==$time11||$current_time13==$time11||$current_time14==$time11||$current_time15==$time11||$current_time16==$time11||$current_time17==$time11||$current_time18==$time11||$current_time19==$time11||$current_time20==$time11||$current_time21==$time11||$current_time22==$time11||$current_time23==$time11||$current_time24==$time11||$current_time25==$time11||$current_time26==$time11||$current_time27==$time11||$current_time28==$time11){?><?php if($time11>$klockan){?><li><input type=radio id='<?php echo $year; ?>_vecka<?php echo $week; ?>_onsdag_1230'name=valj_en_tid value='Onsdag <?php echo $week_start->format('Y-m-d'); ?> 12.30'><label for='<?php echo $year; ?>_vecka<?php echo $week; ?>_onsdag_1230'>12.30</label></li><?php}}}?><!--time 11 end--><!--time 12 start--><?php if($onsdag_time_id12_check==$onsdag_time_id12){?><?php
  171. if($current_time0==$time12||$current_time1==$time12||$current_time2==$time12||$current_time3==$time12||$current_time4==$time12||$current_time5==$time12||$current_time6==$time12||$current_time7==$time12||$current_time8==$time12||$current_time9==$time12||$current_time10==$time12||$current_time11==$time12||$current_time12==$time12||$current_time13==$time12||$current_time14==$time12||$current_time15==$time12||$current_time16==$time12||$current_time17==$time12||$current_time18==$time12||$current_time19==$time12||$current_time20==$time12||$current_time21==$time12||$current_time22==$time12||$current_time23==$time12||$current_time24==$time12||$current_time25==$time12||$current_time26==$time12||$current_time27==$time12||$current_time28==$time12){?><?php if($time12>$klockan){?><li><input type=radio id='<?php echo $year; ?>_vecka<?php echo $week; ?>_onsdag_1300'name=valj_en_tid value='Onsdag <?php echo $week_start->format('Y-m-d'); ?> 13.00'><label for='<?php echo $year; ?>_vecka<?php echo $week; ?>_onsdag_1300'>13.00</label></li><?php}}}?><!--time 12 end--><!--time 13 start--><?php if($onsdag_time_id13_check==$onsdag_time_id13){?><?php
  172. if($current_time0==$time13||$current_time1==$time13||$current_time2==$time13||$current_time3==$time13||$current_time4==$time13||$current_time5==$time13||$current_time6==$time13||$current_time7==$time13||$current_time8==$time13||$current_time9==$time13||$current_time10==$time13||$current_time11==$time13||$current_time12==$time13||$current_time13==$time13||$current_time14==$time13||$current_time15==$time13||$current_time16==$time13||$current_time17==$time13||$current_time18==$time13||$current_time19==$time13||$current_time20==$time13||$current_time21==$time13||$current_time22==$time13||$current_time23==$time13||$current_time24==$time13||$current_time25==$time13||$current_time26==$time13||$current_time27==$time13||$current_time28==$time13){?><?php if($time13>$klockan){?><li><input type=radio id='<?php echo $year; ?>_vecka<?php echo $week; ?>_onsdag_1330'name=valj_en_tid value='Onsdag <?php echo $week_start->format('Y-m-d'); ?> 13.30'><label for='<?php echo $year; ?>_vecka<?php echo $week; ?>_onsdag_1330'>13.30</label></li><?php}}}?><!--time 13 end--><!--time 14 start--><?php if($onsdag_time_id14_check==$onsdag_time_id14){?><?php
  173. if($current_time0==$time14||$current_time1==$time14||$current_time2==$time14||$current_time3==$time14||$current_time4==$time14||$current_time5==$time14||$current_time6==$time14||$current_time7==$time14||$current_time8==$time14||$current_time9==$time14||$current_time10==$time14||$current_time11==$time14||$current_time12==$time14||$current_time13==$time14||$current_time14==$time14||$current_time15==$time14||$current_time16==$time14||$current_time17==$time14||$current_time18==$time14||$current_time19==$time14||$current_time20==$time14||$current_time21==$time14||$current_time22==$time14||$current_time23==$time14||$current_time24==$time14||$current_time25==$time14||$current_time26==$time14||$current_time27==$time14||$current_time28==$time14){?><?php if($time14>$klockan){?><li><input type=radio id='<?php echo $year; ?>_vecka<?php echo $week; ?>_onsdag_1400'name=valj_en_tid value='Onsdag <?php echo $week_start->format('Y-m-d'); ?> 14.00'><label for='<?php echo $year; ?>_vecka<?php echo $week; ?>_onsdag_1400'>14.00</label></li><?php}}}?><!--time 14 end--><!--time 15 start--><?php if($onsdag_time_id15_check==$onsdag_time_id15){?><?php
  174. if($current_time0==$time15||$current_time1==$time15||$current_time2==$time15||$current_time3==$time15||$current_time4==$time15||$current_time5==$time15||$current_time6==$time15||$current_time7==$time15||$current_time8==$time15||$current_time9==$time15||$current_time10==$time15||$current_time11==$time15||$current_time12==$time15||$current_time13==$time15||$current_time14==$time15||$current_time15==$time15||$current_time16==$time15||$current_time17==$time15||$current_time18==$time15||$current_time19==$time15||$current_time20==$time15||$current_time21==$time15||$current_time22==$time15||$current_time23==$time15||$current_time24==$time15||$current_time25==$time15||$current_time26==$time15||$current_time27==$time15||$current_time28==$time15){?><?php if($time15>$klockan){?><li><input type=radio id='<?php echo $year; ?>_vecka<?php echo $week; ?>_onsdag_1430'name=valj_en_tid value='Onsdag <?php echo $week_start->format('Y-m-d'); ?> 14.30'><label for='<?php echo $year; ?>_vecka<?php echo $week; ?>_onsdag_1430'>14.30</label></li><?php}}}?><!--time 15 end--><!--time 16 start--><?php if($onsdag_time_id16_check==$onsdag_time_id16){?><?php
  175. if($current_time0==$time16||$current_time1==$time16||$current_time2==$time16||$current_time3==$time16||$current_time4==$time16||$current_time5==$time16||$current_time6==$time16||$current_time7==$time16||$current_time8==$time16||$current_time9==$time16||$current_time10==$time16||$current_time11==$time16||$current_time12==$time16||$current_time13==$time16||$current_time14==$time16||$current_time15==$time16||$current_time16==$time16||$current_time17==$time16||$current_time18==$time16||$current_time19==$time16||$current_time20==$time16||$current_time21==$time16||$current_time22==$time16||$current_time23==$time16||$current_time24==$time16||$current_time25==$time16||$current_time26==$time16||$current_time27==$time16||$current_time28==$time16){?><?php if($time16>$klockan){?><li><input type=radio id='<?php echo $year; ?>_vecka<?php echo $week; ?>_onsdag_1500'name=valj_en_tid value='Onsdag <?php echo $week_start->format('Y-m-d'); ?> 15.00'><label for='<?php echo $year; ?>_vecka<?php echo $week; ?>_onsdag_1500'>15.00</label></li><?php}}}?><!--time 16 end--><!--time 17 start--><?php if($onsdag_time_id17_check==$onsdag_time_id17){?><?php
  176. if($current_time0==$time17||$current_time1==$time17||$current_time2==$time17||$current_time3==$time17||$current_time4==$time17||$current_time5==$time17||$current_time6==$time17||$current_time7==$time17||$current_time8==$time17||$current_time9==$time17||$current_time10==$time17||$current_time11==$time17||$current_time12==$time17||$current_time13==$time17||$current_time14==$time17||$current_time15==$time17||$current_time16==$time17||$current_time17==$time17||$current_time18==$time17||$current_time19==$time17||$current_time20==$time17||$current_time21==$time17||$current_time22==$time17||$current_time23==$time17||$current_time24==$time17||$current_time25==$time17||$current_time26==$time17||$current_time27==$time17||$current_time28==$time17){?><?php if($time17>$klockan){?><li><input type=radio id='<?php echo $year; ?>_vecka<?php echo $week; ?>_onsdag_1530'name=valj_en_tid value='Onsdag <?php echo $week_start->format('Y-m-d'); ?> 15.30'><label for='<?php echo $year; ?>_vecka<?php echo $week; ?>_onsdag_1530'>15.30</label></li><?php}}}?><!--time 17 end--><!--time 18 start--><?php if($onsdag_time_id18_check==$onsdag_time_id18){?><?php
  177. if($current_time0==$time18||$current_time1==$time18||$current_time2==$time18||$current_time3==$time18||$current_time4==$time18||$current_time5==$time18||$current_time6==$time18||$current_time7==$time18||$current_time8==$time18||$current_time9==$time18||$current_time10==$time18||$current_time11==$time18||$current_time12==$time18||$current_time13==$time18||$current_time14==$time18||$current_time15==$time18||$current_time16==$time18||$current_time17==$time18||$current_time18==$time18||$current_time19==$time18||$current_time20==$time18||$current_time21==$time18||$current_time22==$time18||$current_time23==$time18||$current_time24==$time18||$current_time25==$time18||$current_time26==$time18||$current_time27==$time18||$current_time28==$time18){?><?php if($time18>$klockan){?><li><input type=radio id='<?php echo $year; ?>_vecka<?php echo $week; ?>_onsdag_1600'name=valj_en_tid value='Onsdag <?php echo $week_start->format('Y-m-d'); ?> 16.00'><label for='<?php echo $year; ?>_vecka<?php echo $week; ?>_onsdag_1600'>16.00</label></li><?php}}}?><!--time 18 end--><!--time 19 start--><?php if($onsdag_time_id19_check==$onsdag_time_id19){?><?php
  178. if($current_time0==$time19||$current_time1==$time19||$current_time2==$time19||$current_time3==$time19||$current_time4==$time19||$current_time5==$time19||$current_time6==$time19||$current_time7==$time19||$current_time8==$time19||$current_time9==$time19||$current_time10==$time19||$current_time11==$time19||$current_time12==$time19||$current_time13==$time19||$current_time14==$time19||$current_time15==$time19||$current_time16==$time19||$current_time17==$time19||$current_time18==$time19||$current_time19==$time19||$current_time20==$time19||$current_time21==$time19||$current_time22==$time19||$current_time23==$time19||$current_time24==$time19||$current_time25==$time19||$current_time26==$time19||$current_time27==$time19||$current_time28==$time19){?><?php if($time19>$klockan){?><li><input type=radio id='<?php echo $year; ?>_vecka<?php echo $week; ?>_onsdag_1630'name=valj_en_tid value='Onsdag <?php echo $week_start->format('Y-m-d'); ?> 16.30'><label for='<?php echo $year; ?>_vecka<?php echo $week; ?>_onsdag_1630'>16.30</label></li><?php}}}?><!--time 19 end--><!--time 20 start--><?php if($onsdag_time_id20_check==$onsdag_time_id20){?><?php
  179. if($current_time0==$time20||$current_time1==$time20||$current_time2==$time20||$current_time3==$time20||$current_time4==$time20||$current_time5==$time20||$current_time6==$time20||$current_time7==$time20||$current_time8==$time20||$current_time9==$time20||$current_time10==$time20||$current_time11==$time20||$current_time12==$time20||$current_time13==$time20||$current_time14==$time20||$current_time15==$time20||$current_time16==$time20||$current_time17==$time20||$current_time18==$time20||$current_time19==$time20||$current_time20==$time20||$current_time21==$time20||$current_time22==$time20||$current_time23==$time20||$current_time24==$time20||$current_time25==$time20||$current_time26==$time20||$current_time27==$time20||$current_time28==$time20){?><?php if($time20>$klockan){?><li><input type=radio id='<?php echo $year; ?>_vecka<?php echo $week; ?>_onsdag_1700'name=valj_en_tid value='Onsdag <?php echo $week_start->format('Y-m-d'); ?> 17.00'><label for='<?php echo $year; ?>_vecka<?php echo $week; ?>_onsdag_1700'>17.00</label></li><?php}}}?><!--time 20 end--><!--time 21 start--><?php if($onsdag_time_id21_check==$onsdag_time_id21){?><?php
  180. if($current_time0==$time21||$current_time1==$time21||$current_time2==$time21||$current_time3==$time21||$current_time4==$time21||$current_time5==$time21||$current_time6==$time21||$current_time7==$time21||$current_time8==$time21||$current_time9==$time21||$current_time10==$time21||$current_time11==$time21||$current_time12==$time21||$current_time13==$time21||$current_time14==$time21||$current_time15==$time21||$current_time16==$time21||$current_time17==$time21||$current_time18==$time21||$current_time19==$time21||$current_time20==$time21||$current_time21==$time21||$current_time22==$time21||$current_time23==$time21||$current_time24==$time21||$current_time25==$time21||$current_time26==$time21||$current_time27==$time21||$current_time28==$time21){?><?php if($time21>$klockan){?><li><input type=radio id='<?php echo $year; ?>_vecka<?php echo $week; ?>_onsdag_1730'name=valj_en_tid value='Onsdag <?php echo $week_start->format('Y-m-d'); ?> 17.30'><label for='<?php echo $year; ?>_vecka<?php echo $week; ?>_onsdag_1730'>17.30</label></li><?php}}}?><!--time 21 end--><!--time 22 start--><?php if($onsdag_time_id22_check==$onsdag_time_id22){?><?php
  181. if($current_time0==$time22||$current_time1==$time22||$current_time2==$time22||$current_time3==$time22||$current_time4==$time22||$current_time5==$time22||$current_time6==$time22||$current_time7==$time22||$current_time8==$time22||$current_time9==$time22||$current_time10==$time22||$current_time11==$time22||$current_time12==$time22||$current_time13==$time22||$current_time14==$time22||$current_time15==$time22||$current_time16==$time22||$current_time17==$time22||$current_time18==$time22||$current_time19==$time22||$current_time20==$time22||$current_time21==$time22||$current_time22==$time22||$current_time23==$time22||$current_time24==$time22||$current_time25==$time22||$current_time26==$time22||$current_time27==$time22||$current_time28==$time22){?><?php if($time22>$klockan){?><li><input type=radio id='<?php echo $year; ?>_vecka<?php echo $week; ?>_onsdag_1800'name=valj_en_tid value='Onsdag <?php echo $week_start->format('Y-m-d'); ?> 18.00'><label for='<?php echo $year; ?>_vecka<?php echo $week; ?>_onsdag_1800'>18.00</label></li><?php}}}?><!--time 22 end--><!--time 23 start--><?php if($onsdag_time_id23_check==$onsdag_time_id23){?><?php
  182. if($current_time0==$time23||$current_time1==$time23||$current_time2==$time23||$current_time3==$time23||$current_time4==$time23||$current_time5==$time23||$current_time6==$time23||$current_time7==$time23||$current_time8==$time23||$current_time9==$time23||$current_time10==$time23||$current_time11==$time23||$current_time12==$time23||$current_time13==$time23||$current_time14==$time23||$current_time15==$time23||$current_time16==$time23||$current_time17==$time23||$current_time18==$time23||$current_time19==$time23||$current_time20==$time23||$current_time21==$time23||$current_time22==$time23||$current_time23==$time23||$current_time24==$time23||$current_time25==$time23||$current_time26==$time23||$current_time27==$time23||$current_time28==$time23){?><?php if($time23>$klockan){?><li><input type=radio id='<?php echo $year; ?>_vecka<?php echo $week; ?>_onsdag_1830'name=valj_en_tid value='Onsdag <?php echo $week_start->format('Y-m-d'); ?> 18.30'><label for='<?php echo $year; ?>_vecka<?php echo $week; ?>_onsdag_1830'>18.30</label></li><?php}}}?><!--time 23 end--><!--time 24 start--><?php if($onsdag_time_id24_check==$onsdag_time_id24){?><?php
  183. if($current_time0==$time24||$current_time1==$time24||$current_time2==$time24||$current_time3==$time24||$current_time4==$time24||$current_time5==$time24||$current_time6==$time24||$current_time7==$time24||$current_time8==$time24||$current_time9==$time24||$current_time10==$time24||$current_time11==$time24||$current_time12==$time24||$current_time13==$time24||$current_time14==$time24||$current_time15==$time24||$current_time16==$time24||$current_time17==$time24||$current_time18==$time24||$current_time19==$time24||$current_time20==$time24||$current_time21==$time24||$current_time22==$time24||$current_time23==$time24||$current_time24==$time24||$current_time25==$time24||$current_time26==$time24||$current_time27==$time24||$current_time28==$time24){?><?php if($time24>$klockan){?><li><input type=radio id='<?php echo $year; ?>_vecka<?php echo $week; ?>_onsdag_1900'name=valj_en_tid value='Onsdag <?php echo $week_start->format('Y-m-d'); ?> 19.00'><label for='<?php echo $year; ?>_vecka<?php echo $week; ?>_onsdag_1900'>19.00</label></li><?php}}}?><!--time 24 end--><!--time 25 start--><?php if($onsdag_time_id25_check==$onsdag_time_id25){?><?php
  184. if($current_time0==$time25||$current_time1==$time25||$current_time2==$time25||$current_time3==$time25||$current_time4==$time25||$current_time5==$time25||$current_time6==$time25||$current_time7==$time25||$current_time8==$time25||$current_time9==$time25||$current_time10==$time25||$current_time11==$time25||$current_time12==$time25||$current_time13==$time25||$current_time14==$time25||$current_time15==$time25||$current_time16==$time25||$current_time17==$time25||$current_time18==$time25||$current_time19==$time25||$current_time20==$time25||$current_time21==$time25||$current_time22==$time25||$current_time23==$time25||$current_time24==$time25||$current_time25==$time25||$current_time26==$time25||$current_time27==$time25||$current_time28==$time25){?><?php if($time25>$klockan){?><li><input type=radio id='<?php echo $year; ?>_vecka<?php echo $week; ?>_onsdag_1930'name=valj_en_tid value='Onsdag <?php echo $week_start->format('Y-m-d'); ?> 19.30'><label for='<?php echo $year; ?>_vecka<?php echo $week; ?>_onsdag_1930'>19.30</label></li><?php}}}?><!--time 25 end--><!--time 26 start--><?php if($onsdag_time_id26_check==$onsdag_time_id26){?><?php
  185. if($current_time0==$time26||$current_time1==$time26||$current_time2==$time26||$current_time3==$time26||$current_time4==$time26||$current_time5==$time26||$current_time6==$time26||$current_time7==$time26||$current_time8==$time26||$current_time9==$time26||$current_time10==$time26||$current_time11==$time26||$current_time12==$time26||$current_time13==$time26||$current_time14==$time26||$current_time15==$time26||$current_time16==$time26||$current_time17==$time26||$current_time18==$time26||$current_time19==$time26||$current_time20==$time26||$current_time21==$time26||$current_time22==$time26||$current_time23==$time26||$current_time24==$time26||$current_time25==$time26||$current_time26==$time26||$current_time27==$time26||$current_time28==$time26){?><?php if($time26>$klockan){?><li><input type=radio id='<?php echo $year; ?>_vecka<?php echo $week; ?>_onsdag_2000'name=valj_en_tid value='Onsdag <?php echo $week_start->format('Y-m-d'); ?> 20.00'><label for='<?php echo $year; ?>_vecka<?php echo $week; ?>_onsdag_2000'>20.00</label></li><?php}}}?><!--time 26 end--><!--time 27 start--><?php if($onsdag_time_id27_check==$onsdag_time_id27){?><?php
  186. if($current_time0==$time27||$current_time1==$time27||$current_time2==$time27||$current_time3==$time27||$current_time4==$time27||$current_time5==$time27||$current_time6==$time27||$current_time7==$time27||$current_time8==$time27||$current_time9==$time27||$current_time10==$time27||$current_time11==$time27||$current_time12==$time27||$current_time13==$time27||$current_time14==$time27||$current_time15==$time27||$current_time16==$time27||$current_time17==$time27||$current_time18==$time27||$current_time19==$time27||$current_time20==$time27||$current_time21==$time27||$current_time22==$time27||$current_time23==$time27||$current_time24==$time27||$current_time25==$time27||$current_time26==$time27||$current_time27==$time27||$current_time28==$time27){?><?php if($time27>$klockan){?><li><input type=radio id='<?php echo $year; ?>_vecka<?php echo $week; ?>_onsdag_2030'name=valj_en_tid value='Onsdag <?php echo $week_start->format('Y-m-d'); ?> 20.30'><label for='<?php echo $year; ?>_vecka<?php echo $week; ?>_onsdag_2030'>20.30</label></li><?php}}}?><!--time 27 end--><!--time 28 start--><?php if($onsdag_time_id28_check==$onsdag_time_id28){?><?php
  187. if($current_time0==$time28||$current_time1==$time28||$current_time2==$time28||$current_time3==$time28||$current_time4==$time28||$current_time5==$time28||$current_time6==$time28||$current_time7==$time28||$current_time8==$time28||$current_time9==$time28||$current_time10==$time28||$current_time11==$time28||$current_time12==$time28||$current_time13==$time28||$current_time14==$time28||$current_time15==$time28||$current_time16==$time28||$current_time17==$time28||$current_time18==$time28||$current_time19==$time28||$current_time20==$time28||$current_time21==$time28||$current_time22==$time28||$current_time23==$time28||$current_time24==$time28||$current_time25==$time28||$current_time26==$time28||$current_time27==$time28||$current_time28==$time28){?><?php if($time28>$klockan){?><li><input type=radio id='<?php echo $year; ?>_vecka<?php echo $week; ?>_onsdag_2100'name=valj_en_tid value='Onsdag <?php echo $week_start->format('Y-m-d'); ?> 21.00'><label for='<?php echo $year; ?>_vecka<?php echo $week; ?>_onsdag_2100'>21.00</label></li><?php}}}?><!--time 28 end--><?php if($values[0]or $values[1]or $values[2]or $values[3]or $values[4]or $values[5]or $values[6]or $values[7]or $values[8]or $values[9]or $values[10]or $values[11]or $values[12]or $values[13]or $values[14]or $values[15]or $values[16]or $values[17]or $values[18]or $values[19]or $values[20]or $values[21]or $values[22]or $values[23]or $values[24 or $values[25]or $values[26]or $values[27]or $values[28]]){}else{echo'<span style="opacity: 0.5;">Inga lediga tider</span>';}?><?php}?><?php}}?><?php wp_reset_postdata();?><?php echo'</ul>';?><!--===================================--><?$week_start=new DateTime();$week_start->setISODate($year,$week,"4");$timestamp=strtotime('2021-02-02');$todays_date=date('j M');$current_time=date('Hi');$klockan=0;$current_time0=$current_time1=$current_time2=$current_time3=$current_time4=$current_time5=$current_time6=$current_time7=$current_time8=$current_time9=$current_time10=$current_time11=$current_time12=$current_time13=$current_time14=$current_time15=$current_time16=$current_time17=$current_time18=$current_time19=$current_time20=$current_time21=$current_time22=$current_time23=$current_time24=$current_time25=$current_time26=$current_time27=$current_time28=2401;$time0=$time1=$time2=$time3=$time4=$time5=$time6=$time7=$time8=$time9=$time10=$time11=$time12=$time13=$time14=$time15=$time16=$time17=$time18=$time19=$time20=$time21=$time22=$time23=$time24=$time26=$time27=$time28=2401;?><?php
  188. $datum_output=$week_start->format('j M');$datum_output=str_replace('May','Maj',$datum_output);if($todays_date==$week_start->format('j M')){echo'<span class="weekday today">Idag '.$datum_output.'</span>';}else{echo'<span class="weekday">Torsdag '.$datum_output.'</span><br>';}?><?php
  189. $repeat_field=get_post_meta($post->ID,'torsdag');echo'<ul>';if($repeat_field){foreach($repeat_field as $field){$values=explode('|',$field);if($todays_date==$week_start->format('j M')){$klockan=$current_time;}?><?php
  190. $time0=630;$time1=660;$time2=730;$time3=760;$time4=830;$time5=860;$time6=930;$time7=960;$time8=1030;$time9=1060;$time10=1130;$time11=1160;$time12=1230;$time13=1260;$time14=1330;$time15=1360;$time16=1430;$time17=1460;$time18=1530;$time19=1560;$time20=1630;$time21=1660;$time22=1730;$time23=1760;$time24=1830;$time25=1860;$time26=1930;$time27=1960;$time28=2030;if($values[0]){$current_time0=str_replace(".","","{$values[0]}")-70;}
  191. if($values[1]){$current_time1=str_replace(".","","{$values[1]}")-70;}
  192. if($values[2]){$current_time2=str_replace(".","","{$values[2]}")-70;}
  193. if($values[3]){$current_time3=str_replace(".","","{$values[3]}")-70;}
  194. if($values[4]){$current_time4=str_replace(".","","{$values[4]}")-70;}
  195. if($values[5]){$current_time5=str_replace(".","","{$values[5]}")-70;}
  196. if($values[6]){$current_time6=str_replace(".","","{$values[6]}")-70;}
  197. if($values[7]){$current_time7=str_replace(".","","{$values[7]}")-70;}
  198. if($values[8]){$current_time8=str_replace(".","","{$values[8]}")-70;}
  199. if($values[9]){$current_time9=str_replace(".","","{$values[9]}")-70;}
  200. if($values[10]){$current_time10=str_replace(".","","{$values[10]}")-70;}
  201. if($values[11]){$current_time11=str_replace(".","","{$values[11]}")-70;}
  202. if($values[12]){$current_time12=str_replace(".","","{$values[12]}")-70;}
  203. if($values[13]){$current_time13=str_replace(".","","{$values[13]}")-70;}
  204. if($values[14]){$current_time14=str_replace(".","","{$values[14]}")-70;}
  205. if($values[15]){$current_time15=str_replace(".","","{$values[15]}")-70;}
  206. if($values[16]){$current_time16=str_replace(".","","{$values[16]}")-70;}
  207. if($values[17]){$current_time17=str_replace(".","","{$values[17]}")-70;}
  208. if($values[18]){$current_time18=str_replace(".","","{$values[18]}")-70;}
  209. if($values[19]){$current_time19=str_replace(".","","{$values[19]}")-70;}
  210. if($values[20]){$current_time20=str_replace(".","","{$values[20]}")-70;}
  211. if($values[21]){$current_time21=str_replace(".","","{$values[21]}")-70;}
  212. if($values[22]){$current_time22=str_replace(".","","{$values[22]}")-70;}
  213. if($values[23]){$current_time23=str_replace(".","","{$values[23]}")-70;}
  214. if($values[24]){$current_time24=str_replace(".","","{$values[24]}")-70;}
  215. if($values[25]){$current_time25=str_replace(".","","{$values[25]}")-70;}
  216. if($values[26]){$current_time26=str_replace(".","","{$values[26]}")-70;}
  217. if($values[27]){$current_time27=str_replace(".","","{$values[27]}")-70;}
  218. if($values[28]){$current_time28=str_replace(".","","{$values[28]}")-70;}?><?php $torsdag_time_id0=''.$week_start->format('Y-m-d').'_0700';?><?php $torsdag_time_id0_check=''.$week_start->format('Y-m-d').'_0700';?><?php $torsdag_time_id1=''.$week_start->format('Y-m-d').'_0730';?><?php $torsdag_time_id1_check=''.$week_start->format('Y-m-d').'_0730';?><?php $torsdag_time_id2=''.$week_start->format('Y-m-d').'_0800';?><?php $torsdag_time_id2_check=''.$week_start->format('Y-m-d').'_0800';?><?php $torsdag_time_id3=''.$week_start->format('Y-m-d').'_0830';?><?php $torsdag_time_id3_check=''.$week_start->format('Y-m-d').'_0830';?><?php $torsdag_time_id4=''.$week_start->format('Y-m-d').'_0900';?><?php $torsdag_time_id4_check=''.$week_start->format('Y-m-d').'_0900';?><?php $torsdag_time_id5=''.$week_start->format('Y-m-d').'_0930';?><?php $torsdag_time_id5_check=''.$week_start->format('Y-m-d').'_0930';?><?php $torsdag_time_id6=''.$week_start->format('Y-m-d').'_1000';?><?php $torsdag_time_id6_check=''.$week_start->format('Y-m-d').'_1000';?><?php $torsdag_time_id7=''.$week_start->format('Y-m-d').'_1030';?><?php $torsdag_time_id7_check=''.$week_start->format('Y-m-d').'_1030';?><?php $torsdag_time_id8=''.$week_start->format('Y-m-d').'_1100';?><?php $torsdag_time_id8_check=''.$week_start->format('Y-m-d').'_1100';?><?php $torsdag_time_id9=''.$week_start->format('Y-m-d').'_1130';?><?php $torsdag_time_id9_check=''.$week_start->format('Y-m-d').'_1130';?><?php $torsdag_time_id10=''.$week_start->format('Y-m-d').'_1200';?><?php $torsdag_time_id10_check=''.$week_start->format('Y-m-d').'_1200';?><?php $torsdag_time_id11=''.$week_start->format('Y-m-d').'_1230';?><?php $torsdag_time_id11_check=''.$week_start->format('Y-m-d').'_1230';?><?php $torsdag_time_id12=''.$week_start->format('Y-m-d').'_1300';?><?php $torsdag_time_id12_check=''.$week_start->format('Y-m-d').'_1300';?><?php $torsdag_time_id13=''.$week_start->format('Y-m-d').'_1330';?><?php $torsdag_time_id13_check=''.$week_start->format('Y-m-d').'_1330';?><?php $torsdag_time_id14=''.$week_start->format('Y-m-d').'_1400';?><?php $torsdag_time_id14_check=''.$week_start->format('Y-m-d').'_1400';?><?php $torsdag_time_id15=''.$week_start->format('Y-m-d').'_1430';?><?php $torsdag_time_id15_check=''.$week_start->format('Y-m-d').'_1430';?><?php $torsdag_time_id16=''.$week_start->format('Y-m-d').'_1500';?><?php $torsdag_time_id16_check=''.$week_start->format('Y-m-d').'_1500';?><?php $torsdag_time_id17=''.$week_start->format('Y-m-d').'_1530';?><?php $torsdag_time_id17_check=''.$week_start->format('Y-m-d').'_1530';?><?php $torsdag_time_id18=''.$week_start->format('Y-m-d').'_1600';?><?php $torsdag_time_id18_check=''.$week_start->format('Y-m-d').'_1600';?><?php $torsdag_time_id19=''.$week_start->format('Y-m-d').'_1630';?><?php $torsdag_time_id19_check=''.$week_start->format('Y-m-d').'_1630';?><?php $torsdag_time_id20=''.$week_start->format('Y-m-d').'_1700';?><?php $torsdag_time_id20_check=''.$week_start->format('Y-m-d').'_1700';?><?php $torsdag_time_id21=''.$week_start->format('Y-m-d').'_1730';?><?php $torsdag_time_id21_check=''.$week_start->format('Y-m-d').'_1730';?><?php $torsdag_time_id22=''.$week_start->format('Y-m-d').'_1800';?><?php $torsdag_time_id22_check=''.$week_start->format('Y-m-d').'_1800';?><?php $torsdag_time_id23=''.$week_start->format('Y-m-d').'_1830';?><?php $torsdag_time_id23_check=''.$week_start->format('Y-m-d').'_1830';?><?php $torsdag_time_id24=''.$week_start->format('Y-m-d').'_1900';?><?php $torsdag_time_id24_check=''.$week_start->format('Y-m-d').'_1900';?><?php $torsdag_time_id25=''.$week_start->format('Y-m-d').'_1930';?><?php $torsdag_time_id25_check=''.$week_start->format('Y-m-d').'_1930';?><?php $torsdag_time_id26=''.$week_start->format('Y-m-d').'_2000';?><?php $torsdag_time_id26_check=''.$week_start->format('Y-m-d').'_2000';?><?php $torsdag_time_id27=''.$week_start->format('Y-m-d').'_2030';?><?php $torsdag_time_id27_check=''.$week_start->format('Y-m-d').'_2030';?><?php $torsdag_time_id28=''.$week_start->format('Y-m-d').'_2100';?><?php $torsdag_time_id28_check=''.$week_start->format('Y-m-d').'_2100';?><?php
  219. $args=array('post_type'=>'bokningar','title'=>$curauth->ID,'posts_per_page'=>-1);$result=new WP_Query($args);if($result->have_posts()){?><?php while($result->have_posts()):$result->the_post();?><?php $datumet=get_post_meta(get_the_ID(),'datum',true);?><?php $tiden=get_post_meta(get_the_ID(),'tid',true);$tiden=str_replace(".","","$tiden");?><?php $title=''.$datumet.'_'.$tiden.'';?><?php $bokningsid=get_the_ID();?><?php
  220. $bekraftadbokning=get_page_by_title($bokningsid,OBJECT,'bekraftade-bokningar');$bekraftadbokning_check=get_the_title($bekraftadbokning->ID);$status=2;$status=get_post_meta($bekraftadbokning->ID,'status',true);?><?php if($status==2){?><?php if($title==$torsdag_time_id28){$torsdag_time_id28='';}?><?php if($title==$torsdag_time_id27){$torsdag_time_id27='';}?><?php if($title==$torsdag_time_id26){$torsdag_time_id26='';}?><?php if($title==$torsdag_time_id25){$torsdag_time_id25='';}?><?php if($title==$torsdag_time_id24){$torsdag_time_id24='';}?><?php if($title==$torsdag_time_id23){$torsdag_time_id23='';}?><?php if($title==$torsdag_time_id22){$torsdag_time_id22='';}?><?php if($title==$torsdag_time_id21){$torsdag_time_id21='';}?><?php if($title==$torsdag_time_id20){$torsdag_time_id20='';}?><?php if($title==$torsdag_time_id19){$torsdag_time_id19='';}?><?php if($title==$torsdag_time_id18){$torsdag_time_id18='';}?><?php if($title==$torsdag_time_id17){$torsdag_time_id17='';}?><?php if($title==$torsdag_time_id16){$torsdag_time_id16='';}?><?php if($title==$torsdag_time_id15){$torsdag_time_id15='';}?><?php if($title==$torsdag_time_id14){$torsdag_time_id14='';}?><?php if($title==$torsdag_time_id13){$torsdag_time_id13='';}?><?php if($title==$torsdag_time_id12){$torsdag_time_id12='';}?><?php if($title==$torsdag_time_id11){$torsdag_time_id11='';}?><?php if($title==$torsdag_time_id10){$torsdag_time_id10='';}?><?php if($title==$torsdag_time_id9){$torsdag_time_id9='';}?><?php if($title==$torsdag_time_id8){$torsdag_time_id8='';}?><?php if($title==$torsdag_time_id7){$torsdag_time_id7='';}?><?php if($title==$torsdag_time_id6){$torsdag_time_id6='';}?><?php if($title==$torsdag_time_id5){$torsdag_time_id5='';}?><?php if($title==$torsdag_time_id4){$torsdag_time_id4='';}?><?php if($title==$torsdag_time_id3){$torsdag_time_id3='';}?><?php if($title==$torsdag_time_id2){$torsdag_time_id2='';}?><?php if($title==$torsdag_time_id1){$torsdag_time_id1='';}?><?php if($title==$torsdag_time_id0){$torsdag_time_id0='';}?><?php}?><?php endwhile;?><?php}?><?php if(date('Y-m-d')>$week_start->format('Y-m-d')){echo'<span style="opacity: 0.5;">Inga lediga tider</span>';}else{?><!--time 0 start--><?php if($torsdag_time_id0_check==$torsdag_time_id0){?><?php
  221. if($current_time0==$time0||$current_time1==$time0||$current_time2==$time0||$current_time3==$time0||$current_time4==$time0||$current_time5==$time0||$current_time6==$time0||$current_time7==$time0||$current_time8==$time0||$current_time9==$time0||$current_time10==$time0||$current_time11==$time0||$current_time12==$time0||$current_time13==$time0||$current_time14==$time0||$current_time15==$time0||$current_time16==$time0||$current_time17==$time0||$current_time18==$time0||$current_time19==$time0||$current_time20==$time0||$current_time21==$time0||$current_time22==$time0||$current_time23==$time0||$current_time24==$time0||$current_time25==$time0||$current_time26==$time0||$current_time27==$time0||$current_time28==$time0){?><?php if($time0>$klockan){?><li><input type=radio id='<?php echo $year; ?>_vecka<?php echo $week; ?>_torsdag_700'name=valj_en_tid value='Torsdag <?php echo $week_start->format('Y-m-d'); ?> 07.00'><label for='<?php echo $year; ?>_vecka<?php echo $week; ?>_torsdag_700'>07.00</label></li><?php}}}?><!--time 0 end--><!--time 1 start--><?php if($torsdag_time_id1_check==$torsdag_time_id1){?><?php
  222. if($current_time0==$time1||$current_time1==$time1||$current_time2==$time1||$current_time3==$time1||$current_time4==$time1||$current_time5==$time1||$current_time6==$time1||$current_time7==$time1||$current_time8==$time1||$current_time9==$time1||$current_time10==$time1||$current_time11==$time1||$current_time12==$time1||$current_time13==$time1||$current_time14==$time1||$current_time15==$time1||$current_time16==$time1||$current_time17==$time1||$current_time18==$time1||$current_time19==$time1||$current_time20==$time1||$current_time21==$time1||$current_time22==$time1||$current_time23==$time1||$current_time24==$time1||$current_time25==$time1||$current_time26==$time1||$current_time27==$time1||$current_time28==$time1){?><?php if($time1>$klockan){?><li><input type=radio id='<?php echo $year; ?>_vecka<?php echo $week; ?>_torsdag_730'name=valj_en_tid value='Torsdag <?php echo $week_start->format('Y-m-d'); ?> 07.30'><label for='<?php echo $year; ?>_vecka<?php echo $week; ?>_torsdag_730'>07.30</label></li><?php}}}?><!--time 1 end--><!--time 2 start--><?php if($torsdag_time_id2_check==$torsdag_time_id2){?><?php
  223. if($current_time0==$time2||$current_time1==$time2||$current_time2==$time2||$current_time3==$time2||$current_time4==$time2||$current_time5==$time2||$current_time6==$time2||$current_time7==$time2||$current_time8==$time2||$current_time9==$time2||$current_time10==$time2||$current_time11==$time2||$current_time12==$time2||$current_time13==$time2||$current_time14==$time2||$current_time15==$time2||$current_time16==$time2||$current_time17==$time2||$current_time18==$time2||$current_time19==$time2||$current_time20==$time2||$current_time21==$time2||$current_time22==$time2||$current_time23==$time2||$current_time24==$time2||$current_time25==$time2||$current_time26==$time2||$current_time27==$time2||$current_time28==$time2){?><?php if($time2>$klockan){?><li><input type=radio id='<?php echo $year; ?>_vecka<?php echo $week; ?>_torsdag_800'name=valj_en_tid value='Torsdag <?php echo $week_start->format('Y-m-d'); ?> 08.00'><label for='<?php echo $year; ?>_vecka<?php echo $week; ?>_torsdag_800'>08.00</label></li><?php}}}?><!--time 2 end--><!--time 3 start--><?php if($torsdag_time_id3_check==$torsdag_time_id3){?><?php
  224. if($current_time0==$time3||$current_time1==$time3||$current_time2==$time3||$current_time3==$time3||$current_time4==$time3||$current_time5==$time3||$current_time6==$time3||$current_time7==$time3||$current_time8==$time3||$current_time9==$time3||$current_time10==$time3||$current_time11==$time3||$current_time12==$time3||$current_time13==$time3||$current_time14==$time3||$current_time15==$time3||$current_time16==$time3||$current_time17==$time3||$current_time18==$time3||$current_time19==$time3||$current_time20==$time3||$current_time21==$time3||$current_time22==$time3||$current_time23==$time3||$current_time24==$time3||$current_time25==$time3||$current_time26==$time3||$current_time27==$time3||$current_time28==$time3){?><?php if($time3>$klockan){?><li><input type=radio id='<?php echo $year; ?>_vecka<?php echo $week; ?>_torsdag_830'name=valj_en_tid value='Torsdag <?php echo $week_start->format('Y-m-d'); ?> 08.30'><label for='<?php echo $year; ?>_vecka<?php echo $week; ?>_torsdag_830'>08.30</label></li><?php}}}?><!--time 3 end--><!--time 4 start--><?php if($torsdag_time_id4_check==$torsdag_time_id4){?><?php
  225. if($current_time0==$time4||$current_time1==$time4||$current_time2==$time4||$current_time3==$time4||$current_time4==$time4||$current_time5==$time4||$current_time6==$time4||$current_time7==$time4||$current_time8==$time4||$current_time9==$time4||$current_time10==$time4||$current_time11==$time4||$current_time12==$time4||$current_time13==$time4||$current_time14==$time4||$current_time15==$time4||$current_time16==$time4||$current_time17==$time4||$current_time18==$time4||$current_time19==$time4||$current_time20==$time4||$current_time21==$time4||$current_time22==$time4||$current_time23==$time4||$current_time24==$time4||$current_time25==$time4||$current_time26==$time4||$current_time27==$time4||$current_time28==$time4){?><?php if($time4>$klockan){?><li><input type=radio id='<?php echo $year; ?>_vecka<?php echo $week; ?>_torsdag_900'name=valj_en_tid value='Torsdag <?php echo $week_start->format('Y-m-d'); ?> 09.00'><label for='<?php echo $year; ?>_vecka<?php echo $week; ?>_torsdag_900'>09.00</label></li><?php}}}?><!--time 4 end--><!--time 5 start--><?php if($torsdag_time_id5_check==$torsdag_time_id5){?><?php
  226. if($current_time0==$time5||$current_time1==$time5||$current_time2==$time5||$current_time3==$time5||$current_time4==$time5||$current_time5==$time5||$current_time6==$time5||$current_time7==$time5||$current_time8==$time5||$current_time9==$time5||$current_time10==$time5||$current_time11==$time5||$current_time12==$time5||$current_time13==$time5||$current_time14==$time5||$current_time15==$time5||$current_time16==$time5||$current_time17==$time5||$current_time18==$time5||$current_time19==$time5||$current_time20==$time5||$current_time21==$time5||$current_time22==$time5||$current_time23==$time5||$current_time24==$time5||$current_time25==$time5||$current_time26==$time5||$current_time27==$time5||$current_time28==$time5){?><?php if($time5>$klockan){?><li><input type=radio id='<?php echo $year; ?>_vecka<?php echo $week; ?>_torsdag_930'name=valj_en_tid value='Torsdag <?php echo $week_start->format('Y-m-d'); ?> 09.30'><label for='<?php echo $year; ?>_vecka<?php echo $week; ?>_torsdag_930'>09.30</label></li><?php}}}?><!--time 5 end--><!--time 6 start--><?php if($torsdag_time_id6_check==$torsdag_time_id6){?><?php
  227. if($current_time0==$time6||$current_time1==$time6||$current_time2==$time6||$current_time3==$time6||$current_time4==$time6||$current_time5==$time6||$current_time6==$time6||$current_time7==$time6||$current_time8==$time6||$current_time9==$time6||$current_time10==$time6||$current_time11==$time6||$current_time12==$time6||$current_time13==$time6||$current_time14==$time6||$current_time15==$time6||$current_time16==$time6||$current_time17==$time6||$current_time18==$time6||$current_time19==$time6||$current_time20==$time6||$current_time21==$time6||$current_time22==$time6||$current_time23==$time6||$current_time24==$time6||$current_time25==$time6||$current_time26==$time6||$current_time27==$time6||$current_time28==$time6){?><?php if($time6>$klockan){?><li><input type=radio id='<?php echo $year; ?>_vecka<?php echo $week; ?>_torsdag_1000'name=valj_en_tid value='Torsdag <?php echo $week_start->format('Y-m-d'); ?> 10.00'><label for='<?php echo $year; ?>_vecka<?php echo $week; ?>_torsdag_1000'>10.00</label></li><?php}}}?><!--time 6 end--><!--time 7 start--><?php if($torsdag_time_id7_check==$torsdag_time_id7){?><?php
  228. if($current_time0==$time7||$current_time1==$time7||$current_time2==$time7||$current_time3==$time7||$current_time4==$time7||$current_time5==$time7||$current_time6==$time7||$current_time7==$time7||$current_time8==$time7||$current_time9==$time7||$current_time10==$time7||$current_time11==$time7||$current_time12==$time7||$current_time13==$time7||$current_time14==$time7||$current_time15==$time7||$current_time16==$time7||$current_time17==$time7||$current_time18==$time7||$current_time19==$time7||$current_time20==$time7||$current_time21==$time7||$current_time22==$time7||$current_time23==$time7||$current_time24==$time7||$current_time25==$time7||$current_time26==$time7||$current_time27==$time7||$current_time28==$time7){?><?php if($time7>$klockan){?><li><input type=radio id='<?php echo $year; ?>_vecka<?php echo $week; ?>_torsdag_1030'name=valj_en_tid value='Torsdag <?php echo $week_start->format('Y-m-d'); ?> 10.30'><label for='<?php echo $year; ?>_vecka<?php echo $week; ?>_torsdag_1030'>10.30</label></li><?php}}}?><!--time 7 end--><!--time 8 start--><?php if($torsdag_time_id8_check==$torsdag_time_id8){?><?php
  229. if($current_time0==$time8||$current_time1==$time8||$current_time2==$time8||$current_time3==$time8||$current_time4==$time8||$current_time5==$time8||$current_time6==$time8||$current_time7==$time8||$current_time8==$time8||$current_time9==$time8||$current_time10==$time8||$current_time11==$time8||$current_time12==$time8||$current_time13==$time8||$current_time14==$time8||$current_time15==$time8||$current_time16==$time8||$current_time17==$time8||$current_time18==$time8||$current_time19==$time8||$current_time20==$time8||$current_time21==$time8||$current_time22==$time8||$current_time23==$time8||$current_time24==$time8||$current_time25==$time8||$current_time26==$time8||$current_time27==$time8||$current_time28==$time8){?><?php if($time8>$klockan){?><li><input type=radio id='<?php echo $year; ?>_vecka<?php echo $week; ?>_torsdag_1100'name=valj_en_tid value='Torsdag <?php echo $week_start->format('Y-m-d'); ?> 11.00'><label for='<?php echo $year; ?>_vecka<?php echo $week; ?>_torsdag_1100'>11.00</label></li><?php}}}?><!--time 8 end--><!--time 9 start--><?php if($torsdag_time_id9_check==$torsdag_time_id9){?><?php
  230. if($current_time0==$time9||$current_time1==$time9||$current_time2==$time9||$current_time3==$time9||$current_time4==$time9||$current_time5==$time9||$current_time6==$time9||$current_time7==$time9||$current_time8==$time9||$current_time9==$time9||$current_time10==$time9||$current_time11==$time9||$current_time12==$time9||$current_time13==$time9||$current_time14==$time9||$current_time15==$time9||$current_time16==$time9||$current_time17==$time9||$current_time18==$time9||$current_time19==$time9||$current_time20==$time9||$current_time21==$time9||$current_time22==$time9||$current_time23==$time9||$current_time24==$time9||$current_time25==$time9||$current_time26==$time9||$current_time27==$time9||$current_time28==$time9){?><?php if($time9>$klockan){?><li><input type=radio id='<?php echo $year; ?>_vecka<?php echo $week; ?>_torsdag_1130'name=valj_en_tid value='Torsdag <?php echo $week_start->format('Y-m-d'); ?> 11.30'><label for='<?php echo $year; ?>_vecka<?php echo $week; ?>_torsdag_1130'>11.30</label></li><?php}}}?><!--time 9 end--><!--time 10 start--><?php if($torsdag_time_id10_check==$torsdag_time_id10){?><?php
  231. if($current_time0==$time10||$current_time1==$time10||$current_time2==$time10||$current_time3==$time10||$current_time4==$time10||$current_time5==$time10||$current_time6==$time10||$current_time7==$time10||$current_time8==$time10||$current_time9==$time10||$current_time10==$time10||$current_time11==$time10||$current_time12==$time10||$current_time13==$time10||$current_time14==$time10||$current_time15==$time10||$current_time16==$time10||$current_time17==$time10||$current_time18==$time10||$current_time19==$time10||$current_time20==$time10||$current_time21==$time10||$current_time22==$time10||$current_time23==$time10||$current_time24==$time10||$current_time25==$time10||$current_time26==$time10||$current_time27==$time10||$current_time28==$time10){?><?php if($time10>$klockan){?><li><input type=radio id='<?php echo $year; ?>_vecka<?php echo $week; ?>_torsdag_1200'name=valj_en_tid value='Torsdag <?php echo $week_start->format('Y-m-d'); ?> 12.00'><label for='<?php echo $year; ?>_vecka<?php echo $week; ?>_torsdag_1200'>12.00</label></li><?php}}}?><!--time 10 end--><!--time 11 start--><?php if($torsdag_time_id11_check==$torsdag_time_id11){?><?php
  232. if($current_time0==$time11||$current_time1==$time11||$current_time2==$time11||$current_time3==$time11||$current_time4==$time11||$current_time5==$time11||$current_time6==$time11||$current_time7==$time11||$current_time8==$time11||$current_time9==$time11||$current_time10==$time11||$current_time11==$time11||$current_time12==$time11||$current_time13==$time11||$current_time14==$time11||$current_time15==$time11||$current_time16==$time11||$current_time17==$time11||$current_time18==$time11||$current_time19==$time11||$current_time20==$time11||$current_time21==$time11||$current_time22==$time11||$current_time23==$time11||$current_time24==$time11||$current_time25==$time11||$current_time26==$time11||$current_time27==$time11||$current_time28==$time11){?><?php if($time11>$klockan){?><li><input type=radio id='<?php echo $year; ?>_vecka<?php echo $week; ?>_torsdag_1230'name=valj_en_tid value='Torsdag <?php echo $week_start->format('Y-m-d'); ?> 12.30'><label for='<?php echo $year; ?>_vecka<?php echo $week; ?>_torsdag_1230'>12.30</label></li><?php}}}?><!--time 11 end--><!--time 12 start--><?php if($torsdag_time_id12_check==$torsdag_time_id12){?><?php
  233. if($current_time0==$time12||$current_time1==$time12||$current_time2==$time12||$current_time3==$time12||$current_time4==$time12||$current_time5==$time12||$current_time6==$time12||$current_time7==$time12||$current_time8==$time12||$current_time9==$time12||$current_time10==$time12||$current_time11==$time12||$current_time12==$time12||$current_time13==$time12||$current_time14==$time12||$current_time15==$time12||$current_time16==$time12||$current_time17==$time12||$current_time18==$time12||$current_time19==$time12||$current_time20==$time12||$current_time21==$time12||$current_time22==$time12||$current_time23==$time12||$current_time24==$time12||$current_time25==$time12||$current_time26==$time12||$current_time27==$time12||$current_time28==$time12){?><?php if($time12>$klockan){?><li><input type=radio id='<?php echo $year; ?>_vecka<?php echo $week; ?>_torsdag_1300'name=valj_en_tid value='Torsdag <?php echo $week_start->format('Y-m-d'); ?> 13.00'><label for='<?php echo $year; ?>_vecka<?php echo $week; ?>_torsdag_1300'>13.00</label></li><?php}}}?><!--time 12 end--><!--time 13 start--><?php if($torsdag_time_id13_check==$torsdag_time_id13){?><?php
  234. if($current_time0==$time13||$current_time1==$time13||$current_time2==$time13||$current_time3==$time13||$current_time4==$time13||$current_time5==$time13||$current_time6==$time13||$current_time7==$time13||$current_time8==$time13||$current_time9==$time13||$current_time10==$time13||$current_time11==$time13||$current_time12==$time13||$current_time13==$time13||$current_time14==$time13||$current_time15==$time13||$current_time16==$time13||$current_time17==$time13||$current_time18==$time13||$current_time19==$time13||$current_time20==$time13||$current_time21==$time13||$current_time22==$time13||$current_time23==$time13||$current_time24==$time13||$current_time25==$time13||$current_time26==$time13||$current_time27==$time13||$current_time28==$time13){?><?php if($time13>$klockan){?><li><input type=radio id='<?php echo $year; ?>_vecka<?php echo $week; ?>_torsdag_1330'name=valj_en_tid value='Torsdag <?php echo $week_start->format('Y-m-d'); ?> 13.30'><label for='<?php echo $year; ?>_vecka<?php echo $week; ?>_torsdag_1330'>13.30</label></li><?php}}}?><!--time 13 end--><!--time 14 start--><?php if($torsdag_time_id14_check==$torsdag_time_id14){?><?php
  235. if($current_time0==$time14||$current_time1==$time14||$current_time2==$time14||$current_time3==$time14||$current_time4==$time14||$current_time5==$time14||$current_time6==$time14||$current_time7==$time14||$current_time8==$time14||$current_time9==$time14||$current_time10==$time14||$current_time11==$time14||$current_time12==$time14||$current_time13==$time14||$current_time14==$time14||$current_time15==$time14||$current_time16==$time14||$current_time17==$time14||$current_time18==$time14||$current_time19==$time14||$current_time20==$time14||$current_time21==$time14||$current_time22==$time14||$current_time23==$time14||$current_time24==$time14||$current_time25==$time14||$current_time26==$time14||$current_time27==$time14||$current_time28==$time14){?><?php if($time14>$klockan){?><li><input type=radio id='<?php echo $year; ?>_vecka<?php echo $week; ?>_torsdag_1400'name=valj_en_tid value='Torsdag <?php echo $week_start->format('Y-m-d'); ?> 14.00'><label for='<?php echo $year; ?>_vecka<?php echo $week; ?>_torsdag_1400'>14.00</label></li><?php}}}?><!--time 14 end--><!--time 15 start--><?php if($torsdag_time_id15_check==$torsdag_time_id15){?><?php
  236. if($current_time0==$time15||$current_time1==$time15||$current_time2==$time15||$current_time3==$time15||$current_time4==$time15||$current_time5==$time15||$current_time6==$time15||$current_time7==$time15||$current_time8==$time15||$current_time9==$time15||$current_time10==$time15||$current_time11==$time15||$current_time12==$time15||$current_time13==$time15||$current_time14==$time15||$current_time15==$time15||$current_time16==$time15||$current_time17==$time15||$current_time18==$time15||$current_time19==$time15||$current_time20==$time15||$current_time21==$time15||$current_time22==$time15||$current_time23==$time15||$current_time24==$time15||$current_time25==$time15||$current_time26==$time15||$current_time27==$time15||$current_time28==$time15){?><?php if($time15>$klockan){?><li><input type=radio id='<?php echo $year; ?>_vecka<?php echo $week; ?>_torsdag_1430'name=valj_en_tid value='Torsdag <?php echo $week_start->format('Y-m-d'); ?> 14.30'><label for='<?php echo $year; ?>_vecka<?php echo $week; ?>_torsdag_1430'>14.30</label></li><?php}}}?><!--time 15 end--><!--time 16 start--><?php if($torsdag_time_id16_check==$torsdag_time_id16){?><?php
  237. if($current_time0==$time16||$current_time1==$time16||$current_time2==$time16||$current_time3==$time16||$current_time4==$time16||$current_time5==$time16||$current_time6==$time16||$current_time7==$time16||$current_time8==$time16||$current_time9==$time16||$current_time10==$time16||$current_time11==$time16||$current_time12==$time16||$current_time13==$time16||$current_time14==$time16||$current_time15==$time16||$current_time16==$time16||$current_time17==$time16||$current_time18==$time16||$current_time19==$time16||$current_time20==$time16||$current_time21==$time16||$current_time22==$time16||$current_time23==$time16||$current_time24==$time16||$current_time25==$time16||$current_time26==$time16||$current_time27==$time16||$current_time28==$time16){?><?php if($time16>$klockan){?><li><input type=radio id='<?php echo $year; ?>_vecka<?php echo $week; ?>_torsdag_1500'name=valj_en_tid value='Torsdag <?php echo $week_start->format('Y-m-d'); ?> 15.00'><label for='<?php echo $year; ?>_vecka<?php echo $week; ?>_torsdag_1500'>15.00</label></li><?php}}}?><!--time 16 end--><!--time 17 start--><?php if($torsdag_time_id17_check==$torsdag_time_id17){?><?php
  238. if($current_time0==$time17||$current_time1==$time17||$current_time2==$time17||$current_time3==$time17||$current_time4==$time17||$current_time5==$time17||$current_time6==$time17||$current_time7==$time17||$current_time8==$time17||$current_time9==$time17||$current_time10==$time17||$current_time11==$time17||$current_time12==$time17||$current_time13==$time17||$current_time14==$time17||$current_time15==$time17||$current_time16==$time17||$current_time17==$time17||$current_time18==$time17||$current_time19==$time17||$current_time20==$time17||$current_time21==$time17||$current_time22==$time17||$current_time23==$time17||$current_time24==$time17||$current_time25==$time17||$current_time26==$time17||$current_time27==$time17||$current_time28==$time17){?><?php if($time17>$klockan){?><li><input type=radio id='<?php echo $year; ?>_vecka<?php echo $week; ?>_torsdag_1530'name=valj_en_tid value='Torsdag <?php echo $week_start->format('Y-m-d'); ?> 15.30'><label for='<?php echo $year; ?>_vecka<?php echo $week; ?>_torsdag_1530'>15.30</label></li><?php}}}?><!--time 17 end--><!--time 18 start--><?php if($torsdag_time_id18_check==$torsdag_time_id18){?><?php
  239. if($current_time0==$time18||$current_time1==$time18||$current_time2==$time18||$current_time3==$time18||$current_time4==$time18||$current_time5==$time18||$current_time6==$time18||$current_time7==$time18||$current_time8==$time18||$current_time9==$time18||$current_time10==$time18||$current_time11==$time18||$current_time12==$time18||$current_time13==$time18||$current_time14==$time18||$current_time15==$time18||$current_time16==$time18||$current_time17==$time18||$current_time18==$time18||$current_time19==$time18||$current_time20==$time18||$current_time21==$time18||$current_time22==$time18||$current_time23==$time18||$current_time24==$time18||$current_time25==$time18||$current_time26==$time18||$current_time27==$time18||$current_time28==$time18){?><?php if($time18>$klockan){?><li><input type=radio id='<?php echo $year; ?>_vecka<?php echo $week; ?>_torsdag_1600'name=valj_en_tid value='Torsdag <?php echo $week_start->format('Y-m-d'); ?> 16.00'><label for='<?php echo $year; ?>_vecka<?php echo $week; ?>_torsdag_1600'>16.00</label></li><?php}}}?><!--time 18 end--><!--time 19 start--><?php if($torsdag_time_id19_check==$torsdag_time_id19){?><?php
  240. if($current_time0==$time19||$current_time1==$time19||$current_time2==$time19||$current_time3==$time19||$current_time4==$time19||$current_time5==$time19||$current_time6==$time19||$current_time7==$time19||$current_time8==$time19||$current_time9==$time19||$current_time10==$time19||$current_time11==$time19||$current_time12==$time19||$current_time13==$time19||$current_time14==$time19||$current_time15==$time19||$current_time16==$time19||$current_time17==$time19||$current_time18==$time19||$current_time19==$time19||$current_time20==$time19||$current_time21==$time19||$current_time22==$time19||$current_time23==$time19||$current_time24==$time19||$current_time25==$time19||$current_time26==$time19||$current_time27==$time19||$current_time28==$time19){?><?php if($time19>$klockan){?><li><input type=radio id='<?php echo $year; ?>_vecka<?php echo $week; ?>_torsdag_1630'name=valj_en_tid value='Torsdag <?php echo $week_start->format('Y-m-d'); ?> 16.30'><label for='<?php echo $year; ?>_vecka<?php echo $week; ?>_torsdag_1630'>16.30</label></li><?php}}}?><!--time 19 end--><!--time 20 start--><?php if($torsdag_time_id20_check==$torsdag_time_id20){?><?php
  241. if($current_time0==$time20||$current_time1==$time20||$current_time2==$time20||$current_time3==$time20||$current_time4==$time20||$current_time5==$time20||$current_time6==$time20||$current_time7==$time20||$current_time8==$time20||$current_time9==$time20||$current_time10==$time20||$current_time11==$time20||$current_time12==$time20||$current_time13==$time20||$current_time14==$time20||$current_time15==$time20||$current_time16==$time20||$current_time17==$time20||$current_time18==$time20||$current_time19==$time20||$current_time20==$time20||$current_time21==$time20||$current_time22==$time20||$current_time23==$time20||$current_time24==$time20||$current_time25==$time20||$current_time26==$time20||$current_time27==$time20||$current_time28==$time20){?><?php if($time20>$klockan){?><li><input type=radio id='<?php echo $year; ?>_vecka<?php echo $week; ?>_torsdag_1700'name=valj_en_tid value='Torsdag <?php echo $week_start->format('Y-m-d'); ?> 17.00'><label for='<?php echo $year; ?>_vecka<?php echo $week; ?>_torsdag_1700'>17.00</label></li><?php}}}?><!--time 20 end--><!--time 21 start--><?php if($torsdag_time_id21_check==$torsdag_time_id21){?><?php
  242. if($current_time0==$time21||$current_time1==$time21||$current_time2==$time21||$current_time3==$time21||$current_time4==$time21||$current_time5==$time21||$current_time6==$time21||$current_time7==$time21||$current_time8==$time21||$current_time9==$time21||$current_time10==$time21||$current_time11==$time21||$current_time12==$time21||$current_time13==$time21||$current_time14==$time21||$current_time15==$time21||$current_time16==$time21||$current_time17==$time21||$current_time18==$time21||$current_time19==$time21||$current_time20==$time21||$current_time21==$time21||$current_time22==$time21||$current_time23==$time21||$current_time24==$time21||$current_time25==$time21||$current_time26==$time21||$current_time27==$time21||$current_time28==$time21){?><?php if($time21>$klockan){?><li><input type=radio id='<?php echo $year; ?>_vecka<?php echo $week; ?>_torsdag_1730'name=valj_en_tid value='Torsdag <?php echo $week_start->format('Y-m-d'); ?> 17.30'><label for='<?php echo $year; ?>_vecka<?php echo $week; ?>_torsdag_1730'>17.30</label></li><?php}}}?><!--time 21 end--><!--time 22 start--><?php if($torsdag_time_id22_check==$torsdag_time_id22){?><?php
  243. if($current_time0==$time22||$current_time1==$time22||$current_time2==$time22||$current_time3==$time22||$current_time4==$time22||$current_time5==$time22||$current_time6==$time22||$current_time7==$time22||$current_time8==$time22||$current_time9==$time22||$current_time10==$time22||$current_time11==$time22||$current_time12==$time22||$current_time13==$time22||$current_time14==$time22||$current_time15==$time22||$current_time16==$time22||$current_time17==$time22||$current_time18==$time22||$current_time19==$time22||$current_time20==$time22||$current_time21==$time22||$current_time22==$time22||$current_time23==$time22||$current_time24==$time22||$current_time25==$time22||$current_time26==$time22||$current_time27==$time22||$current_time28==$time22){?><?php if($time22>$klockan){?><li><input type=radio id='<?php echo $year; ?>_vecka<?php echo $week; ?>_torsdag_1800'name=valj_en_tid value='Torsdag <?php echo $week_start->format('Y-m-d'); ?> 18.00'><label for='<?php echo $year; ?>_vecka<?php echo $week; ?>_torsdag_1800'>18.00</label></li><?php}}}?><!--time 22 end--><!--time 23 start--><?php if($torsdag_time_id23_check==$torsdag_time_id23){?><?php
  244. if($current_time0==$time23||$current_time1==$time23||$current_time2==$time23||$current_time3==$time23||$current_time4==$time23||$current_time5==$time23||$current_time6==$time23||$current_time7==$time23||$current_time8==$time23||$current_time9==$time23||$current_time10==$time23||$current_time11==$time23||$current_time12==$time23||$current_time13==$time23||$current_time14==$time23||$current_time15==$time23||$current_time16==$time23||$current_time17==$time23||$current_time18==$time23||$current_time19==$time23||$current_time20==$time23||$current_time21==$time23||$current_time22==$time23||$current_time23==$time23||$current_time24==$time23||$current_time25==$time23||$current_time26==$time23||$current_time27==$time23||$current_time28==$time23){?><?php if($time23>$klockan){?><li><input type=radio id='<?php echo $year; ?>_vecka<?php echo $week; ?>_torsdag_1830'name=valj_en_tid value='Torsdag <?php echo $week_start->format('Y-m-d'); ?> 18.30'><label for='<?php echo $year; ?>_vecka<?php echo $week; ?>_torsdag_1830'>18.30</label></li><?php}}}?><!--time 23 end--><!--time 24 start--><?php if($torsdag_time_id24_check==$torsdag_time_id24){?><?php
  245. if($current_time0==$time24||$current_time1==$time24||$current_time2==$time24||$current_time3==$time24||$current_time4==$time24||$current_time5==$time24||$current_time6==$time24||$current_time7==$time24||$current_time8==$time24||$current_time9==$time24||$current_time10==$time24||$current_time11==$time24||$current_time12==$time24||$current_time13==$time24||$current_time14==$time24||$current_time15==$time24||$current_time16==$time24||$current_time17==$time24||$current_time18==$time24||$current_time19==$time24||$current_time20==$time24||$current_time21==$time24||$current_time22==$time24||$current_time23==$time24||$current_time24==$time24||$current_time25==$time24||$current_time26==$time24||$current_time27==$time24||$current_time28==$time24){?><?php if($time24>$klockan){?><li><input type=radio id='<?php echo $year; ?>_vecka<?php echo $week; ?>_torsdag_1900'name=valj_en_tid value='Torsdag <?php echo $week_start->format('Y-m-d'); ?> 19.00'><label for='<?php echo $year; ?>_vecka<?php echo $week; ?>_torsdag_1900'>19.00</label></li><?php}}}?><!--time 24 end--><!--time 25 start--><?php if($torsdag_time_id25_check==$torsdag_time_id25){?><?php
  246. if($current_time0==$time25||$current_time1==$time25||$current_time2==$time25||$current_time3==$time25||$current_time4==$time25||$current_time5==$time25||$current_time6==$time25||$current_time7==$time25||$current_time8==$time25||$current_time9==$time25||$current_time10==$time25||$current_time11==$time25||$current_time12==$time25||$current_time13==$time25||$current_time14==$time25||$current_time15==$time25||$current_time16==$time25||$current_time17==$time25||$current_time18==$time25||$current_time19==$time25||$current_time20==$time25||$current_time21==$time25||$current_time22==$time25||$current_time23==$time25||$current_time24==$time25||$current_time25==$time25||$current_time26==$time25||$current_time27==$time25||$current_time28==$time25){?><?php if($time25>$klockan){?><li><input type=radio id='<?php echo $year; ?>_vecka<?php echo $week; ?>_torsdag_1930'name=valj_en_tid value='Torsdag <?php echo $week_start->format('Y-m-d'); ?> 19.30'><label for='<?php echo $year; ?>_vecka<?php echo $week; ?>_torsdag_1930'>19.30</label></li><?php}}}?><!--time 25 end--><!--time 26 start--><?php if($torsdag_time_id26_check==$torsdag_time_id26){?><?php
  247. if($current_time0==$time26||$current_time1==$time26||$current_time2==$time26||$current_time3==$time26||$current_time4==$time26||$current_time5==$time26||$current_time6==$time26||$current_time7==$time26||$current_time8==$time26||$current_time9==$time26||$current_time10==$time26||$current_time11==$time26||$current_time12==$time26||$current_time13==$time26||$current_time14==$time26||$current_time15==$time26||$current_time16==$time26||$current_time17==$time26||$current_time18==$time26||$current_time19==$time26||$current_time20==$time26||$current_time21==$time26||$current_time22==$time26||$current_time23==$time26||$current_time24==$time26||$current_time25==$time26||$current_time26==$time26||$current_time27==$time26||$current_time28==$time26){?><?php if($time26>$klockan){?><li><input type=radio id='<?php echo $year; ?>_vecka<?php echo $week; ?>_torsdag_2000'name=valj_en_tid value='Torsdag <?php echo $week_start->format('Y-m-d'); ?> 20.00'><label for='<?php echo $year; ?>_vecka<?php echo $week; ?>_torsdag_2000'>20.00</label></li><?php}}}?><!--time 26 end--><!--time 27 start--><?php if($torsdag_time_id27_check==$torsdag_time_id27){?><?php
  248. if($current_time0==$time27||$current_time1==$time27||$current_time2==$time27||$current_time3==$time27||$current_time4==$time27||$current_time5==$time27||$current_time6==$time27||$current_time7==$time27||$current_time8==$time27||$current_time9==$time27||$current_time10==$time27||$current_time11==$time27||$current_time12==$time27||$current_time13==$time27||$current_time14==$time27||$current_time15==$time27||$current_time16==$time27||$current_time17==$time27||$current_time18==$time27||$current_time19==$time27||$current_time20==$time27||$current_time21==$time27||$current_time22==$time27||$current_time23==$time27||$current_time24==$time27||$current_time25==$time27||$current_time26==$time27||$current_time27==$time27||$current_time28==$time27){?><?php if($time27>$klockan){?><li><input type=radio id='<?php echo $year; ?>_vecka<?php echo $week; ?>_torsdag_2030'name=valj_en_tid value='Torsdag <?php echo $week_start->format('Y-m-d'); ?> 20.30'><label for='<?php echo $year; ?>_vecka<?php echo $week; ?>_torsdag_2030'>20.30</label></li><?php}}}?><!--time 27 end--><!--time 28 start--><?php if($torsdag_time_id28_check==$torsdag_time_id28){?><?php
  249. if($current_time0==$time28||$current_time1==$time28||$current_time2==$time28||$current_time3==$time28||$current_time4==$time28||$current_time5==$time28||$current_time6==$time28||$current_time7==$time28||$current_time8==$time28||$current_time9==$time28||$current_time10==$time28||$current_time11==$time28||$current_time12==$time28||$current_time13==$time28||$current_time14==$time28||$current_time15==$time28||$current_time16==$time28||$current_time17==$time28||$current_time18==$time28||$current_time19==$time28||$current_time20==$time28||$current_time21==$time28||$current_time22==$time28||$current_time23==$time28||$current_time24==$time28||$current_time25==$time28||$current_time26==$time28||$current_time27==$time28||$current_time28==$time28){?><?php if($time28>$klockan){?><li><input type=radio id='<?php echo $year; ?>_vecka<?php echo $week; ?>_torsdag_2100'name=valj_en_tid value='Torsdag <?php echo $week_start->format('Y-m-d'); ?> 21.00'><label for='<?php echo $year; ?>_vecka<?php echo $week; ?>_torsdag_2100'>21.00</label></li><?php}}}?><!--time 28 end--><?php if($values[0]or $values[1]or $values[2]or $values[3]or $values[4]or $values[5]or $values[6]or $values[7]or $values[8]or $values[9]or $values[10]or $values[11]or $values[12]or $values[13]or $values[14]or $values[15]or $values[16]or $values[17]or $values[18]or $values[19]or $values[20]or $values[21]or $values[22]or $values[23]or $values[24 or $values[25]or $values[26]or $values[27]or $values[28]]){}else{echo'<span style="opacity: 0.5;">Inga lediga tider</span>';}?><?php}?><?php}}?><?php wp_reset_postdata();?><?php echo'</ul>';?><!--===================================--><?$week_start=new DateTime();$week_start->setISODate($year,$week,"5");$timestamp=strtotime('2021-02-02');$todays_date=date('j M');$current_time=date('Hi');$klockan=0;$current_time0=$current_time1=$current_time2=$current_time3=$current_time4=$current_time5=$current_time6=$current_time7=$current_time8=$current_time9=$current_time10=$current_time11=$current_time12=$current_time13=$current_time14=$current_time15=$current_time16=$current_time17=$current_time18=$current_time19=$current_time20=$current_time21=$current_time22=$current_time23=$current_time24=$current_time25=$current_time26=$current_time27=$current_time28=2401;$time0=$time1=$time2=$time3=$time4=$time5=$time6=$time7=$time8=$time9=$time10=$time11=$time12=$time13=$time14=$time15=$time16=$time17=$time18=$time19=$time20=$time21=$time22=$time23=$time24=$time26=$time27=$time28=2401;?><?php
  250. $datum_output=$week_start->format('j M');$datum_output=str_replace('May','Maj',$datum_output);if($todays_date==$week_start->format('j M')){echo'<span class="weekday today">Idag '.$datum_output.'</span>';}else{echo'<span class="weekday">Fredag '.$datum_output.'</span><br>';}?><?php
  251. $repeat_field=get_post_meta($post->ID,'fredag');echo'<ul>';if($repeat_field){foreach($repeat_field as $field){$values=explode('|',$field);if($todays_date==$week_start->format('j M')){$klockan=$current_time;}?><?php
  252. $time0=630;$time1=660;$time2=730;$time3=760;$time4=830;$time5=860;$time6=930;$time7=960;$time8=1030;$time9=1060;$time10=1130;$time11=1160;$time12=1230;$time13=1260;$time14=1330;$time15=1360;$time16=1430;$time17=1460;$time18=1530;$time19=1560;$time20=1630;$time21=1660;$time22=1730;$time23=1760;$time24=1830;$time25=1860;$time26=1930;$time27=1960;$time28=2030;if($values[0]){$current_time0=str_replace(".","","{$values[0]}")-70;}
  253. if($values[1]){$current_time1=str_replace(".","","{$values[1]}")-70;}
  254. if($values[2]){$current_time2=str_replace(".","","{$values[2]}")-70;}
  255. if($values[3]){$current_time3=str_replace(".","","{$values[3]}")-70;}
  256. if($values[4]){$current_time4=str_replace(".","","{$values[4]}")-70;}
  257. if($values[5]){$current_time5=str_replace(".","","{$values[5]}")-70;}
  258. if($values[6]){$current_time6=str_replace(".","","{$values[6]}")-70;}
  259. if($values[7]){$current_time7=str_replace(".","","{$values[7]}")-70;}
  260. if($values[8]){$current_time8=str_replace(".","","{$values[8]}")-70;}
  261. if($values[9]){$current_time9=str_replace(".","","{$values[9]}")-70;}
  262. if($values[10]){$current_time10=str_replace(".","","{$values[10]}")-70;}
  263. if($values[11]){$current_time11=str_replace(".","","{$values[11]}")<