-
-{literal}
-<script type="text/javascript">//<![CDATA[
- var gdt = new Date();
- var year = gdt.getYear();
- if (year < 1000) {
- year += 1900;
- }
-
- var oldMate = year >= {/literal}{$smarty.session.promo_sortie}{literal};
-
- function printTitle(text)
- {
- if (oldMate) {
- document.write("ex-" + text);
- } else {
- document.write(text);
- }
- }
-
- function update(type)
- {
- var val = document.forms.prof_annu[type + '_sel'].value;
- if (val == '0' || document.getElementById(type + '_' + val) != null) {
- document.getElementById(type + '_add').style.display = 'none';
- } else {
- document.getElementById(type + '_add').style.display = '';
- }
- }
-
- function remove(cat, id)
- {
- $('#' + cat + '_' + id).remove();
- update(cat);
- }
-
- function add(cat)
- {
- var cb = document.forms.prof_annu[cat + '_sel'];
- var id = cb.value;
- var text = cb.options[cb.selectedIndex].text;
- var html = '<tr id="' + cat + '_' + id + '">'
- + ' <td>'
- + ' <input type="hidden" name="' + cat + '[' + id + ']" value="' + text + '" />'
- + ' </td>'
- + ' <td>'
- + ' <div style="float: left; width: 70%">'
- + text
- + ' </div>'
- + ' <a href="javascript:remove(\'' + cat + '\', ' + id + ')">'
- + ' <img src="images/icons/cross.gif" alt="cross" title="Supprimer ce groupe" />'
- + ' </a>'
- + ' </td>'
- + '</tr>';
- $('#' + cat).after(html);
- update(cat);
- }
-
- function updateSubLink(cb)
- {
- var href = cb.value ? cb.value : "http://www.polytechnique.net";
- document.getElementById("groupesx_sub").href = href;
- }
-
- //]]>
-</script>
-{/literal}
-
-<table class="bicol" style="margin-bottom: 1em" summary="Profil: Informations Polytechniciennes">