コード例 #1
0
ファイル: help.php プロジェクト: pombredanne/tuleap
/**
* help_header() - Show a help page header
*
* @param        string    Header title
*/
function help_header($title, $help_banner = true)
{
    global $Language;
    ?>
<HTML>
<HEAD>
<TITLE><?php 
    print $title;
    ?>
</TITLE>
<LINK rel="stylesheet" href="<?php 
    echo util_get_css_theme();
    ?>
" type="text/css">
</HEAD>
<BODY class="bg_help">
<?php 
    print $help_banner ? '<H4>' . $GLOBALS['sys_name'] . ' ' . $Language->getText('include_help', 'site_help_sys') . '</H4>' : '';
    ?>
<H2><?php 
    print $title;
    ?>
</H2>
<HR>
<?php 
}
コード例 #2
0
    $dlscript = 'opener.download';
    $cancelscript = 'window.close()';
} else {
    $dlscript = 'download_local';
    $cancelscript = 'history.back()';
}
?>
<html>
<head>
   <title><?php 
echo $Language->getText('file_confirm_download', 'download_agreement');
?>
</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" type="text/css" href="<?php 
echo util_get_css_theme();
?>
">
</head>

<body>
<SCRIPT language="JavaScript">
<!--

function download_local(group_id,file_id) {
    url = "/file/download.php/" + group_id + "/" + file_id;
    self.location = url;
}
-->
</SCRIPT>
<table width="100%" height="100%" cellpadding="5" class="bg_confirmdownload">
コード例 #3
0
ファイル: current_css.php プロジェクト: pombredanne/tuleap
<?php

//
// Codendi
// Copyright (c) Xerox Corporation, Codendi Team, 2001-2009. All rights reserved
// http://www.codendi.com
//
//
//
//
require_once 'pre.php';
session_redirect(util_get_css_theme());
コード例 #4
0
ファイル: confirm_download.php プロジェクト: nterray/tuleap
if ($request->exist('popup')) {
    $dlscript = 'opener.download';
    $cancelscript = 'window.close()';
} else {
    $dlscript = 'download_local';
    $cancelscript = 'history.back()';
}
?>
<html>
<head>
   <title><?php 
echo $Language->getText('file_confirm_download', 'download_agreement');
?>
</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" type="text/css" href="<? echo util_get_css_theme(); ?>">
</head>

<body>
<SCRIPT language="JavaScript">
<!--

