[Fusionforge-commits] r11195 - in trunk/src: common/docman common/docman/templates common/docman/views www/docman

Franck VILLAUME nerville at libremir.placard.fr.eu.org
Tue Oct 26 17:16:25 CEST 2010


Author: nerville
Date: 2010-10-26 17:16:25 +0200 (Tue, 26 Oct 2010)
New Revision: 11195

Added:
   trunk/src/common/docman/templates/
   trunk/src/common/docman/templates/search.tpl.html
Removed:
   trunk/src/www/docman/search.tpl.html
Modified:
   trunk/src/common/docman/views/search.php
Log:
template page belong to templates dir

Copied: trunk/src/common/docman/templates/search.tpl.html (from rev 11193, trunk/src/www/docman/search.tpl.html)
===================================================================
--- trunk/src/common/docman/templates/search.tpl.html	                        (rev 0)
+++ trunk/src/common/docman/templates/search.tpl.html	2010-10-26 15:16:25 UTC (rev 11195)
@@ -0,0 +1,42 @@
+<!--VTP_MAIN-->
+<div class="docmanDivIncluded">
+<!--VTP_FORMSEARCH-->
+<form action="?group_id={#GROUP_ID}&view=search" method="POST">
+<input type="hidden" name="cmd" value="search" />
+<table width="98%" cellpadding="2" cellspacing="0" border="0">
+<tr>
+	<td>
+		<b>{#TITLE}</b>
+		<input type="text" name="textsearch" id="textsearch" size="48" value='{#TEXTSEARCH}' />
+		<input type="submit" value="{#SUBMIT_PROMPT}" />
+	</td>
+</tr>
+<tr>
+	<td>
+		<input type="radio" name="search_type" value="all" {#ALLCHECKED} /> {#SEARCH_ALL_WORDS}
+		<input type="radio" name="search_type" value="one" {#ONECHECKED} /> {#SEARCH_ONE_WORD}
+	</td>
+</tr>
+</table>
+</form>
+<!--/VTP_FORMSEARCH-->
+<!--VTP_RESULTSEARCH-->
+<table width="98%" cellpadding="0" cellspacing="0" border="0">
+<!--VTP_RESULT-->
+<tr><td width="20px" align="right"><b>{#N}.</b></td><td><a href="/docman/view.php/{#GROUP_ID}/{#DOC_ID}/{#FILE_NAME}"><b>{#SEARCHTITLE}</b></a></td></tr>
+<tr><td colspan="2">{#SEARCHCOMMENT}</td></tr>
+<tr><td colspan="2"><b>{#STATE}</b>&nbsp;&nbsp;<i>{#SEARCHPATH}</i></td></tr>
+<tr><td colspan="2">&nbsp;</td></tr>
+<!--/VTP_RESULT-->
+</table>
+<!--/VTP_RESULTSEARCH-->
+
+
+<!--VTP_MESSAGE-->
+<table width="98%" cellpadding="2" cellspacing="0" border="0">
+<tr><td><b>{#TITLE}</b></td></tr>
+<tr><td style="color:#9A0202">{#TEXT}</td></tr>
+</table>
+<!--/VTP_MESSAGE-->
+</div>
+<!--/VTP_MAIN-->

Modified: trunk/src/common/docman/views/search.php
===================================================================
--- trunk/src/common/docman/views/search.php	2010-10-26 15:02:54 UTC (rev 11194)
+++ trunk/src/common/docman/views/search.php	2010-10-26 15:16:25 UTC (rev 11195)
@@ -30,7 +30,12 @@
 $is_editor = forge_check_perm ('docman', $g->getID(), 'admin') ;
 
 $vtp = new VTemplate;
-$handle = $vtp->Open("search.tpl.html");
+if (empty($gfcommon)) {
+        $templates_dir = '../../common';
+} else {
+        $templates_dir = $gfcommon;
+}
+$handle = $vtp->Open($templates_dir."/docman/templates/search.tpl.html");
 $vtp->NewSession($handle,"MAIN");
 
 $allchecked = ""; $onechecked = ""; 

Deleted: trunk/src/www/docman/search.tpl.html
===================================================================
--- trunk/src/www/docman/search.tpl.html	2010-10-26 15:02:54 UTC (rev 11194)
+++ trunk/src/www/docman/search.tpl.html	2010-10-26 15:16:25 UTC (rev 11195)
@@ -1,42 +0,0 @@
-<!--VTP_MAIN-->
-<div class="docmanDivIncluded">
-<!--VTP_FORMSEARCH-->
-<form action="?group_id={#GROUP_ID}&view=search" method="POST">
-<input type="hidden" name="cmd" value="search" />
-<table width="98%" cellpadding="2" cellspacing="0" border="0">
-<tr>
-	<td>
-		<b>{#TITLE}</b>
-		<input type="text" name="textsearch" id="textsearch" size="48" value='{#TEXTSEARCH}' />
-		<input type="submit" value="{#SUBMIT_PROMPT}" />
-	</td>
-</tr>
-<tr>
-	<td>
-		<input type="radio" name="search_type" value="all" {#ALLCHECKED} /> {#SEARCH_ALL_WORDS}
-		<input type="radio" name="search_type" value="one" {#ONECHECKED} /> {#SEARCH_ONE_WORD}
-	</td>
-</tr>
-</table>
-</form>
-<!--/VTP_FORMSEARCH-->
-<!--VTP_RESULTSEARCH-->
-<table width="98%" cellpadding="0" cellspacing="0" border="0">
-<!--VTP_RESULT-->
-<tr><td width="20px" align="right"><b>{#N}.</b></td><td><a href="/docman/view.php/{#GROUP_ID}/{#DOC_ID}/{#FILE_NAME}"><b>{#SEARCHTITLE}</b></a></td></tr>
-<tr><td colspan="2">{#SEARCHCOMMENT}</td></tr>
-<tr><td colspan="2"><b>{#STATE}</b>&nbsp;&nbsp;<i>{#SEARCHPATH}</i></td></tr>
-<tr><td colspan="2">&nbsp;</td></tr>
-<!--/VTP_RESULT-->
-</table>
-<!--/VTP_RESULTSEARCH-->
-
-
-<!--VTP_MESSAGE-->
-<table width="98%" cellpadding="2" cellspacing="0" border="0">
-<tr><td><b>{#TITLE}</b></td></tr>
-<tr><td style="color:#9A0202">{#TEXT}</td></tr>
-</table>
-<!--/VTP_MESSAGE-->
-</div>
-<!--/VTP_MAIN-->




More information about the Fusionforge-commits mailing list