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.
Also, fop2 has an additional phone number entry, so I'd like to display both numbers when a name is called up.
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
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