|
1.发表页面
- <p><tr></p><p><td class="tl"></td></p><p><td></p><p><table width="510" height="90" border="0" cellpadding="0" cellspacing="0"bgcolor="#FFFAF3" ></p><p><td style="width:50px; word-break:break-all; "></p><p>{loop $EDUCATIONTIME $k $v}</p><p><input type="checkbox" name="post[educationtime][]" id="educationtime_{$k}" value="{$k}"<?php echo strpos(','.$educationtime.',', ','.$k.',') !== false ? ' checked' : '';?>/></p><p><label for="educationtime_{$k}"> {$v}</label> </p><p>{/loop}</p><p></td></p><p> </table></p><p></td></p><p></tr></p>
复制代码 2.module/模块/模块.calss.php
大约54行
$post['educationtime'] = implode(',', $post['educationtime']); //新增多选入库3.module/模块/模块.inc.php
$educationtimes = explode(',',$educationtime);//增加读出
4.数据库增加相应字段【可以keyword】类型
|
|