Ejemplo n.º 1
0
$buttons[1] = $button;
$button = new ToolbarButtonRecord();
$button->label = "Delete User";
$button->icon = "images/delete.gif";
$button->submitForm = false;
$button->action = "ServiceConditionalDeleteButton( 'okToDelete', 'true', 'This user cannot be deleted.', '" . DELETE_SELECTION_ID . "', 'Are you sure you want to delete the selected user?', '" . $formName . "' );";
$buttons[2] = $button;
DisplayToolbar($buttons, $formName);
?>

                <!-- User Table-->
                <table border="0" cellspacing="2" cellpadding="2" class="dataTable">
                    <tr>
                        <?php 
$nameSortIconStr = $sortColumn === NAME_SORT_COLUMN ? '   <img src="' . GetSortIcon($sortDirection) . '">' : '';
$idSortIconStr = $sortColumn === ID_SORT_COLUMN ? '   <img src="' . GetSortIcon($sortDirection) . '">' : '';
$sortDirectionStr = "SetElementValue( '" . $sortDirectionID . "', '" . GetSortDirection($sortDirection) . "' );";
$sortByNameStr = "SetElementValue( '" . $sortColumnID . "', '" . NAME_SORT_COLUMN . "');";
$sortByIDStr = "SetElementValue( '" . $sortColumnID . "', '" . ID_SORT_COLUMN . "');";
?>
                        <td class="dataHeader">&nbsp;</td>
                        <td class="dataHeader"><a href="#" onClick="<?php 
echo $sortDirectionStr . $sortByNameStr;
?>
SubmitForm('<?php 
echo $formName;
?>
');">User Name<?php 
echo $nameSortIconStr;
?>
</a> </td>
Ejemplo n.º 2
0
$button->disabled = !empty($selectedGroup) ? false : true;
$buttons[1] = $button;
$button = new ToolbarButtonRecord();
$button->label = "Delete Group";
$button->icon = "images/delete.gif";
$button->action = "SetElementValueWithConfirmation( '" . DELETE_SELECTION_ID . "', 'Are you sure you want to delete the selected group?')";
$button->disabled = !empty($selectedGroup) ? false : true;
$buttons[2] = $button;
DisplayToolbar($buttons, $formName);
?>

                <!-- Group Table-->
                <table border="0" cellspacing="2" cellpadding="2" class="dataTable">
                    <tr>
                        <?php 
$sortIcon = GetSortIcon($sortDirection);
$sortDirectionStr = "SetElementValue( '" . $sortDirectionID . "', '" . GetSortDirection($sortDirection) . "' );";
?>
                        <td class="dataHeader">&nbsp;</td>
                        <td class="dataHeader"><a href="#" onClick="<?php 
echo $sortDirectionStr;
?>
SubmitForm('<?php 
echo $formName;
?>
');">Group Name   <img src="<?php 
echo $sortIcon;
?>
"></a> </td>
                        <td class="dataHeader">Description</td>
                        <td class="dataHeader">Members</td>