" +
" " +
" " +
"";
display_it(tit, cont, fut);
return msg_confirm;
}
var msg_s_planif, msg_c_planif;
function planify_event ( id, trans, action, title, st_date, st_time, st_subj, st_msg, st_tel )
{
planify_it ( id, trans, action, title, st_date, st_time, st_subj, st_msg, st_tel );
msg_s_planif = msg_confirm;
msg_c_planif = setTimeout("msg_s_planif == null ? msg_no_planif() : msg_ok_planif()", 10);
}
function msg_no_planif()
{
msg_s_planif = msg_confirm;
msg_c_planif = setTimeout("msg_s_planif == null ? msg_no_planif() : msg_ok_planif()", 10);
}
function msg_ok_planif()
{
clearTimeout(msg_c_planif);
if ( msg_s_planif ) msg_do_planif();
}
function msg_do_planif()
{
//pwet
}
function updateStatus ( action, trans, id )
{
$Off("vd_" + id);
$Off("lu_" + id);
var annid;
if ( trans == "V" )
annid = "vente=" + id;
else
annid = "loc=" + id;
var obj, url;
//update fiche
url = "/soap/annonces.asp?annOnly=true&aff=deta&" + annid;
obj = $(trans + id + "_form");
if ( obj != null && obj != "undefined" )
try {
obj.innerHTML = retrieve(url + "&annForm=true");
$On("fi_" + $V(trans+id+"_status"));
} catch ( e ) { }
//update aff(list/deta)
obj = $(trans + id + "_body");
if ( $V("sb_display") == "Aff. détaillé" && obj != null && obj != "undefined" )
try {
obj.innerHTML = retrieve(url);
$On($V(trans+id+"_status"));
} catch ( e ) { }
}
var msg_s_delOne, msg_c_delOne
var id_toDel,trans_toDel
function delOne(trans,id)
{
id_toDel = id;
trans_toDel = trans;
confirm_it('Attention !', 'Etes-vous sur de vouloir supprimer cette annonce ? Important : une fois l’annonce supprimée, celle-ci ne sera plus réaffichée même en cas de reparution.');
msg_s_delOne = msg_confirm;
msg_c_delOne = setTimeout("msg_s_delOne == null ? msg_no_delOne() : msg_ok_delOne()", 10);
}
function msg_no_delOne()
{
msg_s_delOne = msg_confirm;
msg_c_delOne = setTimeout("msg_s_delOne == null ? msg_no_delOne() : msg_ok_delOne()", 10);
}
function msg_ok_delOne()
{
clearTimeout(msg_c_delOne);
if ( msg_s_delOne )
msg_do_delOne();
}
function msg_do_delOne()
{
url = "/xml/delete.asp?anns=" + trans_toDel + ":" + id_toDel + "|";
res = retrieve(url);
if ( res == "ok" )
{
//destruct fiche
frame("fiche", "");
//hide fiche
$C("frame fiche")[0].style.display = "none";
//show anns
$C("frame annonces")[0].style.display = "";
//destruct ann
$("co_" + id_toDel).innerHTML = "";
//hide ann
$Off("co_" + id_toDel);
id_toDel = "";
trans_toDel = "";
} else {
alert("Erreur lors de la suppression");
}
}
/*
_
/|/| /| ) / / /_)
/ | / |/ (__/ __ (__)
*/
function ebAdd ( val )
{
val = "|" + val;
$("eb_checkAll").value += val;
}
function ebDel ( val )
{
val = "|" + val;
$("eb_checkAll").value = $R($V("eb_checkAll"), val, "");
}
function ebChk ( ident )
{
$(ident).checked ? ebAdd( $V(ident) ) : ebDel( $V(ident) ) ;
}
function clkEsti ( state )
{
var inputs = $C("estiChk");
for ( var i = 0; i < inputs.length; i++ )
if (
inputs[i].getAttribute("type") == "checkbox"
&&
inputs[i].id.indexOf("checkAll") < 0
&&
inputs[i].checked != state
)
inputs[i].click();
}
|