查看文件: show_all_ecard.php
大小: 1.56 KB
类型: application/octet-stream
<?php require_once('../Connections/BE2.php'); ?> <? // 9宮格展示名冊 //$scode=isset($_GET['menu'])?$_GET['menu']:'8888888'; //if($scode==''){ $scode='8888888';} mysql_select_db($database_BE2, $BE2); $query_Rtt = "SELECT * FROM member WHERE mem_user2<>'' order by mem_auto desc" ; $Rtt = mysql_query($query_Rtt, $BE2) or die(mysql_error()); $row_Rtt = mysql_fetch_assoc($Rtt); ?> <div class="container"> <? // echo 'all_block9'; $i=0; $arrext=array('gif','jpeg','jpg','png'); do { ?> <? $ck=(in_array($row_Rtt['mem_logo2'],$arrext))?true:false; //圖檔檢查 //$bimg="/ecard/reimg/user_".sprintf("%07d",$row_Rtt['mem_auto']).'.'.$row_Rtt['mem_logo2'] ; if(($row_Rtt['mem_logo2']<>'') &&( $ck) ){ $i++; ?> <div class="col-md-3 col-xs-3 col-sm-3"> <div class="thumbnail"> <? $bimg="/ecard/reimg/user_".sprintf("%07d",$row_Rtt['mem_auto']).'.'.$row_Rtt['mem_logo2'] ; ?> <a href="/ecard/<?= $row_Rtt['scode'] ;?>" target="_self"><img src="<?= $bimg ?>" title="<?= $row_Rtt['mem_user2'].' '.$row_Rtt['mem_user'] ;?>雲名片"/></a> </div> <a href="/ecard/<?= $row_Rtt['scode'] ;?>" target="_self"><div style="text-align:center;"><?= $row_Rtt['mem_user2'].' ('.$row_Rtt['scode'].')' ;?></div></a> </div> <? if($i%4==0){?> <div class="clearfix"> </div> <? } } } while ($row_Rtt = mysql_fetch_assoc($Rtt)); ?> </div> <div class="clearfix"> </div> <?php mysql_free_result($Rtt); ?>
保存
取消
返回文件列表