function isCentralize

This commit is contained in:
sparkyx 2004-03-30 01:13:11 +00:00
parent 28001333b9
commit 655aed5668

View file

@ -72,5 +72,20 @@ $sql="insert into centralized( c_j_id,
EndSql($p_cn);
return NOERROR;
}
/* function isCentralize($p_cn,$p_user)
**************************************************
* Purpose : test if e jrn_jr.id is centralize or not
*
* parm :
* - p_cn
* - p_jnr_id jrn.jr_id
* gen :
* - none
* return: 0 if not centralized otherwise > 0
*/
function isCentralize($p_cn,$p_jrn_id) {
$Res=ExecSql($p_cn,"select c_id from centralized where c_j_id=$p_jrn_id");
return pg_NumRows($Res);
}
?>