From: Pascal Corpet Date: Thu, 27 May 2010 22:38:54 +0000 (+0200) Subject: Fixes some XHTML strict errors or warnings X-Git-Tag: xorg/1.0.0~233 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=9fce7016cd4cca4445f5c1037fe72f70b71ac3e5;p=platal.git Fixes some XHTML strict errors or warnings --- diff --git a/htdocs/javascript/profile.js b/htdocs/javascript/profile.js index 2c5291c..4bb7eb1 100644 --- a/htdocs/javascript/profile.js +++ b/htdocs/javascript/profile.js @@ -376,7 +376,7 @@ function addBinet() + '
' + text + '
' - + ' ' + + ' ' + ' cross' + ' ' + ' ' @@ -549,7 +549,7 @@ function addCountry() var val = $('#countries_table').find('[name=countries_sel] :selected').val(); var text = $('#countries_table').find('[name=countries_sel] :selected').text(); var html = '
' - + ' ' + + ' ' + ' ' + ' ' + '
' + text + '
' @@ -601,7 +601,7 @@ function addSector() var sst = $('#subSectorSelection').find("[name='jobs[-1][subSector]'] :selected").text(); var html = '
' - + ' ' + + ' ' + ' ' + ' ' + ' ' diff --git a/include/education.func.inc.php b/include/education.func.inc.php index 16cca57..dbfba28 100644 --- a/include/education.func.inc.php +++ b/include/education.func.inc.php @@ -21,7 +21,7 @@ function education_options($current = 0) { - $html = ''; + $html = ''; $res = XDB::iterator("SELECT e.id AS id, gc.countryFR AS country, IF(CHAR_LENGTH(e.name) > 76, e.abbreviation, e.name) AS name FROM profile_education_enum AS e @@ -33,8 +33,11 @@ function education_options($current = 0) $country = ""; while ($arr_edu = $res->next()) { if ($arr_edu["country"] != $country) { + if ($country) { + $html .= ''; + } $country = $arr_edu["country"]; - $html .= ""; + $html .= ''; } $html .= ''; + } return $html; } diff --git a/plugins/function.select_nat.php b/plugins/function.select_nat.php index 9a73f39..a9720ed 100644 --- a/plugins/function.select_nat.php +++ b/plugins/function.select_nat.php @@ -30,10 +30,10 @@ function select_nat($valeur, $pad=false) { // on ajoute une entree vide si $pad est vrai $html = ""; if ($pad) { - $html .= sprintf("\n", ($valeur ? $sel : "")); + $html .= sprintf("\n", ($valeur ? $sel : "")); } while (list($my_id, $my_text) = $res->next()) { - $html .= sprintf("\n", $my_id, ($valeur==$my_id ? $sel : ""), $my_text); + $html .= sprintf("\n", $my_id, ($valeur==$my_id ? $sel : ""), $my_text?$my_text:" "); } return $html; diff --git a/plugins/function.test_email.php b/plugins/function.test_email.php index 2093082..745a484 100644 --- a/plugins/function.test_email.php +++ b/plugins/function.test_email.php @@ -26,8 +26,8 @@ function smarty_function_test_email($params, &$smarty) { return '
' . '

