* Unified configuration system, now using standard *.ini files (Roland
Mas)
* Reorganised, modular Apache configuration (Roland Mas)
+* New User Widget : documents monitoring (Capgemini)
FusionForge-5.0.2:
* Maintenance release, bugfixes mostly.
* Copyright 2002-2003, Tim Perdue/GForge, LLC
* Copyright 2009, Roland Mas
* Copyright 2010, Franck Villaume - Capgemini
+ * http://fusionforge.org
*
* This file is part of FusionForge.
*
$kwords,
$user_id));
if (!$result) {
- $this->setError(_('Error Adding Document: ').db_error().$result);
+ $this->setError(_('Error Adding Document:').' '.db_error().$result);
db_rollback();
return false;
}
array(base64_encode($data),
$docid));
if (!$result) {
- $this->setError(_('Error Adding Document: ').db_error().$result);
+ $this->setError(_('Error Adding Document:').' '.db_error().$result);
db_rollback();
return false;
}
$BCC .= $this->getMonitoredUserEmailAddress();
}
if (strlen($BCC) > 0) {
- $subject = '['.$this->Group->getPublicName().'] New document - '.$this->getName();
- $body = "Project: ".$this->Group->getPublicName()."\n";
- $body .= "Group: ".$groupname."\n";
- $body .= "Document title: ".$this->getName()."\n";
- $body .= "Document description: ".util_unconvert_htmlspecialchars( $this->getDescription() )."\n";
- $body .= "Submitter: ".$this->getCreatorRealName()." (".$this->getCreatorUserName().") \n";
- $body .= "\n\n-------------------------------------------------------".
- "\nFor more info, visit:".
- "\n\n" . util_make_url('/docman/index.php?group_id='.$this->Group->getID());
+ if ($new) {
+ $status = _('New document');
+ } else {
+ $status = _('Updated document');
+ }
+ $subject = '['.$this->Group->getPublicName().'] '.$status.' - '.$this->getName();
+ $body = _('Project:').' '.$this->Group->getPublicName()."\n";
+ $body .= _('Directory:').' '.$this->getDocGroupName()."\n";
+ $body .= _('Document title:').' '.$this->getName()."\n";
+ $body .= _('Document description:').' '.util_unconvert_htmlspecialchars( $this->getDescription() )."\n";
+ $body .= _('Submitter:').' '.$this->getCreatorRealName()." (".$this->getCreatorUserName().") \n";
+ $body .= "\n\n-------------------------------------------------------\n".
+ _('For more info, visit:').
+ "\n\n" . util_make_url('/docman/?group_id='.$this->Group->getID().'&view=listfile&dirid='.$this->getDocGroupID());
util_send_message('',$subject,$body,'',$BCC);
}
$result = db_query_params ('DELETE FROM doc_data WHERE docid=$1',
array ($this->getID())) ;
if (!$result) {
- $this->setError(_('Error Deleting Document: ').db_error());
+ $this->setError(_('Error Deleting Document:').' '.db_error());
db_rollback();
return false;
}
* Copyright 2000, Quentin Cregan/Sourceforge
* Copyright 2002-2003, Tim Perdue/GForge, LLC
* Copyright 2009, Roland Mas
+ * http://fusionforge.org
*
* This file is part of FusionForge.
*
* Copyright 2000, Quentin Cregan/Sourceforge
* Copyright 2002, Tim Perdue/GForge, LLC
* Copyright 2009, Roland Mas
+ * Copyright 2010, Franck Villaume - Capgemini
+ * http://fusionforge.org
*
* This file is part of FusionForge.
*
//was Group legit?
if (!$Group || !is_object($Group)) {
- $this->setError(_('DocumentGroup: No Valid Group'));
+ $this->setError(_('Document Directory: No Valid Project'));
return false;
}
//did Group have an error?
if ($Group->isError()) {
- $this->setError('DocumentGroup: '.$Group->getErrorMessage());
+ $this->setError(_('Document Directory:').' '.$Group->getErrorMessage());
return false;
}
$this->Group =& $Group;
array ($parent_doc_group,
$this->Group->getID())) ;
if (!$res || db_numrows($res) < 1) {
- $this->setError(_('DocumentGroup: Invalid DocumentGroup parent ID'));
+ $this->setError(_('DocumentGroup: Invalid Document Directory parent ID'));
return false;
}
} else {
if ($result && db_affected_rows($result) > 0) {
$this->clearError();
} else {
- $this->setError(_('DocumentGroup::create() Error Adding Group: ').db_error());
+ $this->setError(_('DocumentGroup::create() Error Adding Directory:').' '.db_error());
return false;
}
$res = db_query_params ('SELECT * FROM doc_groups WHERE doc_group=$1',
array ($id)) ;
if (!$res || db_numrows($res) < 1) {
- $this->setError(_('DocumentGroup: Invalid DocumentGroup ID'));
+ $this->setError(_('DocumentGroup: Invalid Document Directory ID'));
return false;
}
$this->data_array = db_fetch_array($res);
array ($parent_doc_group,
$this->Group->getID())) ;
if (!$res || db_numrows($res) < 1) {
- $this->setError(_('DocumentGroup: Invalid DocumentGroup parent ID'));
+ $this->setError(_('DocumentGroup: Invalid Document Directory parent ID'));
return false;
}
} else {
$parent_doc_group,
$this->Group->getID()));
if ($res && db_numrows($res) > 0) {
- $this->setError(_("Group name already exists"));
+ $this->setError(_('Directory name already exists'));
return false;
}
if ($result && db_affected_rows($result) > 0) {
return true;
} else {
- $this->setOnUpdateError(_('DocumentGroup: ').db_error());
+ $this->setOnUpdateError(_('DocumentGroup:').' '.db_error());
return false;
}
}
array ($stateid,$this->getID(),$this->Group->getID()));
if (!$res || db_affected_rows($res) < 1) {
- $this->setOnUpdateError(_('DocumentGroup :').db_error());
+ $this->setOnUpdateError(_('DocumentGroup:').' '.db_error());
return false;
}
return true;
* Copyright 2002-2003, Tim Perdue/GForge, LLC
* Copyright 2009, Roland Mas
* Copyright 2010, Franck Villaume - Capgemini
+ * http://fusionforge.org
*
* This file is part of FusionForge.
*
*/
require_once $gfcommon.'include/Error.class.php';
-require_once $gfcommon.'forum/ForumMessage.class.php';
class DocumentGroupFactory extends Error {
/**
$this->Error();
if (!$Group || !is_object($Group)) {
- $this->setError(_("DocumentGroupFactory:: Invalid Group"));
+ $this->setError(_("DocumentGroupFactory:: Invalid Project"));
return false;
}
if ($Group->isError()) {
- $this->setError('DocumentGroupFactory:: '.$Group->getErrorMessage());
+ $this->setError('DocumentGroupFactory::'.' '.$Group->getErrorMessage());
return false;
}
$this->Group =& $Group;
$rows = db_numrows($result);
if (!$result) {
- $this->setError(_('No DocumentGroup Found ').db_error());
+ $this->setError(_('No Document Directory Found').' '.db_error());
return false;
} else {
while ($arr = db_fetch_array($result)) {
$rows = db_numrows($result);
if (!$result || $rows < 1) {
- $this->setError(_('No DocumentGroup Found ').db_error());
+ $this->setError(_('No Document Directory Found').' '.db_error());
return false;
} else {
while ($arr = db_fetch_array($result)) {
*
* Copyright 2005, Fabio Bertagnin
* Copyright 2009-2010, Franck Villaume - Capgemini
+ * http://fusionforge.org
*
* This file is part of FusionForge.
*
<?php
-
/**
* FusionForge Documentation Manager
*
* Copyright 2000, Quentin Cregan/Sourceforge
* Copyright 2002-2003, Tim Perdue/GForge, LLC
* Copyright 2010, Franck Villaume - Capgemini
+ * http://fusionforge.org
*
* This file is part of FusionForge.
*
if (!$doc_group || $doc_group == 100) {
//cannot add a doc unless an appropriate group is provided
- $return_msg= _('No valid Document Group was selected.');
+ $return_msg= _('No valid Document Directory was selected.');
session_redirect('/docman/?group_id='.$group_id.'&error_msg='.urlencode($return_msg));
}
<?php
-
/**
* FusionForge Documentation Manager
*
* Copyright 2000, Quentin Cregan/Sourceforge
* Copyright 2002-2003, Tim Perdue/GForge, LLC
* Copyright 2010, Franck Villaume - Capgemini
+ * http://fusionforge.org
*
* This file is part of FusionForge.
*
session_redirect('/docman/?group_id='.$group_id.'&error_msg='.urlencode($dg->getErrorMessage()));
if ($dirid) {
- $return_msg = _('Document Sub Group successfully created');
+ $return_msg = _('Document Sub Directory successfully created');
session_redirect('/docman/?group_id='.$group_id.'&view=listfile&dirid='.$dirid.'&feedback='.urlencode($return_msg));
} else {
- $return_msg = _('Document Group successfully created');
+ $return_msg = _('Document Directory successfully created');
session_redirect('/docman/?group_id='.$group_id.'&view=listfile&dirid='.$dg->getID().'&feedback='.urlencode($return_msg));
}
}
<?php
-
/**
* FusionForge Documentation Manager
*
* Copyright 2000, Quentin Cregan/Sourceforge
* Copyright 2002-2003, Tim Perdue/GForge, LLC
* Copyright 2010, Franck Villaume - Capgemini
+ * http://fusionforge.org
*
* This file is part of FusionForge.
*
global $group_id; // id of group
if (!forge_check_perm('docman', $group_id, 'approve')) {
- $return_msg = _('Document Action Denied');
+ $return_msg = _('Docman Action Denied');
session_redirect('/docman/?group_id='.$group_id.'&view=listfile&dirid='.$dirid.'&warning_msg='.urlencode($return_msg));
} else {
if (!$dg->delete($dirid,$group_id))
session_redirect('/docman/?group_id='.$group_id.'&view=listfile&dirid='.$dirid.'&error_msg='.urlencode($dg->getErrorMessage()));
- $return_msg = _('Document Group deleted successfully');
+ $return_msg = _('Document Directory deleted successfully');
session_redirect('/docman/?group_id='.$group_id.'&feedback='.urlencode($return_msg));
}
?>
<?php
-
/**
* FusionForge Documentation Manager
*
if (!$dg->update($groupname,$parent_dirid))
session_redirect('/docman/?group_id='.$group_id.'&view=listfile&dirid='.$dirid.'&error_msg='.urlencode($dg->getErrorMessage()));
-$return_msg = _('Document Group Updated successfully');
+$return_msg = _('Document Directory Updated successfully');
session_redirect('/docman/?group_id='.$group_id.'&view=listfile&dirid='.$dirid.'&feedback='.urlencode($return_msg));
?>
<?php
-
/**
* FusionForge Documentation Manager
*
<?php
-
/**
* FusionForge Documentation Manager
*
* Copyright 2010, Franck Villaume - Capgemini
+ * http://fusionforge.org
*
* This file is part of FusionForge.
*
global $group_id; // id of group
if (!forge_check_perm ('docman', $group_id, 'admin')) {
- $return_msg = _('Document Action Denied');
+ $return_msg = _('Docman Action Denied');
session_redirect('/docman/?group_id='.$group_id.'&view=listfile&dirid='.$dirid.'&warning_msg='.urlencode($return_msg));
} else {
<?php
-
/**
* FusionForge Documentation Manager
*
* Copyright 2010, Franck Villaume - Capgemini
+ * http://fusionforge.org
*
* This file is part of FusionForge.
*
global $LUSER; // User object
if (!forge_check_perm ('docman', $group_id, 'approve')) {
- $return_msg = _('Document Action Denied');
+ $return_msg = _('Docman Action Denied');
session_redirect('/docman/?group_id='.$group_id.'&view=listfile&dirid='.$dirid.'&warning_msg='.urlencode($return_msg));
} else {
global $LUSER; // User object
if (!forge_check_perm ('docman', $group_id, 'approve')) {
- $return_msg = _('Document Action Denied');
+ $return_msg = _('Docman Action Denied');
session_redirect('/docman/?group_id='.$group_id.'&view=listfile&dirid='.$dirid.'&warning_msg='.urlencode($return_msg));
} else {
<?php
-
/**
* FusionForge Documentation Manager
*
global $group_id; // id of group
if (!forge_check_perm ('docman', $group_id, 'approve')) {
- $return_msg = _('Document Action Denied');
+ $return_msg = _('Docman Action Denied');
session_redirect('/docman/?group_id='.$group_id.'&view=listfile&dirid='.$dirid.'&warning_msg='.urlencode($return_msg));
} else {
<?php
-
/**
* FusionForge Documentation Manager
*
global $LUSER; // User object
if (!forge_check_perm ('docman', $group_id, 'approve')) {
- $return_msg = _('Document Action Denied');
+ $return_msg = _('Docman Action Denied');
session_redirect('/docman/?group_id='.$group_id.'&view=listfile&dirid='.$dirid.'&warning_msg='.urlencode($return_msg));
} else {
<?php
-
/**
* FusionForge Documentation Manager
*
* Copyright 2000, Quentin Cregan/Sourceforge
* Copyright 2002-2003, Tim Perdue/GForge, LLC
* Copyright 2010, Franck Villaume - Capgemini
+ * http://fusionforge.org
*
* This file is part of FusionForge.
*
/* Get the document groups info */
$trashnested_groups =& $dgf->getNested();
$trashnested_docs=array();
- /* put the doc objects into an array keyed off the docgroup */
+ /* put the doc objects into an array keyed of the docgroup */
foreach ($d_arr as $doc) {
$trashnested_docs[$doc->getDocGroupID()][] = $doc;
}
$dg = new DocumentGroup($g,$dirid);
$dg->setStateID('2');
- $return_msg = _('Document Group moved to trash successfully');
+ $return_msg = _('Document Directory moved to trash successfully');
session_redirect('/docman/?group_id='.$group_id.'&feedback='.urlencode($return_msg));
}
?>
<?php
-
/**
* FusionForge Documentation Manager
*
* Copyright 2000, Quentin Cregan/Sourceforge
* Copyright 2002-2003, Tim Perdue/GForge, LLC
* Copyright 2010, Franck Villaume - Capgemini
+ * http://fusionforge.org
*
* This file is part of FusionForge.
*
global $group_id; // id of group
if (!forge_check_perm ('docman', $group_id, 'approve')) {
- $return_msg = _('Document Action Denied');
+ $return_msg = _('Docman Action Denied');
session_redirect('/docman/?group_id='.$group_id.'&view=listfile&dirid='.$dirid.'&warning_msg='.urlencode($return_msg));
} else {
<?php
-
/**
* FusionForge Documentation Manager
*
* Copyright 2010, Franck Villaume - Capgemini
+ * http://fusionforge.org
*
* This file is part of FusionForge.
*
<?php
-
/**
* FusionForge Documentation Manager
*
* Copyright 2010, Franck Villaume - Capgemini
+ * http://fusionforge.org
*
* This file is part of FusionForge.
*
* FusionForge Documentation Manager
*
* Copyright 2010, Franck Villaume - Capgemini
+ * http://fusionforge.org
*
* This file is part of FusionForge.
*
* FusionForge document search engine
*
* Copyright 2005, Fabio Bertagnin
+ * http://fusionforge.org
*
* This file is part of FusionForge.
*
*
* Copyright 2005, Fabio Bertagnin
* Copyright 2009-2010, Franck Villaume
+ * http://fusionforge.org
*
* This file is part of FusionForge.
*
#
# Copyright 2005, Fabio Bertagnin
# Copyright 2009-2010, Franck Villaume
+# http://fusionforge.org
#
# This file is part of FusionForge.
#
* FusionForge document search engine
*
* Copyright 2010, Franck Villaume
+ * http://fusionforge.org
*
* This file is part of FusionForge.
*
*
* Copyright 2005, Fabio Bertagnin
* Copyright 2009-2010, Franck Villaume
+ * http://fusionforge.org
*
* This file is part of FusionForge.
*
* FusionForge document search engine
*
* Copyright 2005, Fabio Bertagnin
+ * http://fusionforge.org
*
* This file is part of FusionForge.
*
*
* Copyright 2005, Fabio Bertagnin
* Copyright 2009-2010, Franck Villaume
+ * http://fusionforge.org
*
* This file is part of FusionForge.
*
$this->Error();
if (!$Group || !is_object($Group)) {
- $this->setError("DocumentGroupHTML:: Invalid Group");
+ $this->setError(_('DocumentGroupHTML:: Invalid Project'));
return false;
}
if ($Group->isError()) {
}
$this->Group =& $Group;
-
return true;
}
/**
- * showTableNestedGroups - Display the tree of document groups
- *
- * This is a recursive function that is used to display the tree
- *
- * @param array Array of groups. This array contains information about the groups and their childs.
- * @param int The number of row that is currently being showed. It is used for formatting purposes
- * @param int The ID of the parent whose childs are being showed (0 for root groups)
- * @param int The current level
- */
- function showTableNestedGroups (&$group_arr, &$rowno, $parent=0, $level=0) {
- // No childs to display
- if (!is_array($group_arr) || !array_key_exists("$parent", $group_arr)) return;
-
- $child_count = count($group_arr["$parent"]);
- for ($i = 0; $i < $child_count; $i++) {
- $rowno++;
- $doc_group =& $group_arr["$parent"][$i];
-
- $margin = str_repeat(" ", $level);
-
- $img = "cfolder15.png";
-/*
- // Display the folder icon opened or closed?
- if (array_key_exists("".$doc_group->getID(),$group_arr)) $img = "ofolder15.png";
- else $img = "cfolder15.png";
-*/
-
- echo '<tr '. $GLOBALS['HTML']->boxGetAltRowStyle($rowno) .'>'.
- '<td>'.$doc_group->getID().'</td>'.
- '<td>'.$margin.html_image('ic/'.$img,"15","13",array("border"=>"0")).' '.
- '<a href="index.php?editgroup=1&doc_group='.
- $doc_group->getID().'&group_id='.$doc_group->Group->getID().'">'.
- $doc_group->getName().'</a></td>'.
- '<td><a href="index.php?deletegroup=1&doc_group='.$doc_group->getID().'&group_id='.$doc_group->Group->getID().'">'.
- '<img src="/images/ic/trash.png"/></a></td></tr>';
- // Show childs (if any)
- $this->showTableNestedGroups($group_arr, $rowno, $doc_group->getID(), $level+1);
- }
- }
-
- /**
* showSelectNestedGroups - Display the tree of document groups inside a <select> tag
*
* @param array Array of groups.
<?php
-
/**
* FusionForge Documentation Manager
*
* Copyright 2000, Quentin Cregan/SourceForge
* Copyright 2002-2004, GForge Team
* Copyright 2010, Franck Villaume - Capgemini
+ * http://fusionforge.org
*
* This file is part of FusionForge.
*
?>
<div class="docmanDivIncluded">
-<p>
-<?php echo _("<strong>Document Title</strong>: Refers to the relatively brief title of the document (e.g. How to use the download server)<br /><strong>Description:</strong> A brief description to be placed just under the title.") ?>
+<p><strong>
+<?php echo _('Document Title:') ?>
+</strong>
+<?php echo _(' Refers to the relatively brief title of the document (e.g. How to use the download server).') ?>
+</p><p><strong>
+<?php echo _('Description:') ?>
+</strong>
+<?php echo _(' A brief description to be placed just under the title.') ?>
</p>
<?php
if ($g->useDocmanSearch())
</tr>';
}
}
-
?>
-
<tr>
<td style="text-align:right;">
- <strong><?php echo _('Group that document belongs in') ?></strong>
+ <strong><?php echo _('Directory that document belongs in') ?></strong>
</td>
<td>
<?php $dgh->showSelectNestedGroups($dgf->getNested(), 'doc_group', false, $document->getDocGroupID()); ?>
</td>
</tr>
-
<tr>
<td style="text-align:right;">
<strong><?php echo _('State') ?></strong>
<input type="submit" id="submiteditdata<?php echo $document->getID(); ?>" value="<?php echo _('Submit Edit') ?>" /><br /><br />
</form>
</div>
-
<?php
}
?>
<?php
-
/**
* FusionForge Documentation Manager
*
</script>
<?php
echo '<div class="docmanDivIncluded">';
- echo '<p>'. _('<strong>Document Title</strong>: Refers to the relatively brief title of the document (e.g. How to use the download server)<br /><strong>Description:</strong> A brief description to be placed just under the title<br />') .'</p>';
+ echo '<p><strong>'. _('Document Title:') .'</strong> '. _('Refers to the relatively brief title of the document (e.g. How to use the download server).'). '</p>';
+ echo '<p><strong>'. _('Description:') .'</strong> '. _('A brief description to be placed just under the title.') .'</p>';
if ($g->useDocmanSearch())
echo '<p>'. _('Both fields are used by document search engine.'). '</p>';
<?php
-
/**
* FusionForge Documentation Manager
*
echo '<div class="docmanDivIncluded" >';
echo '<form id="addsubgroup" name="addsubgroup" method="post" action="?group_id='.$group_id.'&action=addsubdocgroup&dirid='.$dirid.'">';
if ($dirid) {
- echo _('Name of the document subgroup to create : ');
+ echo _('Name of the document subdirectory to create:'). ' ';
} else {
- echo _('Name of the document group to create : ');
+ echo _('Name of the document directory to create:'). ' ';
}
echo '<input type="text" name="groupname" size="40" maxlength="255" >';
-echo '<input id="submitaddsubgroup" type="button" value="create" onclick="javascript:doItAddSubGroup()" />';
+echo '<input id="submitaddsubgroup" type="button" value="'. _('Create') .'" onclick="javascript:doItAddSubGroup()" />';
echo '</form>';
echo '</div>';
?>
global $g; //group object
global $group_id; // id of the group
global $dirid; // id of doc_group
-global $dgf; // document group factory of this group
-global $dgh; // document group html
+global $dgf; // document directory factory of this group
+global $dgh; // document directory html
if (forge_check_perm ('docman', $group_id, 'approve')) {
$dg = new DocumentGroup($g,$dirid);
<?php
-
/**
* FusionForge Documentation Manager
*
global $g; //group object
global $group_id; // id of the group
global $dirid; // id of doc_group
-global $dgf; // document group factory of this group
-global $dgh; // document group html
+global $dgf; // document directory factory of this group
+global $dgh; // document directory html
global $nested_docs; // flat docs array
foreach ($nested_docs[$dirid] as $d) {
</script>
<div id="editfile<?php echo $d->getID(); ?>" style="display:none" class="docman_div_include">
<p>
-<?php echo _("<strong>Document Title</strong>: Refers to the relatively brief title of the document (e.g. How to use the download server)<br /><strong>Description:</strong> A brief description to be placed just under the title.") ?>
+<strong>
+<?php echo _('Document Title:') ?>
+</strong>
+<?php echo _('Refers to the relatively brief title of the document (e.g. How to use the download server).') ?>
+<p><strong>
+<?php echo _('Description:') ?>
+</strong>
+<?php echo _('A brief description to be placed just under the title.') ?>
</p>
<?php
if ($g->useDocmanSearch())
<table border="0">
<tr>
<td>
- <strong><?php echo _('Document Title') ?>: </strong><?php echo utils_requiredField(); ?> <?php printf(_('(at least %1$s characters)'), 5) ?><br />
+ <strong><?php echo _('Document Title:') ?> </strong><?php echo utils_requiredField(); ?> <?php printf(_('(at least %1$s characters)'), 5) ?><br />
<input type="text" name="title" size="40" maxlength="255" value="<?php echo $d->getName(); ?>" />
<br />
</td>
<tr>
<td>
- <strong><?php echo _('Description') ?></strong><?php echo utils_requiredField(); ?> <?php printf(_('(at least %1$s characters)'), 10) ?><br />
+ <strong><?php echo _('Description:') ?> </strong><?php echo utils_requiredField(); ?> <?php printf(_('(at least %1$s characters)'), 10) ?><br />
<input type="text" name="description" size="50" maxlength="255" value="<?php echo $d->getDescription(); ?>" />
<br /></td>
</tr>
}
}
?>
-
<tr>
<td>
- <strong><?php echo _('Group that document belongs in') ?></strong><br />
+ <strong><?php echo _('Directory that document belongs in') ?></strong><br />
<?php
$dgh->showSelectNestedGroups($dgf->getNested(), 'doc_group', false, $d->getDocGroupID());
?></td>
</tr>
-
<tr>
<td>
<br /><strong><?php echo _('State') ?>:</strong><br />
</td>
</tr>
</table>
-
<input type="hidden" name="docid" value="<?php echo $d->getID(); ?>" />
<input type="button" id="submiteditdata<?php echo $d->getID(); ?>" value="<?php echo _('Submit Edit') ?>" onclick="javascript:doItEditData<?php echo $d->getID(); ?>()" /><br /><br />
</form>
</div>
-
<?php
}
?>
<?php
-
/**
* FusionForge Documentation Manager
*
- * Copyright 2000, Quentin Cregan/Sourceforge
- * Copyright 2002-2003, Tim Perdue/GForge, LLC
* Copyright 2010, Franck Villaume - Capgemini
+ * http://fusionforge.org
*
* This file is part of FusionForge.
*
*/
echo '<div class="docmanDivIncluded">';
+plugin_hook ("blocks", "doc help");
if ($g->useWebdav()) {
- echo '<p>'. _('Documents parsing is also available thru webdav').'</p>';
- echo '<p>' . util_make_link('/docman/view.php/'.$group_id.'/webdav',_('Direct Webdav URL')) . '</p>';
+ echo '<p>'. _('Documents parsing is also available thru webdav') .'</p>';
+ echo '<p>'. util_make_link('/docman/view.php/'.$group_id.'/webdav',_('Direct Webdav URL')) .'</p>';
}
echo '</div>';
?>
<?php
-
/**
* FusionForge Documentation Manager
*
if (forge_check_perm ('docman', $group_id, 'approve')) {
echo '<a href="#" id="docman-editdirectory" title="'._('Edit this directory').'">'. html_image('docman/configure-directory.png',22,22,array('alt'=>'edit')). '</a>';
echo '<a href="#" id="docman-addsubdirectory" title="'._('Add a new subdirectory').'">'. html_image('docman/insert-directory.png',22,22,array('alt'=>'addsubdir')). '</a>';
+ // do not uncomment the line : trash directory is not correctly implemented
//echo '<a href="?group_id='.$group_id.'&action=trashdir&dirid='.$dirid.'">'. html_image('docman/trash-empty.png',22,22,array('alt'=>'trashdir')). '</a>';
if (!isset($nested_docs[$dirid]) && !isset($nested_groups[$dirid]))
echo '<a href="?group_id='.$group_id.'&action=deldir&dirid='.$dirid.'" id="docman-deletedirectory" title="'._('Permanently delete this directory').'" >'. html_image('docman/delete-directory.png',22,22,array('alt'=>'deldir')). '</a>';
echo '<div class="docmanDiv">'.html_image('docman/new.png',14,14,array('alt'=>'new')).' : ' . _('Created or updated since less than 7 days') .'</div>';
include ($gfcommon.'docman/views/editfile.php');
}
-
?>
<?php
-
/**
* FusionForge Documentation Manager
*
} else {
docman_display_documents($nested_groups,$df,true,3,0);
}
-
?>
<?php
-
/**
* FusionForge Documentation Manager
*
/* please do not add require here : use www/docman/index.php to add require */
/* global variables used */
global $df; // document factory
-global $dgf; // document factory
global $nested_groups; // flat groups array
$df->setStateID('2');
<?php
echo '<form id="emptytrash" name="emptytrash" method="post" action="?group_id='.$group_id.'&action=emptytrash" >';
echo '<ul>';
- echo '<li><input id="submitemptytrash" type="button" value="'. _('Delete permanently all documents and document groups with deleted status ') .'" onclick="javascript:doIt(\'emptytrash\')" ></li>';
+ echo '<li><input id="submitemptytrash" type="button" value="'. _('Delete permanently all documents with deleted status.') .'" onclick="javascript:doIt(\'emptytrash\')" ></li>';
echo '</ul>';
echo '</form>';
echo '<ul>';
- echo '<li><a href="#" onclick="javascript:displayTrashDiv()">'. _('Select dir or files to be resurrected from deleted status') .'</a></li>';
+ echo '<li><a href="#" onclick="javascript:displayTrashDiv()">'. _('Select documents to be resurrected from deleted status.') .'</a></li>';
echo '</ul>';
echo '<div id="listtrash" style="display:none;" >';
docman_display_documents($nested_groups,$df,true,2,0);
echo '</div>';
}
-
?>
<?php
-
/**
* FusionForge Documentation Manager
*
<?php
-
/**
* FusionForge Documentation Manager
*
if ($group->usesDocman()) {
// Get the blocks in the doc.
$blocks['doc index'] = _("Display block at the top of the listing");
+ $blocks['doc help'] = _("Display block at the top of the main page");
}
if ($group->usesSurvey()) {
* Copyright 2002-2003, Tim Perdue/GForge, LLC
* Copyright 2010, Franck Villaume - Capgemini
* Copyright (C) 2010 Alain Peyrat - Alcatel-Lucent
+ * http://fusionforge.org
*
* This file is part of FusionForge.
*
* Copyright 2002-2003, Tim Perdue/GForge, LLC
* Copyright 2010, Franck Villaume - Capgemini
* Copyright (C) 2010 Alain Peyrat - Alcatel-Lucent
+ * http://fusionforge.org
*
* This file is part of FusionForge.
*
require_once $gfcommon.'docman/include/utils.php';
require_once $gfcommon.'docman/include/webdav.php';
-
$arr=explode('/',getStringFromServer('REQUEST_URI'));
$group_id=$arr[3];
$docid=$arr[4];