示例#1
0
        } else {
            $product['title'] = htmlspecialchars_uni($product['title']);
        }
        if ($group_by == 'hook') {
            if ($hook['hookname'] != $prevgroup) {
                $prevgroup = $hook['hookname'];
                print_description_row($vbphrase['hook_location'] . ' : ' . $hook['hookname'], 0, 7, 'tfoot', '" style="text-align: left;');
            }
        } else {
            if ($product['title'] != $prevgroup) {
                $prevgroup = $product['title'];
                print_description_row($vbphrase['product'] . ' : ' . $product['title'], 0, 7, 'tfoot', '" style="text-align: left;');
            }
        }
        if (!$product['active']) {
            $product['title'] = '<strike>' . $product['title'] . '</strike>';
        }
        $title = htmlspecialchars_uni($hook['title']);
        $title = ($hook['active'] and $product['active']) ? $title : "<strike>{$title}</strike>";
        print_cells_row(array(vB_Library_Admin::buildElementCell('hook' . $hook['hookid'], $title, 0, false, 'hook.php', 'edit&amp;hookid=' . $hook['hookid'], vB::getCurrentSession()->get('sessionurl')), vB_Library_Admin::buildDisplayCell($group_by == 'hook' ? $product['title'] : $hook['hookname']), vB_Library_Admin::buildTextInputCell('order[' . $hook['hookid'] . ']', $hook['hookorder'], 1, $title = 'Execution Order'), vB_Library_Admin::buildDisplayCell($hook['template']), vB_Library_Admin::buildDisplayCell($hook['arguments'] ? 'Yes' : 'No'), vB_Library_Admin::buildCheckboxCell('active[' . $hook['hookid'] . ']', 1, 'hook' . $hook['hookid'], $hook['active'], false, false, false), vB_Library_Admin::buildElementCell('edit' . $hook['hookid'], '[' . $vbphrase['edit'] . ']', 0, false, 'hook.php', 'edit&amp;hookid=' . $hook['hookid'], vB::getCurrentSession()->get('sessionurl')) . vB_Library_Admin::buildElementCell('delete' . $hook['hookid'], '[' . $vbphrase['delete'] . ']', 0, false, 'hook.php', 'delete&amp;hookid=' . $hook['hookid'], vB::getCurrentSession()->get('sessionurl'))));
    }
    print_submit_row($vbphrase['save_status'], false, 7);
    echo '<p align="center">' . vB_Library_Admin::buildElementCell('', '[' . $vbphrase['add_new_hook'] . ']', 0, false, 'hook.php', 'add', vB::getCurrentSession()->get('sessionurl')) . '</p>';
}
print_cp_footer();
/*=========================================================================*\
|| #######################################################################
|| # Downloaded: 15:45, Tue Sep 8th 2015
|| # CVS: $RCSfile$ - $Revision: 83435 $
|| #######################################################################
\*=========================================================================*/