* @version $Id$
*
* Functions that output HTML markup, used for the presentation logic of the
* plugin
*/
/** Includes */
include_once(SM_PATH . 'plugins/useracl/constants.php');
/**
* Print permissions table header row
*
* @param boolean $separate True for new folder table.
* @return void
*/
function useracl_print_table_header($separate = false) {
global $color, $acl;
echo '
';
}
/**
* Print New User Row for separate table, with mailbox select
*
* @param string $mybox Optional parameter for preselected mailbox field
* @param string $myuser Optional parameter for prefilled user field
* @return void
*/
function useracl_print_addnew_separate($mybox = '', $myuser = '') {
global $color, $boxes, $useracl_show_images, $useracl_enable_notify;
print '
';
}
/**
* Print button that links to the directory plugin search page.
* The button will be printed if you have enabled the 'directory' plugin.
*
* @param string $formname The formname to link to, by javascript means.
* @see http://email.uoa.gr/projects/squirrelmail/directory.php
*/
function useracl_print_ldapsearchbutton($formname = 'form_addnew') {
global $plugins, $useracl_show_images;
if(in_array('directory', $plugins)) {
echo "";
/* Non-javascript browsers not supported at the moment. */
/*
echo "\n";
} else {
echo ' ' . "\n";
}
*/
}
}
/**
* Link to Directory UserInfo (vcard.php) page, if directory plugin is enabled.
* @param string $user Username.
* @return string
*/
function useracl_user_link($user) {
global $plugins, $base_uri;
if(in_array('directory', $plugins)) {
include_once(SM_PATH . 'plugins/directory/include/exported_functions.php');
return directory_user_link($user);
} else {
return $user;
}
}
/**
* HTML Output functions follow.
*/
function useracl_html_printheader($title) {
global $color;
print '
'. $title . '';
print '
';
}
function useracl_html_print_all_sections_start() {
echo '
';
}
function useracl_html_print_section_start($title) {
global $color, $error;
print "
".
$title .
"
";
if(isset($error)) {
print '
'.
$error . '
';
}
print "
";
}
function useracl_html_print_section_end() {
global $color;
echo "
\n";
echo "
\n";
}
function useracl_html_print_all_sections_end() {
echo "
";
}
function useracl_html_printfooter() {
print '