quick_address.php

来自「极限网络智能办公系统 - Office Automation 2008 官方10」· PHP 代码 · 共 25 行

PHP
25
字号
<?php
 

require( "./inc/inc.php" );
$filename = $userfolder."_infos/addressbook.ucf";
$myfile = $UM->_read_file( $filename );
if ( $myfile != "" )
{
	$addressbook = unserialize( base64_decode( $myfile ) );
}
array_qsort2( $addressbook, "name" );
$listbox = "<select name=contacts size=10 style=\"width: 200px;height:160\" onDblClick=\"Add('to')\">\r\n";
$i = 0;
for ( ;	$i < count( $addressbook );	++$i	)
{
	$line = $addressbook[$i];
	$name = htmlspecialchars( trim( $line['name'] ) );
	$email = htmlspecialchars( trim( $line['email'] ) );
	$listbox .= "<option value=\"&quot;".$name."&quot; &lt;{$email}&gt;\"> &quot;{$name}&quot; &lt;{$email}&gt;";
}
$listbox .= "</select>";
$smarty->assign( "umContacts", $listbox );
$smarty->display( "neotech.net/quick_address.htm" );
?>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?