{include file='header'}
+<script type="text/javascript">
+ //<![CDATA[
+ $(function() {
+ new WCF.Action.Delete('wcf\\data\\user\\group\\UserGroupAction', $('.userGroupRow'));
+ });
+ //]]>
+</script>
+
<header class="mainHeading">
<img src="{@RELATIVE_WCF_DIR}icon/users1.svg" alt="" />
<hgroup>
{pages print=true assign=pagesLinks controller="UserGroupList" link="pageNo=%d&sortField=$sortField&sortOrder=$sortOrder"}
<nav>
<ul class="largeButtons">
- <li><a href="{link controller='UserGroupAdd'}{/link}" title="{lang}wcf.acp.group.add{/lang}" class="button"><img src="{@RELATIVE_WCF_DIR}icon/add1.svg" alt="" /> <span>{lang}wcf.acp.group.add{/lang}</span></a></li>
+ <li><a href="{link controller='UserGroupAdd'}{/link}" title="{lang}wcf.acp.group.add{/lang}"><img src="{@RELATIVE_WCF_DIR}icon/add1.svg" alt="" /> <span>{lang}wcf.acp.group.add{/lang}</span></a></li>
{event name='largeButtons'}
</ul>
<tbody>
{content}
{foreach from=$objects item=group}
- <tr id="groupContainer{@$group->groupID}">
+ <tr id="groupContainer{@$group->groupID}" class="userGroupRow">
<td class="columnIcon">
{if $group->isEditable()}
<a href="{link controller='UserGroupEdit' id=$group->groupID}{/link}"><img src="{@RELATIVE_WCF_DIR}icon/edit1.svg" alt="" title="{lang}wcf.global.button.edit{/lang}" class="balloonTooltip" /></a>
{@$pagesLinks}
<nav>
<ul class="largeButtons">
- <li><a href="{link controller='UserGroupAdd'}{/link}" title="{lang}wcf.acp.group.add{/lang}" class="button"><img src="{@RELATIVE_WCF_DIR}icon/add1.svg" alt="" /> <span>{lang}wcf.acp.group.add{/lang}</span></a></li>
+ <li><a href="{link controller='UserGroupAdd'}{/link}" title="{lang}wcf.acp.group.add{/lang}"><img src="{@RELATIVE_WCF_DIR}icon/add1.svg" alt="" /> <span>{lang}wcf.acp.group.add{/lang}</span></a></li>
{event name='largeButtons'}
</ul>
*/
protected static function updateAccessibleGroups($groupID, $delete = false) {
if ($delete) {
- $sql = "UPDATE wcf".WCF_N."_group_option_value
+ $sql = "UPDATE wcf".WCF_N."_user_group_option_value
SET optionValue = ?
WHERE groupID = ?
AND optionID = ?";
$updateStatement = WCF::getDB()->prepareStatement($sql);
$sql = "SELECT groupID, optionValue, groupOption.optionID
- FROM wcf".WCF_N."_group_option groupOption
- LEFT JOIN wcf".WCF_N."_group_option_value optionValue
+ FROM wcf".WCF_N."_user_group_option groupOption
+ LEFT JOIN wcf".WCF_N."_user_group_option_value optionValue
ON (groupOption.optionID = optionValue.optionID)
WHERE groupOption.optionname = ?";
$statement = WCF::getDB()->prepareStatement($sql);