Location: PHPKode > projects > Druid Defect Control > defectcontrol_0.9.4/tts/genpost.php
<?php require_once 'database.php'; ?> 
<?php require_once 'transitions.php'; ?> 

<?php

/* __ Defines _____________________________________________________________ */


/* __ Implementation ______________________________________________________ */

/* 
 * This function generates the appropiate SQL to place in
 * UPDATE clauses, to specify which fields are
 * going to be updated and from which variables
 * take the information.
 * Takes the information about fields and variables in forms
 * from the 'formfields' table.
 */
function gp_generateSqlToUpdate($from,$to){
	// Obtain the forms involved in the state change
	$forms=tr_getStatesFor($from,$to);
	
	// From these forms obtain all the fields in
	// the 'defect' table and the name of variables
	// that will contain its values in a HTML FORM
	$sqlClause="select sfieldname from formfields where iidform in (";
	for($i=0;$i<count($forms);$i++){
		
	}
	
	// Loop through the fields building the update SQL clause
	$result='';	
	
	return $result;
}


?>
Return current item: Druid Defect Control