查看文件: index_block9_2.php
大小: 1.9 KB
类型: application/octet-stream
<?php require_once('../Connections/BE2.php'); mysql_select_db($database_BE2, $BE2); $query_Rt4 = sprintf("SELECT * FROM ecardext WHERE wflag=1 and wkid>1 and wuid='%s' order by wkid,windex",$_SESSION['shop_id']) ; $Rt4 = mysql_query($query_Rt4, $BE2) or die(mysql_error()); $row_Rt4 = mysql_fetch_assoc($Rt4); $totalRows_Rt4 = mysql_num_rows($Rt4); if($totalRows_Rt4>0){ $cl=0; $imagepath = "/admin/upload2_image/".sprintf("%07d",$row_Rt4['wuid']).'/'; $imagepath3 = "/shopmap/images/"; do { //$imagepath = "/admin/upload2_image/".sprintf("%07d",$row_Rt2['wuid']).'/'.$row_Rt2['wimg'].'.'.$row_Rt2['wimgext']; $wtitle= $row_Rt4['wtitle'] ; if($row_Rt4['wkid']==2){ if($row_Rt4['wkid2']=='P'){ $wimg= $row_Rt4['wimgext']==''?"/ecard/reimg/blank.jpg": $imagepath.$row_Rt4['wimg'].'.'.$row_Rt4['wimgext']; $wlink=($row_Rt4['wlink']=='')?'#':'/categoryDetail-'.$row_Rt4['wlink'].'.html' ; }else{ $wimg='/shop/reimg/wpi_'.sprintf("%07d",$row_Rt4['wuid']).'_'.$row_Rt4['wrand'].'.'.$row_Rt4['wimgext']; $wlink=($row_Rt4['wlink']=='')?'#':$row_Rt4['wlink']; } }else if($row_Rt4['wkid']==3){ $wimg= $row_Rt4['wimgext']==''?"/ecard/reimg/blank.jpg": $imagepath3.$row_Rt4['wimg'].'.'.$row_Rt4['wimgext']; $wlink=($row_Rt4['wlink']=='')?'#':'/shopid/'.$row_Rt4['wlink'] ;// $row_Rt3['wlink']:"";"./".$scode.'-'.($i+1) } ?> <div class="col-md-4 col-xs-4 col-sm-4"> <div class="thumbnail"> <a href="<?= $wlink;?>" target="_self"><img src="<?= $wimg ?>" title="<?= $wtitle;?>" width="100%"/></a> </div> <div style="text-align:center;font-size:14px"><?= $wtitle ;?></div> </div> <? $cl++; if(( $cl% 3)==0 ){ ?> <div class="clearfix"> </div> <? } ?> <? } while ($row_Rt4 = mysql_fetch_assoc($Rt4)); } // end $totalRows_Rt4 mysql_free_result($Rt4); ?>
保存
取消
返回文件列表