+ ' <div style="float: left; width: 70%">'
+ text
+ ' </div>'
- + ' <a href="javascript:removeElement(\'binets\', ' + id + ')">'
+ + ' <a href="javascript:removeElement(\'binets\',' + id + ')">'
+ ' <img src="images/icons/cross.gif" alt="cross" title="Supprimer ce groupe" />'
+ ' </a>'
+ ' </td>'
var val = $('#countries_table').find('[name=countries_sel] :selected').val();
var text = $('#countries_table').find('[name=countries_sel] :selected').text();
var html = '<div id="countries_' + val + '" style="clear: both; margin-bottom: 0.7em">'
- + ' <a href="javascript:removeElement(\'countries\', \'' + val + '\')" style="display: block; float:right">'
+ + ' <a href="javascript:removeElement(\'countries\',\'' + val + '\')" style="display: block; float:right">'
+ ' <img src="images/icons/cross.gif" alt="" title="Supprimer ce pays" />'
+ ' </a>'
+ ' <div style="float: left; width: 50%">' + text + '</div>'
var sst = $('#subSectorSelection').find("[name='jobs[-1][subSector]'] :selected").text();
var html = '<div id="sectors_' + s + '_' + ss + '" style="clear: both; margin-top: 0.5em" class="titre">'
- + ' <a href="javascript:removeSector(\'' + s + '\', \'' + ss + '\')" style="display: block; float: right">'
+ + ' <a href="javascript:removeSector(\'' + s + '\',\'' + ss + '\')" style="display: block; float: right">'
+ ' <img src="images/icons/cross.gif" alt="" title="Supprimer ce secteur" />'
+ ' </a>'
+ ' <input type="hidden" name="sectors[' + s + '][' + ss + ']" value="' + sst + '" />'
function education_options($current = 0)
{
- $html = '<option value="-1"></option>';
+ $html = '<option value="-1"> </option>';
$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
$country = "";
while ($arr_edu = $res->next()) {
if ($arr_edu["country"] != $country) {
+ if ($country) {
+ $html .= '</optgroup>';
+ }
$country = $arr_edu["country"];
- $html .= "<optgroup label=" . $country . ">";
+ $html .= '<optgroup label="' . $country . '">';
}
$html .= '<option value="' . $arr_edu["id"] . '"';
if ($arr_edu["id"] == $current) {
}
$html .= '>' . htmlspecialchars($arr_edu["name"]) . "</option>\n";
}
+ if ($country) {
+ $html .= '</optgroup>';
+ }
return $html;
}
// on ajoute une entree vide si $pad est vrai
$html = "";
if ($pad) {
- $html .= sprintf("<option value=\"\"%s></option>\n", ($valeur ? $sel : ""));
+ $html .= sprintf("<option value=\"\"%s> </option>\n", ($valeur ? $sel : ""));
}
while (list($my_id, $my_text) = $res->next()) {
- $html .= sprintf("<option value=\"%s\"%s>%s</option>\n", $my_id, ($valeur==$my_id ? $sel : ""), $my_text);
+ $html .= sprintf("<option value=\"%s\"%s>%s</option>\n", $my_id, ($valeur==$my_id ? $sel : ""), $my_text?$my_text:" ");
}
return $html;
return '<div class="center">'
. ' <div id="mail_sent" style="position: absolute;"></div><br />'
. ' <form action="emails/test" method="get" onsubmit="return sendTestEmail(' . $token . $hruid . ')">'
- . ' <input type="hidden" name="token" value="' . S::v('xsrf_token') . '" />'
- . ' <div><input type="submit" name="send" value="' . $label . '" /></div>'
+ . ' <div><input type="hidden" name="token" value="' . S::v('xsrf_token') . '" />'
+ . ' <input type="submit" name="send" value="' . $label . '" /></div>'
. ' </form>'
. '</div>';
}
<div>
Réponse préremplie :
<select onchange="this.form.comm.value=this.value">
- <option value=""></option>
+ <option value=""> </option>
{foreach from=$valid->answers() item=automatic_answer}
<option value="{$automatic_answer.answer}">{$automatic_answer.title}</option>
{/foreach}
</div>
<div class="{$prefid}_geoloc">
<ul>
- <li><a href="javascript:validGeoloc('{$prefid}', '{$id}', 0)" style="color: red">ton adresse (à gauche)</a> ;</li>
- <li><a href="javascript:validGeoloc('{$prefid}', '{$id}', 1)" style="color: green">notre suggestion (à droite)</a> ;</li>
- <li><a href="javascript:validGeoloc('{$prefid}', '{$id}', 2)"
+ <li><a href="javascript:validGeoloc('{$prefid}','{$id}',0)" style="color: red">ton adresse (à gauche)</a> ;</li>
+ <li><a href="javascript:validGeoloc('{$prefid}','{$id}',1)" style="color: green">notre suggestion (à droite)</a> ;</li>
+ <li><a href="javascript:validGeoloc('{$prefid}','{$id}',2)"
title="Garder le texte de l'adresse que tu as renseignée tout en utilisant les informations trouvées par le géocodage pour te localiser sur le planisphère et dans lors d'une recherche dans l'annuaire.">
le texte de ton adresse localisé à l'endroit que nous te suggérons</a>.</li>
</ul>
{/tidy}
{if !$nochange}
<div class="right">
- <a href="" onclick="Ajax.update_html('tod', 'ajax/tips/{$tips.id}'); return false" style="text-decoration: none">
+ <a href="events" onclick="Ajax.update_html('tod', 'ajax/tips/{$tips.id}'); return false" style="text-decoration: none">
Astuce suivante {icon name=resultset_next title="Astuce suivante"}
</a>
</div>
<td class="half">
{if $smarty.session.email_format eq html}
<h3>
- <a href="javascript:dynpostkv('prefs', 'email_format', 'text')">Recevoir les emails en format texte</a>
+ <a href="javascript:dynpostkv('prefs','email_format','text')">Recevoir les emails en format texte</a>
</h3>
<div class='explication'>
Tu recois tous les emails envoyés par le site
</div>
{else}
<h3>
- <a href="javascript:dynpostkv('prefs', 'email_format', 'html')">Recevoir les emails en HTML</a>
+ <a href="javascript:dynpostkv('prefs','email_format','html')">Recevoir les emails en HTML</a>
</h3>
<div class='explication'>
Tu recois tous les emails envoyés par le site
<td class="half">
<h3>
{if $smarty.session.token}
- <a href="javascript:dynpostkv('prefs', 'rss', 0)">Désactiver les fils rss</a>
+ <a href="javascript:dynpostkv('prefs','rss',0)">Désactiver les fils rss</a>
{else}
- <a href="javascript:dynpostkv('prefs', 'rss', 1)">Activer les fils rss</a>
+ <a href="javascript:dynpostkv('prefs','rss',1)">Activer les fils rss</a>
{/if}
</h3>
<div class='explication'>
<tr>
<th class="grayed">
<div style="float: right">
- <a href="javascript:toggleAddress('{$i}', 0)">{icon name=arrow_refresh title="Restaurer l'adresse"}</a>
+ <a href="javascript:toggleAddress('{$i}',0)">{icon name=arrow_refresh title="Restaurer l'adresse"}</a>
</div>
Restaurer l'adresse n°{$i+1}
</th>
</label>
</div>
<div style="float: right">
- <a href="javascript:toggleAddress('{$i}', 1)">
+ <a href="javascript:toggleAddress('{$i}',1)">
{icon name=cross title="Supprimer l'adresse"}
</a>
</div>
</div>
{/if}
<div id="{$prefid}_tel_add" class="center" style="clear: both; padding-top: 4px">
- <a href="javascript:addTel('{$prefid}_tel', '{$prefname}[tel]')">
+ <a href="javascript:addTel('{$prefid}_tel','{$prefname}[tel]')">
{icon name=add title="Ajouter un numéro de téléphone"} Ajouter un numéro de téléphone
</a>
</div>
<td>
<div style="clear: both; margin-top: 0.2em" id="medals">
<select name="medal_sel" onchange="updateMedal()">
- <option value=''></option>
+ <option value=''> </option>
{foreach from=$medal_list key=type item=list}
<optgroup label="{$trad[$type]}…">
{foreach from=$list item=m}
<td>
<input type="hidden" name="edu_{$eduid}_tmp" value="{$edu.degreeid}" />
<select name="{$eduname}[degreeid]">
- <option value=""></option>
+ <option value=""> </option>
</select>
</td>
</tr>
title="Coche cette case si ton nom commence par une particle." onchange="toggleParticle({$i});"/>
{/if}
<input type="hidden" name="search_names[{$i}][particle]" value="{$sn.particle}"/>
- {if !$sn.always_displayed}<a href="javascript:removeSearchName({$i}, {$isFemale})">
+ {if !$sn.always_displayed}<a href="javascript:removeSearchName({$i},{$isFemale})">
{icon name=cross title="Supprimer ce nom"}
</a>{/if}
</td>
</div>
{/if}
<div id="tels_add" class="center" style="clear: both; padding-top: 4px;">
- <a href="javascript:addTel('tels', 'tels');">
+ <a href="javascript:addTel('tels','tels');">
{icon name=add title="Ajouter un téléphone"} Ajouter un téléphone
</a>
</div>
{include file="profile/general.networking.tpl" nw=$network i=$id}
{/foreach}
<tr id="networking">
- <script type="text/javascript">//<![CDATA[
- var nw_list = new Array();
- {foreach from=$network_list item=network}
- nw_list['{$network.name}'] = {$network.type};
- {/foreach}
- //]]></script>
<td colspan="2">
+ <script type="text/javascript">//<![CDATA[
+ var nw_list = new Array();
+ {foreach from=$network_list item=network}
+ nw_list['{$network.name}'] = {$network.type};
+ {/foreach}
+ //]]></script>
<div id="nw_add" class="center">
<a href="javascript:addNetworking();">
{icon name=add title="Ajouter une adresse"} Ajouter une adresse
<div style="float: left; width: 70%">
{$text}
</div>
- <a href="javascript:removeElement('binets', {$bid})">{icon name="cross" title="Supprimer ce binet"}</a>
+ <a href="javascript:removeElement('binets',{$bid})">{icon name="cross" title="Supprimer ce binet"}</a>
</td>
</tr>
{/foreach}
<tr>
<th class="grayed">
<div style="float: right">
- <a href="javascript:restoreJob('{$jobid}', '{$jobpref}')">{icon name=arrow_refresh title="Restaure l'emploi"}</a>
+ <a href="javascript:restoreJob('{$jobid}','{$jobpref}')">{icon name=arrow_refresh title="Restaure l'emploi"}</a>
</div>
Restaurer l'entreprise n°{$i+1} : <span id="{$jobid}_grayed_name"></span>
</th>
<input type="text" class="enterpriseName {if $job.name_error}error{/if}" size="35" maxlength="100"
name="{$jobpref}[name]" value="{$job.name}" />
{/if}
- <a href="javascript:removeJob('{$jobid}', '{$jobpref}')">
+ <a href="javascript:removeJob('{$jobid}','{$jobpref}')">
{icon name=cross title="Supprimer cet emploi"}
</a>
</th>
</div>
{/if}
<div id="{$jobid}_w_phone_add" class="center" style="clear: both; padding-top: 4px;">
- <a href="javascript:addTel('{$jobid}_w_phone', '{$jobpref}[w_phone]')">
+ <a href="javascript:addTel('{$jobid}_w_phone','{$jobpref}[w_phone]')">
{icon name=add title="Ajouter un numéro de téléphone"} Ajouter un numéro de téléphone
</a>
</div>
<?xml version="1.0" encoding="utf-8"?>
<select name="jobs[{$id}][subSector]" {if ($change)}onchange="updateJobSubSector({$id}, '')"{/if}>
- <option value="0"></option>
+ <option value="0"> </option>
{iterate from=$subSectors item=subSector}
{if $subSector.optgroup}
{if $gp}
<?xml version="1.0" encoding="utf-8"?>
<select name="jobs[{$id}][subSubSector]" onchange="updateJobAlternates({$id})">
- <option value="0"></option>
+ <option value="0"> </option>
{iterate from=$subSubSectors item=subSubSector}
<option value="{$subSubSector.id}" {if $subSubSector.id eq $sel}selected="selected"{/if}>{$subSubSector.name}</option>
{/iterate}
<a href="javascript:addCountry()">{icon name=add title="Ajouter ce pays"}</a>
</div>
<select name="countries_sel" onchange="updateElement('countries')">
- <option value=""></option>
+ <option value=""> </option>
{iterate from=$countryList item=country}
- <option value="{$country.iso_3166_1_a2}">{$country.countryFR}</option>
+ <option value="{$country.iso_3166_1_a2}">{$country.countryFR|default:" "}</option>
{/iterate}
</select>
</td>
{foreach from=$countries item=country key=i}
<div id="countries_{$i}" style="clear: both; margin-bottom: 0.7em">
<a style="display: block; float: right"
- href="javascript:removeElement('countries', '{$i}')">{icon name=cross title="Supprimer ce pays"}</a>
+ href="javascript:removeElement('countries','{$i}')">{icon name=cross title="Supprimer ce pays"}</a>
<div class="titre">{$country}</div>
<input type="hidden" name="countries[{$i}]" value="{$country}" />
</div>
{foreach from=$sectors item=sector key=s}
{foreach from=$sector item=subSector key=ss}
<div id="sectors_{$s}_{$ss}" style="clear: both; margin-top: 0.5em" class="titre">
- <a href="javascript:removeSector('{$s}', '{$ss}')" style="display: block; float: right">
+ <a href="javascript:removeSector('{$s}','{$ss}')" style="display: block; float: right">
{icon name=cross title="Supprimer ce secteur"}
</a>
<input type="hidden" name="sectors[{$s}][{$ss}]" value="{$subSector}" />
<div id="{$id}_comment" style="clear: both;{if $tel.comment eq ''} display:none{/if}">
Commentaire :
<input type="text" size="45" maxlength="80" name="{$telpref}[comment]" {if $tel.error}class="error"{/if} value="{$tel.comment}"/>
- <a href="javascript:removePhoneComment('{$id}', '{$telpref}')">
+ <a href="javascript:removePhoneComment('{$id}','{$telpref}')">
{icon name=cross title="Supprimer le commentaire"}
</a>
</div>
<option value="{$lid}" {if $skill.level eq $lid}selected="selected"{/if}>{$level}</option>
{/foreach}
</select>
- <a href="javascript:removeElement('{$cat}', '{$id}')">{icon name=cross title="Supprimer"}</a>
+ <a href="javascript:removeElement('{$cat}','{$id}')">{icon name=cross title="Supprimer"}</a>
</div>
{* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}
<td>
<span class="titre">Domaine :</span>
<select name="competences_sel" onchange="updateElement('competences')">
- <option value=""></option>
+ <option value=""> </option>
{assign var=ingroup value=false}
{iterate from=$comp_list item=comp}
{if $comp.title}
<td>
<span class="titre">Domaine :</span>
<select name="langues_sel" onchange="updateElement('langues')">
- <option value=""></option>
+ <option value=""> </option>
{iterate from=$lang_list item=lang}
<option value="{$lang.id}">{$lang.langue_fr}</option>
{/iterate}
fid = "t" + id[name];
$("#" + name + "_" + tid).before('<div id="' + name + '_' + fid + '">'
+ '<input id="' + name + '_' + fid + '_field" type="text" name="survey_question[' + name + '][' + fid + ']" size="50" maxlength="200" value="" /> '
- + '<a href="javascript:removeField("' + name + '", "' + fid + '")"><img src="images/icons/delete.gif" alt="" title="Supprimer" /></a>'
+ + '<a href="javascript:removeField("' + name + '","' + fid + '")"><img src="images/icons/delete.gif" alt="" title="Supprimer" /></a>'
+ '</div>');
id[name]++;
$("#" + name + "_" + fid + "_field").focus();
{foreach from=$survey_current.choices key=value item=choice}
<div id="choices_t{$value}">
<input type="text" name="survey_question[choices][t{$value}]" size="50" maxlength="200" value="{$choice}" />
- <a href="javascript:removeField('choices', 't{$value}')">{icon name=delete title="Supprimer"}</a>
+ <a href="javascript:removeField('choices','t{$value}')">{icon name=delete title="Supprimer"}</a>
</div>
{/foreach}
<div id="choices_last">
- <a href="javascript:newField('choices', 'last')">{icon name=add}</a>
+ <a href="javascript:newField('choices','last')">{icon name=add}</a>
</div>
</td>
</tr>
{foreach from=$survey_current.subquestions key=value item=subquestion}
<div id="subquestions_t{$value}">
<input type="text" name="survey_question[subquestions][t{$value}]" size="50" maxlength="200" value="{$subquestion}" />
- <a href="javascript:removeField('subquestions', 't{$value}')">{icon name=delete title="Supprimer"}</a>
+ <a href="javascript:removeField('subquestions','t{$value}')">{icon name=delete title="Supprimer"}</a>
</div>
{/foreach}
<div id="subquestions_last">
- <a href="javascript:newField('subquestions', 'last')">{icon name=add}</a>
+ <a href="javascript:newField('subquestions','last')">{icon name=add}</a>
</div>
</td>
</tr>
modifier
{icon name=date_edit title="Édition de l'événement"}</a>]
- [<a href="javascript:dynpostkv('{$platal->pl_self()}?token={xsrf_token}', {if !$archive}'archive'{else}'unarchive'{/if}, {$e.eid})">
+ [<a href="javascript:dynpostkv('{$platal->pl_self()}?token={xsrf_token}',{if !$archive}'archive'{else}'unarchive'{/if},{$e.eid})">
{if !$archive}
archiver
{icon name=package_add title="Archivage"}</a>]
{icon name=package_delete title="Désarchivage"}</a>]
{/if}
- [<a href="javascript:dynpostkv('{$platal->ns}events?token={xsrf_token}', 'del', {$e.eid})"
+ [<a href="javascript:dynpostkv('{$platal->ns}events?token={xsrf_token}','del',{$e.eid})"
onclick="return confirm('Supprimer l\'événement effacera la liste des inscrits et des paiements.\n Es-tu sûr de vouloir supprimer l\'événement ?')">
supprimer
{icon name=delete title='Suppression'}</a>]
</td>
<td>
<select name="dom">
- <option value=""></option>
+ <option value=""> </option>
{iterate from=$dom item=d}
<option value="{$d.id}" {if $d.id eq $asso->dom}selected="selected"{/if}>{$d.nom} [{$d.cat}]</option>
{/iterate}
{else}
Camarades correspondants :
<select name="userid" onchange="document.getElementById('marketing').style.display = (this.value == 0 ? 'none' : '')">
- <option value="0"></option>
+ <option value="0"> </option>
{foreach item=user from=$users}
<option value="{$user->id()}" {if $users|@count == 1}selected="selected"{/if}>{profile user=$user link=false promo=true}</option>
{/foreach}