コード例 #1
0
ファイル: index.php プロジェクト: Levikov/weixiguang
<?php

require "../control/view.php";
$contact = new contact();
$contact->viewByName($_GET["name"]);
?>
<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0">
        <title><?php 
echo $contact->name;
?>
 - 微通信录</title>
        <link rel="stylesheet" href="../../common/style/weui.min.css"/>
        <link rel="stylesheet" href="../../common/style/example.css"/>
        <script>
function onBridgeReady(){
WeixinJSBridge.call('hideOptionMenu');
}

if (typeof WeixinJSBridge == "undefined"){
if( document.addEventListener ){
document.addEventListener('WeixinJSBridgeReady', onBridgeReady, false);
}else if (document.attachEvent){
document.attachEvent('WeixinJSBridgeReady', onBridgeReady); 
document.attachEvent('onWeixinJSBridgeReady', onBridgeReady);
}
}else{
onBridgeReady();