fop2 aastra lookup script

gregc

Guru
Joined
Sep 8, 2008
Messages
433
Reaction score
3
I've been very happy with fop2 and it's features. We have all aastra phones have used the asteridex.php quite a bit for our directory lookup on the phones.

With much help from Nicolas at fop2, I've gotten a crude working php to do a lookup from the fop2 database. It searches the company, firstname, and lastname fields and returns it as company: lastname, firstname

So far so good. What I need help with now is to see how to make a line scroll when it is too wide for the screen.

Code:
$object->addEntry($item['company'].": ".$item['lastname']." ".$item['firstname'],$XML_SERVER."?action=zoom&index=".$item['id']."&page=".$page."&lookup=".$lookup."&selection=".$index);

Also, fop2 has an additional phone number entry, so I'd like to display both numbers when a name is called up.


Code:
			if($Contact['phone1']!='') 

				{

//				$display['other']=prepare_number($Contact['phone1'],1,NULL);

				$display['other']=$Contact['phone1'];
				$display['other']=$Contact['phone2'];

//				$dial['other']=prepare_number($Contact['phone1'],0,$conf);

				$dial['other']=$Contact['phone1'];
				$dial['other']=$Contact['phone2'];

The above doesn't work. I'm pretty sure it has to do with the 'other' variable, but I really don't know. My knowledge of this stuff is not much beyond cut and paste.

-Greg
 

Members online

Forum statistics

Threads
26,687
Messages
174,409
Members
20,257
Latest member
Dempan
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Back
Top