<?php
require ( "class/connect.php" );
include ( "class/db_sql.php" );
include ( "class/config.php" );
include ( "data/dbcache/class.php" );
$link =db_connect();
$empire = new mysqlquery();
$classid = intval ( $_GET [ 'classid' ]);
$id = intval ( $_GET [ 'id' ]);
$muserid =(int)getcvar( 'mluserid' );
$musername =RepPostVar(getcvar( 'mlusername' ));
$mgroupid =(int)getcvar( 'mlgroupid' );
if ( $classid && $id && $class_r [ $classid ][tbname]&& $muserid )
{
$r = $empire ->fetch1( "select id,phone from {$dbtbpre}ecms_" . $class_r [ $classid ][tbname]. " where id='$id' and classid='$classid' limit 1" );
if ( $r [id])
{
?>
document.write( '<li title="<?=$r[phone]?>">手机:<?=$r[phone]?></li>' );
<?php
}
}
else
{
?>
document.write( '<li class="businessCard-embed-content-nologin"><span>手机:</span><span class="businessCard-embed-content-nologinIcon"></span><a id="businessCard-embed-login" href="#">登录后可见</a></li>' );
<?php
}
db_close();
$empire =null;
?>
|