if ($task == 'save') {
    $disable_accounts = isset($_POST['disable_accounts']) ? $_POST['disable_accounts'] : 'false';
    $GO_CONFIG->save_setting('em_disable_accounts', $disable_accounts);
    if ($_POST['close'] == 'true') {
        header('Location: ' . $return_to);
        exit;
    }
}
require $GO_THEME->theme_path . "header.inc";
echo '<form method="POST" action="' . $_SERVER['PHP_SELF'] . '" name="email_client">';
echo '<input type="hidden" name="task" value="" />';
echo '<input type="hidden" name="close" value="false" />';
echo '<input type="hidden" name="return_to" value="' . $return_to . '" />';
echo '<input type="hidden" name="link_back" value="' . $link_back . '" />';
$cfg_tab = new tabtable('configuration', $menu_configuration, '600', '300');
$cfg_tab->print_head();
$disable_accounts_check = $GO_CONFIG->get_setting('em_disable_accounts') == 'true' ? true : false;
echo '<br />';
$checkbox = new checkbox('disable_accounts', 'true', $ml_disable_accounts, $disable_accounts_check);
echo '<br /><br />';
$button = new button($cmdOk, "javascript:_save('true')");
echo '&nbsp;&nbsp;';
$button = new button($cmdApply, "javascript:_save('false')");
echo '&nbsp;&nbsp;';
$button = new button($cmdCancel, "javascript:document.location='" . $return_to . "';");
$cfg_tab->print_foot();
?>
<script type="text/javascript">
function _save(close)
{
	document.forms[0].close.value=close;
示例#2
0
" />

  <?php 
switch ($task) {
    case 'upload':
        require 'upload_template_file.inc';
        break;
    default:
        if ($template_id > 0) {
            $tpl_table->add_tab('template.inc', $strProperties);
            $tpl_table->add_tab('template_items.inc', $cms_templates);
            $tpl_table->add_tab('template_files.inc', $cms_files);
            $tpl_table->add_tab('template_read_permissions.inc', $strReadRights);
            $tpl_table->add_tab('template_write_permissions.inc', $strWriteRights);
            if (isset($active_tab)) {
                $tpl_table->set_active_tab($active_tab);
            }
            $tpl_table->print_head();
            require $tpl_table->get_active_tab_id();
        } else {
            $tpl_table->print_head();
            require 'template.inc';
        }
        $tpl_table->print_foot();
        break;
}
?>

</form>
<?php 
require $GO_THEME->theme_path . "footer.inc";
示例#3
0
        echo '<br/>';
        echo $button->get_button('Delete', "document.forms[0].task.value='delete';document.forms[0].submit();");
        break;
    case 'properties':
        if (!$db->query("SELECT * from messages_users WHERE user_id={$GO_SECURITY->user_id}") || !$db->next_record()) {
            $acl_write = $GO_SECURITY->get_new_acl('message write: ' . $GO_SECURITY->user_id);
            if ($acl_write > 0) {
                $db->query("INSERT INTO messages_users (user_id,acl_write) VALUES ('{$GO_SECURITY->user_id}','{$acl_write}')");
            }
            $db->query("SELECT * from messages_users WHERE user_id={$GO_SECURITY->user_id}");
            $db->next_record();
        }
        $tabtable = new tabtable('messages_tab', 'Messages', '100%', '400', '120', '', true);
        $tabtable->add_tab('properties', 'Properties');
        $tabtable->add_tab('permissions', 'Permissions');
        $tabtable->print_head();
        switch ($tabtable->get_active_tab_id()) {
            case 'properties':
                break;
            case 'permissions':
                print_acl($db->f('acl_write'));
                echo '<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;';
                $button = new button($cmdClose, "javascript:document.location='" . $return_to . "';");
                break;
        }
        $tabtable->print_foot();
        break;
}
echo '</form>';
require $GO_THEME->theme_path . "footer.inc";
?>
function show_html($Ticket_Number, $result)
{
    global $name;
    $textmenu = menu("Show_Tickets", '');
    eval($textmenu);
    $tabtable = new tabtable('newticket_tabtable', 'modifing ticket', '100%', '400');
    $tabtable->print_head();
    $statusbar = new statusbar();
    $statusbar->info_text = "Modifing ticket {$Ticket_Number}";
    $statusbar->turn_red_point = 90;
    echo "<center><br><br>" . $statusbar->print_bar(95, 100);
    echo " <script language=\"Javascript\" type=\"text/javascript\">\n        <!--\n        function gotoThread(){\n        window.location.href=\"showline.php?Ticket_Number={$Ticket_Number}\";\n        }\n        window.setTimeout(\"gotoThread()\", 3000);\n        //-->\n        </script>\n";
    $tabtable->print_foot();
}