示例#1
0
    echo "\n        <tr><td class=heading_left>\n    <a href=https://www.facebook.com/BOINC-32672338584/><img width=36 src=images/facebook_logo.jpg align=left title='BOINC on Facebook'></a>\n    <a href=https://plus.google.com/+boinc><img width=36 src=images/google_plus_logo.jpg align=left title='BOINC on Google+'></a>\n        <center>\n        <span class=section_title>" . tra("Volunteer") . "</span>\n        <br>\n        <a class=heading href=download.php><b>" . tra("Download") . "</b></a>\n        &middot; <a class=heading href=\"/wiki/BOINC_Help\"><b>" . tra("Help") . "</b></a>\n        &middot; <a class=heading href=\"wiki/User_manual\"><b><span class=nobr>" . tra("Documentation") . "</span></b></a> \n        &middot; <a class=heading href=addons.php><b><span class=nobr>" . tra("Add-ons") . "</span></b></a> \n        &middot; <a class=heading href=links.php><b><span class=nobr>" . tra("Links") . "</span></b></a> \n        </center>\n        </td></tr>\n        <tr><td>\n        <p>\n        " . tra("Use the idle time on your computer (Windows, Mac, Linux, or Android) to cure diseases, study global warming, discover pulsars, and do many other types of scientific research.  It's safe, secure, and easy:") . "\n        <ol>\n        <li> <a href=projects.php>" . tra("Choose projects") . "</a>\n        <li> <a href=download.php>" . tra("Download BOINC software") . "</a>\n        <li> " . tra("Enter an email address and password.") . "\n        </ol>\n        <p>\n        " . sprintf(tra("Or, if you run several projects, try an %saccount manager%s such as %sGridRepublic%s or %sBAM!%s. "), "<a href=\"wiki/Account_managers\">", "</a>", "<a href=\"https://www.gridrepublic.org\">", "</a>", "<a href=\"https://bam.boincstats.com/\">", "</a>") . "\n        <p>\n        For Android devices, download the BOINC\n" . "\n        app from the Google Play Store or (for Kindle) the Amazon App Store.\n" . "\n        </td></tr>\n    ";
}
function show_create()
{
    echo "\n        <tr><td class=heading_left>\n        <center>\n        <span class=section_title>" . tra("Compute with BOINC") . "</span>\n        <br>\n        <b><a class=heading href=\"trac/wiki/ProjectMain\">" . tra("Documentation") . "</a></b>\n        &middot; <b><a class=heading href=\"trac/wiki/ServerUpdates\">" . tra("Software updates") . "</a></b>\n        </center>\n        </td></tr>\n        <tr><td>\n        <ul>\n        <li>\n    ", tra("%1Scientists%2: use BOINC to create a %3volunteer computing project%4, giving you the power of thousands of CPUs and GPUs.", "<b>", "</b>", "<a href=volunteer.php>", "</a>"), "<li>", tra("%1Universities%2: use BOINC to create a %3Virtual Campus Supercomputing Center%4.", "<b>", "</b>", "<a href=\"trac/wiki/VirtualCampusSupercomputerCenter\">", "</a>"), "<li>", tra("%1Companies%2: use BOINC for %3desktop Grid computing%4.", "<b>", "</b>", "<a href=dg.php>", "</a>"), " </ul>\n        </td></tr>\n    ";
}
function show_other()
{
    echo "\n        <tr><td class=heading_left>\n        <center>\n        <span class=section_title>" . tra("About BOINC") . "</span>\n        </center>\n        </td></tr>\n        <tr><td>\n            <table width=100%>\n            <tr valign=top> <td>\n            <center><font size=+1>Project</font></center>\n                <ul>\n                <li> <a href=\"dev/\">" . tra("Message boards") . "</a>\n                <li> <a href=\"trac/wiki/EmailLists\">" . tra("Email lists") . "</a>\n                <li> <a href=\"trac/wiki/BoincEvents\">" . tra("Events") . "</a>\n                <li> <a href=logo.php>Logos and graphics</a>\n                <li> <a href=\"trac/wiki/ProjectGovernance\">Governance</a>\n                <li> <a href=\"trac/wiki/ProjectPeople\">Contact</a>\n                </ul>\n            </td><td>\n            <center><font size=+1>Software</font></center>\n                <ul>\n                <li> <a href=trac/wiki/SourceCodeGit>" . tra("Source code") . "</a>\n                <li> <a href=https://github.com/BOINC/boinc/issues>Report bugs</a>\n                <li> <a href=\"trac/wiki/SoftwareBuilding\">" . tra("Building BOINC") . "</a>\n                <li> <a href=\"trac/wiki/SoftwareDevelopment\">" . tra("Design documents") . "</a>\n                <li> <a href=\"trac/wiki/DevProcess\">" . tra("Development process") . "</a>\n                <li> <a href=\"trac/wiki/DevProjects\">" . tra("Volunteer") . "</a>\n                <li> <a href=\"trac/wiki/SoftwareAddon\">" . tra("APIs") . "</a>\n                </ul>\n            </td><td valign=top>\n\n            <center><font size=+1>Contribute</font></center>\n                <ul>\n                <li> <a href=trac/wiki/ContributePage>Overview</a>\n                <li> <a href=\"trac/wiki/DevProjects\">" . tra("Programming") . "</a>\n                <li> <a href=\"trac/wiki/TranslateIntro\">" . tra("Translation") . "</a>\n                <li> <a href=\"trac/wiki/AlphaInstructions\">" . tra("Testing") . "</a>\n                <li> <a href=\"trac/wiki/WikiMeta\">" . tra("Documentation") . "</a>\n                <li> <a href=\"http://boinc.berkeley.edu/wiki/Publicizing_BOINC\">" . tra("Publicity") . "</a>\n                </ul>\n            </td></tr></table>\n        </td></tr>\n    ";
}
function show_nsf()
{
    echo "\n        <tr><td>\n        <img align=left hspace=8 src=nsf.gif alt=\"NSF logo\">\n        BOINC is supported by the\n        <a href=\"http://nsf.gov\">National Science Foundation</a>\n        through awards SCI-0221529, SCI-0438443, SCI-0506411,\n                PHY/0555655, and OCI-0721124.\n        <span class=note>\n        Any opinions, findings, and conclusions or recommendations expressed in\n        this material are those of the author(s)\n        and do not necessarily reflect the views of the National Science Foundation.\n        </span>\n        </td></tr>\n    ";
}
header("Content-type: text/html; charset=utf-8");
html_tag();
$rh_col_width = 390;
echo "\n    <head>\n    <link rel=\"shortcut icon\" href=\"logo/favicon.gif\">\n    <link rel=\"stylesheet\" type=\"text/css\" href=\"white.css\">\n    <link href=\"https://plus.google.com/117150698502685192946\" rel=\"publisher\" />\n    <title>BOINC</title>\n    <meta name=description content=\"BOINC is an open-source software platform for computing using volunteered resources\">\n    <meta name=keywords content=\"distributed scientific computing supercomputing grid SETI@home public computing volunteer computing \">\n    </head>\n    <body>\n    <table width=\"100%\" border=0><tr>\n    <td valign=top>\n    <img hspace=20 vspace=6 align=left src=\"logo/www_logo.gif\" alt=\"BOINC logo\">\n    </td>\n    <td align=center>\n    <span class=\"title\">\n    " . sprintf(tra("Open-source software for volunteer computing")) . "\n    </span><br><br>\n    </td>\n    <td width={$rh_col_width} align=right>\n";
search_form();
language_form();
echo "\n    </td></tr>\n    </table>\n\n    <table width=\"100%\" border=0 cellspacing=0 cellpadding=4>\n    <tr>\n    <td valign=top>\n    <table width=\"100%\" border=0 cellspacing=0 cellpadding=8>\n";
show_participate();
show_create();
show_other();
//show_nsf();
echo "\n    </table>\n    </td>\n";
echo " <td valign=top width=390>\n";
show_participant();
show_news_items();
echo "\n    </td></tr>\n    </table>\n";
page_tail(true, true);
include './controller/edit_profile_language_controller.php';
?>
<script src="./assets/js/form.js"></script>

<form action="#" method="post" class="form-horizontal">
	<fieldset>
		<legend> <?php 
echo _('Spoken Language');
?>
 </legend>
			<div class="form-inline">
			 <div id="tab" class="form-group">

				  	<?php 
language_form($current_user, $db);
?>
				  

				  <div id="to_clone" style="display:none;">
					  <select class="form-control" name="languages_id[]" id="languages_id">
							<?php 
Form::languages($language_manager);
?>
					  </select>
					  <select class="form-control" name="levels_id[]" id="levels_id">
					  	<option value="1"><?php 
echo _('Beginner');
?>
</option>
					  	<option value="2"><?php