[Fusionforge-commits] r10622 - trunk/src/www/people

Franck VILLAUME nerville at libremir.placard.fr.eu.org
Wed Sep 22 13:16:00 CEST 2010


Author: nerville
Date: 2010-09-22 13:16:00 +0200 (Wed, 22 Sep 2010)
New Revision: 10622

Modified:
   trunk/src/www/people/editjob.php
   trunk/src/www/people/people_utils.php
Log:
basic fix for skill add

Modified: trunk/src/www/people/editjob.php
===================================================================
--- trunk/src/www/people/editjob.php	2010-09-22 10:04:06 UTC (rev 10621)
+++ trunk/src/www/people/editjob.php	2010-09-22 11:16:00 UTC (rev 10622)
@@ -144,15 +144,15 @@
 	/*
 		Fill in the info to create a job
 	*/
-	people_header(array('title'=>_('Edit Job')));
 
 	//for security, include group_id
 	$result=db_query_params("SELECT * FROM people_job WHERE job_id=$1 AND group_id=$2", array($job_id, $group_id));
 	if (!$result || db_numrows($result) < 1) {
 		$error_msg .= sprintf(_('POSTING fetch FAILED: %s'),db_error());
-		echo '<h2>'._('No such posting for this project').'</h2>';
+	    people_header(array('title'=>_('Edit Job')));
 	} else {
 
+	    people_header(array('title'=>_('Edit Job')));
 		echo _('<p>Now you can edit/change the list of skills attached to this posting. Developers will be able to match their skills with your requirements.</p><p>All postings are automatically closed after two weeks.</p>').'
 
 		<p /><form action="'.getStringFromServer('PHP_SELF').'" method="post">
@@ -174,7 +174,7 @@
 		</form>';
 
 		//now show the list of desired skills
-		echo '<p>'.people_edit_job_inventory($job_id,$group_id) . '</p>';
+		echo '<p>'.people_edit_job_inventory($job_id,$group_id).'</p>';
 		echo '<p /><form action="/people/" method="post"><input type="submit" name="submit" value="'._('Finished').'" /></form>';
 
 	}

Modified: trunk/src/www/people/people_utils.php
===================================================================
--- trunk/src/www/people/people_utils.php	2010-09-22 10:04:06 UTC (rev 10621)
+++ trunk/src/www/people/people_utils.php	2010-09-22 11:16:00 UTC (rev 10622)
@@ -28,12 +28,12 @@
 	global $group_id,$job_id,$HTML;
 
 	if ($group_id) {
-		$params['toptab']='people';
+		$params['toptab']='admin';
 		$params['group']=$group_id;
-		echo site_project_header($params);
+		site_project_header($params);
 	} else if (strstr($_SERVER['HTTP_REFERER'],'account')){
 		$params['toptab']='my';
-		echo site_user_header($params);
+		site_user_header($params);
 	} else {
 		echo $HTML->header($params);
 	}
@@ -54,7 +54,7 @@
 		//will be used many times potentially on a single page
 		$PEOPLE_SKILL=db_query_params("SELECT * FROM people_skill ORDER BY name ASC", array());
 	}
-	return html_build_select_box($PEOPLE_SKILL,$name,$checked);
+	return html_build_select_box($PEOPLE_SKILL,$name,'xzxz',false);
 }
 
 function people_skill_level_box($name='skill_level_id',$checked='xyxy') {
@@ -305,8 +305,7 @@
 		if (db_error()) {
 			exit_error(db_error(),'admin');
 		} else {
-			echo '
-			<tr><td colspan="4"><h2>'._('No Skill Inventory Set Up').'</h2></td></tr>';
+			echo '<tr><td colspan="4"><h2>'._('No Skill Inventory Set Up').'</h2></td></tr>';
 		}
 	} else {
 		for ($i=0; $i < $rows; $i++) {




More information about the Fusionforge-commits mailing list