droy | 5c123fc | 2008-02-01 21:56:40 +0000 | [diff] [blame] | 1 | <?php |
| 2 | /** |
| 3 | * @deprecated |
| 4 | */ |
| 5 | ?> |
| 6 | |
| 7 | |
droy | 8177747 | 2007-11-28 21:35:58 +0000 | [diff] [blame] | 8 | <div id="maincontent"> |
| 9 | <div id="midcolumn"> |
| 10 | |
| 11 | <h1><?= $pageTitle ?></h1> |
droy | ae4e4e6 | 2007-11-29 19:36:00 +0000 | [diff] [blame] | 12 | <p>Use this form to import .properties files to be translated. The CVS path is calculated from the file path on your computer, but can be overriden if it is not correct.</p> |
droy | 8177747 | 2007-11-28 21:35:58 +0000 | [diff] [blame] | 13 | <form name="frmLogin" method="post" enctype="multipart/form-data"> |
| 14 | |
| 15 | <table cellspacing=4 cellpadding=0 border=0> |
| 16 | |
| 17 | <tr><td></td><td colspan=2 style="color:red;"><?= $GLOBALS['g_ERRSTRS'][0] ?></td></tr> |
| 18 | <tr> |
droy | ae4e4e6 | 2007-11-29 19:36:00 +0000 | [diff] [blame] | 19 | <td>Project:</td><td><select name="project_id"> |
| 20 | <option value="eclipse"/>Eclipse</option></select></td> |
droy | 8177747 | 2007-11-28 21:35:58 +0000 | [diff] [blame] | 21 | <td style='width:100px; color:red;'><?= $GLOBALS['g_ERRSTRS'][1] ?></td> |
| 22 | </tr> |
| 23 | <tr> |
| 24 | <td>File:</td><td><input onchange="document.forms['frmLogin'].fullpath.value = fnFindPath(this.value);" type="file" name="name" value="<?= $NAME ?>" size="80" /></td> |
| 25 | <td style='width:100px; color:red;'><?= $GLOBALS['g_ERRSTRS'][2] ?></td> |
| 26 | </tr> |
| 27 | <tr> |
| 28 | <td>Complete CVS path:</td><td>/cvsroot/eclipse/<input type="text" name="fullpath" value="<?= $FULLPATH ?>" size="80" /></td> |
| 29 | <td style='width:100px; color:red;'><?= $GLOBALS['g_ERRSTRS'][3] ?></td> |
| 30 | </tr> |
| 31 | <tr> |
droy | ae4e4e6 | 2007-11-29 19:36:00 +0000 | [diff] [blame] | 32 | <td></td><td><input type="submit" name="submit" value="Import" style="font-size:14px;" /></td></tr> |
droy | 8177747 | 2007-11-28 21:35:58 +0000 | [diff] [blame] | 33 | </table> |
| 34 | </form> |
| 35 | <?php |
| 36 | if($strings != "" && $SUBMIT == "Import") { |
droy | 2e00fcc | 2007-11-29 21:39:23 +0000 | [diff] [blame] | 37 | echo '<h2>Successfully imported these strings:</h2><p><ul>'; |
droy | 8177747 | 2007-11-28 21:35:58 +0000 | [diff] [blame] | 38 | $strCount = 0; |
| 39 | foreach($aStrings as $str) { |
| 40 | $strCount++; |
| 41 | echo "<li>" . $str . "</li>"; |
| 42 | } |
| 43 | echo "</ul>Total: $strCount</p>"; |
| 44 | $FULLPATH = ""; |
| 45 | } |
| 46 | ?> |
| 47 | <br /> |
| 48 | </div><div id="rightcolumn"> |
| 49 | <div class="sideitem"> |
| 50 | <h6>Related Links</h6> |
| 51 | <ul> |
| 52 | <li><a href="//www.eclipse.org/babel/">Babel project home</a></li> |
| 53 | </ul> |
| 54 | </div> |
| 55 | </div> |
| 56 | </div> |
| 57 | <script language="javascript"> |
| 58 | function fnFindPath(_path) { |
| 59 | if(_path.indexOf('org.eclipse') > 0) { |
| 60 | return _path.substring(_path.indexOf('org.eclipse')); |
| 61 | } |
| 62 | if(_path.indexOf('plugins') > 0) { |
| 63 | return _path.substring(_path.indexOf('plugins')); |
| 64 | } |
| 65 | if(_path.indexOf('features') > 0) { |
| 66 | return _path.substring(_path.indexOf('features')); |
| 67 | } |
| 68 | return ""; |
| 69 | } |
| 70 | </script> |