示例#1
0
        exit;
    }
}
$OR = new ORep();
while ($r = $sql->fetch()) {
    $id = $r['id'];
    $name = get("name", $id, false);
    $img = get("img", $id);
    $loc = get("ploc", $id);
    $live = get("live", $id);
    $obirth = str_replace("/", "-", get("birth", $id));
    $birth = date("Y-m-d H:i:s", strtotime($obirth));
    $foll = $OP->dbh->prepare("SELECT COUNT(uid) FROM conn WHERE fid=?");
    $foll->execute(array($id));
    $foll = $foll->fetchColumn();
    $rep = $OR->getRep($id);
    ?>
  <div class="blocks">
   <div class="blocks" style="padding:5px;margin:5px 0px;">
    <div style='background:black;width:100px;height:100px;display:inline-block;vertical-align:top;'>
     <a href="<?php 
    echo $loc;
    ?>
">
      <center><img style='max-width:100px;max-height:100px;' src="<?php 
    echo $img;
    ?>
"/></center>
     </a>
    </div>
    <div class="block" style="margin-left:5px;">
示例#2
0
    $gender = $json['gen'] == "" ? $defaultVal : $json['gen'];
    $mail = $json['mail'] == "" ? $defaultVal : $json['mail'];
    $address = $json['add'] == "" ? $defaultVal : $json['add'];
    $phone = $json['phone'] == "" ? $defaultVal : $json['phone'];
    $liveIn = $json['live'] == "" ? $defaultVal : $json['live'];
    $work = $json['work'] == "" ? $defaultVal : $json['work'];
    $loves = $json['lve'] == "" ? $defaultVal : $json['lve'];
    $facebook = $json['fb'] == "" ? $defaultVal : $json['fb'];
    $twitter = $json['tw'] == "" ? $defaultVal : $json['tw'];
    $gplus = $json['gplus'] == "" ? $defaultVal : $json['gplus'];
    $pinterest = $json['pin'] == "" ? $defaultVal : $json['pin'];
    $headerIMG = $json['header'] == "" ? HOST . "/cdn/img/headers/00.png" : $json['header'];
}
require_once "{$docRoot}/inc/class.rep.php";
$RP = new ORep();
$Rep = $RP->getRep($id);
// Reputation
?>
<!DOCTYPE html>
<html>
  <head>
    <?php 
$OP->head("", "ac,profile,time,home,gadget", "ac,home,profile,gadget");
?>
    <meta name="oid" value="<?php 
echo $id;
?>
"/>
    <meta name="type" value="profile"/>
  </head>
  <body>