评论列表 评论
xiaoli520 好男人 三级站长 VIP 5#

var html = '';

if (InArray($param['dos'], 'edit')) {

html += '<option value="edit">编辑</option>';

}

if (InArray($param['dos'], 'del')) {

html += '<option value="del">删除</option>';

}

if ($param['type'] == 'reply') {

if (InArray($param['dos'], 'top')) {

html += '<option value="top">置顶/取消</option>';

}

} else {

$param['type'] == 'read';

if (InArray($param['dos'], 'activetop')) {

html += '<option value="activetop">动态置顶/取消</option>';

}

if (InArray($param['dos'], 'top')) {

html += '<option value="top">版内置顶/取消</option>';

}

if (InArray($param['dos'], 'high')) {

html += '<option value="high">设为精华/取消</option>';

}

if (InArray($param['dos'], 'locked')) {

html += '<option value="locked">锁定帖子/取消</option>';

}

if (InArray($param['dos'], 'move')) {

html += '<option value="move">移动文章</option>';

}

}

共0条回复,点击查看回复
黑衣人 简单就是美 八级站长 VIP 4#

包含名字的【if那3行】为一个功能,换个位置emotion

Image

好男人:
var html = ''; if (InArray($param['dos'], 'edit')) { html += '编辑'; } if (InArray($param['dos'], 'del')) { html += '删除'; } if ($param['type'] == 'reply') { if (InArray($param['dos'], 'top')) { html += '置顶/取消'; } } else { $param['type'] == 'read'; if (InArray($param['dos'], 'activetop')) { html += '动态置顶/取消'; } if (InArray($param['dos'], 'top')) { html += '版内置顶/取消'; } if (InArray($param['dos'], 'high')) { html += '设为精华/取消'; } if (InArray($param['dos'], 'locked')) { html += '锁定帖子/取消'; } if (InArray($param['dos'], 'move')) { html += '移动文章'; } }

好男人:
还是不会呢,大佬帮我改下呗

好男人:
明白了。。谢谢

共0条回复,点击查看回复
xiaoli520 好男人 三级站长 VIP 3#
Image
共0条回复,点击查看回复
puyuetian 乐天 九级站长 创始人 2#
template/default/puyuetianui/js/puyuetian.js里面的adminEditTipbox

好男人:
我这样还是不行,是不是弄错了

共0条回复,点击查看回复
发布评论

评论: [VIP工单] 这玩意在那个文件夹或文件

已有0次打赏
(0) 分享
分享

请保存二维码或复制链接进行分享

取消