<{if $homework_data}> <{if $isMyWeb}> <{$sweet_delete_homework_func_code}> <{/if}> <{if $WebID}>

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

<{foreach from=$homework_data key=i item=homework}> <{if $homework.toCal == $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=$homework_data key=i item=homework}> <{if $homework.toCal < $today}>
- <{$homework.HomeworkCounter}> <{$homework.toCal}> (<{$homework.Week}>) <{$smarty.const._MD_TCW_HOMEWORK}> <{if $homework.isMyWeb or $homework.isAssistant}> <{/if}>
<{/if}> <{/foreach}>

<{else}> <{if $web_display_mode=='index' and $homework_data}> <{if "$xoops_rootpath/uploads/tad_web/0/image/`$dirname`.png"|file_exists}> <{else}>

### <{$homework.PluginTitle}>

<{/if}> <{elseif $web_display_mode=='index_plugin'}>

# <{$homework.PluginTitle}>

<{elseif $web_display_mode=='home_plugin'}>

# <{$homework.PluginTitle}>

<{/if}>

<{$smarty.const._MD_TCW_HOMEWORK}> | <{$smarty.const._MD_TCW_HOMEWORKCOUNTER}> <{if $web_display_mode=="index" or $web_display_mode=="index_plugin"}> | <{$smarty.const._MD_TCW_TEAMID}> <{/if}>
--- | --- | ---
<{foreach item=homework from=$homework_data}>
<{$homework.WebName}> <{$homework.toCal}> (<{$homework.Week}>) <{$smarty.const._MD_TCW_HOMEWORK}> <{if $homework.isMyWeb or $homework.isAssistant}> <{/if}> | <{$homework.HomeworkCounter}> <{if $web_display_mode=="index" or $web_display_mode=="index_plugin"}> | <{$homework.WebTitle}> <{/if}>
<{/foreach}>

<{if $web_display_mode=='index_plugin' or $web_display_mode=='home_plugin'}> <{$bar}> <{/if}> <{/if}>
<{if $web_display_mode=='index'}> <{$smarty.const._MD_TCW_MORE}><{$smarty.const._MD_TCW_HOMEWORK_SHORT}> <{elseif $web_display_mode=='home' or $HomeworkDefCateID}> <{$smarty.const._MD_TCW_MORE}><{$smarty.const._MD_TCW_HOMEWORK_SHORT}> <{/if}> <{if $isMyWeb and $WebID}> <{$smarty.const._MD_TCW_ADD}><{$smarty.const._MD_TCW_HOMEWORK_SHORT}> <{/if}>
<{/if}> <{if $yet_data and $isMyWeb}>

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

<{/if}>