blob: f9c708133c7e5bcb7b97c381ef9b6c88a8a24abd [file] [log] [blame]
gobrien755df672008-01-18 01:01:33 +00001<?php
2/*******************************************************************************
3 * Copyright (c) 2007 Eclipse Foundation and others.
4 * All rights reserved. This program and the accompanying materials
5 * are made available under the terms of the Eclipse Public License v1.0
6 * which accompanies this distribution, and is available at
7 * http://www.eclipse.org/legal/epl-v10.html
8 *
9 * Contributors:
10 * Paul Colton (Aptana)- initial API and implementation
11 * Eclipse Foundation
12*******************************************************************************/
13require("global.php");
14InitPage("login");
15
16$pageTitle = "Babel Project";
17$pageKeywords = "translation,language,nlpack,pack,eclipse,babel";
18
atoulmea4adf8e2009-01-27 19:01:35 +000019global $addon;
20$addon->callHook("head");
gobrien755df672008-01-18 01:01:33 +000021
gobrienc4ebe8f2008-02-28 22:58:48 +000022
gobrien755df672008-01-18 01:01:33 +000023//$_SESSION['language'] = "";
24//$_SESSION['project'] = "";
25//$_SESSION['version'] = "";
droy0eaf9582008-07-15 20:14:36 +000026
droy0eaf9582008-07-15 20:14:36 +000027# Bug 221420 Allow bookmarking file/string/translation
28if(isset($_GET['project'])) {
29 $_SESSION['project'] = stripslashes($_GET['project']);
30}
31if(isset($_GET['version'])) {
32 $_SESSION['version'] = stripslashes($_GET['version']);
33}
34if(isset($_GET['file'])) {
35 $_SESSION['file'] = stripslashes($_GET['file']);
36}
37if(isset($_GET['string'])) {
38 $_SESSION['string'] = htmlspecialchars($_GET['string']);
39}
kitloa7c93ee2008-07-19 14:21:55 +000040
gobrien2f24f2a2008-07-21 18:41:01 +000041$filesOrderNameChecked = "";
42if (!isset($_SESSION['filesOrder']) or $_SESSION['filesOrder'] == 'name') {
kitloa7c93ee2008-07-19 14:21:55 +000043 $filesOrderNameChecked = "checked";
44}
45
gobrien2f24f2a2008-07-21 18:41:01 +000046$filesOrderCompletionChecked = "";
47if (isset($_SESSION['filesOrder']) and $_SESSION['filesOrder'] == 'completion') {
kitloa7c93ee2008-07-19 14:21:55 +000048 $filesOrderCompletionChecked = "checked";
49}
50
gobrien755df672008-01-18 01:01:33 +000051?>
52
53<h1 id="page-message">Welcome to the Babel Project</h1>
droy0757c2c2009-03-31 19:37:36 +000054<? include("fragments/motd.php");?>
gobrien755df672008-01-18 01:01:33 +000055<div id="contentArea">
56
gobriend6da6972008-01-26 00:28:20 +000057 <h2>Languages / Projects / Versions / Files</h2>
gobrienda265d32008-01-24 01:08:14 +000058 <div id="language" class="side-component-small">
droy5b9abb42008-01-30 23:49:22 +000059 <h4 id="language-selection">Languages</h4>
gobrien755df672008-01-18 01:01:33 +000060 <ul id="language-area"class="scrollable-area"></ul>
61 </div>
62
gobrienda265d32008-01-24 01:08:14 +000063 <div id="project" class="side-component-small">
gobrien755df672008-01-18 01:01:33 +000064 <h4 id="project-selection">Projects</h4>
65 <ul id="project-area" class="scrollable-area"></ul>
66 </div>
67
gobrienda265d32008-01-24 01:08:14 +000068 <div id="version" class="side-component-small">
gobrien755df672008-01-18 01:01:33 +000069 <h4 id="version-selection">Versions</h4>
70 <ul id="version-area" class="scrollable-area"></ul>
71 </div>
gobrienda265d32008-01-24 01:08:14 +000072
73 <div id="files" class="side-component-small files">
kitloa7c93ee2008-07-19 14:21:55 +000074 <h4 id="files-selection">
75 Files
76 <input id="files-order-name" name="files-order" type="radio" <?= $filesOrderNameChecked ?>>ordered by name
77 <input id="files-order-completion" name="files-order" type="radio" <?= $filesOrderCompletionChecked ?>>ordered by completion
78 </h4>
gobrienda265d32008-01-24 01:08:14 +000079 <ul id="files-area" class="scrollable-area"></ul>
80 </div>
81
gobrien755df672008-01-18 01:01:33 +000082 <div class="clearing"></div>
83
84
85<!--
86<script type="text/javascript">
87 var myTabs = new YAHOO.widget.TabView("string-area");
88</script>
89-->
90
91
92
93 <div id="string-area" class="yui-navset full-component">
kitlo430c8402008-07-23 18:30:52 +000094 <h2 id="string-title">Strings In File</h2>
gobrien755df672008-01-18 01:01:33 +000095<!--
96 <ul class="yui-nav">
97 <li class="selected"><a href="#tab1"><em>Untranslated</em></a></li>
98 <li><a href="#tab2"><em>Flagged Incorrect</em></a></li>
99 <li><a href="#tab3"><em>Awaiting Rating</em></a></li>
100 </ul>
101 <div class="yui-content" style="clear: both;">
102 <div id="not-translated">
103 </div>
104
105 <ul id="flagged-incorrect">
106 </ul>
107
108 <ul id="awaiting-ratings">
109 </ul>
110 </div>
111
112-->
113 <div id="projecs-strings-area" class="yui-content"> </div>
114
115 <div id="not-translated"></div>
116 </div>
117
118
gobrienb01dc1e2008-02-01 00:39:05 +0000119 <div id="translation-area" class="full-component">
kitlo430c8402008-07-23 18:30:52 +0000120 <h2 id="translation-title">Translation For Key</h2>
gobrien755df672008-01-18 01:01:33 +0000121 <div id="translation-form-container"></div>
gobriend3c60bd2008-02-01 00:28:59 +0000122 <div class="clearing"></div>
gobrien755df672008-01-18 01:01:33 +0000123 </div>
124
125 <div class="clearing"></div>
126
127</div>
128
droy6b0166c2008-07-23 17:23:07 +0000129<script language="javascript">
130 YAHOO.languageManager.getAjaxLanguages();
131</script>
132
gobrien755df672008-01-18 01:01:33 +0000133
134<?php
atoulmea4adf8e2009-01-27 19:01:35 +0000135 global $addon;
136 $addon->callHook("footer");
gobrien755df672008-01-18 01:01:33 +0000137?>