Projet

Général

Profil

catal_form.tpl.php

Alexandre Boucher, 11/09/2013 13:51

 
1
<?php
2
// +-------------------------------------------------+
3
// © 2002-2004 PMB Services / www.sigb.net pmb@sigb.net et contributeurs (voir www.sigb.net)
4
// +-------------------------------------------------+
5
// $Id: catal_form.tpl.php,v 1.117 2013-04-08 14:32:30 abacarisse Exp $
6

    
7
if (stristr($_SERVER['REQUEST_URI'], ".tpl.php")) die("no access");
8

    
9
global $base_path;
10
global $value_deflt_relation;
11
// template pour le form de catalogage
12

    
13
$select1_prop = "scrollbars=yes, toolbar=no, dependent=yes, resizable=yes";
14
$select2_prop = "scrollbars=yes, toolbar=no, dependent=yes, resizable=yes";
15
$select3_prop = "scrollbars=yes, toolbar=no, dependent=yes, resizable=yes";
16
$selector_prop = "scrollbars=yes, toolbar=no, dependent=yes, resizable=yes";
17
$select_categ_prop = "scrollbars=yes, toolbar=no, dependent=yes, resizable=yes";
18

    
19
// nombre de parties du form
20
$nb_onglets = 9;
21

    
22
//    ----------------------------------------------------
23
//       $ptab[0] : contenu de l'onglet 0 (zone de titre)
24
$ptab[0] = "
25
<!-- onglet 0 -->
26
<div id='el0Parent' class='parent' >
27
    <h3>
28
    <img src='./images/minus.gif' class='img_plus' align='bottom' name='imEx' id='el0Img' title='$msg[236]' border='0' onClick=\"expandBase('el0', true); return false;\" />
29
    $msg[712]
30
    </h3>
31
    </div>
32

33
<div id='el0Child' class='child' etirable='yes' title='".htmlentities($msg[236],ENT_QUOTES, $charset)."' >
34
    <div id='el0Child_0' title='".htmlentities($msg[237],ENT_QUOTES, $charset)."' movable='yes'>
35
    <!--    Titre    -->
36
        <div id='el0Child_0a' class='row'>
37
        <label for='f_tit1' class='etiquette'>$msg[237]</label>
38
        </div>
39
    <div id='el0Child_0b' class='row'>
40
        <input type='text' class='saisie-80em' id='f_tit1' name='f_tit1' value=\"!!tit1!!\" />
41
        </div>
42
        </div>
43

44
    <div id='el0Child_1' title='".htmlentities($msg[238],ENT_QUOTES, $charset)."' movable='yes'>
45
    <!--    Titre propre d'un auteur différent    -->
46
    <div id='el0Child_1a' class='row'>
47
        <label for='f_tit2' class='etiquette'>$msg[238]</label>
48
        </div>
49
    <div id='el0Child_1b' class='row'>
50
        <input type='text' class='saisie-80em' id='f_tit2' name='f_tit2' value=\"!!tit2!!\" />
51
        </div>
52
        </div>
53

54
    <div id='el0Child_2' title='".htmlentities($msg[239],ENT_QUOTES, $charset)."' movable='yes'>
55
    <!--    Titre parallèle    -->
56
    <div id='el0Child_2a' class='row'>
57
        <label for='f_tit3' class='etiquette'>$msg[239]</label>
58
        </div>
59
    <div id='el0Child_2b' class='row'>
60
        <input type='text' class='saisie-80em' id='f_tit3' name='f_tit3' value=\"!!tit3!!\" />
61
        </div>
62
        </div>
63

64
    <div id='el0Child_3' title='".htmlentities($msg[240],ENT_QUOTES, $charset)."' movable='yes'>
65
    <!--    Complément du titre    -->
66
    <div id='el0Child_3a' class='row'>
67
        <label for='f_tit4' class='etiquette'>$msg[240]</label>
68
        </div>
69
    <div id='el0Child_3b' class='row'>
70
        <input type='text' class='saisie-80em' id='f_tit4' name='f_tit4' value=\"!!tit4!!\" />
71
        </div>
72
        </div>
73

74
    <div id='el0Child_4' title='".htmlentities($msg[241],ENT_QUOTES, $charset)."' movable='yes'>
75
    <!--    Partie de    -->
76
    <div class='row'>
77
        <div id='el0Child_4a' class='colonne2'>
78
            <label for='f_tparent' class='etiquette'>$msg[241]</label>
79
            <div class='row'>
80
                        <input type='text' class='saisie-30emr' id='f_tparent' name='f_tparent' value=\"!!tparent!!\" completion=\"serie\" autfield=\"f_tparent_id\" />
81
                <input type='button' class='bouton' value='$msg[parcourir]' onclick=\"openPopUp('./select.php?what=serie&caller=notice&param1=f_tparent_id&param2=f_tparent&deb_rech='+".pmb_escape()."(this.form.f_tparent.value), 'select_serie', 400, 500, -2, -2, '$select1_prop')\" />
82
                <input type='button' class='bouton' value='$msg[raz]' onclick=\"this.form.f_tparent.value=''; this.form.f_tparent_id.value='0'; \" />
83
                <input type='hidden' name='f_tparent_id' id='f_tparent_id' value=\"!!tparent_id!!\" />
84
                </div>
85
            </div>
86
    <!--    No. de partie    -->
87
        <div id='el0Child_5a' class='colonne_suite'>
88
            <label for='f_tnvol' class='etiquette'>$msg[242]</label>
89
            <div class='row'>
90
                <input type='text' class='saisie-10em' id='f_tnvol' name='f_tnvol' maxlength='100' value=\"!!tnvol!!\" />
91
                </div>
92
            </div>
93
                <div class='row'></div>
94
        </div>
95
        </div>
96
</div>
97
";
98

    
99

    
100
//    ----------------------------------------------------
101
//     Titres uniformes
102
//       $ptab[230] : contenu de l'onglet 230 (Titres uniformes)
103
//    ----------------------------------------------------
104
global $pmb_use_uniform_title;
105
if ($pmb_use_uniform_title) {
106
        $ptab[230] = "
107
        <!-- onglet 230 -->
108
        <div id='el230Parent' class='parent'>
109
        <h3>
110
            <img src='./images/plus.gif' class='img_plus' name='imEx' id='el230Img' title='titres_uniformes' border='0' onClick=\"expandBase('el230', true); return false;\" />
111
            ".$msg["catal_onglet_titre_uniforme"]."
112
        </h3>
113
        </div>
114
        
115
        <div id='el230Child' class='child' etirable='yes' title='".htmlentities($msg["aut_menu_titre_uniforme"],ENT_QUOTES, $charset)."'>
116
        
117
        <div id='el230Child_0' title='".htmlentities($msg["aut_menu_titre_uniforme"],ENT_QUOTES, $charset)."' movable='yes'>
118
        <!--    Titres uniformes    -->    
119
        !!titres_uniformes!!   
120
        </div>
121
        
122
        </div>
123
        ";
124
} else $ptab[230] = "";
125

    
126
//    ----------------------------------------------------
127
//    Mention de responsabilité
128
//       $ptab[1] : contenu de l'onglet 1 (mention de responsabilité)
129
//    ----------------------------------------------------
130
$aut_fonctions= new marc_list('function');
131

    
132
$ptab[1] = "
133
<script>
134
    function fonction_selecteur_auteur() {
135
        name=this.getAttribute('id').substring(4);
136
        name_id = name.substr(0,6)+'_id'+name.substr(6);
137
        openPopUp('./select.php?what=auteur&caller=notice&param1='+name_id+'&param2='+name+'&dyn=1&deb_rech='+".pmb_escape()."(document.getElementById(name).value), 'select_author2', 500, 400, -2, -2, '$select1_prop');
138
    }
139
    function fonction_selecteur_auteur_change(field) {
140
            // id champ text = 'f_aut'+n+suffixe
141
            // id champ hidden = 'f_aut'+n+'_id'+suffixe; 
142
            // select.php?what=auteur&caller=notice&param1=f_aut0_id&param2=f_aut0&deb_rech='+t
143
        name=field.getAttribute('id');
144
        name_id = name.substr(0,6)+'_id'+name.substr(6);
145
        openPopUp('./select.php?what=auteur&caller=notice&param1='+name_id+'&param2='+name+'&dyn=1&deb_rech='+".pmb_escape()."(document.getElementById(name).value), 'select_author2', 500, 400, -2, -2, '$select1_prop');
146
    }
147
    function fonction_raz_auteur() {
148
        name=this.getAttribute('id').substring(4);
149
        name_id = name.substr(0,6)+'_id'+name.substr(6);
150
        document.getElementById(name_id).value=0;
151
        document.getElementById(name).value='';
152
    }
153
    function fonction_selecteur_fonction() {
154
        name=this.getAttribute('id').substring(4);
155
        name_code = name.substr(0,4)+'_code'+name.substr(4);
156
        openPopUp('./select.php?what=function&caller=notice&param1='+name_code+'&param2='+name+'&dyn=1', 'select_fonction2', 500, 400, -2, -2, '$select1_prop');
157
    }
158
    function fonction_raz_fonction() {
159
        name=this.getAttribute('id').substring(4);
160
        name_code = name.substr(0,4)+'_code'+name.substr(4);
161
        document.getElementById(name_code).value=0;
162
        document.getElementById(name).value='';
163
    }
