* along with FusionForge. If not, see <http://www.gnu.org/licenses/>.
*/
-require_once('Widget.class.php');
+require_once 'Widget.class.php';
require_once $gfwww.'include/my_utils.php';
/**
$hide_document = null;
}
- list($hide_now,$count_diff,$hide_url) = my_hide_url('document',$group_id,$hide_item_id,$rows,$hide_document);
+ list($hide_now,$count_diff,$hide_url) = my_hide_url('document',$group_id,$hide_item_id,$rows2,$hide_document);
- $html_hdr = ($j ? '<tr class="boxitem"><td colspan="2">' : '').
+ $html_hdr = '<tr class="boxitem"><td colspan="2">'.
$hide_url.'<a href="/docman/?group_id='.$group_id.'">'.
db_result($result,$j,'group_name').'</a> ';
$doc_group = db_result($result2,$i,'doc_group');
$docid = db_result($result2,$i,'docid');
$html .= '
- <tr '. $GLOBALS['HTML']->boxGetAltRowStyle($i) .'"><td width="99%">'.
+ <tr '. $GLOBALS['HTML']->boxGetAltRowStyle($i) .'><td width="99%">'.
' - <a href="/docman/?group_id='.$group_id.'&view=listfile&dirid='.$doc_group.'">'.
stripslashes(db_result($result2,$i,'filename')).'</a></td>'.
'<td align="center"><a href="/docman/?group_id='.$group_id.'&action=monitorfile&option=remove&view=listfile&dirid='.$doc_group.'&fileid='.$docid.'">'.
}
}
- $html_hdr .= '['.$rows2.($count_new ? ", <b>".sprintf(_('%s new'), array($count_new))."</b>]" : ']').'</td></tr>';
+ $html_hdr .= '['.$rows2.($count_new ? ", <b>".sprintf(_('%s new'), $count_new)."</b>]" : ']').'</td></tr>';
$html_my_monitored_documents .= $html_hdr.$html;
}
$html_my_monitored_documents .= '</table>';
return _("List documents that you are currently monitoring, by project.<br />To cancel any of the monitored items just click on the trash icon next to the item label.");
}
}
-?>