<{if $mod_config.use_name==1 && $yd_name}><{$yd_name}> <{else}><{$yd_uname}> <{/if}><{$smarty.const._MD_DIARY_PERSON}>

<{if $preview}>
<{if $yd_layout=="left"}>
<{elseif $yd_layout=="right"}>
<{else}>
<{/if}>

<{$smarty.const._MD_PREVIEW}>

<{$yd_data.year}><{* $smarty.const._MD_DATE_YEAR *}>
<{$yd_data.b_month}><{ *$smarty.const._MD_DATE_MONTH *}> <{$yd_data.day}><{* $smarty.const._MD_DATE_DAY *}>
(<{$yd_data.week}>)
<{* div class="itemFoot"><{$yd_data.time}><{* /span>
<{$yd_data.title}>
<{if $yd_before.bid >0}> <{$smarty.const._MD_DIARY_LAST}> <{/if}> <{if $yd_after.bid >0}> <{$smarty.const._MD_DIARY_NEXT}> <{/if}>
<{$smarty.const._MD_CATEGORY}>  <{$yd_data.cname}> <{if $mod_config.use_tag>0}>
<{$smarty.const._MD_TAG}>  <{foreach from=$bTagArr item=tags}> <{$tags.tag}> <{/foreach}> <{/if}>
<{$smarty.const._MD_DIARY_TEXT}>
<{$yd_data.diary}>
<{if $yd_photo.0.pid|count_characters>0}>
<{foreach from=$yd_photo key="num" item="photo" name="list"}> <{if $photo.body_in != true}> <{if $yd_photo|@count==1}>
<{elseif ($yd_photo|@count==2)&&$num==1}>
<{else}>
<{/if}> <{*

<{$smarty.const._MD_PHOTO}><{$num+1}>

*}> <{if $mod_config.photo_useinfo==1 && $photo.info}>

<{$photo.info}>

<{/if}>
<{* <{if $num==2 || $num==5 }>
<{/if}> *}> <{* <{if $num==1 || $num==3 || $num==5 || $num==7 }>
<{/if}> *}> <{/if}> <{/foreach}>

<{/if}>
<{if $yd_editperm==1}> <{$smarty.const._MD_T_EDIT}> <{/if}>
<{/if}>
<{$smarty.const._MD_DIARY_EDIT}>
<{if $yd_data.error|count_characters > 0}> <{$smarty.const._MD_INPUT_ERR}>
<{$yd_data.error}>


<{/if}>
<{if $yd_use_open_entry}> <{/if}> <{if $mod_config.use_tag>0}> <{/if}> <{* *}> <{foreach from=$yd_photo key="num" item="photo" name="list"}> <{/foreach}> <{if $yd_photo }> <{/if}>
<{$smarty.const._MD_DIARY_TITLE}>
<{if $yd_data.bid>0}> <{$smarty.const._MD_DIARY_DATE}> <{$yd_data.year}><{$smarty.const._MD_DATE_YEAR}><{$yd_data.month}><{$smarty.const._MD_DATE_MONTH}><{$yd_data.day}><{$smarty.const._MD_DATE_DAY}> <{$yd_data.time}><{/if}>
<{$smarty.const._MD_CATEGORY}>
<{$smarty.const._MD_CONF_OPENAREA}>  <{if $yd_data.openarea==100}><{$smarty.const._MD_DIARY_UPDATE_TIME}><{/if}> <{if $yd_data.openarea <> 0}><{/if}>
<{if $allow_gpermission || $allow_ppermission}> <{$smarty.const._MD_PERMED_VGROUP}>
<{/if}>
<{if $allow_ppermission}> <{strip}> <{$smarty.const._MD_DIARY_REG_PERSON}>
<{if $yd_data.pperm_names}> <{foreach from=$yd_data.pperm_names item="pname"}><{$pname}><{/foreach}><{/if}>
<{$smarty.const._MD_SEARCH_VPERSON}> 
<{$smarty.const._MD_SEARCH_VPERSONDESC}> <{/strip}> <{/if}>
<{$smarty.const._MD_DIARY_TEXT}> <{php}> $this->assign( 'common_fck_installed' , file_exists( XOOPS_ROOT_PATH.'/common/fckeditor/fckeditor.js' ) ) ; <{/php}> <{if $mod_config.body_htmleditor=="common_fckeditor" and $common_fck_installed}> <{else}> <{if $allow_html }> <{php}> $_makescript = & xoops_getmodulehandler('makescript','myckeditor' , true ); $params = array('id'=>'diary','editor'=>'html','myckeditor'=>'on'); if (@is_object( $_makescript )){ $this->assign( 'common_myck_installed' , true ) ; $_makescript->makeheader($params); } <{/php}> <{if $common_myck_installed}>
<{/if}> <{/if}> <{/if}>
<{if $mod_config.body_editor=="xoopsdhtml"}>
<{if $allow_html && ! $common_fck_installed}> <{else}> <{/if}>
<{xoopsdhtmltarea name='diary' id='diary' cols=40 rows=15 value=$yd_data.diary4edit pre_style="display:none;" post_style="display:none;"}> <{else}>
<{$smilylist}> <{/if}>

<{$smarty.const._MD_YT_URL}>
<{$smarty.const._MD_ND_URL}>
<{if $yd_photo }>
<{$smarty.const._MD_P_INSOPEN}>
<{/if}>
<{$smarty.const._MD_DIARY_OPTION}> <{if $allow_html}> checked<{/if}> /> <{$smarty.const._MD_DO_HTML}>
<{else}> <{/if}> <{if $allow_regdate}> checked<{/if}>/> <{$smarty.const._MD_DIARY_REG_TIME}> <{html_select_date time=$yd_data.create_time_unformat start_year="-1" end_year="+2" month_format="%m" day_format="%d" field_order="YMD" field_array="published"}> <{html_select_time time=$yd_data.create_time_unformat minute_interval="10" display_seconds=false field_array="published"}>
<{else}> <{/if}> <{if $mod_config.use_updateping}> <{$smarty.const._MD_DIARY_UPDATE_PING}>
<{else}> <{/if}>
<{$smarty.const._MD_TAG}> <{$smarty.const._MD_TAG_DESC}>

<{$smarty.const._MD_LANG_MY_TAGS}> <{foreach from=$myTagArr item=mytag}> <{$mytag}> <{/foreach}> <{if $allowUseredit!="0"}>
<{$smarty.const._MD_LANG_POPULAR_TAGS}> + OPEN
<{/if}>
<{attachfile_attach_upload dirname=attachfile label=1}> <{attachfile_attach_upload dirname=attachfile target_id=$yd_data.bid}>
<{$smarty.const._MD_PHOTO}><{$num+1}> <{if $photo.prev==1}><{$smarty.const._MD_PREVIEW}><{$smarty.const._MD_PHOTO}>
<{/if}>

<{$smarty.const._MD_PHOTO_SELECT}>

<{if !$photo.prev}>

<{$smarty.const._MD_P_INSSELECT}>

<{/if}> <{if $mod_config.photo_useinfo==1}> <{/if}>
<{$smarty.const._MD_PHOTO_MANAGE}>

MAX<{$yd_photo_maxpics}><{$smarty.const._MD_PHOTO_SHRINK}>
<{if $mod_config.photo_useinfo==1}> <{section name=cnt start=1 loop=10}> <{/section}> <{else}> <{section name=cnt start=1 loop=10}> <{/section}> <{/if}>
<{$smarty.const._MD_PHOTO_MAXSIZE}><{$yd_photo_maxsize}>KB
<{if $yd_useresize > 0}> <{$smarty.const._MD_PHOTO_SHRINK2}>
<{/if}>
<{if $preview}><{/if}>


<{if $yd_data.bid>0}>
<{$smarty.const._MD_DIARY_DEL}>
<{$smarty.const._MD_DIARY_DATE}> <{$yd_data.year}><{$smarty.const._MD_DATE_YEAR}><{$yd_data.month}><{$smarty.const._MD_DATE_MONTH}><{$yd_data.day}><{$smarty.const._MD_DATE_DAY}> <{$yd_data.time}>
<{$smarty.const._MD_DIARY_TITLE}> <{$yd_data.title}>
<{$smarty.const._MD_DIARY_DELDEC}>
<{/if}> <{if $debug_time}> <{foreach from=$debug_time item="debug"}> <{$debug.time}>:<{$debug.caller}>
<{/foreach}> <{/if}>