Exemplo n.º 1
0
#   0 = no checks done
#   1 = server ok, get database information
#   2 = check the database information
#   3 = install the database
#   4 = get additional config file information
#   5 = write the config file
#	6 = post install checks
#	7 = done, link to login or db updater
$t_install_state = gpc_get_int('install', 0);
html_begin();
html_head_begin();
html_css_link('admin.css');
html_content_type();
html_title('Administration - Installation');
html_javascript_link('jquery-1.9.1.min.js');
html_javascript_link('install.js');
html_head_end();
?>

<body>
<table width="100%" cellspacing="0" cellpadding="0" bgcolor="#ffffff">
	<tr class="top-bar">
		<td class="links">
			[ <a href="index.php">Back to Administration</a> ]
		</td>
		<td class="title">
		<?php 
switch ($t_install_state) {
    case 6:
        echo 'Post Installation Checks';
        break;
Exemplo n.º 2
0
/**
 * (6a) Javascript...
 * @return null
 */
function html_head_javascript()
{
    if (config_get('use_javascript')) {
        global $g_scripts_included;
        echo "\t<script type=\"text/javascript\" src=\"" . helper_mantis_url('javascript_config.php') . '"></script>' . "\n";
        echo "\t<script type=\"text/javascript\" src=\"" . helper_mantis_url('javascript_translations.php') . '"></script>' . "\n";
        html_javascript_link('jquery-1.7.2.min.js');
        html_javascript_link('jquery-ui-1.8.20.custom.min.js');
        html_javascript_link('common.js');
        foreach ($g_scripts_included as $t_script_path) {
            html_javascript_link($t_script_path);
        }
    }
}
Exemplo n.º 3
0
/**
 * prints calendar icon and adds required javascript and css files if they
 * haven't already been imported.
 * button_name is name of button that will display calendar icon
 * in caste there are more than one calendar on page
 * @param string $p_button_name
 * @return null
 * @todo (thraxisp) this may want a browser check  ( MS IE >= 5.0, Mozilla >= 1.0, Safari >=1.2, ...)
 * @access public
 */
function date_print_calendar($p_button_name = 'trigger')
{
    global $g_calendar_already_imported;
    if (ON == config_get('dhtml_filters') && ON == config_get('use_javascript')) {
        if (!$g_calendar_already_imported) {
            echo "<style type=\"text/css\">@import url(" . config_get('short_path') . "css/calendar-blue.css);</style>\n";
            html_javascript_link('jscalendar/calendar.js');
            html_javascript_link('jscalendar/lang/calendar-en.js');
            html_javascript_link('jscalendar/calendar-setup.js');
            $g_calendar_already_imported = true;
        }
        $t_icon_path = config_get('icon_path');
        $t_cal_icon = $t_icon_path . "calendar-img.gif";
        echo "<input type=\"image\" class=\"button\" id=\"" . $p_button_name . "\" src=\"" . $t_cal_icon . "\" />";
    }
}
}
/** @todo (thraxisp) this may want a browser check  ( MS IE >= 5.0, Mozilla >= 1.0, Safari >=1.2, ...) */
if (ON == config_get('dhtml_filters') && ON == config_get('use_javascript')) {
    ?>
		<script type="text/javascript" language="JavaScript">
		<!--
			var string_loading = '<?php 
    echo lang_get('loading');
    ?>
';
		// -->
		</script>
		<?php 
    html_javascript_link('xmlhttprequest.js');
    html_javascript_link('addLoadEvent.js');
    html_javascript_link('dynamic_filters.js');
}
?>
<br />
<form name="bug_action" method="get" action="bug_actiongroup_page.php">
<?php 
# CSRF protection not required here - form does not result in modifications
?>
<table id="buglist" class="width100" cellspacing="1">
<tr>
	<td class="form-title" colspan="<?php 
echo $col_count;
?>
">
		<span class="floatleft">
		<?php 
Exemplo n.º 5
0
/**
 * (6a) Javascript...
 * @return null
 */
