<?php
session_name('CAKEPHP'); session_start();
class specification
	{
 		 
		   function  spc($branchid)
		   { 
		    
					global $db;
					$sql_state=DB_query("select * from  fabrication_group_parameter where parant_id='".$branchid."'",$db);	
					if(!$sql_state)
					{
					   die('Error.'.DB_error_msg($db));
					}
					
					echo "<select name='Branch' style='width:100%;' name='specification[]' id='specification'   >";
					echo "<option value=''>--Select  Branch--</option>";
					while($row_branch=DB_fetch_array($sql_state))
					{
					   $p='';
					   
					  echo "<option value='".$row_branch['id']."' $p >".$row_branch['terms_conditions']."</option>";
					}
					echo "</select>";
			}
			
			
			
			
	
	}
	
	$ClassBranch=new specification();
	?>
