<{assign var="bc" value=$block.BlockContent}> <{if $bc.main_data}> <{if $isMyWeb}> <{$sweet_delete_homework_func_code}> <{/if}>

<{foreach from=$bc.main_data key=i item=homework}> <{if $homework.toCal > $bc.today }>
- <{$homework.HomeworkCounter}> <{$homework.toCal}> (<{$homework.Week}>) <{$smarty.const._MD_TCW_HOMEWORK}> <{if $homework.isMyWeb or $homework.isAssistant}> <{/if}>
<{/if}> <{/foreach}>

<{foreach from=$bc.main_data key=i item=homework}> <{if $homework.toCal ==$bc.today}>

### <{$homework.toCal}> (<{$homework.Week}>) <{$smarty.const._MD_TCW_HOMEWORK}> <{if $isMyWeb or $homework.isAssistant}> <{/if}>

<{if $homework.HomeworkContent}> <{$homework.HomeworkContent}> <{else}>
<{if $homework.today_homework}>
<{$homework.today_homework}>
<{/if}> <{if $homework.bring}>
<{$homework.bring}>
<{/if}> <{if $homework.teacher_say}>
<{$homework.teacher_say}>
<{/if}>
<{if $homework.other}>
<{$homework.other}>
<{/if}> <{/if}>
<{/if}> <{/foreach}>

<{foreach from=$bc.main_data key=i item=homework}> <{if $homework.toCal < $bc.today}>
- <{$homework.HomeworkCounter}> <{$homework.toCal}> (<{$homework.Week}>) <{$smarty.const._MD_TCW_HOMEWORK}> <{if $homework.isMyWeb or $homework.isAssistant}> <{/if}>
<{/if}> <{/foreach}>

<{/if}> <{if $bc.yet_data and $isMyWeb}>

<{foreach from=$bc.yet_data key=i item=homework}>
- <{$homework.HomeworkCounter}> <{$homework.toCal}> (<{$homework.Week}>) <{$smarty.const._MD_TCW_HOMEWORK}> <{if $homework.isMyWeb or $homework.isAssistant}> <{/if}> <{$homework.display_at}>
<{/foreach}>

<{/if}>