哈哈 后台可以管理
我终于整明白了
我把代码分享出来
输入表单替换html代码 <select name="gqtime" id="gqtime"> <option value="<?echo date("Y-m-d",strtotime("+7day")); ?>"> 7天后过期</option> <option value="<?echo date("Y-m-d",strtotime("+1month")); ?>">一个月后过期</option> <option value="<?echo date("Y-m-d",strtotime("+3month")); ?>">三个月后过期</option> <option value="<?echo date("Y-m-d",strtotime("+6month")); ?>">六个月后过期</option> <option value="<?echo date("Y-m-d",strtotime("+20year")); ?>">长期有效</option> </select>
投稿表单替换html代码 <select name="gqtime" id="gqtime"> <option value="<?echo date("Y-m-d",strtotime("+7day")); ?><?=DoReqValue($tbname,'gqtime',stripSlashes($r[gqtime]))?>">7天后过期</option> <option value="<?echo date("Y-m-d",strtotime("+1month")); ?><?=DoReqValue($tbname,'gqtime',stripSlashes($r[gqtime]))?>">一个月后过期</option> <option value="<?echo date("Y-m-d",strtotime("+3month")); ?><?=DoReqValue($tbname,'gqtime',stripSlashes($r[gqtime]))?>"selected>三个月后过期</option> <option value="<?echo date("Y-m-d",strtotime("+6month")); ?><?=DoReqValue($tbname,'gqtime',stripSlashes($r[gqtime]))?>">六个月后过期</option> <option value="<?echo date("Y-m-d",strtotime("+20year")); ?><?=DoReqValue($tbname,'gqtime',stripSlashes($r[gqtime]))?>">长期有效</option> </select>
这样就OK了
|