function download_local(group_id,file_id,filename) {
    url = "/file/download.php/" + group_id + "/" + file_id +"/"+filename;
    self.location = url;
    //history.back();
}
-->
</SCRIPT>
<table width="100%" height="100%" cellpadding="5" class="bg_confirmdownload">
<tr><td>
コード例 #5
0
    /**
     *	header() - "steel theme" top of page
     *
     * @param	array	Header parameters array
     */
    function header($params)
    {
        global $Language;
        if (!$params['title']) {
            $params['title'] = $GLOBALS['sys_name'];
        } else {
            $params['title'] = $GLOBALS['sys_name'] . ":" . $params['title'];
        }
        print '<?xml version="1.0" encoding="' . $Language->getEncoding() . '"?>';
        ?>

<!DOCTYPE html
	PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="<?php 
        echo UserManager::instance()->getCurrentUser()->getLocale();
        ?>
">

  <head>
	<meta http-equiv="Content-Type" content="text/html; charset=<?php 
        echo $Language->getEncoding();
        ?>
" />
	<title><?php 
        echo $params['title'];
        ?>
</title>
    <?php 
        $em =& EventManager::instance();
        $em->processEvent("javascript_file", null);
        foreach ($this->javascript_files as $file) {
            echo '<script type="text/javascript" src="' . $file . '"></script>' . "\n";
        }
        ?>
	<script language="JavaScript" type="text/javascript">
	<!--
	function help_window(helpurl) {
		HelpWin = window.open( helpurl,'HelpWindow','scrollbars=yes,resizable=yes,toolbar=no,height=740,width=1000');
	}
	// -->
	<?php 
        $em =& EventManager::instance();
        $em->processEvent("javascript", false);
        ?>
	</script>
<?php 
        /*
        
        	WARNING - changing this font call can affect
        	INTERNATIONALIZATION
        */
        //gets font from LANG Object
        // XXXX $site_fonts=$GLOBALS['Language']->getFont();
        ?>
<!-- BEGIN codendi stylesheet in GF Layout -->
<link rel="stylesheet" type="text/css" href="/themes/common/css/style.css">
<link rel="stylesheet" type="text/css" href="<?php 
        echo util_get_css_theme();
        ?>
">
<link rel="SHORTCUT ICON" href="<?php 
        echo util_get_image_theme("favicon.ico");
        ?>
">
<!-- END   codendi stylesheet in GF Layout -->
<style type="text/css">
	<!--
    /*{{{ Missing rules */
.footer           { font-size: <?php 
        echo $this->FONTSIZE_SMALLEST;
        ?>
; }

.calendar_font_othermonth,
.calendar_font,
.calendar_font_month,
.calendar_font_day,
.osdn,
.osdntext,
.smaller,
.header_actions ul      { font-size: <?php 
        echo $this->FONTSIZE_SMALLER;
        ?>
;  }

body,
.menutable,
.disable,
.command,
.small,
.titlebar,
.normal,
.slogan,
.maintitlebar     { font-size:<?php 
        echo $this->FONTSIZE;
        ?>
;     }

/* Vertical spacing */
.vspace-bottom { margin-bottom: 3ex; }
.vspace-top { margin-top: 3ex; }
.vspace-both { margin-top: 3ex; margin-bottom: 3ex; }

    
.center { text-align: center; }
.alignright { text-align: right }
.left { text-align: left; }
.error { font-weight: bold; color: #980000; }
.feedback { color: red; }
.bold { font-weight: bold; }
.disable { color: gray;}
.highlight { color: red; }
.newproject { background-color: #EEEEEE; }
.top_up { color: #009900; }
.top_down { color: #CC0000; }
.command { font-family: courier,sans-serif;}
.subdomain { color: green; }
.bg_confirmdownload { background-color: #F7F7F7; }

PRE,TT { font-family: courier,sans-serif; }


/******** priorities **********/
.priora { background-color: #dadada; }
.priorb { background-color: #dacaca; }
.priorc { background-color: #dababa; }
.priord { background-color: #daaaaa; }
.priore { background-color: #da8a8a; }
.priorf { background-color: #da7a7a; }
.priorg { background-color: #da6a6a; }
.priorh { background-color: #da5a5a; }
.priori { background-color: #da4a4a; }

/********   forum    **********/
.thread { background-color: #DDDDDD; }
.threadbody { background-color: #EEEEEE; }
.threadmsg { background-color: #E3E3E3; }

/* .footer { color: #333333; } */
.standardtable { width: 99%; border-spacing: 0; border: 0; color: #333333; }

/* content frame specific */
.contenttable { background-color: #F7F7F7; vertical-align: top; width: 99%; border-spacing: 0; border: 0; }
.row_below_outertabs,
.outer_body_row,
.end_inner_body_row,
.below_tabs_selected_toptab{ 
	background:#e8e8e0;
}
.start_main_body_row,
.main_body_row,
.end_main_body_row,
.below_tabs_selected_bottomtab{
	background:#f7f7f7;
}
.below_tabs {
	background:#909090;
}

/* left menu specific */
.menuframe { background-color: #e8e8e0; vertical-align: top; horitontal-align: left; width: 60px; }
.menutable { background-color: #e8e8e0; vertical-align: top; width: 150px; border-spacing: 0; border: 0; }
.menutitle { vertical-align: top; font-weight: bold; text-align: left; color: #333333; }
.menuitem { vertical-align: top; text-align: right; color: #333333; }

/* group menu specific (see tabs and tabselect too) */
.groupmenutable { background-color: #e8e8e0; width: 100% ; border-top: thin solid #000000; border-bottom: thin solid #000000; }

/* classic box */
.boxtable { width: 99%; vertical-align: top; border-spacing: 1px; border: 0; }
.boxtitle { background-color: #E0DDD2; font-weight: bold; text-align: center; text-transform: capitalize; color: #000000; }
.boxitem {  background-color: transparent; text-align: left; color: #333333; }
.boxitemalt { text-align: left; background-color: #ffffff; }
.boxhighlight { background-color: #ffe0db; text-align: left; color: #333333; }

.boxtop {}
.boxtop_top {}
.boxtop_left {background:url('../images/box-topleft.png') top right no-repeat;}
.boxtop_center {background:#e0ddd2 url('../images/box-grad.png') top left repeat-x;}
.boxtop_right {background:url('../images/box-topright.png') top left no-repeat;}
.boxtop_inner {background:transparent url('../images/vert-grad.png') top left repeat-x;}
.boxmiddle {background:#e0ddd2 url('../images/box-grad.png') top left repeat-x;}
.boxmiddle_inner {background:transparent url('../images/vert-grad.png') top left repeat-x;}

.boxspace { font-size: 2pt; }
.maintitlebar { color: #FFFFFF;}
.slogan { font-weight: bold;}
.osdn { font-family: verdana,arial,helvetica,sans-serif; font-weight: bold; color: #ffffff; }
.osdntext, .osdntext:link { font-weight: bold; text-decoration: none; color: #ffffff; }
.osdntext:visited { font-weight: bold; text-decoration: none; color: #ffffff; }
.osdntext:hover { font-weight: bold; text-decoration: none; color: #ffffff; }
.footer { color: white; }

.tabs { color: #000000; }
.tabs:visited { color: #000000; }
.tabs:hover { color:#FF0000; } 
.tabselect { color: #000000; font-weight: bold; }
.tabselect:visited { color: #000000; font-weight: bold; }
.tabselect:hover { color:#FF0000; font-weight: bold; }

.titlebar { text-decoration:none; color:#000000; font-weight: bold;}
.develtitle { color:#000000; font-weight: bold; }
.legallink { color:#000000; font-weight: bold; }

.sortbutton { color: #000000; text-decoration: none; }
.sortbutton:hover { text-decoration: underline; }
.sortbutton:visited { color: #000000;}

/* calendar (fixed font size) */
.calendar_month { background-color: #E0DDD2; }
.calendar_day { background-color: #FFE6B5; }
.calendar_currentday { background-color: #FFFFA3; }
.calendar_nextmonth { background-color: #DBEAF5; }
.calendar_daymonth { background-color: white; } 
.calendar_font_othermonth { color: gray; }
.calendar_font { color: black; }
.calendar_font_month { color: black; }
.calendar_font_day { color: black; }

/* Help classes */
.bg_help {
  background-color: #ffffff;
}

/* text with tooltips (e.g. artifact fields) */
.tooltip { text-decoration:none; color: #000000}
.tooltip:hover { text-decoration:none; color: #ff0000}
    /*}}}*/

BODY {
		margin-top: 3;
		margin-left: 3;
		margin-right: 3;
		margin-bottom: 3;
		background-image: url("<?php 
        echo $this->imgroot;
        ?>
theme-top-blue.png");
	}
	ol,ul,p,body,td,tr,th,form { font-family: <?php 
        echo $site_fonts;
        ?>
; font-size:<?php 
        echo $this->FONTSIZE;
        ?>
;
		color: <?php 
        echo $this->FONTCOLOR_CONTENT;
        ?>
; }

    .priora { background-color: #dadada; }
    .priorb { background-color: #dacaca; }
    .priorc { background-color: #dababa; }
    .priord { background-color: #daaaaa; }
    .priore { background-color: #da8a8a; }
    .priorf { background-color: #da7a7a; }
    .priorg { background-color: #da6a6a; }
    .priorh { background-color: #da5a5a; }
    .priori { background-color: #da4a4a; }

	h1 { font-size: x-large; font-family: <?php 
        echo $site_fonts;
        ?>
; }
	h2 { font-size: large; font-family: <?php 
        echo $site_fonts;
        ?>
; }
	h3 { font-size: medium; font-family: <?php 
        echo $site_fonts;
        ?>
; }
	h4 { font-size: small; font-family: <?php 
        echo $site_fonts;
        ?>
; }
	h5 { font-size: x-small; font-family: <?php 
        echo $site_fonts;
        ?>
; }
	h6 { font-size: xx-small; font-family: <?php 
        echo $site_fonts;
        ?>
; }

	pre,tt { font-family: courier,sans-serif }

	a:link { text-decoration:none; color: #0000be }
	a:visited { text-decoration:none; color: #0000be }
	a:active { text-decoration:none }
	a:hover { text-decoration:underline; color:red }

	.titlebar { color: black; text-decoration: none; font-weight: bold; }
	a.tablink { color: black; text-decoration: none; font-weight: bold; font-size: <?php 
        echo $this->FONTSIZE_SMALLER;
        ?>
; }
	a.tablink:visited { color: black; text-decoration: none; font-weight: bold; font-size: <?php 
        echo $this->FONTSIZE_SMALLER;
        ?>
; }
	a.tablink:hover { text-decoration: none; color: black; font-weight: bold; font-size: <?php 
        echo $this->FONTSIZE_SMALLER;
        ?>
; }
	a.tabsellink { color: #0000be; text-decoration: none; font-weight: bold; font-size: <?php 
        echo $this->FONTSIZE_SMALLER;
        ?>
; }
	a.tabsellink:visited { color: #0000be; text-decoration: none; font-weight: bold; font-size: <?php 
        echo $this->FONTSIZE_SMALLER;
        ?>
; }
	a.tabsellink:hover { text-decoration: none; color: #0000be; font-weight: bold; font-size: <?php 
        echo $this->FONTSIZE_SMALLER;
        ?>
; }
	<?php 
        $em->processEvent("cssstyle", $this);
        ?>
	-->
</style>

</head>

<body class="<?php 
        echo $this->getClassnamesForBodyTag();
        ?>
">

<table border="0" width="100%" cellspacing="0" cellpadding="0">

	<tr>
		<td><a href="/"><?php 
        echo html_image('logo.png', array('border' => '0', 'width' => 198, 'height' => 52));
        ?>
</a></td>
		<td><?php 
        echo $this->searchBox();
        ?>
</td>
		<td align="right"><?php 
        if (user_isloggedin()) {
            ?>
				<b><a style="color: #FFFFFF" href="/account/logout.php"><?php 
            echo $Language->getText('common', 'logout');
            ?>
</a></b><br />
				<b><a style="color: #FFFFFF" href="/account/"><?php 
            echo $Language->getText('common', 'myaccount');
            ?>
</a></b>
				<?php 
        } else {
            ?>
				<b><a style="color: #FFFFFF" href="/account/login.php"><?php 
            echo $Language->getText('common', 'login');
            ?>
</a></b><?php 
            $em =& EventManager::instance();
            $display_new_user = true;
            $params = array('allow' => &$display_new_user);
            $em->processEvent('display_newaccount', $params);
            if ($display_new_user) {
                ?>
                <br />
				<b><a style="color: #FFFFFF" href="/account/register.php"><?php 
                echo $Language->getText('common', 'newaccount');
                ?>
</a></b>
				<?php 
            }
        }
        ?>
</td>
		<td>&nbsp;&nbsp;</td>
	</tr>

</table>

<table border="0" width="100%" cellspacing="0" cellpadding="0">

	<tr>
		<td>&nbsp;</td>
		<td colspan="3">

<?php 
        echo $this->outerTabs($params);
        ?>

		</td>
		<td>&nbsp;</td>
	</tr>

	<tr>
		<td align="left" bgcolor="#E0E0E0" width="9"><img src="<?php 
        echo $this->imgroot;
        ?>
tabs/topleft.png" height="9" width="9" alt="" /></td>
		<td bgcolor="#E0E0E0" width="30"><img src="<?php 
        echo $this->imgroot;
        ?>
clear.png" width="30" height="1" alt="" /></td>
		<td bgcolor="#E0E0E0"><img src="<?php 
        echo $this->imgroot;
        ?>
clear.png" width="1" height="1" alt="" /></td>
		<td bgcolor="#E0E0E0" width="30"><img src="<?php 
        echo $this->imgroot;
        ?>
clear.png" width="30" height="1" alt="" /></td>
		<td align="right" bgcolor="#E0E0E0" width="9"><img src="<?php 
        echo $this->imgroot;
        ?>
tabs/topright.png" height="9" width="9" alt="" /></td>
	</tr>

	<tr>

		<!-- Outer body row -->

		<td bgcolor="#E0E0E0"><img src="<?php 
        echo $this->imgroot;
        ?>
clear.png" width="10" height="1" alt="" /></td>
		<td valign="top" width="99%" bgcolor="#E0E0E0" colspan="3">

			<!-- Inner Tabs / Shell -->

			<table border="0" width="100%" cellspacing="0" cellpadding="0">
<?php 
        if (isset($params['group']) && $params['group']) {
            ?>
			<tr>
				<td>&nbsp;</td>
				<td>
				<?php 
            echo $this->projectTabs($params['toptab'], $params['group']);
            ?>
				</td>
				<td>&nbsp;</td>
			</tr>
			<?php 
        }
        ?>
			<tr>
				<td align="left" bgcolor="#ffffff" width="9"><img src="<?php 
        echo $this->imgroot;
        ?>
tabs/topleft-inner.png" height="9" width="9" alt="" /></td>
				<td bgcolor="#ffffff"><img src="<?php 
        echo $this->imgroot;
        ?>
clear.png" width="1" height="1" alt="" /></td>
				<td align="right" bgcolor="#ffffff" width="9"><img src="<?php 
        echo $this->imgroot;
        ?>
tabs/topright-inner.png" height="9" width="9" alt="" /></td>
			</tr>

			<tr>
				<td bgcolor="#ffffff"><img src="<?php 
        echo $this->imgroot;
        ?>
clear.png" width="10" height="1" alt="" /></td>
				<td valign="top" width="99%" bgcolor="white">

	<?php 
        $this->_feedback->display();
    }