var cb_expl,cb_type; var count=0; function commit_cb(cb_doc) { cb_expl = document.getElementById('form_cb_expl').value; if(cb_expl=='') { document.getElementById('form_cb_expl').focus(); return; } init_rfid_detect(rfid_ack_detect); } function rfid_ack_detect (ack) { if(ack == 'false') { alert (\"".addslashes($msg['rfid_etiquette_non_presente_message'])."\"); document.getElementById('form_cb_expl').value=''; document.getElementById('form_cb_expl').focus(); return; } $script_erase } function rfid_ack_erase(ack) { cb_type = document.getElementById('cb_type').checked; if(cb_type == true) { var nb_parts=document.getElementById('nb_parts').value; if(!(nb_parts >0)) nb_parts=1; init_rfid_write_etiquette(cb_expl,nb_parts,rfid_ack_write); } else init_rfid_write_empr(cb_expl,rfid_ack_write_empr); } function rfid_ack_write(ack) { init_rfid_antivol_all(1,rfid_ack_write_antivol); } function rfid_ack_write_empr(ack) { //alert (\"".addslashes($msg['rfid_etiquette_programmee_message'])."\"); add_ligne(); count++; document.getElementById('form_cb_expl').value=''; document.getElementById('form_cb_expl').focus(); } function rfid_ack_write_antivol(ack) { //alert (\"".addslashes($msg['rfid_etiquette_programmee_message'])."\"); add_ligne(); count++; document.getElementById('form_cb_expl').value=''; document.getElementById('form_cb_expl').focus(); } function rfid_ack_antivol_actif(ack) { alert (\"".addslashes($msg['rfid_antivol_active_message'])."\"); } function rfid_ack_antivol_inactif(ack) { alert (\"".addslashes($msg['rfid_antivol_desactive_message'])."\"); } function add_ligne() { var tr = document.createElement('TR'); if(count%2) { tr.setAttribute('class','odd'); tr.setAttribute('onmouseout','this.className=\'odd\''); }else { tr.setAttribute('class','even'); tr.setAttribute('onmouseout','this.className=\'even\''); } tr.setAttribute('onmouseover','this.className=\'surbrillance\''); //exemplaire var td = document.createElement('TD'); td.appendChild(document.createTextNode(cb_expl)); tr.appendChild(td); var td = document.createElement('TD'); td.setAttribute('class','erreur'); td.appendChild(document.createTextNode('".addslashes($msg['rfid_cb_programation_ok_message'])."')); tr.appendChild(td); document.getElementById('table_cb').appendChild(tr); }

".$msg['rfid_programmation_etiquette_titre']."

".$msg['rfid_programmation_etiquette_titre_form']."

".$msg['rfid_cb_type_etiquette']." ".$msg['rfid_cb_type_lecteur']."

".$msg['rfid_programmation_antivol_titre_form']."

"; $rfid_effacer_tmpl =" $rfid_js_header

".$msg['rfid_effacement_etiquette_titre']."

".$msg['rfid_effacement_etiquette_titre']."

"; $rfid_lire_tmpl =" $rfid_js_header

".$msg['rfid_lecture_etiquette_titre']."

".$msg['rfid_lecture_etiquette_titre_form']." ( ".$_SERVER['REMOTE_ADDR']." )

".$msg['rfid_cb_type_etiquette'].":


".$msg['rfid_cb_type_lecteur'].":

";