\n"; $data.=" ".htmlspecialchars($tete,ENT_QUOTES,$charset)."\n"; $data.=" ".htmlspecialchars($d[$i],ENT_QUOTES,$charset)."\n"; $data.=" \n"; } } } return $data; } function convert_webepires($notice, $s, $islast, $isfirst, $param_path) { global $cols,$charset; global $intitules; global $base_path,$origine; global $tab_functions; if (!$tab_functions) $tab_functions=new marc_list('function'); if (!$cols) { //On lit les intitulés dans le fichier temporaire $fcols=fopen("$base_path/temp/".$origine."_cols.txt","r"); if ($fcols) { $cols=fread($fcols,filesize("$base_path/temp/".$origine."_cols.txt")); fclose($fcols); $cols=unserialize($cols); } } $fields=explode(";;",$notice); for ($i=0; $i\n"; $dt="w"; $bl="s"; $data.="
".$dt."
\n"; $data.="".$bl."\n"; $data.="*\n1\ni\n"; //Numéro d'enregistrement //$data.=" ".$ntable["REF"]."\n"; //Titre $data.=" \n"; $data.=" ".htmlspecialchars($ntable["NOM"],ENT_QUOTES,$charset)."\n"; $data.=" \n"; //Site web $data.=" \n"; $data.=" ".htmlspecialchars($ntable["SITE"],ENT_QUOTES,$charset)."\n"; $data.=" \n"; //Adresse mail : note générale if ($ntable["MEL"]) { $data.=" \n"; $data.=" ".htmlspecialchars($ntable["MEL"],ENT_QUOTES,$charset)."\n"; $data.=" \n"; } //LI : Note de contenu if ($ntable["LI"]) { $data.=" \n"; $data.=" ".htmlspecialchars($ntable["LI"],ENT_QUOTES,$charset)."\n"; $data.=" \n"; } //COMMENT : Résumé if ($ntable["COMMENT"]) { $data.=" \n"; $data.=" ".htmlspecialchars($ntable["COMMENT"],ENT_QUOTES,$charset)."\n"; $data.=" \n"; } //DOC : Indexation Web if ($ntable["DOC"]) { $data.=make_index($ntable["DOC"],"DOC"); } //Indexations if ($ntable["DE"]) { $data.=make_index($ntable["DE"],"DE"); } if ($ntable["DO"]) { $data.=" \n"; $data.=" ".htmlspecialchars($ntable["DO"],ENT_QUOTES,$charset)."\n"; $data.=" \n"; } //Champs spéciaux if (trim($ntable["OP"])) { $data.=" \n"; $data.=" ".htmlspecialchars($ntable["OP"],ENT_QUOTES,$charset)."\n"; $data.=" \n"; }else{ $data.=" \n"; $data.=" ".htmlspecialchars("PRISME",ENT_QUOTES,$charset)."\n"; $data.=" \n"; } $data.=" \n"; $data.=" ".htmlspecialchars(date("Y")."-".date("m")."-".date("d"),ENT_QUOTES,$charset)."\n"; $data.=" \n"; $data.="\n"; } if (!$error) $r['VALID'] = true; else $r['VALID']=false; $r['ERROR'] = $error; $r['DATA'] = $data; return $r; } ?>