quick_address.php

来自「极限网络智能办公系统 Office Automation V3.0官方100%源」· PHP 代码 · 共 33 行

PHP
33
字号
<?
/************************************************************************
UebiMiau is a GPL'ed software developed by

 - Aldoir Ventura - aldoir@users.sourceforge.net
 - http://uebimiau.sourceforge.net

Fell free to contact, send donations or anything to me :-)
S鉶 Paulo - Brasil
*************************************************************************/

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";
for($i=0;$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 + -
显示快捷键?