projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Sort requests by type
[platal.git]
/
templates
/
profile
/
profile.tpl
diff --git
a/templates/profile/profile.tpl
b/templates/profile/profile.tpl
index
2c80d5d
..
9891c95
100644
(file)
--- a/
templates/profile/profile.tpl
+++ b/
templates/profile/profile.tpl
@@
-1,6
+1,6
@@
{**************************************************************************}
{* *}
{**************************************************************************}
{* *}
-{* Copyright (C) 2003-200
6
Polytechnique.org *}
+{* Copyright (C) 2003-200
7
Polytechnique.org *}
{* http://opensource.polytechnique.org/ *}
{* *}
{* This program is free software; you can redistribute it and/or modify *}
{* http://opensource.polytechnique.org/ *}
{* *}
{* This program is free software; you can redistribute it and/or modify *}
@@
-21,19
+21,26
@@
{**************************************************************************}
{literal}
{**************************************************************************}
{literal}
-<script type="text/javascript">
-function chgMainWinLoc( strPage ) {
+<script type="text/javascript">//<![CDATA[
+function chgMainWinLoc(strPage) {
+
+ if (is_IE) {
+ {/literal}
+ strPage = "{$globals->baseurl}/" + strPage;
+ {literal}
+ }
if (parent.opener) {
parent.opener.document.location = strPage;
if (parent.opener) {
parent.opener.document.location = strPage;
+ window.close();
} else {
document.location = strPage;
}
}
} else {
document.location = strPage;
}
}
-</script>
+
//]]>
</script>
{/literal}
{if $logged and $x.forlife eq $smarty.session.forlife}
{/literal}
{if $logged and $x.forlife eq $smarty.session.forlife}
-[<a href="javascript:
x()" onclick="
chgMainWinLoc('profile/edit')">Modifier ma fiche</a>]
+[<a href="javascript:chgMainWinLoc('profile/edit')">Modifier ma fiche</a>]
{/if}
<table id="fiche" cellpadding="0" cellspacing="0">
{/if}
<table id="fiche" cellpadding="0" cellspacing="0">
@@
-47,21
+54,21
@@
function chgMainWinLoc( strPage ) {
<a href="vcard/{$x.forlife}.vcf">{*
*}{icon name=vcard title="Afficher la carte de visite"}</a>
{if !$x.is_contact}
<a href="vcard/{$x.forlife}.vcf">{*
*}{icon name=vcard title="Afficher la carte de visite"}</a>
{if !$x.is_contact}
- <a href="javascript:
x()" onclick="
chgMainWinLoc('carnet/contacts?action=ajouter&user={$x.forlife}')">
- {icon name=add title="Ajouter
à
mes contacts"}</a>
+ <a href="javascript:chgMainWinLoc('carnet/contacts?action=ajouter&user={$x.forlife}')">
+ {icon name=add title="Ajouter
à
mes contacts"}</a>
{else}
{else}
- <a href="javascript:
x()" onclick="
chgMainWinLoc('carnet/contacts?action=retirer&user={$x.forlife}')">
+ <a href="javascript:chgMainWinLoc('carnet/contacts?action=retirer&user={$x.forlife}')">
{icon name=cross title="Retirer de mes contacts"}</a>
{/if}
{icon name=cross title="Retirer de mes contacts"}</a>
{/if}
- {if $smarty.session.perms
eq admin
}
- <a href="javascript:
x()" onclick="
chgMainWinLoc('admin/user/{$x.forlife}')">
+ {if $smarty.session.perms
->hasFlag('admin')
}
+ <a href="javascript:chgMainWinLoc('admin/user/{$x.forlife}')">
{icon name=wrench title="administrer user"}</a>
{/if}
{/if}
</div>
{if $logged}
<div class='maj'>
{icon name=wrench title="administrer user"}</a>
{/if}
{/if}
</div>
{if $logged}
<div class='maj'>
- Fiche mise
à
jour<br />
+ Fiche mise
à
jour<br />
le {$x.date|date_format}
</div>
{/if}
le {$x.date|date_format}
</div>
{/if}
@@
-70,12
+77,12
@@
function chgMainWinLoc( strPage ) {
{if $logged}
<div class='email'>
{if $x.dcd}
{if $logged}
<div class='email'>
{if $x.dcd}
- D
écédé
{if $x.sexe}e{/if} le {$x.deces|date_format}
+ D
écédé
{if $x.sexe}e{/if} le {$x.deces|date_format}
{elseif !$x.actif}
Ce camarade n'a plus d'adresse redirection valide,<br />
<a href="marketing/broken/{$x.user_id}" class="popup">clique ici si tu connais son adresse email !</a>
{elseif !$x.inscrit}
{elseif !$x.actif}
Ce camarade n'a plus d'adresse redirection valide,<br />
<a href="marketing/broken/{$x.user_id}" class="popup">clique ici si tu connais son adresse email !</a>
{elseif !$x.inscrit}
- Cette personne n'est pas inscrite
à
Polytechnique.org,<br />
+ Cette personne n'est pas inscrite
à
Polytechnique.org,<br />
<a href="marketing/public/{$x.user_id}" class="popup">clique ici si tu connais son adresse email !</a>
{else}
{if $virtualalias}
<a href="marketing/public/{$x.user_id}" class="popup">clique ici si tu connais son adresse email !</a>
{else}
{if $virtualalias}
@@
-107,7
+114,7
@@
function chgMainWinLoc( strPage ) {
{/if}
{if $logged}
{if $x.is_referent}
{/if}
{if $logged}
{if $x.is_referent}
- [<a href="referent/{$x.forlife}" class='popup2'>Ma fiche r
éfé
rent</a>]
+ [<a href="referent/{$x.forlife}" class='popup2'>Ma fiche r
éfé
rent</a>]
{/if}
{/if}
</div>
{/if}
{/if}
</div>
@@
-120,7
+127,7
@@
function chgMainWinLoc( strPage ) {
{if $x.gpxs_join}<div><em class="intitule">Groupe(s) X : </em><span>{$x.gpxs_join|smarty:nodefaults}</span></div>{/if}
{/if}
{if $x.web}<div><em class="intitule">Site Web : </em><a href="{$x.web}" class='popup'>{$x.web}</a></div>{/if}
{if $x.gpxs_join}<div><em class="intitule">Groupe(s) X : </em><span>{$x.gpxs_join|smarty:nodefaults}</span></div>{/if}
{/if}
{if $x.web}<div><em class="intitule">Site Web : </em><a href="{$x.web}" class='popup'>{$x.web}</a></div>{/if}
- {if $x.freetext}<div><em class="intitule">Commentaires : </em><br /><span>{$x.freetext|
nl2br|
smarty:nodefaults}</span></div>{/if}
+ {if $x.freetext}<div><em class="intitule">Commentaires : </em><br /><span>{$x.freetext|smarty:nodefaults}</span></div>{/if}
</td>
</tr>
{if $x.adr}
</td>
</tr>
{if $x.adr}
@@
-178,17
+185,17
@@
function chgMainWinLoc( strPage ) {
<tr>
<td>
<h2>Curriculum Vitae :</h2>
<tr>
<td>
<h2>Curriculum Vitae :</h2>
- {$x.cv|
nl2br
}
+ {$x.cv|
smarty:nodefaults
}
</td>
</tr>
{/if}
{/if}
{if !$logged}
<tr><td colspan="2">Cette fiche est publique et visible par tout internaute,
</td>
</tr>
{/if}
{/if}
{if !$logged}
<tr><td colspan="2">Cette fiche est publique et visible par tout internaute,
-vous pouvez aussi voir <a href="profile/private/{$x.forlife}">celle r
éservé
e aux X</a>.
+vous pouvez aussi voir <a href="profile/private/{$x.forlife}">celle r
éservé
e aux X</a>.
</td></tr>
{/if}
</table>
</td></tr>
{/if}
</table>
-{* vim:set et sw=2 sts=2 sws=2: *}
+{* vim:set et sw=2 sts=2 sws=2
enc=utf-8
: *}