164
    function add_aut(n) {
165
        template = document.getElementById('addaut'+n);
166
        aut=document.createElement('div');
167
        aut.className='row';
168

169
        // auteur
170
        colonne=document.createElement('div');
171
        colonne.className='colonne2';
172
        row=document.createElement('div');
173
        row.className='row';
174
        suffixe = eval('document.notice.max_aut'+n+'.value')
175
        nom_id = 'f_aut'+n+suffixe
176
        f_aut0 = document.createElement('input');
177
        f_aut0.setAttribute('name',nom_id);
178
        f_aut0.setAttribute('id',nom_id);
179
        f_aut0.setAttribute('type','text');
180
        f_aut0.className='saisie-30emr';
181
        f_aut0.setAttribute('value','');
182
        f_aut0.setAttribute('completion','authors');
183
        f_aut0.setAttribute('autfield','f_aut'+n+'_id'+suffixe);
184

185
        sel_f_aut0 = document.createElement('input');
186
        sel_f_aut0.setAttribute('id','sel_f_aut'+n+suffixe);
187
        sel_f_aut0.setAttribute('type','button');
188
        sel_f_aut0.className='bouton';
189
        sel_f_aut0.setAttribute('readonly','');
190
        sel_f_aut0.setAttribute('value','$msg[parcourir]');
191
        sel_f_aut0.onclick=fonction_selecteur_auteur;
192

193
        del_f_aut0 = document.createElement('input');
194
        del_f_aut0.setAttribute('id','del_f_aut'+n+suffixe);
195
        del_f_aut0.onclick=fonction_raz_auteur;
196
        del_f_aut0.setAttribute('type','button');
197
        del_f_aut0.className='bouton';
198
        del_f_aut0.setAttribute('readonly','');
199
        del_f_aut0.setAttribute('value','$msg[raz]');
200

201
        f_aut0_id = document.createElement('input');
202
        f_aut0_id.name='f_aut'+n+'_id'+suffixe;
203
        f_aut0_id.setAttribute('type','hidden');
204
        f_aut0_id.setAttribute('id','f_aut'+n+'_id'+suffixe);
205
        f_aut0_id.setAttribute('value','');
206

207
        //f_aut0_content.appendChild(f_aut0);
208
                row.appendChild(f_aut0);
209
        space=document.createTextNode(' ');
210
        row.appendChild(space);
211
        row.appendChild(sel_f_aut0);
212
        space=document.createTextNode(' ');
213
        row.appendChild(space);
214
        row.appendChild(del_f_aut0);
215
        row.appendChild(f_aut0_id);
216
        colonne.appendChild(row);
217
        aut.appendChild(colonne);
218
                
219
        // fonction
220
        
221
        colonne=document.createElement('div');
222
        colonne.className='colonne_suite';
223
        row=document.createElement('div');
224
        row.className='row';
225
        suffixe = eval('document.notice.max_aut'+n+'.value');
226
        nom_id = 'f_f'+n+suffixe;
227
        f_f0 = document.createElement('input');
228
        f_f0.setAttribute('name',nom_id);
229
        f_f0.setAttribute('id',nom_id);
230
        f_f0.setAttribute('type','text');
231
        f_f0.className='saisie-15emr';
232
        f_f0.setAttribute('value','".$aut_fonctions->table[$value_deflt_fonction]."');
233
                f_f0.setAttribute('completion','fonction');
234
        f_f0.setAttribute('autfield','f_f'+n+'_code'+suffixe);
235

236
        sel_f_f0 = document.createElement('input');
237
        sel_f_f0.setAttribute('id','sel_f_f'+n+suffixe);
238
        sel_f_f0.setAttribute('type','button');
239
        sel_f_f0.className='bouton';
240
        sel_f_f0.setAttribute('readonly','');
241
        sel_f_f0.setAttribute('value','$msg[parcourir]');
242
        sel_f_f0.onclick=fonction_selecteur_fonction;
243

244
        del_f_f0 = document.createElement('input');
245
        del_f_f0.setAttribute('id','del_f_f'+n+suffixe);
246
        del_f_f0.onclick=fonction_raz_fonction;
247
        del_f_f0.setAttribute('type','button');
248
        del_f_f0.className='bouton';
249
        del_f_f0.setAttribute('readonly','readonly');
250
        del_f_f0.setAttribute('value','$msg[raz]');
251
                
252
        f_f0_code = document.createElement('input');
253
        f_f0_code.name='f_f'+n+'_code'+suffixe;
254
        f_f0_code.setAttribute('type','hidden');
255
        f_f0_code.setAttribute('id','f_f'+n+'_code'+suffixe);
256
        f_f0_code.setAttribute('value','$value_deflt_fonction');
257

258
        row.appendChild(f_f0);
259
        space=document.createTextNode(' ');
260
        row.appendChild(space);
261
        row.appendChild(sel_f_f0);
262
        space=document.createTextNode(' ');
263
        row.appendChild(space);
264
        row.appendChild(del_f_f0);
265
        row.appendChild(f_f0_code);
266
        colonne.appendChild(row);
267

268
        aut.appendChild(colonne);
269
        template.appendChild(aut);
270
        eval('document.notice.max_aut'+n+'.value=suffixe*1+1*1');
271
        ajax_pack_element(f_aut0);
272
                ajax_pack_element(f_f0);
273
    }
274

275
    function fonction_selecteur_categ() {
276
        name=this.getAttribute('id').substring(4);
277
        name_id = name.substr(0,7)+'_id'+name.substr(7);
278
        openPopUp('./select.php?what=categorie&caller=notice&p1='+name_id+'&p2='+name+'&dyn=1', 'select_categ', 700, 500, -2, -2, '$select_categ_prop');
279
    }
280
    function fonction_raz_categ() {
281
        name=this.getAttribute('id').substring(4);
282
        name_id = name.substr(0,7)+'_id'+name.substr(7);
283
        document.getElementById(name_id).value=0;
284
        document.getElementById(name).value='';
285
    }
286
    function add_categ() {
287
        template = document.getElementById('el6Child_0');
288
        categ=document.createElement('div');
289
        categ.className='row';
290

291
        suffixe = eval('document.notice.max_categ.value');
292

293
        categ.setAttribute('id','drag_'+suffixe);
294
        categ.setAttribute('order',suffixe);
295
        categ.setAttribute('highlight','categ_highlight');
296
        categ.setAttribute('downlight','categ_downlight');
297
        categ.setAttribute('dragicon','./images/icone_drag_notice.png');
298
        categ.setAttribute('handler','handle_'+suffixe);
299
        categ.setAttribute('recepttype','categ');
300
        categ.setAttribute('recept','yes');
301
        categ.setAttribute('dragtype','categ');
302
        categ.setAttribute('draggable','yes');        
303
        
304
        nom_id = 'f_categ'+suffixe
305
        f_categ = document.createElement('input');
306
        f_categ.setAttribute('name',nom_id);
307
        f_categ.setAttribute('id',nom_id);
308
        f_categ.setAttribute('type','text');
309
        f_categ.className='saisie-80emr';
310
        f_categ.setAttribute('value','');
311
                f_categ.setAttribute('completion','categories_mul');
312
        f_categ.setAttribute('autfield','f_categ_id'+suffixe);
313
 
314
        del_f_categ = document.createElement('input');
315
        del_f_categ.setAttribute('id','del_f_categ'+suffixe);
316
        del_f_categ.onclick=fonction_raz_categ;
317
        del_f_categ.setAttribute('type','button');
318
        del_f_categ.className='bouton';
319
        del_f_categ.setAttribute('readonly','');
320
        del_f_categ.setAttribute('value','$msg[raz]');
321

322
        f_categ_id = document.createElement('input');
323
        f_categ_id.name='f_categ_id'+suffixe;
324
        f_categ_id.setAttribute('type','hidden');
325
        f_categ_id.setAttribute('id','f_categ_id'+suffixe);
326
        f_categ_id.setAttribute('value','');       
327
        
328
        var f_categ_span_handle = document.createElement('span');
329
        f_categ_span_handle.setAttribute('id','handle_'+suffixe);
330
        f_categ_span_handle.style.float='left';
331
        f_categ_span_handle.style.paddingRight='7px';        
332
        
333
        var f_categ_drag_img = document.createElement('img');
334
        f_categ_drag_img.setAttribute('src','./images/sort.png');
335
        f_categ_drag_img.style.width='12px';
336
        f_categ_drag_img.style.verticalAlign='middle';
337
        
338
        f_categ_span_handle.appendChild(f_categ_drag_img);
339
        f_categ_span_handle.appendChild(f_categ_drag_img);
340
        
341
        categ.appendChild(f_categ_span_handle);
342
        
343
        categ.appendChild(f_categ);
344
        space=document.createTextNode(' ');
345
        categ.appendChild(space);
346
        categ.appendChild(del_f_categ);
347
        categ.appendChild(f_categ_id);
348

349
        template.appendChild(categ);
350

351
        tab_categ_order = document.getElementById('tab_categ_order');
352
                if (tab_categ_order.value != '') tab_categ_order.value += ','+suffixe; 
353
        
354
                document.notice.max_categ.value=suffixe*1+1*1 ;
355
        ajax_pack_element(f_categ);
356
        init_drag();
357
    }
358

359
    function fonction_selecteur_lang() {
360
        name=this.getAttribute('id').substring(4);
361
        name_id = name.substr(0,6)+'_code'+name.substr(6);
362
        openPopUp('./select.php?what=lang&caller=notice&p1='+name_id+'&p2='+name, 'select_lang', 500, 400, -2, -2, '$select2_prop');
363
    }
364
    function fonction_raz_lang() {
365
        name=this.getAttribute('id').substring(4);
366
        name_id = name.substr(0,6)+'_code'+name.substr(6);
367
        document.getElementById(name_id).value=0;
368
        document.getElementById(name).value='';
369
    }
370
    function add_lang() {
371
        template = document.getElementById('addlang');
372
        lang=document.createElement('div');
373
        lang.className='row';
374

375
        suffixe = eval('document.notice.max_lang.value')
376
        nom_id = 'f_lang'+suffixe
377
        f_lang = document.createElement('input');
378
        f_lang.setAttribute('name',nom_id);
379
        f_lang.setAttribute('id',nom_id);
380
        f_lang.setAttribute('type','text');
381
        f_lang.className='saisie-30emr';
382
        f_lang.setAttribute('value','');
383
                f_lang.setAttribute('completion','langue');
384
        f_lang.setAttribute('autfield','f_lang_code'+suffixe);
385
 
386
        del_f_lang = document.createElement('input');
387
        del_f_lang.setAttribute('id','del_f_lang'+suffixe);
388
        del_f_lang.onclick=fonction_raz_lang;
389
        del_f_lang.setAttribute('type','button');
390
        del_f_lang.className='bouton';
391
        del_f_lang.setAttribute('readonly','');
392
        del_f_lang.setAttribute('value','$msg[raz]');
393

394
        sel_f_lang = document.createElement('input');
395
        sel_f_lang.setAttribute('id','sel_f_lang'+suffixe);
396
        sel_f_lang.setAttribute('type','button');
397
        sel_f_lang.className='bouton';
398
        sel_f_lang.setAttribute('readonly','');
399
        sel_f_lang.setAttribute('value','$msg[parcourir]');
400
        sel_f_lang.onclick=fonction_selecteur_lang;
401

402
        f_lang_code = document.createElement('input');
403
        f_lang_code.name='f_lang_code'+suffixe;
404
        f_lang_code.setAttribute('type','hidden');
405
        f_lang_code.setAttribute('id','f_lang_code'+suffixe);
406
        f_lang_code.setAttribute('value','');
407

408
        lang.appendChild(f_lang);
409
        space=document.createTextNode(' ');
410
        lang.appendChild(space);
411
        lang.appendChild(sel_f_lang);
412
        lang.appendChild(space.cloneNode(false));
413
        lang.appendChild(del_f_lang);
414
        lang.appendChild(f_lang_code);
415

416
        template.appendChild(lang);
417

418
        document.notice.max_lang.value=suffixe*1+1*1 ;
419
        ajax_pack_element(f_lang);
420
    }
