1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120
|
<!-- *********************************************************************************** -->
<!-- Modification du cadre Profile -->
<script type="text/javascript">
function load_profil(url)
{
xmlhttp=null;
if (window.XMLHttpRequest) // code for Firefox, Opera, IE7, etc.
xmlhttp=new XMLHttpRequest();
else if (window.ActiveXObject) // code for IE6, IE5
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
if (xmlhttp!=null)
{
document.getElementById('waiting').style.visibility="visible";
xmlhttp.onreadystatechange=load_profil_Change;
xmlhttp.open("GET",url,true);
xmlhttp.send(null);
}
else
alert("Your browser does not support XMLHTTP.");
}
function load_profil_Change()
{
if (xmlhttp.readyState==4) // 4 = "loaded"
{
document.getElementById('waiting').style.visibility="hidden";
if (xmlhttp.status==200) // 200 = "OK"
{
document.getElementById('profil').innerHTML=xmlhttp.responseText;
}
else
alert("Problem retrieving data:" + xmlhttp.statusText);
}
}
// les fonctions
function display_profil_declare()
{
Activ_Profil_tab('tab_profil_declare');
var url="./Display_Profil_declare.php?f=get_puser_declare_list_descripteur_full&user_id=";
url += user_id;
load_profil(url);
}
</script>
// les varible profile sont utiliser pour la mise a jour des icones likes dans les listes du cadre descripteur
<script type="text/javascript">
var xml_profil_declare;
var xml_var_declare;
function load_profil_declare_var(url)
{
xml_var_declare=null;
if (window.XMLHttpRequest) // code for Firefox, Opera, IE7, etc.
xml_var_declare=new XMLHttpRequest();
else if (window.ActiveXObject) // code for IE6, IE5
xml_var_declare=new ActiveXObject("Microsoft.XMLHTTP");
if (xml_var_declare!=null)
{
//document.getElementById('waiting').style.visibility="visible";
xml_var_declare.onreadystatechange=load_profil_declare_var_Change;
xml_var_declare.open("GET",url,true);
xml_var_declare.send(null);
}
else
alert("Your browser does not support XMLHTTP.");
}
function load_profil_declare_var_Change()
{
if (xml_var_declare.readyState==4) // 4 = "loaded"
{
//document.getElementById('waiting').style.visibility="hidden";
if (xml_var_declare.status==200) // 200 = "OK"
{
xml_profil_declare = xml_var_declare.responseXML.documentElement;
refreche_profil_declare_element();
}
else
alert("Problem retrieving data:" + xml_var_declare.statusText);
}
}
// rafrechie la variable du profil declare
function refreche_profil_declare_var()
{
var url="../Api/XML_exe.php?f=get_puser_declare_list_descripteur&user_id=";
url += user_id;
load_profil_declare_var(url);
}
// rafrechi les icones de la liste du cadre descripteur
// ACTUELEMENT VIDE
function refreche_profil_declare_element()
{
xml_profil_declare;
x=xml_profil_declare.getElementsByTagName('Data');
for (i=0;i<x.length;i++)
{ // NON EXECUTER
y = document.getElementById('img_like_desc_'+x[i].getAttribute('descrip_id'));
if (y != null)
y.src = get_like_icon(x[i].getAttribute('note'));
y = document.getElementById('img_like_desc_cadre_'+x[i].getAttribute('descrip_id'));
if (y != null)
y.src = get_like_icon(x[i].getAttribute('note'));
}
}
</script>
<div id="waiting">
<h2>Waiting Load ..</h2>
</div> |
Partager