' . '
' - . ' ' - . '
' + . '
' + . '
' . '
' . '
'; } diff --git a/templates/admin/validation.tpl b/templates/admin/validation.tpl index 970e2f9..815d403 100644 --- a/templates/admin/validation.tpl +++ b/templates/admin/validation.tpl @@ -136,7 +136,7 @@ function toggleField(name, id, obj) {
Réponse préremplie : - + {foreach from=$medal_list key=type item=list} {foreach from=$list item=m} diff --git a/templates/profile/general.edu.tpl b/templates/profile/general.edu.tpl index e4da793..8a3c4c5 100644 --- a/templates/profile/general.edu.tpl +++ b/templates/profile/general.edu.tpl @@ -38,7 +38,7 @@ diff --git a/templates/profile/general.searchname.tpl b/templates/profile/general.searchname.tpl index ef613e1..2ba0d0a 100644 --- a/templates/profile/general.searchname.tpl +++ b/templates/profile/general.searchname.tpl @@ -57,7 +57,7 @@ title="Coche cette case si ton nom commence par une particle." onchange="toggleParticle({$i});"/> {/if} - {if !$sn.always_displayed} + {if !$sn.always_displayed} {icon name=cross title="Supprimer ce nom"} {/if} diff --git a/templates/profile/general.tpl b/templates/profile/general.tpl index 7c5a079..b5a567d 100644 --- a/templates/profile/general.tpl +++ b/templates/profile/general.tpl @@ -264,7 +264,7 @@
{/if} @@ -282,13 +282,13 @@ {include file="profile/general.networking.tpl" nw=$network i=$id} {/foreach} - + {/if} diff --git a/templates/profile/jobs.sector.tpl b/templates/profile/jobs.sector.tpl index 141c402..e12c3dc 100644 --- a/templates/profile/jobs.sector.tpl +++ b/templates/profile/jobs.sector.tpl @@ -22,7 +22,7 @@ - + {iterate from=$subSubSectors item=subSubSector} {/iterate} diff --git a/templates/profile/mentor.tpl b/templates/profile/mentor.tpl index aaae1e0..52688b9 100644 --- a/templates/profile/mentor.tpl +++ b/templates/profile/mentor.tpl @@ -61,9 +61,9 @@ {icon name=add title="Ajouter ce pays"}
@@ -73,7 +73,7 @@ {foreach from=$countries item=country key=i}
{icon name=cross title="Supprimer ce pays"} + href="javascript:removeElement('countries','{$i}')">{icon name=cross title="Supprimer ce pays"}
{$country}
@@ -115,7 +115,7 @@ {foreach from=$sectors item=sector key=s} {foreach from=$sector item=subSector key=ss}
- + {icon name=cross title="Supprimer ce secteur"} diff --git a/templates/profile/phone.tpl b/templates/profile/phone.tpl index 35d9c51..056d85a 100644 --- a/templates/profile/phone.tpl +++ b/templates/profile/phone.tpl @@ -44,7 +44,7 @@ diff --git a/templates/profile/skill.skill.tpl b/templates/profile/skill.skill.tpl index 853177e..08e6757 100644 --- a/templates/profile/skill.skill.tpl +++ b/templates/profile/skill.skill.tpl @@ -30,7 +30,7 @@ {/foreach} - {icon name=cross title="Supprimer"} + {icon name=cross title="Supprimer"}
{* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *} diff --git a/templates/profile/skill.tpl b/templates/profile/skill.tpl index 91ba7bd..469bb15 100644 --- a/templates/profile/skill.tpl +++ b/templates/profile/skill.tpl @@ -34,7 +34,7 @@ Domaine : - + {iterate from=$lang_list item=lang} {/iterate} diff --git a/templates/survey/edit_question.tpl b/templates/survey/edit_question.tpl index 16961df..cc63cdd 100644 --- a/templates/survey/edit_question.tpl +++ b/templates/survey/edit_question.tpl @@ -46,7 +46,7 @@ fid = "t" + id[name]; $("#" + name + "_" + tid).before('
' + ' ' - + '' + + '' + '
'); id[name]++; $("#" + name + "_" + fid + "_field").focus(); diff --git a/templates/survey/edit_radio.tpl b/templates/survey/edit_radio.tpl index 6d5d985..8b4e1b2 100644 --- a/templates/survey/edit_radio.tpl +++ b/templates/survey/edit_radio.tpl @@ -27,11 +27,11 @@ {foreach from=$survey_current.choices key=value item=choice} {/foreach} diff --git a/templates/survey/edit_radiotable.tpl b/templates/survey/edit_radiotable.tpl index 4b79a27..0e034c3 100644 --- a/templates/survey/edit_radiotable.tpl +++ b/templates/survey/edit_radiotable.tpl @@ -27,11 +27,11 @@ {foreach from=$survey_current.subquestions key=value item=subquestion} {/foreach} diff --git a/templates/xnetevents/index.tpl b/templates/xnetevents/index.tpl index 2b4c05c..16f6c84 100644 --- a/templates/xnetevents/index.tpl +++ b/templates/xnetevents/index.tpl @@ -73,7 +73,7 @@ modifier {icon name=date_edit title="Édition de l'événement"}]   - [ + [ {if !$archive} archiver {icon name=package_add title="Archivage"}] @@ -82,7 +82,7 @@ {icon name=package_delete title="Désarchivage"}] {/if}   - [ supprimer {icon name=delete title='Suppression'}] diff --git a/templates/xnetgrp/edit.tpl b/templates/xnetgrp/edit.tpl index b5e00c8..0308240 100644 --- a/templates/xnetgrp/edit.tpl +++ b/templates/xnetgrp/edit.tpl @@ -69,7 +69,7 @@ - + {foreach item=user from=$users} {/foreach}