gobrien | 197d283 | 2007-11-27 18:42:53 +0000 | [diff] [blame] | 1 | <?php |
gobrien | 35e2378 | 2007-11-28 21:37:18 +0000 | [diff] [blame] | 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 | *******************************************************************************/ |
| 13 | require("global.php"); |
droy | 2d5fd19 | 2007-11-28 14:42:45 +0000 | [diff] [blame] | 14 | InitPage("login"); |
gobrien | 197d283 | 2007-11-27 18:42:53 +0000 | [diff] [blame] | 15 | |
gobrien | 35e2378 | 2007-11-28 21:37:18 +0000 | [diff] [blame] | 16 | $pageTitle = "Babel Project"; |
| 17 | $pageKeywords = "translation,language,nlpack,pack,eclipse,babel"; |
| 18 | |
gobrien | 197d283 | 2007-11-27 18:42:53 +0000 | [diff] [blame] | 19 | include("head.php"); |
gobrien | 35e2378 | 2007-11-28 21:37:18 +0000 | [diff] [blame] | 20 | |
gobrien | ad11d89 | 2007-12-19 08:33:25 +0000 | [diff] [blame] | 21 | //echo $User->userid; |
| 22 | //echo $User->first_name; |
gobrien | 197d283 | 2007-11-27 18:42:53 +0000 | [diff] [blame] | 23 | |
gobrien | 4827546 | 2007-11-29 21:29:17 +0000 | [diff] [blame] | 24 | //$_SESSION['language'] = ""; |
| 25 | //$_SESSION['project'] = ""; |
gobrien | ad11d89 | 2007-12-19 08:33:25 +0000 | [diff] [blame] | 26 | //$_SESSION['version'] = ""; |
gobrien | 4827546 | 2007-11-29 21:29:17 +0000 | [diff] [blame] | 27 | |
gobrien | ad11d89 | 2007-12-19 08:33:25 +0000 | [diff] [blame] | 28 | //print "<pre>"; |
| 29 | //print_r($_SESSION); |
| 30 | //print "</pre>"; |
gobrien | 35e2378 | 2007-11-28 21:37:18 +0000 | [diff] [blame] | 31 | ?> |
gobrien | 197d283 | 2007-11-27 18:42:53 +0000 | [diff] [blame] | 32 | |
gobrien | ad11d89 | 2007-12-19 08:33:25 +0000 | [diff] [blame] | 33 | <h1 id="page-message">Welcome to the Babel Project</h1> |
gobrien | 35e2378 | 2007-11-28 21:37:18 +0000 | [diff] [blame] | 34 | <div id="contentArea"> |
gobrien | ad11d89 | 2007-12-19 08:33:25 +0000 | [diff] [blame] | 35 | |
| 36 | <h2>Languages / Projects / Versions</h1> |
| 37 | <div id="language" class="side-component"> |
| 38 | <h4 id="language-selection">Langues</h4> |
| 39 | <div id="language-area"class="scrollable-area"></div> |
gobrien | 4827546 | 2007-11-29 21:29:17 +0000 | [diff] [blame] | 40 | </div> |
gobrien | ad11d89 | 2007-12-19 08:33:25 +0000 | [diff] [blame] | 41 | |
| 42 | <div id="project" class="side-component"> |
| 43 | <h4 id="project-selection">Projects</h4> |
| 44 | <div id="project-area" class="scrollable-area"></div> |
| 45 | </div> |
| 46 | |
| 47 | <div id="project" class="side-component"> |
| 48 | <h4 id="version-selection">Versions</h4> |
| 49 | <div id="version-area" class="scrollable-area"></div> |
| 50 | </div> |
| 51 | |
| 52 | <div class="clearing"></div> |
| 53 | |
| 54 | |
| 55 | <!-- |
| 56 | <script type="text/javascript"> |
| 57 | var myTabs = new YAHOO.widget.TabView("string-area"); |
| 58 | </script> |
| 59 | --> |
| 60 | |
| 61 | |
| 62 | |
| 63 | <div id="string-area" class="yui-navset full-component"> |
| 64 | <h2>Translatable Strings</h2> |
| 65 | <!-- |
| 66 | <ul class="yui-nav"> |
| 67 | <li class="selected"><a href="#tab1"><em>Untranslated</em></a></li> |
| 68 | <li><a href="#tab2"><em>Flagged Incorrect</em></a></li> |
| 69 | <li><a href="#tab3"><em>Awaiting Rating</em></a></li> |
| 70 | </ul> |
| 71 | <div class="yui-content" style="clear: both;"> |
| 72 | <div id="not-translated"> |
| 73 | </div> |
| 74 | |
| 75 | <ul id="flagged-incorrect"> |
| 76 | </ul> |
| 77 | |
| 78 | <ul id="awaiting-ratings"> |
| 79 | </ul> |
| 80 | </div> |
| 81 | |
| 82 | --> |
| 83 | <div id="projecs-strings-area" class="yui-content" style="clear: both;"> |
| 84 | </div> |
| 85 | <div id="not-translated"> |
| 86 | </div> |
| 87 | </div> |
| 88 | |
| 89 | |
| 90 | <div id="translation-area" class="full-component"> |
| 91 | <h2>String Translation</h2> |
| 92 | <div id="translation-form-container"></div> |
| 93 | </div> |
| 94 | |
| 95 | <div class="clearing"></div> |
| 96 | |
gobrien | 35e2378 | 2007-11-28 21:37:18 +0000 | [diff] [blame] | 97 | </div> |
| 98 | |
| 99 | <?php |
gobrien | 4827546 | 2007-11-29 21:29:17 +0000 | [diff] [blame] | 100 | if(!$_SESSION['language']){ |
| 101 | //NO LANGUAGE SELECT FOR EDITING |
gobrien | ad11d89 | 2007-12-19 08:33:25 +0000 | [diff] [blame] | 102 | ?><script>YAHOO.languageManager.getAjaxLanguages();</script><?php |
gobrien | 35e2378 | 2007-11-28 21:37:18 +0000 | [diff] [blame] | 103 | }else{ |
gobrien | 4827546 | 2007-11-29 21:29:17 +0000 | [diff] [blame] | 104 | //SHOW CURRENT LANGUAGE |
gobrien | ad11d89 | 2007-12-19 08:33:25 +0000 | [diff] [blame] | 105 | ?><script>YAHOO.languageManager.getAjaxLanguages("<?=$_SESSION['language'];?>");</script><?php |
gobrien | 4827546 | 2007-11-29 21:29:17 +0000 | [diff] [blame] | 106 | |
| 107 | //LIST PROJECTS TO EDIT |
| 108 | if(!$_SESSION['project']){ |
gobrien | ad11d89 | 2007-12-19 08:33:25 +0000 | [diff] [blame] | 109 | ?><script>YAHOO.projectManager.getAjaxProject("<?=$_SESSION['project'];?>");</script><?php |
gobrien | 4827546 | 2007-11-29 21:29:17 +0000 | [diff] [blame] | 110 | }else{ |
gobrien | ad11d89 | 2007-12-19 08:33:25 +0000 | [diff] [blame] | 111 | ?><script>YAHOO.projectManager.getAjaxProject("<?=$_SESSION['project'];?>");</script><?php |
| 112 | if(!$_SESSION['version']){ |
| 113 | ?><script>YAHOO.versionManager.getAjaxVersions("<?=$_SESSION['version'];?>");</script><?php |
| 114 | }else{ |
| 115 | ?> |
| 116 | <script>YAHOO.versionManager.getAjaxVersions("<?=$_SESSION['version'];?>");</script> |
| 117 | <script>YAHOO.projectStringsManager.getAjaxProjectStrings();</script> |
| 118 | <?php |
| 119 | } |
gobrien | 4827546 | 2007-11-29 21:29:17 +0000 | [diff] [blame] | 120 | } |
| 121 | } |
| 122 | include("foot.php"); |
gobrien | 197d283 | 2007-11-27 18:42:53 +0000 | [diff] [blame] | 123 | ?> |