php
$law_info[1] = array("拆迁安置","债务追讨","医疗纠纷","交通事故","合同纠纷","劳动纠纷","工伤赔偿","人身损害","旅游纠纷","农村承包","消费权益","抵押担保","邮政储蓄");
$law_info[2] = array("工程建筑","房产纠纷","招标投标","水利电力","电信通讯","高新技术","知识产权","合伙联营","连锁加盟","个人独资","期货交易","金融证券","银行保险","广告宣传","经销代理","不当竞争","经济仲裁","污染损害","网络法律");
$law_info[3] = array("取保候审","刑事辩护","刑事自诉","行政复议","行政诉讼","国家赔偿","求学教育","环境污染","工商税务","海关商检","公安国安","公司犯罪");
$law_info[4] = array("海事海商","国际贸易","招商引资","外商投资","合资合作","WTO事务","倾销补贴","涉外仲裁");
$law_info[5] = array("公司收购","股份转让","企业改制","公司清算 ","破产解散","资产拍卖");
$law_info[6] = array("工商查询","资信调查","合同审查","调解谈判","常年顾问","私人律师","文书代理","移民留学");
for($i = 1; $i <= 6; $i++) {
foreach($law_info[$i] as $key => $temp){
$law[ms] = $temp[0];
$law[jj] = $temp[1];
$law[xs] = $temp[2];
$law[sw] = $temp[3];
$law[gs] = $temp[4];
$law[qt] = $temp[5];
$law[bh] = $i;
$law_list[] = $law; //这里是把数组欠套
}
}
模板:
<table>
<!--{loop $law_list $law}-->
<tr><td>民事类法律事务:</td><td>$law['ms']</td><tr>
<tr><td> 经济类法律事务:</td><td>$law['jj']</td><tr>
<tr><td>刑事行政法律事务:</td><td>$law['xs']</td><tr>
<tr><td>涉外法律事务:</td><td>$law['sw']</td><tr>
<tr><td>公司专项法律服务:</td><td>$law['gs']</td><tr>
<tr><td>其他非讼法律事务:</td><td>$law['qt']</td><tr>
<!--{/loop}-->
</table>
上面的理解对不对?输出好像有问题?? |