OSDN Git Service

add ACS webapp, sql, htdocs
[acs/acs.git] / webapp / modules / Community / templates / SearchResultBBS.tpl.php
diff --git a/webapp/modules/Community/templates/SearchResultBBS.tpl.php b/webapp/modules/Community/templates/SearchResultBBS.tpl.php
new file mode 100644 (file)
index 0000000..41bbc59
--- /dev/null
@@ -0,0 +1,155 @@
+<?php
+// +----------------------------------------------------------------------+
+// | PHP version 4                                                        |
+// +----------------------------------------------------------------------+
+// | Authors: akitsu 2006/3/13 ver1.0                                     |
+// |·Ç¼¨ÈÄ¡¡¸¡º÷·ë²Ì²èÌÌ                                   ¡¡¡¡ ¡¡¡¡¡¡¡¡¡¡¡¡¡¡ |
+// +----------------------------------------------------------------------+
+// $Id: SearchResultBBS.tpl.php,v 1.11 2007/03/30 05:27:18 w-ota Exp $
+?>
+<script language="JavaScript">
+<!--
+       function fmTurn(){
+       }
+-->
+</script>
+
+<div class="ttl">
+<a href="<?= $this->_tpl_vars['link_page_url']['top_page_url'] ?>"><?= htmlspecialchars($this->_tpl_vars['community_row']['community_name']) ?> <?= ACSMsg::get_msg("Community", "SearchResultBBS.tpl.php",'M001') ?></a>
+ ::  <a href="<?= $this->_tpl_vars['link_page_url']['bbs_page_url'] ?>"><?= ACSMsg::get_msg("Community", "SearchResultBBS.tpl.php",'M002') ?></a> :: <?= ACSMsg::get_msg("Community", "SearchResultBBS.tpl.php",'M003') ?></div>
+
+<br>
+<?php
+       if($this->_tpl_vars['err_str'] != ""){
+               echo "<div class='err_msg'>";
+               echo $this->_tpl_vars['err_str'];
+               echo "</div>";
+       }else{
+?>
+
+<!--  BBS¤Î°ìÍ÷ ·ï̾¤Î¤ß -->
+<table>
+<tr><td>
+<?php
+       echo "<b>".ACSMsg::get_msg("Community", "SearchResultBBS.tpl.php",'M004')."</b><br><br>";
+       echo "<span class=\"result_success\">" . count($this->_tpl_vars['bbs_row_array_result']) .ACSMsg::get_msg("Community", "SearchResultBBS.tpl.php",'M005')."</span><br><br>";
+       // ¥¹¥ì¥Ã¥É°ìÍ÷
+       $str = '';
+       foreach ($this->_tpl_vars['bbs_row_array_result'] as $index => $bbs_row) {
+               if($bbs_row['bbs_delete_flag']=='f'){                   //ºï½ü¥Õ¥é¥°¤Î̵¤¤¤â¤Î¤Î¤ß°ìÍ÷ɽ¼¨¤¹¤ë
+                       if ($str != '') {
+                               $str .= "&nbsp;&nbsp;";
+                       }
+                       $str .= "<a href=\"$bbs_row[bbs_res_url]\">";
+                       $str .= htmlspecialchars($bbs_row['subject']);
+                       $str .= "</a>";
+               }
+       }
+       echo $str;
+?>
+
+</td></tr>
+<!--  BBS¤Î°ìÍ÷ ÅÐÏ¿Æü:¥³¥ß¥å¥Ë¥Æ¥£Ì¾¤ÈËÜʸ¤Î¤ß -->
+<tr><td>
+<table class="common_table" border="0" cellpadding="6" cellspacing="1" bgcolor="#99CC33">
+<?php
+foreach ($this->_tpl_vars['bbs_row_array_result'] as $index => $bbs_row) {
+       echo "<tr>";
+       echo "<td bgcolor=\"#ccffcc\" colspan=\"2\">";
+       echo "<b><a href=\"$bbs_row[bbs_res_url]\">" . htmlspecialchars($bbs_row['subject']) . "</a></b>";
+       echo "&nbsp;&nbsp;&nbsp;";
+       echo $bbs_row['post_date'];
+       echo "<a href=\"$bbs_row[bbs_community_page_url]\">" ."  ::" . htmlspecialchars($bbs_row['bbs_community_name']) . "</a>";
+       echo "</td>";
+       echo "</tr>";
+
+       echo "<tr>";
+       echo "<td align=\"center\" bgcolor=\"#ffffff\">";
+       echo "<a href=\"$bbs_row[top_page_url]\"><img src=\"$bbs_row[image_url]\" border=\"0\"></a><br>";
+       echo "<a href=\"$bbs_row[top_page_url]\">" . htmlspecialchars($bbs_row['community_name']) . "</a>";
+       echo "</td>";
+
+       echo "<td valign=\"top\" bgcolor=\"#ffffff\">";
+       echo nl2br(ACSLib::sp2nbsp(htmlspecialchars($bbs_row['body'])));
+       echo "</td>";
+       echo "</tr>";
+}
+?>
+</table>
+</td></tr></table>
+<?php
+       }
+?>
+
+
+<hr>
+
+<!-- ºÆ¸¡º÷ÍѤΥե©¡¼¥à -->
+<?php
+       // ¥Á¥§¥Ã¥¯¥Ü¥Ã¥¯¥¹¤ÎÆþÎÏÃͤòÉü¸µ¤¹¤ë¤¿¤á¤Î½èÍý
+       // ·ï̾¸¡º÷
+       if ($this->_tpl_vars['form_pre']['search_title']) {
+               $serch_title_checked_str = ' checked';
+       } else {
+               $serch_title_checked_str = '';
+       }
+
+       // Á´Ê¸¸¡º÷
+       if ($this->_tpl_vars['form_pre']['search_all']) {
+               $search_all_checked_str = ' checked';
+       } else {
+               $search_all_checked_str = '';
+       }
+
+       // Á´Æüµ­¤Çõ¤¹
+       if ($this->_tpl_vars['form_pre']['search_all_about']) {
+               $search_all_about_checked_str = ' checked';
+       } else {
+               $search_all_about_checked_str = '';
+       }
+?>
+<br>
+<span class="sub_title"><?= ACSMsg::get_msg("Community", "SearchResultBBS.tpl.php",'M006') ?></span>
+
+<form name="search_form_default" action="<?= $this->_tpl_vars['link_page_url']['search_bbs_url'] ?>" method="get" enctype="multipart/form-data">
+       <input type="hidden" name="module" value="<?= $this->_tpl_vars['module'] ?>">
+       <input type="hidden" name="action" value="<?= $this->_tpl_vars['action'] ?>">
+       <input type="hidden" name="community_id" value="<?= $this->_tpl_vars['community_id'] ?>">
+       <input type="hidden" name="move_id" value="<?= $this->_tpl_vars['move_id'] ?>">
+<table border="0" cellpadding="10" cellspacing="1" bgcolor="#555555">
+ <tr>
+  <td bgcolor="#FFF5AA">
+<!--¥­¡¼¥ï¡¼¥É -->
+       <input type="text" name="q_text" value="<?=$this->_tpl_vars['form_pre']['q_text'] ?>" size="30" style="ime-mode: active;">
+<!--¸¡º÷Âоݠ-->
+       <input type="checkbox" name="search_title" value="title_in_serch"<?= $serch_title_checked_str ?>><?= ACSMsg::get_msg("Community", "SearchResultBBS.tpl.php",'M007') ?>&nbsp;
+       <input type="checkbox" name="search_all" value="subject_in_serch"<?= $search_all_checked_str ?>><?= ACSMsg::get_msg("Community", "SearchResultBBS.tpl.php",'M008') ?>&nbsp;&nbsp;
+<!--¸ø³«ÈÏ°Ï -->
+<?= ACSMsg::get_msg("Community", "SearchResultBBS.tpl.php",'M009') ?>&nbsp;
+<?php
+       // ¸ø³«ÈÏ°Ï
+       // ÁªÂò¾õÂÖ¤ò¥»¥Ã¥È¤¹¤ë
+       unset($selected);
+       $selected[$this->_tpl_vars['form_pre']['open_level_code']] = ' selected';
+
+       echo "<select name=\"open_level_code\">\n";
+       // µ¬Äê¤Î¥×¥ë¥À¥¦¥ó
+               echo "<option value=\"00\"" .$selected['00']. ">";
+               echo htmlspecialchars(ACSMsg::get_msg("Community", "SearchResultBBS.tpl.php",'M010')) . "\n";
+       // ¥×¥ë¥À¥¦¥ó¥á¥Ë¥å¡¼É½¼¨
+       foreach ($this->_tpl_vars['open_level_master_row_array'] as $open_level_master_row) {
+               echo "<option value=\"$open_level_master_row[open_level_code]\"{$selected[$open_level_master_row['open_level_code']]}>";
+               echo htmlspecialchars($open_level_master_row['open_level_name']) . "\n";
+       }
+       echo "</select>\n";
+?>
+       &nbsp;&nbsp;
+       <input type="submit" name="search" value="<?= ACSMsg::get_msg("Community", "SearchResultBBS.tpl.php",'M003') ?>"><br>
+<!--   Âоݤò¹­¤²¤ë -->
+       <input type="checkbox" name ="search_all_about" value="all_in_serch" onChange="fmTurn()"<?= $search_all_about_checked_str ?>><?= ACSMsg::get_msg("Community", "SearchResultBBS.tpl.php",'M012') ?>
+  </td>
+ </tr>
+</table>
+</form>
+
+