[Fusionforge-commits] r9339 - trunk/gforge/www/tracker
Alain Peyrat
aljeux at libremir.placard.fr.eu.org
Fri Apr 2 22:41:42 CEST 2010
Author: aljeux
Date: 2010-04-02 22:41:42 +0200 (Fri, 02 Apr 2010)
New Revision: 9339
Modified:
trunk/gforge/www/tracker/browse.php
trunk/gforge/www/tracker/query.php
Log:
Minor changes (add titles, ...)
Modified: trunk/gforge/www/tracker/browse.php
===================================================================
--- trunk/gforge/www/tracker/browse.php 2010-04-02 20:41:37 UTC (rev 9338)
+++ trunk/gforge/www/tracker/browse.php 2010-04-02 20:41:42 UTC (rev 9339)
@@ -4,6 +4,7 @@
*
* Copyright 1999-2001 (c) VA Linux Systems
* Copyright 2010 Roland Mas
+ * Copyright 2010 Alain Peyrat, Alcatel-Lucent
*
*/
require_once $gfcommon.'tracker/ArtifactFactory.class.php';
@@ -77,7 +78,7 @@
$offset = getStringFromRequest('offset');
$_sort_col = getStringFromRequest('_sort_col',$_sort_col);
$_sort_ord = getStringFromRequest('_sort_ord',$_sort_ord);
-$max_rows = getStringFromRequest('max_rows');
+$max_rows = getIntFromRequest('max_rows', 25);
$set = getStringFromRequest('set');
$_assigned_to = getIntFromRequest('_assigned_to');
$_status = getIntFromRequest('_status');
@@ -128,7 +129,7 @@
//build page title to make bookmarking easier
//if a user was selected, add the user_name to the title
//same for status
-$ath->header(array('atid'=>$ath->getID()));
+$ath->header(array('atid'=>$ath->getID(), 'title'=>$ath->getName()));
/**
*
@@ -426,7 +427,7 @@
foreach ($browse_fields as $f) {
$title=$f;
if (intval($f) > 0) {
- $title = $ath->getExtraFieldName($f);
+ $title = $ath->getExtraFieldName($f);
} else {
if ($f == 'id')
$title=_('ID');
@@ -660,15 +661,10 @@
if (in_array('priority', $browse_fields)) {
show_priority_colors_key();
-
}
} else {
-
- echo '
- <h1>'._('No items found').'</h1>';
+ echo '<div class="warning_msg">'._('No items found').'</div>';
echo db_error();
- //echo "<!-- $sql -->";
-
}
$ath->footer(array());
Modified: trunk/gforge/www/tracker/query.php
===================================================================
--- trunk/gforge/www/tracker/query.php 2010-04-02 20:41:37 UTC (rev 9338)
+++ trunk/gforge/www/tracker/query.php 2010-04-02 20:41:42 UTC (rev 9339)
@@ -235,7 +235,7 @@
// Show the new pop-up boxes to select assigned to, status, etc
//
-$ath->header(array('atid'=>$ath->getID()));
+$ath->header(array('atid'=>$ath->getID(), 'title' =>_('Build Query')));
echo '<table align="center"><tr><td>' .
'<fieldset><legend>'.
@@ -243,8 +243,6 @@
'</legend>';
echo '
-<h1>'. $feedback .'</h1>
-
<form action="'.getStringFromServer('PHP_SELF').'?func=query&group_id='.$group_id.'&atid='.$ath->getID().'" method="post">
<input type="hidden" name="form_key" value="'.form_generate_key().'" />
<table align="center" border="3" cellpadding="4" rules="groups" frame="box" width="100%" class="tablecontent">
More information about the Fusionforge-commits
mailing list