Beispiel #1
0
// ページング表示
ACSTemplateLib::print_paging_link($this->_tpl_vars['paging_info']);
?>

<table class="layout_table">
<?php 
foreach ($this->_tpl_vars['new_diary_row_array'] as $new_diary_row) {
    echo "<tr>";
    echo "<td width=\"16px\">";
    echo "<img src=\"" . ACS_IMAGE_DIR . 'yaj2.gif' . "\">";
    echo "</td>";
    echo "<td> &nbsp;";
    if ($new_diary_row['is_unread']) {
        echo "<b>";
    }
    echo "<a href=\"{$new_diary_row['diary_comment_url']}\">" . htmlspecialchars(ACSTemplateLib::trim_long_str($new_diary_row['subject'])) . "</a>";
    if ($new_diary_row['is_unread']) {
        echo "</b>";
    }
    echo "&nbsp; ({$new_diary_row['diary_comment_num']}) (" . htmlspecialchars($new_diary_row['community_name']) . ")";
    echo "</td>";
    echo "</tr>\n";
}
if (count($this->_tpl_vars['new_diary_row_array']) == 0) {
    echo "<tr><td>" . ACSMsg::get_msg("User", "NewDiary.tpl.php", 'M002') . "</td></tr>\n";
}
?>
</table>

<?php 
if ($this->_tpl_vars['new_diary_url']) {
	</tr>
	<tr>
		<td align="center" bgcolor="#ffffff">
			<a href="<?php 
    echo $new_open_diary_row['top_page_url'];
    ?>
"><img src="<?php 
    echo $new_open_diary_row['image_url'];
    ?>
" border="0"></a>
			<br>
			<a href="<?php 
    echo $new_open_diary_row['top_page_url'];
    ?>
"><?php 
    echo htmlspecialchars($new_open_diary_row['community_name']);
    ?>
</a>
		</td>
		<td valign="top" bgcolor="#ffffff">
			<?php 
    echo nl2br(ACSLib::sp2nbsp(htmlspecialchars(ACSTemplateLib::trim_long_str($new_open_diary_row['body'], 500))));
    ?>
		</td>
	</tr>
<?php 
}
?>
</table>

Beispiel #3
0
<?php

// $Id: UserRanking.tpl.php,v 1.5 2007/03/14 04:28:19 w-ota Exp $
?>

<div class="ttl"><?php 
echo ACSMsg::get_msg("Public", "UserRanking.tpl.php", 'M001');
?>
</div>
<br>

<table class="common_table" border="0" cellpadding="6" cellspacing="1" bgcolor="#99CC33">
<?php 
foreach ($this->_tpl_vars['ranking_user_info_row_array'] as $ranking_user_info_row) {
    echo "<tr>";
    echo "<td align=\"center\" bgcolor=\"#ffffff\">" . $ranking_user_info_row['rank'] . "</td>";
    echo "<td align=\"center\" bgcolor=\"#ffffff\">";
    echo "<a href=\"" . $ranking_user_info_row['top_page_url'] . "\"><img src=\"" . $ranking_user_info_row['image_url'] . "\" border=\"0\"></a><br>";
    echo "<a href=\"" . $ranking_user_info_row['top_page_url'] . "\">" . htmlspecialchars($ranking_user_info_row['community_name']) . "</a>";
    echo " (" . $ranking_user_info_row['ranking_score'] . "pt)";
    echo "</td>";
    echo "<td valign=\"top\" bgcolor=\"#ffffff\">";
    echo nl2br(htmlspecialchars(ACSTemplateLib::trim_long_str($ranking_user_info_row['contents_row_array']['profile']['contents_value'], 200)));
    echo "</td>";
    echo "</tr>";
}
?>
</table>
Beispiel #4
0
<!-- 表示  -->
<table class="common_table" border="0" cellpadding="6" cellspacing="1" bgcolor="#99CC33" width="660">
<th id="myttl" bgcolor="#DEEEBD"><span class="nowrap"><?php 
echo ACSMsg::get_msg("Community", "BBS.tpl.php", 'M012');
?>
</span></th>
<td bgcolor="#ffffff">
<?php 
// スレッド一覧
$str = '';
foreach ($this->_tpl_vars['bbs_row_array'] as $index => $bbs_row) {
    if ($str != '') {
        $str .= "&nbsp;&nbsp;";
    }
    $str .= "<a href=\"{$bbs_row['bbs_res_url']}\">";
    $str .= htmlspecialchars(ACSTemplateLib::trim_long_str($bbs_row['subject']));
    $str .= "</a>";
    $str .= "({$bbs_row['bbs_res_row_array_num']})";
}
echo $str;
?>
<div align="right">[<a href="<?php 
echo $this->_tpl_vars['bbs_thread_list_url'];
?>
"><?php 
echo ACSMsg::get_msg("Community", "BBS.tpl.php", 'M013');
?>
</a>]</div>
</td></tr></table>
<br>
    <td width="16px"><img src="<?php 
    echo ACS_IMAGE_DIR;
    ?>
