Location: PHPKode > projects > phpMyPrepaid > phpmyprepaid/www/include/tabs/attrshow.php
<?php
#Read user_edit attribute map
if (!isset($acct_attrs) ){
	$ARR = file($general_accounting_attrs_file);
	foreach ($ARR as $val){
		$val=chop($val);
		if (ereg('^[[:space:]]*#',$val) || ereg('^[[:space:]]*$',$val))
			continue;
		list($num,$desc,$showua,$showuf,$showfl)=split("\t+",$val);
		if ($showua == 'yes'){
			$acct_attrs["ua"]["num"]++;
			$acct_attrs["ua"]["$num"]=$desc;
		}
		if ($showuf == 'yes'){
			$acct_attrs["uf"]["num"]++;
			$acct_attrs["uf"]["$num"]=$desc;
		}
		if ($showfl == 'yes'){
			$acct_attrs["fl"]["num"]++;
			$acct_attrs["fl"]["$num"]=$desc;
		}
	}
}
?>
Return current item: phpMyPrepaid