421

422
    function fonction_selecteur_langorg() {
423
        name=this.getAttribute('id').substring(4);
424
        name_id = name.substr(0,9)+'_code'+name.substr(9);
425
        openPopUp('./select.php?what=lang&caller=notice&p1='+name_id+'&p2='+name, 'select_lang', 500, 400, -2, -2, '$select2_prop');
426
    }window.open
427
    function fonction_raz_langorg() {
428
        name=this.getAttribute('id').substring(4);
429
        name_id = name.substr(0,9)+'_code'+name.substr(9);
430
        document.getElementById(name_id).value=0;
431
        document.getElementById(name).value='';
432
    }
433
    function add_langorg() {
434
        template = document.getElementById('addlangorg');
435
        langorg=document.createElement('div');
436
        langorg.className='row';
437

438
        suffixe = eval('document.notice.max_langorg.value')
439
        nom_id = 'f_langorg'+suffixe
440
        f_langorg = document.createElement('input');
441
        f_langorg.setAttribute('name',nom_id);
442
        f_langorg.setAttribute('id',nom_id);
443
        f_langorg.setAttribute('type','text');
444
        f_langorg.className='saisie-30emr';
445
        f_langorg.setAttribute('value','');
446
                f_langorg.setAttribute('completion','langue');
447
        f_langorg.setAttribute('autfield','f_langorg_code'+suffixe);
448
 
449
        del_f_langorg = document.createElement('input');
450
        del_f_langorg.setAttribute('id','del_f_langorg'+suffixe);
451
        del_f_langorg.onclick=fonction_raz_langorg;
452
        del_f_langorg.setAttribute('type','button');
453
        del_f_langorg.className='bouton';
454
        del_f_langorg.setAttribute('readonly','');
455
        del_f_langorg.setAttribute('value','$msg[raz]');
456

457
        sel_f_langorg = document.createElement('input');
458
        sel_f_langorg.setAttribute('id','sel_f_langorg'+suffixe);
459
        sel_f_langorg.setAttribute('type','button');
460
        sel_f_langorg.className='bouton';
461
        sel_f_langorg.setAttribute('readonly','');
462
        sel_f_langorg.setAttribute('value','$msg[parcourir]');
463
        sel_f_langorg.onclick=fonction_selecteur_langorg;
464

465
        f_lang_codeorg = document.createElement('input');
466
        f_lang_codeorg.name='f_langorg_code'+suffixe;
467
        f_lang_codeorg.setAttribute('type','hidden');
468
        f_lang_codeorg.setAttribute('id','f_langorg_code'+suffixe);
469
        f_lang_codeorg.setAttribute('value','');
470

471
        langorg.appendChild(f_langorg);
472
        space=document.createTextNode(' ');
473
        langorg.appendChild(space);
474
        langorg.appendChild(sel_f_langorg);
475
        langorg.appendChild(space.cloneNode(false));
476
        langorg.appendChild(del_f_langorg);
477
        langorg.appendChild(f_lang_codeorg);
478

479
        template.appendChild(langorg);
480

481
        document.notice.max_langorg.value=suffixe*1+1*1 ;
482
        ajax_pack_element(f_langorg);
483
    }
484

485
</script>
486
<!-- onglet 1 -->
487
<div id='el1Parent' class='parent'>
488
    <h3>
489
    <img src='./images/plus.gif' class='img_plus' name='imEx' id='el1Img' onClick=\"expandBase('el1', true); return false;\" title='$msg[243]' border='0' />
490
    $msg[243]
491
    </h3>
492
    </div>
493

494
<div id='el1Child' class='child' etirable='yes' title='".htmlentities($msg[243],ENT_QUOTES, $charset)."'>
495
    <div id='el1Child_0' title='".htmlentities($msg[244],ENT_QUOTES, $charset)."' movable='yes'>
496
    <!--    Auteur principal    -->
497
    <div class='row'>
498
        <div id='el1Child_0a' class='colonne2' id='colonne60'>
499
            <label for='f_aut0' class='etiquette'>$msg[244]</label>
500
            <div class='row' >
501
                                <input type='text' completion='authors' autfield='f_aut0_id' id='auteur0' class='saisie-30emr' name='f_aut0' value=\"!!aut0!!\" />
502
                <input type='button' class='bouton' value='$msg[parcourir]' onclick=\"openPopUp('./select.php?what=auteur&caller=notice&param1=f_aut0_id&param2=f_aut0&deb_rech='+".pmb_escape()."(this.form.f_aut0.value), 'select_author0', 500, 400, -2, -2, '$select1_prop')\" />
503
                      <input type='button' class='bouton' value='$msg[raz]' onclick=\"this.form.f_aut0.value=''; this.form.f_aut0_id.value='0'; \" />
504
                       <input type='hidden' name='f_aut0_id' id='f_aut0_id' value=\"!!aut0_id!!\" />
505
            </div>
506
                </div>
507
        <!--    Fonction    -->
508
        <div id='el1Child_1a' class='colonne_suite' id='colonne_suite'>
509
            <label for='f_f0' class='etiquette'>$msg[245]</label>
510
            <div class='row'>
511
                        <input type='text' class='saisie-15emr' id='f_f0' name='f_f0' value=\"!!f0!!\" completion=\"fonction\" autfield=\"f_f0_code\" />
512
                <input type='button' class='bouton' value='$msg[parcourir]' onclick=\"openPopUp('./select.php?what=function&caller=notice&p1=f_f0_code&p2=f_f0', 'select_func0', 500, 400, -2, -2, '$select2_prop')\" />
513
                <input type='button' class='bouton' value='$msg[raz]' onclick=\"this.form.f_f0.value=''; this.form.f_f0_code.value='0'; \" />
514
                <input type='hidden' name='f_f0_code' id='f_f0_code' value=\"!!f0_code!!\" />
515
                </div>
516
            </div>
517
        </div>
518
        </div>
519

520
    <div id='el1Child_2' title='".htmlentities($msg[246],ENT_QUOTES, $charset)."' movable='yes'>
521
            <!--    Autres auteurs    -->
522
            <div id='el1Child_2a' class='row'>
523
                    <div class='row'>
524
                        <label for='f_aut1' class='etiquette'>$msg[246]</label>
525
                        <input type='hidden' name='max_aut1' value=\"!!max_aut1!!\" />
526
                </div>
527
                <div class='row' id='addaut1'>
528
                        !!autres_auteurs!!
529
                        </div>
530
                </div>
531
        </div>
532
    <div id='el1Child_3' title='".htmlentities($msg[247],ENT_QUOTES, $charset)."' movable='yes'>
533
            <!--    Auteurs secondaires     -->
534
            <div  id='el1Child_3a' class='row'>
535
                    <div class='row'>
536
                        <label for='f_aut2' class='etiquette'>$msg[247]</label>
537
                        <input type='hidden' name='max_aut2' value=\"!!max_aut2!!\" />
538
                </div>
539
                <div class='row' id='addaut2'>
540
                        !!auteurs_secondaires!!
541
                        </div>
542
                </div>
543
        </div>
544
</div>
545
";
546

    
547
//    ----------------------------------------------------
548
//    Autres auteurs
549
//    ----------------------------------------------------
550
$ptab[11] = "
551
        <div id='el1Child_2b_first' class='colonne2'>
552
            <div class='row'>
553
                       <input type='text' class='saisie-30emr' completion='authors' autfield='f_aut1_id!!iaut!!' id='f_aut1!!iaut!!' name='f_aut1!!iaut!!' value=\"!!aut1!!\" />
554
                                <input type='button' class='bouton' value='$msg[parcourir]' onclick=\"openPopUp('./select.php?what=auteur&caller=notice&param1=f_aut1_id!!iaut!!&param2=f_aut1!!iaut!!&deb_rech='+".pmb_escape()."(this.form.f_aut1!!iaut!!.value), 'select_author2', 500, 400, -2, -2, '$select1_prop')\" />
555
                <input type='button' class='bouton' value='$msg[raz]' onclick=\"this.form.f_aut1!!iaut!!.value=''; this.form.f_aut1_id!!iaut!!.value='0'; \" />
556
                <input type='hidden' name='f_aut1_id!!iaut!!' id='f_aut1_id!!iaut!!' value=\"!!aut1_id!!\" />
557
            </div>
558
        </div>
559
            <!--    Fonction    -->
560
        <div  id='el1Child_2b_others' class='colonne_suite'>
561
            <div class='row'>
562
                <input type='text' class='saisie-15emr' id='f_f1!!iaut!!' name='f_f1!!iaut!!' completion='fonction' autfield='f_f1_code!!iaut!!' value=\"!!f1!!\" />
563
                <input type='button' class='bouton' value='$msg[parcourir]' onclick=\"openPopUp('./select.php?what=function&caller=notice&p1=f_f1_code!!iaut!!&p2=f_f1!!iaut!!', 'select_func2', 500, 400, -2, -2, '$select2_prop')\" />
564
                <input type='button' class='bouton' value='$msg[raz]' onclick=\"this.form.f_f1!!iaut!!.value=''; this.form.f_f1_code!!iaut!!.value='0'; \" />
565
                <input type='hidden' name='f_f1_code!!iaut!!' id='f_f1_code!!iaut!!' value=\"!!f1_code!!\" />
566
                <input type='button' class='bouton' value='+' onClick=\"add_aut(1);\"/>
567
            </div>
568
        </div>
569
    " ;
570

    
571
//    ----------------------------------------------------
572
//    Autres secondaires
573
//    ----------------------------------------------------
574
$ptab[12] = "
575
        <div id='el1Child_3b_first' class='colonne2'>
576
            <div class='row'>
577
                     <input type='text' class='saisie-30emr' completion='authors' autfield='f_aut2_id!!iaut!!' id='f_aut2!!iaut!!' name='f_aut2!!iaut!!' value=\"!!aut2!!\" />
578
                                <input type='button' class='bouton' value='$msg[parcourir]' onclick=\"openPopUp('./select.php?what=auteur&caller=notice&param1=f_aut2_id!!iaut!!&param2=f_aut2!!iaut!!&deb_rech='+".pmb_escape()."(this.form.f_aut2!!iaut!!.value), 'select_author2', 500, 400, -2, -2, '$select1_prop')\" />
579
                <input type='button' class='bouton' value='$msg[raz]' onclick=\"this.form.f_aut2!!iaut!!.value=''; this.form.f_aut2_id!!iaut!!.value='0'; \" />
580
                <input type='hidden' name='f_aut2_id!!iaut!!' id='f_aut2_id!!iaut!!' value=\"!!aut2_id!!\" />
581
            </div>
582
        </div>
