加入收藏 | 设为首页 | 会员中心 | 我要投稿 梅州站长网 (https://www.0753zz.cn/)- 行业物联网、云备份、数据工具、云计算、智能推荐!
当前位置: 首页 > 教程 > 正文

织梦dedecms会员中心调用出需要的循环文档

发布时间:2022-09-05 09:46:52 所属栏目:教程 来源:互联网
导读:实现的办法比较简单,一句JS搞定:document.getElementById(testx).innerHTML=h2222222222222222/h2; 然后我们在其关联的模板htm文件 写入 div id=testx/div 再扩展下,便可得 document.getElementById(Comment).innerHTML=?php $dsql-GetOne(select * from
  实现的办法比较简单,一句JS搞定:document.getElementById("testx").innerHTML="<h2>222222222222222</h2>";
  
  然后我们在其关联的模板htm文件 写入 <div id='testx'></div>
  
  再扩展下,便可得
  
  document.getElementById("Comment").innerHTML="<?php  $dsql->GetOne("select * from `archives` WHERE channel='3' order by id DESC limit 9");
  
  $dsql->Execute('me');
  
  while ($row = $dsql->GetArray('me')){ if($row['flag'] == "c,p"){  $tj = "<i class='tj'></i>"; }else{$tj = ""; }  ?>
  
  <li><a href='../plus/view.php?aid=<?php echo $row['id']; ?>' target='_blank' title='<?php echo $row['title']; ?>'>
  
  <img src='<?php echo $row['litpic']; ?>' width='230' /><?php echo $tj; ?></a>
  
  <span class='title' title='<?php echo $row['title']; ?>'><a href='../plus/view.php?aid=<?php echo $row['id']; ?>' target='_blank'>
 
 
  <?php echo $row['title']; ?></a></span></li><?php  }  print_r($row);  ?>";
  
  可以方便在织梦会员中心调用出需要的循环文档
  

(编辑:梅州站长网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    热点阅读