yaj2.gif"></td>
    <td>&nbsp;
<?php 
    // コメントURL、日記タイトル
    if ($commented_diary_row['is_unread']) {
        echo "<b>";
    }
    ?>
    <a href="<?php 
    echo $commented_diary_row['diary_comment_url'];
    ?>
"><?php 
    echo htmlspecialchars(ACSTemplateLib::trim_long_str($commented_diary_row['subject']));
    ?>
</a>
<?php 
    // コメント数
    if ($commented_diary_row['is_unread']) {
        echo "</b>";
    }
    ?>
    &nbsp; (<?php 
    echo $commented_diary_row['diary_comment_num'];
    ?>
) (<?php 
    echo htmlspecialchars($commented_diary_row['community_name']);
    ?>
)
<?php

// $Id: NewCommunity.tpl.php,v 1.5 2007/03/14 04:28:19 w-ota Exp $
?>

<div class="ttl"><?php 
echo ACSMsg::get_msg("Public", "NewCommunity.tpl.php", 'M001');
?>
</div>
<br>

<table class="common_table" width="675px" border="0" cellpadding="6" cellspacing="1" bgcolor="#99CC33">
<?php 
foreach ($this->_tpl_vars['new_community_row_array'] as $new_community_row) {
    echo "<tr>";
    // ¼Ì¿¿
    echo "<td align=\"center\" bgcolor=\"#ffffff\">";
    echo "<a href=\"" . $new_community_row['top_page_url'] . "\"><img src=\"" . $new_community_row["image_url"] . "\" border=\"0\"></a><br>";
    echo "<a href=\"" . $new_community_row['top_page_url'] . "\">" . htmlspecialchars($new_community_row['community_name']) . "</a>";
    echo "(" . $new_community_row['community_member_num'] . ")";
    echo "</td>";
    // ³µÍ×
    echo "<td valign=\"top\" bgcolor=\"#ffffff\">" . ACSMsg::get_msg("Public", "NewCommunity.tpl.php", 'M002') . "<br>";
    echo nl2br(htmlspecialchars(ACSTemplateLib::trim_long_str($new_community_row['contents_row_array']['community_profile']['contents_value'], 200)));
    echo "</td>";
    echo "</tr>\n";
}
?>
</table>
    <td width="16px"><img src="<?php 
    echo ACS_IMAGE_DIR . 'file.gif';
    ?>
"></td>
    <td> &nbsp;
<?php 
    if ($new_file_row['is_unread']) {
        echo "<b>";
    }
    ?>
        <a href="<?php 
    echo $new_file_row['file_detail_url'];
    ?>
">
        <?php 
    echo htmlspecialchars(ACSTemplateLib::trim_long_str($new_file_row['display_file_name']));
    ?>
</a>
<?php 
    if ($new_file_row['is_unread']) {
        echo "</b>";
    }
    ?>
    &nbsp; (<?php 
    echo htmlspecialchars($new_file_row['community_name']);
    ?>
)
    </td>
</tr>
<?php 
}
Beispiel #8
0
<table class="layout_table">
<?php 
// ループ開始
foreach ($this->_tpl_vars['new_bbs_row_array'] as $new_bbs_row) {
    ?>
<tr>
    <td width="16px"><img src="<?php 
    echo ACS_IMAGE_DIR;
    ?>
yaj2.gif"></td>
    <td> &nbsp;
<?php 
    if ($new_bbs_row['is_unread']) {
        echo "<b>";
    }
    echo "        <a href=\"" . $new_bbs_row[bbs_res_url] . "\">" . htmlspecialchars(ACSTemplateLib::trim_long_str($new_bbs_row['subject'])) . "</a>";
    if ($new_bbs_row['is_unread']) {
        echo "</b>";
    }
    echo "&nbsp; ({$new_bbs_row['bbs_res_num']}) (" . htmlspecialchars($new_bbs_row['community_name']) . ")";
    ?>
    </td>
</tr>
<?php 
}
// ↑ループ終了
// データが0件の場合
if (count($this->_tpl_vars['new_bbs_row_array']) == 0) {
    echo "<tr><td>" . ACSMsg::get_msg("User", "NewBBS.tpl.php", 'M002') . "</td></tr>\n";
}
?>