583
        <!--    Fonction    -->
584
        <div id='el1Child_3b_others' class='colonne_suite'>
585
            <div class='row'>
586
                <input type='text' class='saisie-15emr' id='f_f2!!iaut!!' name='f_f2!!iaut!!' completion='fonction' autfield='f_f2_code!!iaut!!' value=\"!!f2!!\" />
587
                <input type='button' class='bouton' value='$msg[parcourir]' onclick=\"openPopUp('./select.php?what=function&caller=notice&p1=f_f2_code!!iaut!!&p2=f_f2!!iaut!!', 'select_func2', 500, 400, -2, -2,'$select2_prop')\" />
588
                <input type='button' class='bouton' value='$msg[raz]' onclick=\"this.form.f_f2!!iaut!!.value=''; this.form.f_f2_code!!iaut!!.value='0'; \" />
589
                <input type='hidden' name='f_f2_code!!iaut!!' id='f_f2_code!!iaut!!' value=\"!!f2_code!!\" />
590
                <input type='button' class='bouton' value='+' onClick=\"add_aut(2);\"/>
591
            </div>
592
        </div>
593
    " ;
594

    
595
//    ----------------------------------------------------
596
//    Adresse, éditeurs, collection
597
//    ----------------------------------------------------
598
$ptab[2] = "
599
<!-- onglet 2 -->
600
<div id='el2Parent' class='parent'>
601
    <h3>
602
    <img src='./images/plus.gif' class='img_plus' name='imEx' id='el2Img' border='0' onClick=\"expandBase('el2', true); return false;\" />
603
    $msg[249]
604
    </h3>
605
</div>
606

607
<div id='el2Child' class='child' etirable='yes' title='".htmlentities($msg[249],ENT_QUOTES, $charset)."'>
608

609
<div id='el2Child_0' title='".htmlentities($msg[164],ENT_QUOTES, $charset)."' movable='yes'>
610
<!--    Editeur    -->
611
<div id='el2Child_0a' class='row'>
612
    <label for='f_ed1' class='etiquette'>$msg[164]</label>
613
</div>
614
<div id='el2Child_0b' class='row'>
615
        <input type='text' completion='publishers' autfield='f_ed1_id' id='f_ed1' name='f_ed1' value=\"!!ed1!!\" class='saisie-30emr' />
616
    <input type='button' class='bouton' value='$msg[parcourir]' onclick=\"openPopUp('./select.php?what=editeur&caller=notice&p1=f_ed1_id&p2=f_ed1&p3=f_coll_id&p4=f_coll&p5=f_subcoll_id&p6=f_subcoll&deb_rech='+this.form.f_ed1.value, 'select_ed1', 500, 400, -2, -2, '$select1_prop')\" />
617
    <input type='button' class='bouton' value='$msg[raz]' onclick=\"this.form.f_ed1.value=''; this.form.f_ed1_id.value='0'; \" />
618
    <input type='hidden' name='f_ed1_id' id='f_ed1_id' value=\"!!ed1_id!!\" />
619
</div>
620

621
</div>
622

623
<div id='el2Child_1' title='".htmlentities($msg[250],ENT_QUOTES, $charset)."' movable='yes'>
624
<div class='row'>
625
    <!--    Collection    -->
626
    <div id='el2Child_1a' class='colonne2'>
627
    <label for='f_coll' class='etiquette'>$msg[250]</label>
628
    <div class='row'>
629
                <input type='text' completion='collections' autfield='f_coll_id' id='f_coll' name='f_coll' value=\"!!coll!!\" class='saisie-30emr' linkfield='f_ed1_id' />
630
        <input type='button' class='bouton' value='$msg[parcourir]' onclick=\"openPopUp('./select.php?what=collection&caller=notice&p1=f_ed1_id&p2=f_ed1&p3=f_coll_id&p4=f_coll&p5=f_subcoll_id&p6=f_subcoll&deb_rech='+this.form.f_coll.value, 'select_coll', 500, 400, -2, -2, '$select1_prop')\" />
631
        <input type='button' class='bouton' value='$msg[raz]' onclick=\"this.form.f_coll.value=''; this.form.f_coll_id.value='0'; \" />
632
        <input type='hidden' name='f_coll_id' id='f_coll_id' value=\"!!coll_id!!\" />
633
        </div>
634
        </div>
635
    <!--    No. dans la collection    -->
636
    <div id='el2Child_2a' class='colonne_suite'>
637
        <label for='f_nocoll' class='etiquette'>$msg[253]</label>
638
        <div class='row'>
639
            <input type='text' class='saisie-15em' id='f_nocoll' name='f_nocoll' value=\"!!nocoll!!\" />
640
            </div>
641
        </div>
642
        </div>
643

644
</div>
645

646
<div id='el2Child_3' title='".htmlentities($msg[251],ENT_QUOTES, $charset)."' movable='yes'>
647
<div id='el2Child_3a' class='row'>
648
    <!--    Sous collection    -->
649
        <label for='f_subcoll' class='etiquette'>$msg[251]</label>
650
        <div class='row'>
651
                <input type='text' completion='subcollections' autfield='f_subcoll_id' id='f_subcoll' name='f_subcoll' value=\"!!subcoll!!\" class='saisie-30emr' linkfield='f_coll_id' />
652

653
                <input type='button' class='bouton' value='$msg[parcourir]' onclick=\"openPopUp('./select.php?what=subcollection&caller=notice&p1=f_ed1_id&p2=f_ed1&p3=f_coll_id&p4=f_coll&p5=f_subcoll_id&p6=f_subcoll&deb_rech='+this.form.f_subcoll.value, 'select_subcoll', 500, 400, -2, -2, '$select1_prop')\" />
654
                <input type='button' class='bouton' value='$msg[raz]' onclick=\"this.form.f_subcoll.value=''; this.form.f_subcoll_id.value='0'; \" />
655
                <input type='hidden' id='f_subcoll_id' name='f_subcoll_id' value=\"!!subcoll_id!!\" />
656
                </div>
657
    </div>
658
</div>
659

660
<div id='el2Child_4' title='".htmlentities($msg[252],ENT_QUOTES, $charset)."' movable='yes'>
661
<div id='el2Child_4a' class='row'>&nbsp;</div>
662
<div class='row'>
663
    <!--    Année    -->
664
    <div id='el2Child_5a' class='colonne2'>
665
        <label for='f_year' class='etiquette'>$msg[252]</label>
666
        <div class='row'>
667
            <input type='text' class='saisie-30em' id='f_year' name='f_year' value=\"!!year!!\" />
668
            </div>
669
        </div>
670

671
    <div id='el2Child_6a' class='colonne_suite'>
672
        <label for='f_mention_edition' class='etiquette'>$msg[mention_edition]</label>
673
        <div class='row'>
674
            <input type='text' class='saisie-20em' id='f_mention_edition' name='f_mention_edition' value=\"!!mention_edition!!\" />
675
            </div>
676
        </div>
677

678
    </div>
679
</div>
680

681
<div id='el2Child_7' title='".htmlentities($msg[254],ENT_QUOTES, $charset)."' movable='yes'>
682
<!--    Autre éditeur    -->
683
<div id='el2Child_7a' class='row'>
684
    <label for='f_ed2' class='etiquette'>$msg[254]</label>
685
</div>
686
<div id='el2Child_7b' class='row'>
687
    <input type='text' completion='publishers' autfield='f_ed2_id' id='f_ed2' name='f_ed2' value=\"!!ed2!!\" class='saisie-30emr' />
688
    <input type='button' class='bouton' value='$msg[parcourir]' onclick=\"openPopUp('./select.php?what=editeur&caller=notice&p1=f_ed2_id&p2=f_ed2&p3=dummy&p4=dummy&p5=dummy&p6=dummy&deb_rech='+this.form.f_ed2.value, 'select_ed1', 500, 400, -2, -2, '$select1_prop')\" />
689
    <input type='button' class='bouton' value='$msg[raz]' onclick=\"this.form.f_ed2.value=''; this.form.f_ed2_id.value='0'; \" />
690
    <input type='hidden' name='dummy' />
691
    <input type='hidden' name='f_ed2_id' id='f_ed2_id' value=\"!!ed2_id!!\" />
692
</div>
693
</div>
694
</div>
695
";
696

    
697
//    ----------------------------------------------------
698
//    ISBN, EAN ou no. commercial
699
//       $ptab[3] : contenu de l'onglet 3
700
//    ----------------------------------------------------
701
$ptab[3] = "
702
<!-- onglet 3 -->
703
<div id='el3Parent' class='parent'>
704
<h3>
705
    <img src='./images/plus.gif' class='img_plus' name='imEx' id='el3Img' title='$msg[255]' border='0' onClick=\"expandBase('el3', true); return false;\" />
706
    $msg[255]
707
</h3>
708
</div>
709

710
<div id='el3Child' class='child' etirable='yes' title='".htmlentities($msg[255],ENT_QUOTES, $charset)."'>
711
<div id='el3Child_0' title='$msg[255]' movable='yes'>
712
<!--    ISBN, EAN ou no. commercial    -->
713
<div id='el3Child_0a' class='row'>
714
    <label for='f_cb' class='etiquette'>$msg[255]</label>
715
</div>
716
<div id='el3Child_0b' class='row'>
717
    <input class='saisie-20emr' id='f_cb' name='f_cb' readonly value=\"!!cb!!\" />
718
    <input type='button' class='bouton' value='$msg[parcourir]' onclick=\"openPopUp('./catalog/setcb.php?notice_id=!!notice_id!!', 'getcb', 300, 150, -2, -2, 'toolbar=no, resizable=yes')\" />
719
    <input type='button' class='bouton' value='$msg[raz]' onclick=\"this.form.f_cb.value=''; \" />
720
</div>
721
</div>
722
</div>
723
";
724

    
725
//    ----------------------------------------------------
726
//    Collation
727
//       $ptab[4] : contenu de l'onglet 4 (collation)
728
//    ----------------------------------------------------
729

    
730
$ptab[4] = "
731
<!-- onglet 4 -->
732
<div id='el4Parent' class='parent'>
733
    <h3>
734
        <img src='./images/plus.gif' class='img_plus' name='imEx' id='el4Img' title='$msg[257]' border='0' onClick=\"expandBase('el4', true); return false;\" />
735
        $msg[258]
736
    </h3>
737
</div>
738

739
<div id='el4Child' class='child' etirable='yes' title='".htmlentities($msg[258],ENT_QUOTES, $charset)."'>
740

