刚刚下了8.0测试版,本地搭建环境体验一下,使用下载系统模型,开始一切正常,发布文章后却发现不保存tag,修改文章tag输入框不能选中和编辑,后面的“复制关键字”按钮变成了“清除选择”按钮,查看元素tag输入框多了个“readonly”属性,如下代码。不知道怎么传图片,只能文字描述了
tags:<input name="infotags" type="text" id="infotags" value="" size="32" readonly >
之前用帝国cms从没遇到这种情况,不知道咋回事,有知道的大佬吗
AddNews.php相关代码片段:
<?php if(strstr($public_r['usetags'],','.$modid.',')) { $infotag_readonly=''; $infotag_copykeyboard=' <input type="button" name="Submit3" value="复制关键字" onclick="document.add.infotags.value=document.add.keyboard.value;">'; if(strstr($public_r['chtags'],','.$modid.',')) { $infotag_readonly=' readonly'; $infotag_copykeyboard=' <input type="button" name="Submit3" value="清除选择" onclick="if(confirm(\'确认要清除已选TAGS?\')){document.add.infotags.value=\'\';}">'; } ?> <tr> <td height="25" bgcolor="#FFFFFF">TAGS : <input name="infotags" type="text" id="infotags" value="<?=$r['infotags']?>" size="32" <?=$infotag_readonly?> > <input type="button" name="Submit" value="选择" onClick="window.open('tags/ChangeTags.php?form=add&field=infotags&sinfo=1&classid=<?=$classid?>&id=<?=$id?><?=$ecms_hashur['ehref']?>','','width=700,height=550,scrollbars=yes');"> <?=$infotag_copykeyboard?> <input name="oldinfotags" type="hidden" id="oldinfotags" value="<?=$r['infotags']?>"> <font color="#333333">(多个用","逗号格开)</font></td> </tr> <?php } ?>
|