我参考错误报告那样,在e/space/feedback.php添加了些代码.
然后从内容链接添加在线反馈链接,链接e/space/feedback.php?userid=[!--userid--]&classid=[!--classid--]&id=[!--id--]
这样可以在反馈页面加入标题和链接的变量了.
现在的问题是,如何在空间管理反馈和后台管理反馈里也得到这两个值.
我现在用的一个土方法是将表单隐藏,用title这个字段存储标题变量的值.用公司名称这个字段存储链接地址.
但是有个坏处....如果链接地址太长,公司名称这个字段会自动截取掉..........
不知道该如何在管理里直接获取这两个变量..........
帝国调用dz uc 帖子 图片 调用uc博客最新主题 -------------------------------------------------------------------------------- [ecmsinfo]'select subject as title,uid as userid,blogid as id from uchome_blog order by blogid desc limit 17',0,40,0,24,28,0[/ecmsinfo] -------------------------------------------------------------------------------- 调用uc博客最新图片 -------------------------------------------------------------------------------- [ecmsinfo]'select albumname as title,uid as userid,albumid as id,pic as titlepic from uchome_album order by albumid desc limit 2',0,22,0,24,31,0[/ecmsinfo]
-------------------------------------------------------------------------------- 调用uc博客最新回复 -------------------------------------------------------------------------------- [ecmsinfo]'select subject as title,uid as userid,blogid as id from uchome_blog order by tracenum desc limit 3',0,30,0,24,29,0[/ecmsinfo] -------------------------------------------------------------------------------- 调用uc博客群组 -------------------------------------------------------------------------------- [ecmsinfo]'select subject as title,tid as userid,tagid as id from uchome_thread order by replynum desc limit 1',0,18,0,24,30,0[/ecmsinfo]
-------------------------------------------------------------------------------- 调用dz论坛最新主题 -------------------------------------------------------------------------------- [ecmsinfo]'select subject as title,tid as id from cdb_threads order by lastpost desc limit 4',0,40,0,24,25,0[/ecmsinfo]
-------------------------------------------------------------------------------- 调用dz论坛最新图片 -------------------------------------------------------------------------------- [ecmsinfo]'select u.attachment as titlepic,ui.subject as title,u.tid as id from cdb_attachments u LEFT JOIN cdb_threads ui ON u.tid=ui.tid where u.isimage=1 order by ui.tid DESC limit 2',0,30,0,24,36,0[/ecmsinfo] -------------------------------------------------------------------------------- 调用dz论坛随即帖子 -------------------------------------------------------------------------------- [ecmsinfo]'select subject as title,tid as id from cdb_threads order by highlight desc limit 3',0,30,0,24,27,0[/ecmsinfo]
-------------------------------------------------------------------------------- 调用dz论坛精华帖子 -------------------------------------------------------------------------------- [ecmsinfo]'select subject as title,tid as id from cdb_threads order by digest desc limit 1',0,18,0,24,26,0[/ecmsinfo]
-------------------------------------------------------------------------------- 调用dz论坛指定版块的帖子 -------------------------------------------------------------------------------- [ecmsinfo]'select subject as title,tid as id from cdb_threads where fid=10 order by tid desc limit 14',0,30,0,24,38,0[/ecmsinfo]
-------------------------------------------------------------------------------- 例子 [ecmsinfo]'select subject as title(调用后变量),tid as id from cdb_threads(数据表) where fid=10(版块id) order by tid desc limit 14(调用条数)',0,30,0,24,38,0[/ecmsinfo] --------------------------------------------------------------------------------
调用某一作者的10条信息 例如:我们要列出所有信息来源相同的10条信息,标签如下(按sql语句调用): [phomenews]"select * from phome_ecms_news where befrom='".$navinfor[befrom]."' order by id desc limit 10",10,32,0,24,0[/phomenews]
|