Skip to content

Commit

Permalink
Adds css class to vertical tables.
Browse files Browse the repository at this point in the history
  • Loading branch information
elplatt committed Jul 4, 2011
1 parent d614f2b commit d027f55
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crm/include/member/data.inc.php
Expand Up @@ -41,7 +41,7 @@ function member_data ($opts) {
LEFT JOIN `membership` ON (`member`.`cid`=`membership`.`cid` AND `membership`.`end` IS NULL) LEFT JOIN `membership` ON (`member`.`cid`=`membership`.`cid` AND `membership`.`end` IS NULL)
LEFT JOIN `plan` ON `plan`.`pid`=`membership`.`pid` LEFT JOIN `plan` ON `plan`.`pid`=`membership`.`pid`
WHERE 1 WHERE 1
GROUP BY `cid`"; GROUP BY `member`.`cid`";
if (!empty($opts['cid'])) { if (!empty($opts['cid'])) {
$sql .= " AND `member`.`cid`=$opts[cid]"; $sql .= " AND `member`.`cid`=$opts[cid]";
} }
Expand Down
4 changes: 3 additions & 1 deletion crm/include/theme.inc.php
Expand Up @@ -500,9 +500,11 @@ function theme_table_vertical ($table) {
if (!empty($table['id'])) { if (!empty($table['id'])) {
$output .= ' id="' . $table['id'] . '"'; $output .= ' id="' . $table['id'] . '"';
} }
$class = "seltzer-table";
if (!empty($table['class'])) { if (!empty($table['class'])) {
$output .= ' class="' . $table['class'] . '"'; $class .= " " . $table['class'];
} }
$output .= ' class="' . $class . '"';
$output .= '>'; $output .= '>';


// Output table body // Output table body
Expand Down

0 comments on commit d027f55

Please sign in to comment.