"set names utf8")); return $pdo; }catch (PDOException $e){ write_log('ctsdata_test new PDO failed:'.$e->getMessage()); } } //DB /* $objDbh = new Db; $objDbh->setAccount(MYSQL_HOST, MYSQL_USER, MYSQL_PASSWORD, MYSQL_DB); $objDisney = new DbDisney($objDbh); $org_array = $objDisney->getBaseOrgAndAccountArray(); */ $pdo=conn(); $sqlWhere = " SELECT * FROM base_org,account WHERE base_org.org_id > 0 AND account.org_id=base_org.org_id ORDER BY base_org.org_id"; $result=$pdo->query($sqlWhere); $result_array=$result->fetchAll(); $result->closeCursor(); $org_array = $result_array; ?>
编号 | 编号 | 编号 | 编号 | 编号 | '.$org_info["org_id"].' '.$org_info["org_name"].' '; //$image_url = "http://bshare.optimix.asia/barCode?site=weixin&url=http://xmwxc.zhizhuchuxing.cn/top.php?cc=".$org_info["org_code"]; $image_url = "http://qr.liantu.com/api.php?&w=200&text=http://xmwxc.zhizhuchuxing.cn/top.php?cc=".$org_info["org_code"]; echo ' '.$org_info["org_name"].' '. '登录名:'.$org_info["account_name"].' 密码:'.$org_info["account_pwd"].' | ';
if( $no_temp % 5 == 0 ) {
echo '';
}
$no_temp++;
} ?>