<?php include VIEW_DIR.'mobile/common/menu/private.tpl'; ?>


<?php if (empty($this->_vars['v_blg_entry'])):?>
	<?php _e('Sorry, no results found.'); ?><br><br>
	<?php loadPlugin::callFunc('hitsuji_banner', POSITION_MOBILE); ?><br>
<?php else: ?>
<?php HTML::mobilePager($this->_vars['p_blg_entry']); ?>
<table border="0" width="<?php Theme::exec()->mainWidth(); ?>">
<?php foreach ($this->_vars['v_blg_entry'] as $_row): ?>
	<tr><td width="90" bgcolor="<?php Theme::exec()->bgColor(); ?>" align="center"><font size="<?php Theme::exec()->fontSize(); ?>">
		<?php loadPlugin::callFunc('hitsuji_profile', $_row['ref_account'], 'nickname,vSmall'); ?>
		<?php eDate($_row['regist_date'], _('Y-m-d H:i')); ?></font>
	<br></td><td bgcolor="<?php Theme::exec()->bgColor(); ?>"><font size="<?php Theme::exec()->fontSize(); ?>">
		[<?php e($_row['subject']); ?>]<br>
		<?php HTML::strimWidth($_row['body']); ?>
		<br>&lt;<a href="<?php e(HTTP_ACTION); ?>member/blog/view/<?php e($_row['id']); ?>/"><?php _e('View'); ?></a>&gt;</font>
	<hr color="<?php Theme::exec()->bgColor(); ?>" noshade="noshade"></td></tr>
<?php endforeach; ?>
</table>
<?php HTML::mobilePager($this->_vars['p_blg_entry']); ?>
<?php endif; ?>


<hr color="<?php Theme::exec()->borderColor(); ?>" noshade="noshade">

<font size="<?php Theme::exec()->fontSize(); ?>">
<a href="<?php e(HTTP_ACTION); ?>member/blog/search/<?php e(US); ?>publish=<?php e($this->_vars['lastHour']); ?>"><img src="<?php e(BASE_URL); ?>resource/img/icons/time.gif" width="16" height="16" alt="&gt;">&nbsp;<?php _e('Last hour'); ?></a><br>
<a href="<?php e(HTTP_ACTION); ?>member/blog/search/<?php e(US); ?>publish=<?php e($this->_vars['lastHours']); ?>"><img src="<?php e(BASE_URL); ?>resource/img/icons/time.gif" width="16" height="16" alt="&gt;">&nbsp;<?php _e('Last 12 hours'); ?></a><br>
<a href="<?php e(HTTP_ACTION); ?>member/blog/search/<?php e(US); ?>publish=<?php e($this->_vars['lastDay']); ?>"><img src="<?php e(BASE_URL); ?>resource/img/icons/date.gif" width="16" height="16" alt="&gt;">&nbsp;<?php _e('Last day'); ?></a><br>
<a href="<?php e(HTTP_ACTION); ?>member/blog/search/<?php e(US); ?>publish=<?php e($this->_vars['pastWeek']); ?>"><img src="<?php e(BASE_URL); ?>resource/img/icons/date.gif" width="16" height="16" alt="&gt;">&nbsp;<?php _e('Past week'); ?></a><br>
<a href="<?php e(HTTP_ACTION); ?>member/blog/search/<?php e(US); ?>publish=<?php e($this->_vars['pastMonth']); ?>"><img src="<?php e(BASE_URL); ?>resource/img/icons/date.gif" width="16" height="16" alt="&gt;">&nbsp;<?php _e('Past month'); ?></a><br></font>

<form method="post" action="<?php e(HTTP_ACTION); ?>member/blog/search/"><?php HTML::requires(); ?>
<table border="0" width="<?php Theme::exec()->mainWidth(); ?>">
	<tr><td bgcolor="<?php Theme::exec()->bgColumnColor(); ?>"><?php _e('Keyword');?>:<br></td></tr>
	<tr><td><input type="text" name="keyword" value="<?php e($this->_vars['r_blg_entry']['keyword']); ?>"><br></td></tr>
	<tr><td bgcolor="<?php Theme::exec()->bgColor(); ?>" align="center"><input type="submit" name="search" value="<?php _e('Search');?>"><br></td></tr>
</table>
</form>
