<{strip}>

<form method="post" action="./<{$smaryt.const.INDEX_FILE_NAME}>">
	<div>
		<input type="hidden" name="action" value="journal_action_mobile_post">
		<input type="hidden" name="block_id" value="<{$block_id}>">
		<input type="hidden" name="j_id" value="<{$action.journal_id}>">
		<{if ($action.post.post_id > 0) }>
			<input type="hidden" name="p_id" value="<{$action.post.post_id}>">
		<{/if}>
		<{assign var="journal_date" value=$action.post.journal_date|timezone_date_format:"YmdHis"}>
		
		<{$lang.journal_post_date|smarty:nodefaults}>
		&nbsp;
		
		<input type="text" name="year" value="<{$journal_date|substr:0:4}>" size=4 maxlength=4 style="-wap-input-format:&quot;*&lt:ja:n&gt;&quot;">
		<{$lang._mobile_year|smarty:nodefaults}>
		<input type="text" name="month" value="<{$journal_date|substr:4:2}>" size=2 maxlength=2 style="-wap-input-format:&quot;*&lt:ja:n&gt;&quot;">
		<{$lang._mobile_month|smarty:nodefaults}>
		<input type="text" name="day" value="<{$journal_date|substr:6:2}>" size=2  maxlength=2 style="-wap-input-format:&quot;*&lt:ja:n&gt;&quot;">
		<{$lang._mobile_day|smarty:nodefaults}>
		<br />
		
		<{$lang.journal_post_time|smarty:nodefaults}>
		&nbsp;
		
		<input type="text" name="journal_hour" value="<{$journal_date|substr:8:2}>" size=2  maxlength=2 style="-wap-input-format:&quot;*&lt:ja:n&gt;&quot;">
		<{$lang._mobile_hour|smarty:nodefaults}>
		<input type="text" name="journal_minute" value="<{$journal_date|substr:10:2}>" size=2  maxlength=2 style="-wap-input-format:&quot;*&lt:ja:n&gt;&quot;">
		<{$lang._mobile_minute|smarty:nodefaults}>
		<br /><br />
		
		<{$lang.journal_mobile_post_title|smarty:nodefaults}><br />
		<input type="text" name="title" value="<{$action.post.title}>">
		<br /><br />
		
		<{$lang.journal_mobile_post_category|smarty:nodefaults}><br />
		<select name="cat_id" size="1">
			<option value="0"<{if ($action.post.category_id=="0") }>selected="selected"<{/if}>>
				<{$lang.journal_mobile_nocategory|smarty:nodefaults}>
			</option>
			<{foreach from=$action.categories item=cat}>
				<option value="<{$cat.category_id}>"<{if ($action.post.category_id==$cat.category_id)}>selected="selected"<{/if}>>
					<{$cat.category_name|truncate:$smarty.const.JOURNAL_MOBILE_CATE_NAME_LEN:$smarty.const._SEARCH_MORE:true}>
				</option>
			<{/foreach}>
		</select>
		<br /><br />

		<{$lang.journal_mobile_post_content|smarty:nodefaults}><br />
		<textarea name="content" rows="5"><{$action.post.content|smarty:nodefaults|html_to_text}></textarea>
		<br /><br />

		<input type="submit" name="temporary" value="<{$lang._temporary|smarty:nodefaults}>">
		<input type="submit" name="regist" value="<{$lang._regist|smarty:nodefaults}>">
		<input type="submit" name="cancel" value="<{$lang._cancel|smarty:nodefaults}>">

		<{$token_form|smarty:nodefaults}>
		<{$session_form|smarty:nodefaults}>
	</div>
</form>

<{/strip}>