OSDN Git Service

add ACS webapp, sql, htdocs
[acs/acs.git] / webapp / modules / Community / templates / FolderDetail.tpl.php
diff --git a/webapp/modules/Community/templates/FolderDetail.tpl.php b/webapp/modules/Community/templates/FolderDetail.tpl.php
new file mode 100644 (file)
index 0000000..43b3b2a
--- /dev/null
@@ -0,0 +1,108 @@
+<?php
+       $title  = '<a href="' . $this->_tpl_vars['target_community_info_row']['top_page_url'] . '">';
+       $title .= htmlspecialchars($this->_tpl_vars['target_community_info_row']['community_name']) . " ".ACSMsg::get_msg("Community", "FolderDetail.tpl.php",'M001');
+       $title .= '</a>';
+?>
+<div class="ttl"><?= $title ?> :: <?= ACSMsg::get_msg("Community", "FolderDetail.tpl.php",'M002') ?> :: <?= ACSMsg::get_msg("Community", "FolderDetail.tpl.php",'M003') ?></div>
+
+<?php
+       // ¥Ñ¥¹¾ðÊó½ÐÎÏ
+       $path = "";
+       foreach ($this->_tpl_vars['path_folder_row_array'] as $path_folder) {
+               if ($path != "") {
+                       $path .= " / ";
+               }
+               $path .= '<a href="' . $path_folder['link_url'] . '">';
+               $path .= htmlspecialchars($path_folder['folder_name']);
+               $path .= '</a>';
+       }
+
+       print "<p>\n";
+       print $path . "\n";
+       print "</p>\n";
+?>
+
+<p>
+<!-- layout_table start //-->
+<table class="layout_table">
+<tr>
+       <td align="right">
+       <?php
+               if ($this->_tpl_vars['menu']['edit_folder_url']) {
+                       print '[<a href="' . $this->_tpl_vars['menu']['edit_folder_url'] . '">'.ACSMsg::get_msg("Community", "FolderDetail.tpl.php",'M004').'</a>]&nbsp;';
+               }
+               if ($this->_tpl_vars['menu']['move_folder_url']) {
+                       print '[<a href="' . $this->_tpl_vars['menu']['move_folder_url'] . '">'.ACSMsg::get_msg("Community", "FolderDetail.tpl.php",'M005').'</a>]&nbsp;';
+               }
+               if ($this->_tpl_vars['menu']['delete_folder_url']) {
+                       print '[<a href="' . $this->_tpl_vars['menu']['delete_folder_url'] . '">'.ACSMsg::get_msg("Community", "FolderDetail.tpl.php",'M006').'</a>]';
+               }
+       ?>
+       </td>
+</tr>
+
+<tr><td>
+<table class="common_table" border="0" cellpadding="6" cellspacing="1" bgcolor="#99CC33">
+<tr>
+       <td id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("Community", "FolderDetail.tpl.php",'M007') ?></td>
+       <td bgcolor="#ffffff"><?= htmlspecialchars($this->_tpl_vars['detail_folder_row']['folder_name']) ?><br></td>
+</tr>
+<tr>
+       <td id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("Community", "FolderDetail.tpl.php",'M008') ?></td>
+       <td bgcolor="#ffffff"><?= htmlspecialchars($this->_tpl_vars['detail_folder_row']['comment']) ?><br></td>
+</tr>
+<tr>
+       <td id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("Community", "FolderDetail.tpl.php",'M009') ?></td>
+       <td bgcolor="#ffffff">
+       <?php
+               // ±ÜÍ÷µö²Ä¥³¥ß¥å¥Ë¥Æ¥£¼èÆÀ
+               $trusted_community_info_array = array();
+               if ($this->_tpl_vars['detail_folder_row']['trusted_community_row_array']) {
+                       foreach ($this->_tpl_vars['detail_folder_row']['trusted_community_row_array'] as $trusted_community_row) {
+                               $trusted_community_name  = "<a href=\"$trusted_community_row[community_top_page_url]\">";
+                               $trusted_community_name .= htmlspecialchars($trusted_community_row['community_name']);
+                               $trusted_community_name .= "</a>";
+                               if (!$trusted_community_name) {
+                                       continue;
+                               }
+
+                               array_push($trusted_community_info_array, $trusted_community_name);
+                       }
+               }
+
+               print htmlspecialchars($this->_tpl_vars['detail_folder_row']['open_level_name']);
+               if (count($trusted_community_info_array) > 0) {
+                       $trusted_community_str = implode(", ", $trusted_community_info_array);
+                       print " ($trusted_community_str)";
+               }
+       ?>
+       <br></td>
+</tr>
+<tr>
+       <td id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("Community", "FolderDetail.tpl.php",'M010') ?></td>
+       <td bgcolor="#ffffff">
+               <a href="<?= $this->_tpl_vars['detail_folder_row']['entry_user_community_link_url'] ?>">
+               <?= $this->_tpl_vars['detail_folder_row']['entry_user_community_name'] ?>
+               </a>
+               (<?= $this->_tpl_vars['detail_folder_row']['entry_date'] ?>)
+       </td>
+</tr>
+<tr>
+       <td id="myttl" bgcolor="#DEEEBD"><?= ACSMsg::get_msg("Community", "FolderDetail.tpl.php",'M011') ?></td>
+       <td bgcolor="#ffffff">
+               <a href="<?= $this->_tpl_vars['detail_folder_row']['update_user_community_link_url'] ?>">
+               <?= $this->_tpl_vars['detail_folder_row']['update_user_community_name'] ?>
+               </a>
+               (<?= $this->_tpl_vars['detail_folder_row']['update_date'] ?>)
+       </td>
+</tr>
+</table>
+
+</td></tr>
+</table>
+<!-- layout_table end //-->
+</p>
+
+<p>
+<a href="<?= $this->_tpl_vars['back_url'] ?>"><?= ACSMsg::get_msg("Community", "FolderDetail.tpl.php",'M012') ?></a>
+</p>