741
<div id='el4Child_0' title='".htmlentities($msg[259],ENT_QUOTES, $charset)."' movable='yes'>
742
<!--    Importance matérielle (nombre de pages, d'éléments...)    -->
743
<div id='el4Child_0a' class='row'>
744
    <label for='f_npages' class='etiquette'>$msg[259]</label>
745
</div>
746
<div id='el4Child_0b' class='row'>
747
    <input type='text' class='saisie-80em' id='f_npages' name='f_npages' value=\"!!npages!!\" />
748
</div>
749
</div>
750

751
<div id='el4Child_1' title='".htmlentities($msg[260],ENT_QUOTES, $charset)."' movable='yes'>
752
<!--    Autres caractèristiques matérielle (ill., ...)    -->
753
<div id='el4Child_1a' class='row'>
754
    <label for='f_ill' class='etiquette'>$msg[260]</label>
755
</div>
756
<div id='el4Child_1b' class='row'>
757
    <input type='text' class='saisie-80em' id='f_ill' name='f_ill' value=\"!!ill!!\" />
758
</div>
759
</div>
760

761
<div id='el4Child_2' title='".htmlentities($msg[261],ENT_QUOTES, $charset)."' movable='yes'>
762
<!--    Format    -->
763
<div id='el4Child_2a' class='row'>
764
    <label for='f_size' class='etiquette'>$msg[261]</label>
765
</div>
766
<div id='el4Child_2b' class='row'>
767
    <input type='text' class='saisie-80em' id='f_size' name='f_size' value=\"!!size!!\" />
768
</div>
769
</div>
770

771
<div id='el4Child_3' title='".htmlentities($msg[4050],ENT_QUOTES, $charset)."' movable='yes'>
772
<!--    Prix    -->
773
<div id='el4Child_3a' class='row'>
774
    <label for='f_prix' class='etiquette'>$msg[4050]</label>
775
</div>
776
<div id='el4Child_3b' class='row'>
777
    <input type='text' class='saisie-80em' id='f_prix' name='f_prix' value=\"!!prix!!\" />
778
</div>
779

780
</div>
781

782
<div id='el4Child_4' title='".htmlentities($msg[262],ENT_QUOTES, $charset)."' movable='yes'>
783
<!--    Matériel d'accompagnement    -->
784
<div id='el4Child_4a' class='row'>
785
    <label for='f_accomp' class='etiquette'>$msg[262]</label>
786
</div>
787
<div id='el4Child_4b' class='row'>
788
    <input type='text' class='saisie-80em' id='f_accomp' name='f_accomp' value=\"!!accomp!!\" />
789
</div>
790
</div>
791
</div>
792
";
793

    
794
//    ----------------------------------------------------
795
//    Notes
796
//       $ptab[5] : contenu de l'onglet 5 (notes)
797
//    ----------------------------------------------------
798
$ptab[5] = "
799
<!-- onglet 5 -->
800
<div id='el5Parent' class='parent'>
801
<h3>
802
    <img src='./images/plus.gif' class='img_plus' name='imEx' id='el5Img' title='$msg[263]' border='0' onClick=\"expandBase('el5', true); return false;\" />
803
    $msg[264]
804
</h3>
805
</div>
806

807
<div id='el5Child' class='child' etirable='yes' title='".htmlentities($msg[264],ENT_QUOTES, $charset)."'>
808

809
<div id='el5Child_0' title='".htmlentities($msg[265],ENT_QUOTES, $charset)."' movable='yes'>
810
<!--    Note générale    -->
811
<div id='el5Child_0a' class='row'>
812
    <label for='f_n_gen' class='etiquette'>$msg[265]</label>
813
</div>
814
<div id='el5Child_0b' class='row'>
815
    <textarea id='f_n_gen' class='saisie-80em' name='f_n_gen' rows='3' wrap='virtual'>!!n_gen!!</textarea>
816
</div>
817
</div>
818

819
<div id='el5Child_1' title='".htmlentities($msg[266],ENT_QUOTES, $charset)."' movable='yes'>
820
<!--    Note de contenu    -->
821
<div id='el5Child_1a' class='row'>
822
    <label for='f_n_contenu' class='etiquette'>$msg[266]</label>
823
</div>
824
<div id='el5Child_1b' class='row'>
825
    <textarea id='f_n_contenu' class='saisie-80em' name='f_n_contenu' rows='5' wrap='virtual'>!!n_contenu!!</textarea>
826
</div>
827
</div>
828

829
<div id='el5Child_2' title='".htmlentities($msg[267],ENT_QUOTES, $charset)."' movable='yes'>
830
<!--    Résumé/extrait    -->
831
<div id='el5Child_2a' class='row'>
832
    <label for='f_n_resume' class='etiquette'>$msg[267]</label>
833
</div>
834
<div id='el5Child_2b' class='row'>
835
    <textarea class='saisie-80em' id='f_n_resume' name='f_n_resume' rows='5' wrap='virtual'>!!n_resume!!</textarea>
836
</div>
837
</div>
838
</div>
839
";
840

    
841
//    ----------------------------------------------------
842
//    Indexation
843
//       $ptab[6] : contenu de l'onglet 6 (indexation)
844
//    ----------------------------------------------------
845
$ptab[6] = "
846
    <!-- onglet 6 -->
847
<div id='el6Parent' class='parent'>
848
<h3>
849
    <img src='./images/plus.gif' class='img_plus' name='imEx' id='el6Img' title=\"$msg[268]\" border='0' onClick=\"expandBase('el6', true);recalc_recept(); return false;\" />
850
    $msg[269]
851
</h3>
852
</div>
853

854
<div id='el6Child' class='child' etirable='yes' title='".htmlentities($msg[269],ENT_QUOTES, $charset)."'>
855

856
<div id='el6Child_0' title='".htmlentities($msg[134],ENT_QUOTES, $charset)."' movable='yes'>
857
    <!--    Catégories    -->
858
    <div id='el6Child_0a' class='row'>
859
        <label for='f_categ' class='etiquette'>$msg[134]</label>
860
    </div>
861
    <input type='hidden' name='max_categ' value=\"!!max_categ!!\" />
862
    !!categories_repetables!!
863
    <div id='addcateg'/>
864
        </div>
865
</div>
866

867
<div id='el6Child_1' title='".htmlentities($msg[indexint_catal_title],ENT_QUOTES, $charset)."' movable='yes'>
868
    <!--    indexation interne    -->
869
    <div id='el6Child_1a' class='row'>
870
        <label for='f_categ' class='etiquette'>$msg[indexint_catal_title]</label>
871
    </div>    
872
    <div id='el6Child_1b' class='row'>
873
        <input type='text' class='saisie-80emr' id='f_indexint' name='f_indexint' value=\"!!indexint!!\" completion=\"indexint\" autfield=\"f_indexint_id\"  typdoc=\"typdoc\" />
874
        <input type='button' class='bouton' value='$msg[parcourir]' onclick=\"openPopUp('./select.php?what=indexint&caller=notice&param1=f_indexint_id&param2=f_indexint&parent=0&deb_rech='+".pmb_escape()."(this.form.f_indexint.value)+'&typdoc='+(this.form.typdoc.value)+'&num_pclass=!!num_pclass!!', 'select_categ', 600, 320, -2, -2, '$select3_prop')\" />
875
        <input type='button' class='bouton' value='$msg[raz]' onclick=\"this.form.f_indexint.value=''; this.form.f_indexint_id.value='0'; \" />
876
        <input type='hidden' name='f_indexint_id' id='f_indexint_id' value='!!indexint_id!!' />
877
    </div>
878

879
</div>
880

881
<div id='el6Child_2' title='".htmlentities($msg[324],ENT_QUOTES, $charset)."' movable='yes'>
882
    <!--    Indexation libre    -->
883
    <div id='el6Child_2a' class='row'>
884
        <label for='f_indexation' class='etiquette'>$msg[324]</label>
885
    </div>
886
    <div id='el8Child_2b' class='row'>
887
        <textarea class='saisie-80em' id='f_indexation' name='f_indexation' rows='3' wrap='virtual' completion='tags' keys='113'>!!f_indexation!!</textarea>
888
    </div>
889
    <div id='el8Child_2_comment' class='row'>
890
        <span>$msg[324]$msg[1901]$msg[325]</span>
891
    </div>
892
</div>
893
</div>
894
";
895

    
896
//    ----------------------------------------------------
897
//     Catégories répétables
898
//       $ptab[60]
899
//    ----------------------------------------------------
900
$ptab[60] = "
901
        <script type='text/javascript' src='./javascript/categ_drop.js'></script>
902
        <input type='hidden' name='tab_categ_order' id='tab_categ_order' value='!!tab_categ_order!!' />       
903
        <input type='button' class='bouton' value='$msg[parcourir]' onclick=\"openPopUp('./select.php?what=categorie&caller=notice&p1=f_categ_id!!icateg!!&p2=f_categ!!icateg!!&dyn=1&parent=0&deb_rech=', 'select_categ', 700, 500, -2, -2, '$select_categ_prop')\" />
904
    <input type='button' class='bouton' value='+' onClick=\"add_categ();\"/>
905
        
906
   
907
          <div id='drag_!!icateg!!'  class='row' dragtype='categ' draggable='yes' recept='yes' recepttype='categ' handler='handle_!!icateg!!'                
908
                dragicon=\"".$base_path."/images/icone_drag_notice.png\" dragtext='!!categ_libelle!!' downlight=\"categ_downlight\" highlight=\"categ_highlight\"                        
909
                order='!!icateg!!' style='' >
910
                 <span id=\"handle_!!icateg!!\" style=\"float:left; padding-right : 7px\"><img src=\"".$base_path."/images/sort.png\" style='width:12px; vertical-align:middle' /></span>
911
        
912
        <input type='text' class='saisie-80emr' id='f_categ!!icateg!!' name='f_categ!!icateg!!' value=\"!!categ_libelle!!\" completion=\"categories_mul\" autfield=\"f_categ_id!!icateg!!\" />
913
        <input type='button' class='bouton' value='$msg[raz]' onclick=\"this.form.f_categ!!icateg!!.value=''; this.form.f_categ_id!!icateg!!.value='0'; \" />
914
               <input type='hidden' name='f_categ_id!!icateg!!' id='f_categ_id!!icateg!!' value='!!categ_id!!' />       
915
        </div>            
916
    ";
917
$ptab[601] = "    
918
         <div id='drag_!!icateg!!' class='row' dragtype='categ' draggable='yes' recept='yes' recepttype='categ' handler='handle_!!icateg!!'                                 
919
                dragicon=\"".$base_path."/images/icone_drag_notice.png\" dragtext='!!categ_libelle!!' downlight=\"categ_downlight\" highlight=\"categ_highlight\"                        
920
                order='!!icateg!!' style='' >
921
            <span id=\"handle_!!icateg!!\" style=\"float:left; padding-right : 7px\"><img src=\"".$base_path."/images/sort.png\" style='width:12px; vertical-align:middle' /></span>
922

923
            <input type='text' class='saisie-80emr' id='f_categ!!icateg!!' name='f_categ!!icateg!!' value=\"!!categ_libelle!!\" completion=\"categories_mul\" autfield=\"f_categ_id!!icateg!!\" />
924
        <input type='button' class='bouton' value='$msg[raz]' onclick=\"this.form.f_categ!!icateg!!.value=''; this.form.f_categ_id!!icateg!!.value='0'; \" />
925
        <input type='hidden' name='f_categ_id!!icateg!!' id='f_categ_id!!icateg!!' value='!!categ_id!!' />
926
        </div> 
927
    ";
928

    
929
//    ----------------------------------------------------
930
//     Langue de la publication
931
//       $ptab[7] : contenu de l'onglet 7 (langues)
932
//    ----------------------------------------------------
933

    
934
$ptab[7] = "
935
<!-- onglet 7 -->
936
<div id='el7Parent' class='parent'>
937
<h3>
938
    <img src='./images/plus.gif' class='img_plus' name='imEx' id='el7Img' title='langues' border='0' onClick=\"expandBase('el7', true); return false;\" />
939
    $msg[710]
940
</h3>
941
</div>
942

943
<div id='el7Child' class='child' etirable='yes' title='".htmlentities($msg[710],ENT_QUOTES, $charset)."'>
944

945
<div id='el7Child_0' title='".htmlentities($msg[710],ENT_QUOTES, $charset)."' movable='yes'>
946
    <!--    Langues    -->
947
    <div id='el7Child_0a' class='row'>
948
        <label for='f_langue' class='etiquette'>$msg[710]</label>
949
    </div>
950
    <input type='hidden' name='max_lang' value=\"!!max_lang!!\" />
951
    !!langues_repetables!!
952
    <div id='addlang'/>
953
        </div>
954
</div>
955

956
<div id='el7Child_1' title='".htmlentities($msg[711],ENT_QUOTES, $charset)."' movable='yes'>
957
    <!--    Langues    -->
958
    <div id='el7Child_1a' class='row'>
959
        <label for='f_langorg' class='etiquette'>$msg[711]</label>
960
    </div>
961
    <input type='hidden' name='max_langorg' value=\"!!max_langorg!!\" />
962
    !!languesorg_repetables!!
963
    <div id='addlangorg'/>
964
        </div>
965
</div>
966

967
</div>
968
";
969

    
970
//    ----------------------------------------------------
971
//     Langues répétables
972
//       $ptab[70]
973
//    ----------------------------------------------------
974
$ptab[70] = "
975
    <div id='el7Child_0a' class='row'>
976
        <input type='text' class='saisie-30emr' id='f_lang!!ilang!!' name='f_lang!!ilang!!' value=\"!!lang!!\" completion=\"langue\" autfield=\"f_lang_code!!ilang!!\" />
977
                <input type='button' class='bouton' value='$msg[parcourir]' onclick=\"openPopUp('./select.php?what=lang&caller=notice&p1=f_lang_code!!ilang!!&p2=f_lang!!ilang!!', 'select_lang', 500, 400, -2, -2, '$select2_prop')\" />
978
        <input type='button' class='bouton' value='$msg[raz]' onclick=\"this.form.f_lang!!ilang!!.value=''; this.form.f_lang_code!!ilang!!.value=''; \" />
979
        <input type='hidden' name='f_lang_code!!ilang!!' id='f_lang_code!!ilang!!' value='!!lang_code!!' />
980
        <input type='button' class='bouton' value='+' onClick=\"add_lang();\"/>
981
    </div>
982
    ";
983

    
984
$ptab[701] = "
985
    <div id='el7Child_0a' class='row'>
986
        <input type='text' class='saisie-30emr' id='f_lang!!ilang!!' name='f_lang!!ilang!!' value=\"!!lang!!\" completion=\"langue\" autfield=\"f_lang_code!!ilang!!\" />
987
                <input type='button' class='bouton' value='$msg[parcourir]' onclick=\"openPopUp('./select.php?what=lang&caller=notice&p1=f_lang_code!!ilang!!&p2=f_lang!!ilang!!', 'select_lang', 500, 400, -2, -2, '$select2_prop')\" />
988
        <input type='button' class='bouton' value='$msg[raz]' onclick=\"this.form.f_lang!!ilang!!.value=''; this.form.f_lang_code!!ilang!!.value=''; \" />
989
        <input type='hidden' name='f_lang_code!!ilang!!' id='f_lang_code!!ilang!!' value='!!lang_code!!' />
990
    </div>
991
    ";
992

    
993
//    ----------------------------------------------------
994
//     Langues originales répétables
995
//       $ptab[71]
996
//    ----------------------------------------------------
997
$ptab[71] = "
998
    <div id='el7Child_0b' class='row'>
999
        <input type='text' class='saisie-30emr' id='f_langorg!!ilangorg!!' name='f_langorg!!ilangorg!!' value=\"!!langorg!!\" completion=\"langue\" autfield=\"f_langorg_code!!ilangorg!!\" />
1000
                <input type='button' class='bouton' value='$msg[parcourir]' onclick=\"openPopUp('./select.php?what=lang&caller=notice&p1=f_langorg_code!!ilangorg!!&p2=f_langorg!!ilangorg!!', 'select_lang', 500, 400, -2, -2, '$select2_prop')\" />
1001
        <input type='button' class='bouton' value='$msg[raz]' onclick=\"this.form.f_langorg!!ilangorg!!.value=''; this.form.f_langorg_code!!ilangorg!!.value=''; \" />
1002
        <input type='hidden' name='f_langorg_code!!ilangorg!!' id='f_langorg_code!!ilangorg!!' value='!!langorg_code!!' />
1003
        <input type='button' class='bouton' value='+' onClick=\"add_langorg();\"/>
1004
    </div>
1005
    ";
1006
$ptab[711] = "
1007
    <div id='el7Child_0b' class='row'>
1008
        <input type='text' class='saisie-30emr' id='f_langorg!!ilangorg!!' name='f_langorg!!ilangorg!!' value=\"!!langorg!!\" completion=\"langue\" autfield=\"f_langorg_code!!ilangorg!!\" />
1009
                <input type='button' class='bouton' value='$msg[parcourir]' onclick=\"openPopUp('./select.php?what=lang&caller=notice&p1=f_langorg_code!!ilangorg!!&p2=f_langorg!!ilangorg!!', 'select_lang', 500, 400, -2, -2, '$select2_prop')\" />
1010
        <input type='button' class='bouton' value='$msg[raz]' onclick=\"this.form.f_langorg!!ilangorg!!.value=''; this.form.f_langorg_code!!ilangorg!!.value=''; \" />
1011
        <input type='hidden' name='f_langorg_code!!ilangorg!!' id='f_langorg_code!!ilangorg!!' value='!!langorg_code!!' />
1012
    </div>
1013
    ";
1014

    
1015
//    ----------------------------window.open------------------------
1016
//    Liens
1017
//       $ptab[8] : contenu de l'onglet 8 (liens)
1018
//    ----------------------------------------------------
1019

    
1020
$ptab[8] = "
1021
<!-- onglet 8 -->
1022
<div id='el8Parent' class='parent'>
1023
<h3>
1024
    <img src='./images/plus.gif' class='img_plus' name='imEx' id='el8Img' onClick=\"expandBase('el8', true); return false;\" title='$msg[274]' border='0' />
1025
    $msg[274]
1026
</h3>
1027
</div>
1028

1029
<div id='el8Child' class='child' etirable='yes' title='".htmlentities($msg[274],ENT_QUOTES, $charset)."'>
1030

1031
<div id='el8Child_0' title='".htmlentities($msg[275],ENT_QUOTES, $charset)."' movable='yes'>
1032
<!--    URL associée    -->
1033
<div id='el8Child_0a' class='row'>
1034
    <label for='f_l' class='etiquette'>$msg[275]</label>
1035
</div>
1036
<div id='el8Child_0b' class='row'>
1037
    <input name='f_lien' type='text' class='saisie-80em' id='f_lien' value=\"!!lien!!\" />
1038
    <input class='bouton' type='button' onClick=\"var l=document.getElementById('f_lien').value; eval('window.open(\''+l+'\')');\" title='$msg[CheckLink]' value='$msg[CheckButton]' />
1039
</div>
1040
</div>
1041

1042
<div id='el8Child_1' title='".htmlentities($msg[276],ENT_QUOTES, $charset)."' movable='yes'>
1043
<!--    Format électronique de la ressource    -->
1044
<div id='el8Child_1a' class='row'>
1045
    <label for='f_eformat' class='etiquette'>$msg[276]</label>
1046
</div>
1047
<div id='el8Child_1b' class='row'>
1048
    <input type='text' class='saisie-80em' id='f_eformat' name='f_eformat' value=\"!!eformat!!\" />
1049
</div>
1050
</div>
1051
</div>
1052
";
1053

    
1054
//    ----------------------------------------------------
1055
//    Champs personalisés
1056
//       $ptab[9] : Contenu de l'onglet 9 (champs personalisés)
1057
//    ----------------------------------------------------
1058

    
1059
$ptab[9] = "
1060
<!-- onglet 9 -->
1061
<div id='el9Parent' class='parent'>
1062
<h3>
1063
    <img src='./images/plus.gif' class='img_plus' name='imEx' id='el9Img' onClick=\"expandBase('el9', true); return false;\" title='".$msg["notice_champs_perso"]."' border='0' /> ".$msg["notice_champs_perso"]."
1064
</h3>
1065
</div>
1066
<div id='el9Child' class='child' etirable='yes' title='".$msg["notice_champs_perso"]."'>
1067
!!champs_perso!!
1068
</div>
1069
";
1070

    
1071
//    ----------------------------------------------------
1072
//    Champs de relations
1073
//       $ptab[11] : Contenu de l'onglet 11 (champs de relations)
1074
//    ----------------------------------------------------
1075
$ptab[130]="
1076
                <div class='colonne4'>
1077
                        <div id='el11Child_0a' class='row'>
1078
                                    <label for='f_rel_type_!!n_rel!!' class='etiquette'>$msg[notice_type_relations]</label>
1079
                        </div>
1080
                        <div id='el11Child_0b' class='row'>
1081
                                <select onchange='' name='!!f_notice_type_relations_name!!' size='1'>
1082
                                        <optgroup class='erreur' label='$msg[notice_lien_montant]'>
1083
                                                !!f_notice_type_relations_up!!
1084
                                        </optgroup>
1085
                                        <optgroup class='erreur' label='$msg[notice_lien_descendant]'>
1086
                                                !!f_notice_type_relations_down!!
1087
                                        </optgroup>
1088
                                        <optgroup class='erreur' label='$msg[notice_lien_symetrique]'>
1089
                                                !!f_notice_type_relations_both!!
1090
                                        </optgroup>
1091
                                </select>
1092
                        </div>
1093
                </div>
1094
                <div class='colonne'>
1095
                        <div id='el11Child_0c' class='row'>
1096
                                   <label for='f_rel_!!n_rel!!' class='etiquette'>$msg[notice_relations]</label>
1097
                        </div>
1098
                        <div id='el11Child_0d' class='row'>
1099
                                <input type='text' class='saisie-80emr' id='f_rel_!!n_rel!!' name='f_rel_!!n_rel!!' value=\"!!notice_relations_libelle!!\" completion=\"notice\" autfield=\"f_rel_id_!!n_rel!!\" autexclude=\"!!notice_id_no_replace!!\"/>
1100
                               <input type='button' class='bouton' value='$msg[parcourir]' onclick=\"openPopUp('./select.php?what=notice&caller=notice&param1=f_rel_id_!!n_rel!!&param2=f_rel_!!n_rel!!&no_display=!!notice_id_no_replace!!', 'select_notice', 700, 500, -2, -2, '$select_categ_prop')\"/>
1101
                                <input type='button' class='bouton' value='$msg[raz]' onclick=\"this.form.f_rel_!!n_rel!!.value=''; this.form.f_rel_id_!!n_rel!!.value='0'; this.form.f_rel_rank_!!n_rel!!.value='0';\"/>
1102
                                <input type='hidden' id='f_rel_id_!!n_rel!!' name='f_rel_id_!!n_rel!!' value='!!notice_relations_id!!'/>
1103
                                <input type='hidden' id='f_rel_rank_!!n_rel!!' name='f_rel_rank_!!n_rel!!' value='!!notice_relations_rank!!'/>
1104
                                <input type='button' class='bouton' value='+' onClick=\"add_rel();\"/>
1105
                        </div>
1106
                </div>
1107
                <div class='row'></div>";
1108
                
1109
$ptab[131]="
1110
                <div class='colonne4'>
1111
                        <div id='el11Child_0b' class='row'>
1112
                                <select onchange='' name='!!f_notice_type_relations_name!!' size='1'>
1113
                                        <optgroup class='erreur' label='$msg[notice_lien_montant]'>
1114
                                                !!f_notice_type_relations_up!!
1115
                                        </optgroup>
1116
                                        <optgroup class='erreur' label='$msg[notice_lien_descendant]'>
1117
                                                !!f_notice_type_relations_down!!
1118
                                        </optgroup>
1119
                                        <optgroup class='erreur' label='$msg[notice_lien_symetrique]'>
1120
                                                !!f_notice_type_relations_both!!
1121
                                        </optgroup>
1122
                                </select>
1123
                        </div>
1124
                </div>
1125
                <div class='colonne'>
1126
                        <div id='el11Child_0d' class='row'>
1127
                                <input type='text' class='saisie-80emr' id='f_rel_!!n_rel!!' name='f_rel_!!n_rel!!' value=\"!!notice_relations_libelle!!\" completion=\"notice\" autfield=\"f_rel_id_!!n_rel!!\" autexclude=\"!!notice_id_no_replace!!\"/>
1128
                               <input type='button' class='bouton' value='$msg[parcourir]' onclick=\"openPopUp('./select.php?what=notice&caller=notice&param1=f_rel_id_!!n_rel!!&param2=f_rel_!!n_rel!!&no_display=!!notice_id_no_replace!!', 'select_notice', 700, 500, -2, -2, '$select_categ_prop')\"/>
1129
                                <input type='button' class='bouton' value='$msg[raz]' onclick=\"this.form.f_rel_!!n_rel!!.value=''; this.form.f_rel_id_!!n_rel!!.value='0';this.form.f_rel_rank_!!n_rel!!.value='0'; \"/>
1130
                                <input type='hidden' id='f_rel_id_!!n_rel!!' name='f_rel_id_!!n_rel!!' value='!!notice_relations_id!!'/>
1131
                                <input type='hidden' id='f_rel_rank_!!n_rel!!' name='f_rel_rank_!!n_rel!!' value='!!notice_relations_rank!!'/>
1132
                        </div>
1133
                </div>
1134
                <div class='row'></div>";
1135

    
1136
$ptab[13] = "
1137
<script>
1138
        sel='';
1139
        function fonction_selecteur_rel() {
1140
        name=this.getAttribute('id').substring(4);
1141
        name_id = name.substr(0,6)+'id_'+name.substr(6);
1142
        openPopUp('./select.php?what=notice&caller=notice&param1='+name_id+'&param2='+name+'&no_display=!!notice_id_no_replace!!', 'select_author2', 400, 400, -2, -2,'$select1_prop');
1143
        name_rank = name.substr(0,6)+'_rank_'+name.substr(6);
1144
        document.getElementById(name_rank).value=0;
1145
    }
1146

1147
        function fonction_raz_rel() {
1148
        name=this.getAttribute('id').substring(4);
1149
        name_id = name.substr(0,6)+'_id_'+name.substr(6);
1150
        document.getElementById(name_id).value=0;
1151
        document.getElementById(name).value='';
1152
        name_rank = name.substr(0,6)+'_rank_'+name.substr(6);
1153
        document.getElementById(name_rank).value=0;
1154
    }
1155

1156
        function add_rel() {
1157
                value_deflt_relation='$value_deflt_relation';
1158
                
1159
                rel=document.getElementById('el11Child_0');
1160
        reldiv=document.createElement('div');
1161
        reldiv.className='row';
1162
                
1163
                suffixe = document.notice.max_rel.value;
1164
                
1165
                //Création de la relation supplémentaire
1166
                colonne_sel=document.createElement('div');
1167
        colonne_sel.className='colonne4';
1168
        row_sel=document.createElement('div');
1169
        row_sel.className='row';
1170
        nom_sel_id = 'f_rel_type_'+suffixe;
1171
        
1172
                if (!sel) {
1173
                        sel=document.notice.f_rel_type_0;
1174
                }
1175
                
1176
                current_rel_sel=sel.cloneNode(true);
1177
                current_rel_sel.setAttribute('name',nom_sel_id);        
1178
                
1179
                for(r in current_rel_sel.options){
1180
                        if(current_rel_sel.options[r].value==value_deflt_relation){
1181
                                current_rel_sel.options[r].selected = true;
1182
                        }else{
1183
                                current_rel_sel.options[r].selected = false;                        
1184
                        }
1185
                }
1186
                row_sel.appendChild(current_rel_sel);
1187
                
1188
                colonne=document.createElement('div');
1189
        colonne.className='colonne';
1190
        row=document.createElement('div');
1191
        row.className='row';
1192
        
1193
        nom_id = 'f_rel_'+suffixe;
1194
        f_rel0 = document.createElement('input');
1195
        f_rel0.setAttribute('name',nom_id);
1196
        f_rel0.setAttribute('id',nom_id);
1197
        f_rel0.setAttribute('type','text');
1198
        f_rel0.className='saisie-80emr';
1199
        f_rel0.setAttribute('value','');
1200
        f_rel0.setAttribute('completion','notice');
1201
        f_rel0.setAttribute('autfield','f_rel_id_'+suffixe);
1202

1203
        sel_f_rel0 = document.createElement('input');
1204
        sel_f_rel0.setAttribute('id','sel_f_rel_'+suffixe);
1205
        sel_f_rel0.setAttribute('type','button');
1206
        sel_f_rel0.className='bouton';
1207
        sel_f_rel0.setAttribute('readonly','');
1208
        sel_f_rel0.setAttribute('value','$msg[parcourir]');
1209
        sel_f_rel0.onclick=fonction_selecteur_rel;
1210

1211
        del_f_rel0 = document.createElement('input');
1212
        del_f_rel0.setAttribute('id','del_f_rel_'+suffixe);
1213
        del_f_rel0.onclick=fonction_raz_rel;
1214
        del_f_rel0.setAttribute('type','button');
1215
        del_f_rel0.className='bouton';
1216
        del_f_rel0.setAttribute('readonly','');
1217
        del_f_rel0.setAttribute('value','$msg[raz]');
1218

1219
        f_rel0_id = document.createElement('input');
1220
        f_rel0_id.name='f_rel_id_'+suffixe;
1221
        f_rel0_id.setAttribute('type','hidden');
1222
        f_rel0_id.setAttribute('id','f_rel_id_'+suffixe);
1223
        f_rel0_id.setAttribute('value','');
1224
        
1225
        f_rel0_rank = document.createElement('input');
1226
        f_rel0_rank.name='f_rel_rank_'+suffixe;
1227
        f_rel0_rank.setAttribute('type','hidden');
1228
        f_rel0_rank.setAttribute('id','f_rel_rank_'+suffixe);
1229
        f_rel0_rank.setAttribute('value','0');
1230
        
1231
        row.appendChild(f_rel0);
1232
        space=document.createTextNode(' ');
1233
        row.appendChild(space);
1234
        row.appendChild(sel_f_rel0);
1235
        space=document.createTextNode(' ');
1236
        row.appendChild(space);
1237
        row.appendChild(del_f_rel0);
1238
        row.appendChild(f_rel0_id);
1239
                row.appendChild(f_rel0_rank);
1240

1241
                colonne.appendChild(row);
1242
                colonne_sel.appendChild(row_sel);        
1243

1244
        reldiv.appendChild(colonne_sel);
1245
        reldiv.appendChild(colonne);
1246
        
1247
        rel.appendChild(reldiv);
1248
        
1249
        document.notice.max_rel.value=(suffixe*1)+(1*1);
1250
        ajax_pack_element(f_rel0);
1251
        }
1252
</script>
1253
<!-- onglet 13 -->
1254
<div id='el11Parent' class='parent'>
1255
<h3>
1256
    <img src='./images/plus.gif' class='img_plus' name='imEx' id='el11Img' onClick=\"expandBase('el11', true); return false;\" title='".$msg["notice_relations"]."' border='0' /> ".$msg["notice_relations"]."
1257
</h3>
1258
</div>
1259

1260
<div id='el11Child' class='child' etirable='yes' title='".htmlentities($msg["notice_relations"],ENT_QUOTES, $charset)."'>
1261
        <input type='hidden' name='max_rel' value=\"!!max_rel!!\" />
1262
        <div id='el11Child_0' title='".htmlentities($msg[notice_relations],ENT_QUOTES, $charset)."' movable='yes'>
1263
                !!notice_relations!!
1264
        </div>
1265
</div>
1266
";
1267

    
1268
//    ----------------------------------------------------
1269
//    Champs de gestion
1270
//       $ptab[10] : Contenu de l'onglet 10 (champs de gestion)
1271
//    ----------------------------------------------------
1272

    
1273
$ptab[10] = "
1274
<!-- onglet 10 -->
1275
<div id='el10Parent' class='parent'>
1276
<h3>
1277
    <img src='./images/plus.gif' class='img_plus' name='imEx' id='el10Img' onClick=\"expandBase('el10', true); return false;\" title='".$msg["notice_champs_gestion"]."' border='0' /> ".$msg["notice_champs_gestion"]."
1278
</h3>
1279
</div>
1280

1281
<div id='el10Child' class='child' etirable='yes' title='".htmlentities($msg[notice_champs_gestion],ENT_QUOTES, $charset)."'>
1282
        <div id='el10Child_0' title='".htmlentities($msg[notice_statut_gestion],ENT_QUOTES, $charset)."' movable='yes'>
1283
                <div id='el10Child_0a' class='row'>
1284
                    <label for='f_notice_statut' class='etiquette'>$msg[notice_statut_gestion]</label>
1285
                </div>
1286
                <div id='el10Child_0b' class='row'>
1287
                        !!notice_statut!!
1288
            </div>
1289
        </div>
1290

1291
        <div id='el10Child_1' title='".htmlentities($msg[notice_commentaire_gestion],ENT_QUOTES, $charset)."' movable='yes'>
1292
                <!--    commentaire de gestion    -->
1293
                <div id='el10Child_1a' class='row'>
1294
                    <label for='f_commentaire_gestion' class='etiquette'>$msg[notice_commentaire_gestion]</label>
1295
                </div>
1296
                <div id='el10Child_1b' class='row'>
1297
                    <textarea class='saisie-80em' id='f_commentaire_gestion' name='f_commentaire_gestion' rows='1' wrap='virtual'>!!commentaire_gestion!!</textarea>
1298
                </div>
1299
        </div>
1300
        
1301
        <div id='el10Child_2' title='".htmlentities($msg[notice_thumbnail_url],ENT_QUOTES, $charset)."' movable='yes'>
1302
                <!--    URL vignette speciale    -->
1303
                <div id='el10Child_2a' class='row'>
1304
                    <label for='f_thumbnail_url' class='etiquette'>$msg[notice_thumbnail_url]</label>
1305
                </div>
1306
                <div id='el10Child_2b' class='row'>
1307
                    <input type=text class='saisie-80em' id='f_thumbnail_url' name='f_thumbnail_url' rows='1' wrap='virtual' value=\"!!thumbnail_url!!\" />
1308
                </div>
1309
        </div>
1310
        <div id='el10Child_3' title='".htmlentities($msg['admin_menu_acces'],ENT_QUOTES, $charset)."' movable='yes'>
1311
                <!-- Droits d'acces -->                
1312
                <!-- rights_form -->
1313
        </div>
1314
                
1315
</div>";
1316

    
1317

    
1318
// $form_notice : formulaire de notice
1319
global $pmb_catalog_verif_js;
1320
$form_notice = jscript_unload_question();
1321
$form_notice.= "
1322
<!-- script de gestion des onglets -->
1323
<script type='text/javascript' src='./javascript/tabform.js'></script>
1324
".($pmb_catalog_verif_js!= "" ? "<script type='text/javascript' src='$base_path/javascript/$pmb_catalog_verif_js'></script>":"")."
1325
<script type='text/javascript'>
1326
<!--
1327
    function test_notice(form)
1328
    {
1329
    ";
1330
if($pmb_catalog_verif_js!= ""){
1331
        $form_notice.= "
1332
                var check = check_perso_form()
1333
                if(check == false) return false;";
1334
} 
1335
$form_notice.= "
1336
                titre1 = form.f_tit1.value; 
1337
                titre1 = titre1.replace(/^\s+|\s+$/g, ''); //trim la valeur
1338
        if(titre1.length == 0) {
1339
           alert(\"$msg[277]\");  
1340
           return false;
1341
                }
1342
                return check_form();
1343
    }
1344
-->
1345
</script>
1346
<script src='javascript/ajax.js'></script>
1347
<script src='javascript/move.js'></script>
1348
<script type='text/javascript'>
1349
        var msg_move_to_absolute_pos='".addslashes($msg['move_to_absolute_pos'])."';
1350
        var msg_move_to_relative_pos='".addslashes($msg['move_to_relative_pos'])."';
1351
        var msg_move_saved_ok='".addslashes($msg['move_saved_ok'])."';
1352
        var msg_move_saved_error='".addslashes($msg['move_saved_error'])."';
1353
        var msg_move_up_tab='".addslashes($msg['move_up_tab'])."';
1354
        var msg_move_down_tab='".addslashes($msg['move_down_tab'])."';
1355
        var msg_move_position_tab='".addslashes($msg['move_position_tab'])."';
1356
        var msg_move_position_absolute_tab='".addslashes($msg['move_position_absolute_tab'])."';
1357
        var msg_move_position_relative_tab='".addslashes($msg['move_position_relative_tab'])."';
1358
        var msg_move_invisible_tab='".addslashes($msg['move_invisible_tab'])."';
1359
        var msg_move_visible_tab='".addslashes($msg['move_visible_tab'])."';
1360
        var msg_move_inside_tab='".addslashes($msg['move_inside_tab'])."';
1361
        var msg_move_save='".addslashes($msg['move_save'])."';
1362
        var msg_move_first_plan='".addslashes($msg['move_first_plan'])."';
1363
        var msg_move_last_plan='".addslashes($msg['move_last_plan'])."';
1364
        var msg_move_first='".addslashes($msg['move_first'])."';
1365
        var msg_move_last='".addslashes($msg['move_last'])."';
1366
        var msg_move_infront='".addslashes($msg['move_infront'])."';
1367
        var msg_move_behind='".addslashes($msg['move_behind'])."';
1368
        var msg_move_up='".addslashes($msg['move_up'])."';
1369
        var msg_move_down='".addslashes($msg['move_down'])."';
1370
        var msg_move_invisible='".addslashes($msg['move_invisible'])."';
1371
        var msg_move_visible='".addslashes($msg['move_visible'])."';
1372
</script>
1373
<form class='form-$current_module' id='notice' name='notice' method='post' action='!!action!!'>
1374
<h3><div class='left'>!!libelle_form!!</div><div class='right'>";
1375
if ($PMBuserid==1 && $pmb_form_editables==1) $form_notice.="<input type='button' class='bouton_small' value='".$msg["catal_edit_format"]."' onClick=\"expandAll(); move_parse_dom(relative)\" id=\"bt_inedit\"/><input type='button' class='bouton_small' value='Relatif' onClick=\"expandAll(); move_parse_dom((!relative))\" style=\"display:none\" id=\"bt_swap_relative\"/>";
1376
if ($pmb_form_editables==1) $form_notice.="<input type='button' class='bouton_small' value=\"".$msg["catal_origin_format"]."\" onClick=\"get_default_pos(); expandAll();  ajax_parse_dom(); if (inedit) move_parse_dom(relative); else initIt();\"/>";
1377
$form_notice.="</div></h3>&nbsp; 
1378
<div class='form-contenu'>
1379
<div class='row'>
1380
            !!doc_type!! !!location!!
1381
    </div>
1382
<div class='row'>
1383
        <a href=\"#\" onclick=\"expandAll();return false;\"><img src='./images/expand_all.gif' border='0' id=\"expandall\"></a>
1384
        <a href=\"#\" onclick=\"collapseAll();return false;\"><img src='./images/collapse_all.gif' border='0' id=\"collapseall\"></a>";
1385
$form_notice .= "        <input type='hidden' name='b_level' value='!!b_level!!' />
1386
        <input type='hidden' name='h_level' value='!!h_level!!' />
1387
        </div>
1388
!!tab0!!
1389
<hr class='spacer' />
1390
!!tab1!!
1391
<hr class='spacer' />
1392
!!tab2!!
1393
<hr class='spacer' />
1394
!!tab3!!
1395
<hr class='spacer' />
1396
!!tab4!!
1397
<hr class='spacer' />
1398
!!tab5!!
1399
<hr class='spacer' />
1400
!!tab6!!";
1401
global $pmb_use_uniform_title;
1402
if ($pmb_use_uniform_title) $form_notice .= "<hr class='spacer' />!!tab230!!";
1403
$form_notice .= "<hr class='spacer' />
1404
!!tab7!!
1405
<hr class='spacer' />
1406
!!tab8!!
1407
<hr class='spacer' />
1408
!!tab9!!
1409
<hr class='spacer' />
1410
!!tab11!!
1411
<hr class='spacer' />
1412
!!tab10!!
1413
<hr class='spacer' />
1414
</div>
1415

1416
<div class='row'>
1417
        <div class='left'>
1418
    !!link_annul!!
1419
    <input type='button' class='bouton' value='$msg[77]' id='btsubmit' onClick=\"if (test_notice(this.form)) {unload_off();this.form.submit();}\" />
1420
    !!link_remplace!!
1421
    !!link_duplicate!!
1422
    !!link_audit!!
1423
    !!link_z3950!!
1424
        </div>
1425
        <div class='right'>
1426
    !!link_supp!!
1427
        </div>
1428
</div>
1429
<div class='row'></div>
1430
</form>
1431
<script>".($pmb_form_editables?"get_pos(); ":"")."ajax_parse_dom();</script>
1432
";
1433

    
1434
// $notice_replace : form remplacement notice
1435
$notice_replace = "
1436
<form class='form-$current_module' name='notice_replace' method='post' action='./catalog.php?categ=remplace&id=!!id!!'>
1437
<h3>$msg[159] !!old_notice_libelle!! </h3>
1438
<div class='form-contenu'>
1439
    <div class='row'>
1440
        <label class='etiquette' for='par'>$msg[160]</label>
1441
        </div>
1442
    <div class='row'>
1443
        <input type='text' class='saisie-50emr' value='' name='notice_libelle' readonly>
1444
        <input class='bouton' type='button' onclick=\"openPopUp('./select.php?what=notice&caller=notice_replace&param1=by&param2=notice_libelle&no_display=!!id!!', 'select_notice', 600, 400, -2, -2, '$selector_prop')\" title='$msg[157]' value='$msg[parcourir]' />
1445
        <input type='button' class='bouton' value='$msg[raz]' onclick=\"this.form.notice_libelle.value=''; this.form.by.value='0'; \" />
1446
        <input type='hidden' name='by' value=''>
1447
        </div>
1448
    </div>
1449
<div class='row'>
1450
    <input type='button' class='bouton' value='$msg[76]' onClick=\"history.go(-1);\">
1451
    <input type='submit' class='bouton' value='$msg[159]'>
1452
    </div>
1453
</form>
1454
";