文章目录[隐藏]
这么做到选择国家的时候省市和市区显示 选择市区的时候出现省市和国(、本文来源gao@!dai!ma.com搞$$代^@码网*搞gaodaima代码家的选择 。
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="ttbb2"> <tr> <td width="40%" align="right" bgcolor="#e9f4ff"><strong>地区/行政区域</strong></td> <td> 地区 省份 国家 </td> </tr> <tr> <td width="40%" align="right" bgcolor="#e9f4ff"><strong>名称</strong></td> <td> </td> </tr> <tr> <td width="40%" align="right" bgcolor="#e9f4ff"><strong>所属国家</strong></td> <td> {foreach from=$parent item=item key=index} {$item.name} {/foreach} </td> </tr> <tr> <td width="40%" align="right" bgcolor="#e9f4ff"><strong>所属省份</strong></td> <td> {foreach from=$parent item=item key=index} {$item.name} {/foreach} </td> </tr> </table>
回复讨论(解决方案)
没明白 你想干什么
是数据库设计不好
还是代码不会写