function html_head_javascript()
{
    if (ON == config_get('use_javascript')) {
        html_javascript_link('common.js');
        echo '<script type="text/javascript">var loading_lang = "' . lang_get('loading') . '";</script>';
        html_javascript_link('ajax.js');
        global $g_enable_projax;
        if ($g_enable_projax) {
            html_javascript_link('projax/prototype.js');
            html_javascript_link('projax/scriptaculous.js');
        }
    }
}
	<td>
		<?php 
            if (config_get('time_tracking_stopwatch') && config_get('use_javascript')) {
                ?>
		<script language="javascript">
			var time_tracking_stopwatch_lang_start = "<?php 
                echo lang_get('time_tracking_stopwatch_start');
                ?>
";
			var time_tracking_stopwatch_lang_stop = "<?php 
                echo lang_get('time_tracking_stopwatch_stop');
                ?>
";
		</script>
		<?php 
                html_javascript_link('time_tracking_stopwatch.js');
                ?>
		<input type="text" name="time_tracking" size="5" value="00:00" />
		<input type="button" name="time_tracking_ssbutton" value="<?php 
                echo lang_get('time_tracking_stopwatch_start');
                ?>
" onclick="time_tracking_swstartstop()" />
		<input type="button" name="time_tracking_reset" value="<?php 
                echo lang_get('time_tracking_stopwatch_reset');
                ?>
" onclick="time_tracking_swreset()" />
		<?php 
            } else {
                ?>
		<input type="text" name="time_tracking" size="5" value="00:00" />
		<?php 
Exemplo n.º 7
0
/**
 * (6a) Javascript...
 * @return void
 */
function html_head_javascript()
{
    global $g_scripts_included;
    echo "\t" . '<script type="text/javascript" src="' . helper_mantis_url('javascript_config.php') . '"></script>' . "\n";
    echo "\t" . '<script type="text/javascript" src="' . helper_mantis_url('javascript_translations.php') . '"></script>' . "\n";
    html_javascript_link('jquery-1.11.3.min.js');
    html_javascript_link('jquery-ui-1.11.4.min.js');
    html_javascript_link('common.js');
    foreach ($g_scripts_included as $t_script_path) {
        html_javascript_link($t_script_path);
    }
}
Exemplo n.º 8
0
access_ensure_project_level(config_get('view_summary_threshold'));
$f_interval = gpc_get_int('interval', 0);
$t_today = date('Y-m-d');
$f_type = gpc_get_int('graph_type', 0);
$f_show_as_table = gpc_get_bool('show_table', FALSE);
html_page_top1(plugin_lang_get('graph_page'));
$t_path = config_get('path');
// follows the convention in html_api::html_javascript_link
if (config_get_global('minimal_jscss')) {
    echo '<link rel="stylesheet" type="text/css" href="', helper_mantis_url('javascript/min/jscalendar/calendar-blue.css'), '">' . "\n";
} else {
    echo '<link rel="stylesheet" type="text/css" href="', helper_mantis_url('javascript/dev/jscalendar/calendar-blue.css'), '">' . "\n";
}
html_javascript_link('jscalendar/calendar.js');
html_javascript_link('jscalendar/lang/calendar-en.js');
html_javascript_link('jscalendar/calendar-setup.js');
html_page_top2();
$t_period = new Period();
$t_period->set_period_from_selector('interval');
$t_types = array(0 => plugin_lang_get('select'), 2 => plugin_lang_get('select_bystatus'), 3 => plugin_lang_get('select_summbystatus'), 4 => plugin_lang_get('select_bycat'), 6 => plugin_lang_get('select_both'));
$t_show = array(0 => plugin_lang_get('show_as_graph'), 1 => plugin_lang_get('show_as_table'));
?>
	<form name="graph_form" method="post" action="<?php 
echo plugin_page('bug_graph_page.php');
?>
">
	<table class="width100" cellspacing="1">

	<tr>
		<td>
			<?php 
Exemplo n.º 9
0
/**
 * (6a) Javascript...
 * @return void
 */
function html_head_javascript()
{
    global $g_scripts_included;
    echo "\t" . '<script type="text/javascript" src="' . helper_mantis_url('javascript_config.php') . '"></script>' . "\n";
    echo "\t" . '<script type="text/javascript" src="' . helper_mantis_url('javascript_translations.php') . '"></script>' . "\n";
    if (config_get_global('cdn_enabled') == ON) {
        echo "\t" . '<script src="https://ajax.googleapis.com/ajax/libs/jquery/' . JQUERY_VERSION . '/jquery.min.js"></script>' . "\n";
        echo "\t" . '<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/' . JQUERY_UI_VERSION . '/jquery-ui.min.js"></script>' . "\n";
    } else {
        html_javascript_link('jquery-' . JQUERY_VERSION . '.min.js');
        html_javascript_link('jquery-ui-' . JQUERY_UI_VERSION . '.min.js');
    }
    html_javascript_link('common.js');
    foreach ($g_scripts_included as $t_script_path) {
        html_javascript_link($t_script_path);
    }
}
Exemplo n.º 10
0
        ToDoList.$set('lang', {
            enterNewDescription: "<?php 
echo plugin_lang_get('enter_new_description');
?>
",
            confirmDeletion: "<?php 
echo plugin_lang_get('confirm_deletion');
?>
"
        });
        </script>
        <?php 
if ($tasks) {
    ?>
        <?php 
    html_javascript_link('addLoadEvent.js');
    ?>
        <script type="text/javascript">
        addLoadEvent(function() {
            this.ToDoList.$set("tasks", <?php 
    echo json_encode($tasks);
    ?>
);
        });
        </script>
        <?php 
}
?>
    </td>
</tr>