欢迎各位兄弟 发布技术文章

这里的技术是共享的

You are here

php 视图参数例子2 views parameter 这种方法好像不对 可以不看

shiping1 的头像

编辑视图laoshikechengxuesheng

修改了的视图
视图laoshikechengxuesheng, 显示用户类型的条目.
默认 这个视图的默认设置。
视图设置
基本设置
名称: 默认
标题: 
样式: 表格
使用AJAX: 
使用分页器: 
每页条目数: 10
更多链接: 
与其他不同的: 
访问: 无限制的
缓存: 
在区块中暴露表单: 
头部: 
空文本: 
主题: 信息
关联
没有定义
字段
排序标准
过滤器
用户: 角色 <> 教师
默认: 配置参数 用户: 角色
一个用户所属的角色。
这个参数存在时所用的标题。它会覆盖view与前面参数的标题。你可以用百分号来代替。用"%1"表示第一个参数,"%2"表示第二个,等等。
The Breadcrumb title to use when this argument is present. If no breadcrumb is set here, default Title values will be used, see "Title" for percent substitutions.
如果这个数值作为参数,参数项将被忽略,比如:“所有值”
在其它地方的置换中,为通配符使用的标题.
提供默认参数选项
输入PHP代码,用来为这个参数返回一个值.不要使用<?php ?>.对于这个参数,你必须为其返回单个值.
验证器选项
如果选中的话,用户可以按照1+2+3(对于OR)或1,2,3 (对于AND).的形式输入多个参数.
If selected, multiple instances of this argument can work together, as though multiple terms were supplied to the same argument. This setting is not compatible with the "Reduce duplicates" setting.
This filter can cause items that have more than one of the selected options to appear as duplicate results. If this filter causes duplicate results to occur, this checkbox can reduce those duplicates; however, the more terms it has to search for, the less performant the query will be, so use this with caution. Shouldn't be set on single-value fields, as it may cause values to disappear from display, if used on an incompatible field.
  
  

实时预览

使用一个/来分隔参数,可把它们看作一个URL路径.
名称角色最大积分积分上次访问查看详情
查全凯
  • 付费学生
  • 服装设计平面课程_角色
  • 服装设计素描课程_角色
  • 服装设计色彩课程_角色
  2014-02-26查全凯
叶玉娇
  • 付费学生
  • 服装设计平面课程_角色
  • 服装设计素描课程_角色
  • 服装设计色彩课程_角色
  2014-02-26叶玉娇
陈佳鑫
  • 付费学生
  • 服装设计平面课程_角色
  • 服装设计素描课程_角色
  • 服装设计色彩课程_角色
  2014-02-26陈佳鑫
查询
SELECT users.uid AS uid, users.name AS users_name, userpoints.max_points AS userpoints_max_points, userpoints.points AS userpoints_points, users.access AS users_access FROM users users  LEFT JOIN users_roles users_roles ON users.uid = users_roles.uid AND users_roles.rid = 7 LEFT JOIN users_roles users_roles_value_0 ON users.uid = users_roles_value_0.uid AND users_roles_value_0.rid = 15 LEFT JOIN userpoints userpoints ON users.uid = userpoints.uid WHERE (users_roles.rid IS NULL) AND (users_roles_value_0.rid = 15) ORDER BY users_access DESC 
标题 
路径这个显示没有路径
查询构建时间8.55 毫秒
查询执行时间2.58 毫秒
视图呈现时间30.19 毫秒
普通分类: