Projet

Général

Profil

receptions.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: receptions.tpl.php,v 1.4 2013-04-11 08:47:35 mbertin Exp $
6

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

    
9
//        ------------------------------------------------------------------------------
10
//        $recept_form : template de recherche pour les receptions
11
//        ------------------------------------------------------------------------------
12

    
13
$recept_search_form = "
14
<form class='form-".$current_module."' id='recept_search_form' name='recept_search_form' method='post' action=\"\" >
15
        <h3>!!form_title!!</h3>
16
        <!--    Contenu du form    -->
17
        <div class='form-contenu'>
18

19
                <div class='row'>
20
                        <div class='colonne2'>
21
                                <label class='etiquette'>".htmlentities($msg['acquisition_coord_lib'], ENT_QUOTES, $charset)."</label>
22
                                <br />
23
                                <!-- sel_bibli -->
24
                        </div>
25
                        <div class='colonne2'>
26
                                <label class='etiquette'>".htmlentities($msg['acquisition_budg_exer'], ENT_QUOTES, $charset)."</label>
27
                                <br />
28
                                <!-- sel_exer -->
29
                        </div>
30
                </div>
31
                <div class='row'>
32
                        <div class='colonne3'>
33
                                <label class='etiquette'>".htmlentities($msg['acquisition_ach_fou'], ENT_QUOTES, $charset)."</label>
34
                                <br />
35
                                <span style='width: 267px;'>
36
                                        <input type='text' id='f_fou0' autfield='f_fou_code0' completion='fournisseur' class='saisie-20emr' value='!!f_fou!!' autocomplete='off' linkfield='id_bibli'/>
37
                                </span>                                        
38
                                <input type='hidden' id='f_fou_code0' name='f_fou_code[0]' value='!!f_fou_code!!' />
39
                                <input type='button' class='bouton_small' value='".$msg['parcourir']."' onclick=\"openPopUp('./select.php?what=fournisseur&caller=recept_search_form&param1=f_fou_code0&param2=f_fou0&id_bibli='+this.form.id_bibli.value+'&deb_rech='+".pmb_escape()."(this.form.f_fou0.value), 'select_fournisseur', 400, 400, -2, -2, 'scrollbars=yes, toolbar=no, dependent=yes, resizable=yes'); \" />
40
                                <input type='button' class='bouton_small' value='".$msg['raz']."'  onclick=\"this.form.f_fou_code0.value=''; this.form.f_fou0.value='';  \" />
41
                                <input type='button' onclick='add_fou();' value='+' class='bouton_small' />
42
                                <input type='hidden' id='max_fou' value='!!max_fou!!' />
43
                                <div id='add_fou' ><!-- sel_fou --></div>                        
44
                        </div>
45
                        <div class='colonne3'>
46
                                <label class='etiquette'>".htmlentities($msg['acquisition_ach_dem'], ENT_QUOTES, $charset)."</label>
47
                                <br />
48
                                <span style='width: 267px;'>
49
                                        <input type='text' id='f_dem0' autfield='f_dem_code0' completion='origine' class='saisie-20emr' value='!!f_dem!!' autocomplete='off' callback='after_dem' />
50
                                </span>
51
                                <input type='hidden' id='f_dem_code0' name='f_dem_code[0]' value='!!f_dem_code!!' />
52
                                <input type='hidden' id='t_dem0' name='t_dem[0]' value='!!t_dem!!' />
53
                                <input type='button' class='bouton_small' value='".$msg['parcourir']."' onclick=\"openPopUp('./select.php?what=origine&sub=empr&caller=recept_search_form&param1=f_dem_code0&param2=f_dem0&param3=t_dem0&deb_rech='+".pmb_escape()."(this.form.f_dem0.value), 'select_user', 400, 400, -2, -2, 'scrollbars=yes, toolbar=no, dependent=yes, resizable=yes'); \" />
54
                                <input type='button' class='bouton_small' value='".$msg['raz']."'  onclick=\"this.form.f_dem_code0.value=''; this.form.f_dem0.value=''; this.form.t_dem0.value=''; \" />                                
55
                                <input type='button' onclick='add_dem();' value='+' class='bouton_small' />
56
                                <input type='hidden' id='max_dem' value='!!max_dem!!' />
57
                                <div id='add_dem' ><!-- sel_dem --></div>                        
58
                        </div>
59
                        <div class='colonne3'>
60
                                <label class='etiquette'>".htmlentities($msg['acquisition_rub2'], ENT_QUOTES, $charset)."</label>
61
                                <br />
62
                                <span style='width: 267px;'>
63
                                        <input type='text' id='f_rub0' autfield='f_rub_code0' linkfield='id_exer' completion='rubrique' class='saisie-20emr' value='!!f_rub!!' autocomplete='off' />
64
                                </span>
65
                                <input type='hidden' id='f_rub_code0' name='f_rub_code[0]' value='!!f_rub_code!!' />
66
                                <input type='button' class='bouton_small' value='".$msg['parcourir']."' onclick=\"openPopUp('./select.php?what=rubriques&caller=recept_search_form&param1=f_rub_code0&param2=f_rub0&id_bibli='+this.form.id_bibli.value+'&id_exer='+this.form.id_exer.value+'&deb_rech='+".pmb_escape()."(this.form.f_rub0.value), 'select_user', 400, 400, -2, -2, 'scrollbars=yes, toolbar=no, dependent=yes, resizable=yes'); \" />
67
                                <input type='button' class='bouton_small' value='".$msg['raz']."'  onclick=\"this.form.f_rub_code0.value=''; this.form.f_rub0.value=''; \" />                                
68
                                <input type='button' onclick='add_rub();' value='+' class='bouton_small' />
69
                                <input type='hidden' id='max_rub' value='!!max_rub!!' />
70
                                <div id='add_rub' ><!-- sel_rub --></div>                        
71
                        </div>
72
                </div>
73

74
                <div class='row'>
75
                        <div class='colonne3'>
76
                                <label class='etiquette' for='chk_dev' >".htmlentities($msg['acquisition_ach_dev'], ENT_QUOTES, $charset)."</label>
77
                                <input type='radio' id='chk_dev' name='chk_dev' !!dev_checked!!'  disabled='disabled' value='1' />
78
                                <label class='etiquette' for='chk_cde' >".htmlentities($msg['acquisition_ach_cde2'], ENT_QUOTES, $charset)."</label>
79
                                <input type='radio' id='chk_cde' name='chk_dev' !!cde_checked!!' value='0' />
80
                                <br />
81
                                <input type='text' class='saisie-30em' id='cde_query' name='cde_query' value='!!cde_query!!' />
82
                                <br />
83
                                <!-- sel_date -->
84
                        </div>
85
                        <div class='colonne3'>
86
                                <!-- categorie de commande a mettre ici -->
87
                                <div class='row'>
88
                                        <!-- sel_categ -->
89
                                </div>
90
                        </div>
91
                        <div class='colonne3'>
92
                                <label class='etiquette'>".htmlentities($msg['acquisition_lgstat'], ENT_QUOTES, $charset)."</label>
93
                                <br />
94
                                &nbsp;<!-- sel_lgstat -->
95
                        </div>
96
                </div>
97
                
98
                <div class='row'>
99
                        <div class='colonne60'>
100
                                <label class='etiquette'>".htmlentities($msg['global_search'], ENT_QUOTES, $charset)."</label>
101
                                <br />
102
                                <input type='text' id='all_query' name='all_query' class='saisie-80em' value='!!all_query!!'/>&nbsp;
103
                        </div>
104
                        <div class='colonne40'>
105
                                <br />
106
                                <input type='button' class='bouton' value='".$msg['actualiser']."' onclick=\"actualize(this.form);\"/>
107
                        </div>
108
                </div>
109
                <input type='hidden' id='serialized_search' value='!!serialized_search!!' />
110
                <div class='row'></div>
111
";
112

    
113
//        ------------------------------------------------------------------------------
114
//        $recept_form : template de liste pour les receptions
115
//        ------------------------------------------------------------------------------
116
$recept_list_form.= "                
117
                <hr />
118
                <div class='row'>
119
                        <div class='left'>
120
                                <label class='etiquette'>".htmlentities($msg['acquisition_recept2'], ENT_QUOTES, $charset)."</label>&nbsp;
121
                                <input type='text' id='recept_query' name='recept_query' class='saisie-20em' value='!!recept_query!!' />&nbsp;
122
                                <input type='submit' class='bouton' value='".$msg['acquisition_recept_bt_val']."' onclick=\" search_code(this, this.form.recept_query); return false; \"/>
123
                                <input type='hidden' id='max_no' value='!!max_no!!' />
124
                        </div>
125
                </div>
126

127
                <div class='row'></div>
128
                <hr />
129
                
130
                <!-- actes -->
131
                        
132
                <div class='row'>
133
                        <div class='left'>
134
                                <label class='etiquette'>".htmlentities($msg['acquisition_recept_lgstat_mod'],ENT_QUOTES,$charset)."</label>
135
                                <!-- sel_lgstat_all -->
136
                        </div>
137
                        <div class='right'><!-- bt_chk --></div>
138
                </div>
139
                <div class='row'>
140
                        <div class='colonne2'>
141
                                <label class='etiquette'>".htmlentities($msg['acquisition_comment_lg'],ENT_QUOTES,$charset)."</label>
142
                                <br />
143
                                <textarea id='comment_lg_all' name='comment_lg_all' tabindex='1' class='in_cell' rows='2' wrap='virtual'>!!comment_lg_all!!</textarea>
144
                        </div>
145
                        <div class='colonne2'>
146
                                <label class='etiquette'>".htmlentities($msg['acquisition_comment_lo'],ENT_QUOTES,$charset)."</label>
147
                                <br />
148
                                <textarea id='comment_lo_all' name='comment_lo_all' tabindex='1' class='in_cell' rows='2' wrap='virtual'>!!comment_lo_all!!</textarea>
149
                        </div>
150
                </div>
151
                
152
                <!--        boutons        -->
153
                <div class='row'>
154
                        <div class='left'><!-- bt_app --></div>
155
                        <div class='right'><!-- bt_rel --></div>
156
                </div>
157
                
158
                <div class='row'></div>
159
        </div>
160
</form>
161
<br />
162
";
163

    
164
$recept_search_form_suite.= "
165
        </div>
166
</form>
167
<div id='att' style='z-Index:1000'></div>
168
<script type='text/javascript' src='javascript/ajax.js'></script>
169
<script type='text/javascript' src='javascript/tablist.js'></script>
170
<script type='text/javascript' src='javascript/receptions.js'></script>
171
<script type='text/javascript' >
172
        var msg_parcourir='".addslashes($msg['parcourir'])."'; 
173
        var msg_raz='".addslashes($msg['raz'])."'; 
174
        var msg_checkAll='".addslashes($msg['acquisition_recept_checkAll'])."';
175
        var msg_uncheckAll='".addslashes($msg['acquisition_recept_uncheckAll'])."';
176
        var option_num_auto='".$pmb_numero_exemplaire_auto."';
177
</script>
178
";
179

    
180
$sel_date_form[0] = "<label class='etiquette'>!!msg!!</label>"; 
181
$sel_date_form[1] = "
182
<input type='hidden' id='date_inf' name='date_inf' value='!!date_inf!!' />
183
<input type='button' name='date_inf_lib' class='bouton_small' value='!!date_inf_lib!!' onclick=\"openPopUp('./select.php?what=calendrier&caller='+this.form.name+'&date_caller=&param1=date_inf&param2=date_inf_lib&auto_submit=NO&date_anterieure=YES', 'date_date_acquisition', 250, 300, -2, -2, 'toolbar=no, dependent=yes, resizable=yes');\">
184
<input type='button' class='bouton_small' value='".$msg['raz']."' onclick=\"this.form.elements['date_inf_lib'].value='".$msg['parperso_nodate']."'; this.form.elements['date_inf'].value='';\" >
185
";
186
$sel_date_form[2] = "
187
<input type='hidden' id='date_sup' name='date_sup' value='!!date_sup!!' />
188
<input type='button' name='date_sup_lib' class='bouton_small' value='!!date_sup_lib!!' onclick=\"openPopUp('./select.php?what=calendrier&caller='+this.form.name+'&date_caller=&param1=date_sup&param2=date_sup_lib&auto_submit=NO&date_anterieure=YES', 'date_date_acquisition', 250, 300, -2, -2, 'toolbar=no, dependent=yes, resizable=yes');\">
189
<input type='button' class='bouton_small' value='".$msg['raz']."' onclick=\"this.form.elements['date_sup_lib'].value='".$msg['parperso_nodate']."'; this.form.elements['date_sup'].value='';\" >
190
</label>
191
";
192

    
193
$recept_hrow_form="
194
<div class='row'>
195
!!lib_acte!!
196
</div>
197
<div class='row'>
198
        <table class='act_cell' >
199
                <tbody id='act_tab' >
200
                        <tr>
201
                                <th width='0px' ></th>
202
                                <th width='10%' title='".htmlentities($msg['acquisition_act_tab_code'], ENT_QUOTES, $charset)."' >".htmlentities($msg['acquisition_act_tab_code'], ENT_QUOTES, $charset)."</th>
203
                                <th width='40%' title='".htmlentities($msg['acquisition_act_tab_lib'], ENT_QUOTES, $charset)."' >".htmlentities($msg['acquisition_act_tab_lib'], ENT_QUOTES, $charset)."</th>
204
                                <th width='7%' title='".htmlentities($msg['acquisition_qte_cde'], ENT_QUOTES, $charset)."' >".htmlentities($msg['acquisition_qte_cde'], ENT_QUOTES, $charset)."</th>
205
                                <th width='7%' title='".htmlentities($msg['acquisition_qte_liv'], ENT_QUOTES, $charset)."' >".htmlentities($msg['acquisition_qte_liv'], ENT_QUOTES, $charset)."</th>
206
                                <th width='7%' title='".htmlentities($msg['acquisition_qte_sol'], ENT_QUOTES, $charset)."' >".htmlentities($msg['acquisition_qte_sol'], ENT_QUOTES, $charset)."</th>
207
                                <th width='15%' title='".htmlentities($msg['acquisition_lgstat'], ENT_QUOTES, $charset)."' >".htmlentities($msg['acquisition_lgstat'], ENT_QUOTES, $charset)."</th>
208
                                <th width='16%'>&nbsp;</th>
209
                                <th width='0px' ></th>
210
                        </tr>
211
                        <!-- lignes -->
212
                </tbody>
213
        </table>
214
</div>
215
";
216

    
217

    
218
$recept_row_form.= "
219
<tr id='R_!!no!!'>
220
        <td width='0px' style='overflow:visible;'>
221
                <img onclick=\"javascript:expandRow('D_!!no!!_', true);\"  src='./images/plus.gif' name='D_!!no!!_Img' id='D_!!no!!_Img' class='act_cell_img_plus' />
222
        </td>
223
        <td>
224
                <input type='text' class='in_cell_ld' id='code[!!no!!]' name='code[]' value='!!code!!' />
225
        </td>
226
        <td>
227
                <div class='in_cell_ld' >!!lib!!</div>
228
        </td>
229
        <td>
230
                <div class='in_cell_rd' >!!qte_cde!!</div>
231
        </td>
232
        <td>
233
                <div class='in_cell_rd' id='qte_rec[!!no!!]' >!!qte_liv!!</div>
234
        </td>
235
        <td>
236
                <div class='in_cell_rd' id='qte_sol[!!no!!]' >!!qte_sol!!</div>
237
        </td>
238
        <td>
239
                !!lgstat!!
240
        </td>        
241
        <td>
242
                <div class='row'>
243
                        <div class='left'>
244
                                <!-- link_cat -->
245
                                <!-- link_sug -->
246
                                <!-- bt_cat -->
247
                                </div>
248
                        <div class='right'>
249
                                <input type='button' id='bt_rec[!!no!!]' class='bouton_small' value='".htmlentities($msg['acquisition_recept2'],ENT_QUOTES,$charset)."' onclick=\"recept_openFrame(this,!!no!!);\" />
250
                        </div>
251
                </div>
252
        </td>
253
        <td width='0px' style='overflow:visible;' >
254
                <input type='checkbox' id='chk[!!no!!]' name='chk[]' tabindex='1' value='!!no!!' class='act_cell_chkbox2' />
255
                <input type='hidden' id='id_lig[!!no!!]' name='id_lig[!!no!!]' value='!!id_lig!!' /> 
256
<!--                <input type='hidden' id='id_sug[!!no!!]' name='id_sug[!!no!!]' value='!!id_sug!!' /> --> 
257
                <input type='hidden' id='typ_lig[!!no!!]' name='typ_lig[!!no!!]' value='!!typ_lig!!' />         
258
                <input type='hidden' id='id_prod[!!no!!]' name='id_prod[!!no!!]' value='!!id_prod!!' />
259
        </td>
260
</tr>        
261
<tr id='C_!!no!!_Child' class='act_cell_comments' >
262
        <td colspan='9'>
263
                <table>
264
                        <tr>
265
                                <td width='20%' >".htmlentities($msg['acquisition_comment_lg'],ENT_QUOTES,$charset)."
266
                                        <img style='padding-left:5px;cursor:pointer;width:10px;vertical-align:middle;' src='./images/b_edit.png' onclick=\"recept_mod_comment('comment_lg_!!id_lig!!');\" >
267
                                        <img style='padding-left:5px;cursor:pointer;width:10px;vertical-align:middle;' src='./images/cross.png' onclick=\"recept_del_comment('comment_lg_!!id_lig!!');\">
268
                                </td>
269
                                <td width='30%'>
270
                                        <div id='comment_lg_!!id_lig!!'>!!comment_lg!!</div>
271
                                        <div style='display:none;'>
272
                                                <textarea id='comment_lg_!!id_lig!!_mod' class='in_cell' rows='2' wrap='virtual' ></textarea>
273
                                                <input type='button' class='bouton_small' value='".$msg['76']."' onclick=\"recept_undo_comment('comment_lg_!!id_lig!!');\" />
274
                                                <input type='button' class='bouton_small' value='".$msg['77']."' onclick=\"recept_upd_comment('comment_lg_!!id_lig!!');\" />
275
                                        </div>
276
                                </td>
277
                                <td width='20%'>".htmlentities($msg['acquisition_comment_lo'],ENT_QUOTES,$charset)."
278
                                        <img style='padding-left:5px;cursor:pointer;width:10px;vertical-align:middle;' src='./images/b_edit.png' onclick=\"recept_mod_comment('comment_lo_!!id_lig!!');\" >
279
                                        <img style='padding-left:5px;cursor:pointer;width:10px;vertical-align:middle;' src='./images/cross.png' onclick=\"recept_del_comment('comment_lo_!!id_lig!!');\">
280
                                </td>
281
                                <td width='30%'>
282
                                        <div id='comment_lo_!!id_lig!!'>!!comment_lo!!</div>
283
                                        <div style='display:none;'>
284
                                                <textarea id='comment_lo_!!id_lig!!_mod' class='in_cell' rows='2' wrap='virtual' ></textarea>
285
                                                <input type='button' class='bouton_small' value='".$msg['76']."' onclick=\"recept_undo_comment('comment_lo_!!id_lig!!');\" />
286
                                                <input type='button' class='bouton_small' value='".$msg['77']."' onclick=\"recept_upd_comment('comment_lo_!!id_lig!!');\" />
287
                                        </div>
288
                                </td>
289
                        </tr>
290
                </table>
291
        </td>
292
</tr>
293
<tr id='D_!!no!!_Child' class='act_cell_reminders' style='display:none;'>
294
        <td colspan='9'>
295
                <table>
296
                        <tr>
297
                                <td width='10%'>!!nb_relances!!</td>
298
                                <td width='90%'><!-- relances --></td>
299
                        </tr>
300
                </table>        
301
</tr>
302
";
303

    
304
$sel_fou_form = "
305
<div class='row'>
306
        <span style='width: 267px;'>
307
                <input type='text' id='f_fou!!i!!' autfield='f_fou_code!!i!!' linkfield='id_bibli' completion='fournisseur' class='saisie-20emr' value='!!f_fou!!' autocomplete='off' />
308
        </span>                                        
309
        <input type='hidden' id='f_fou_code!!i!!' name='f_fou_code[!!i!!]' value='!!f_fou_code!!' />
310
        <input type='button' class='bouton_small' value='".$msg['parcourir']."' onclick=\"openPopUp('./select.php?what=fournisseur&caller=recept_search_form&param1=f_fou_code!!i!!&param2=f_fou!!i!!&id_bibli='+this.form.id_bibli.value+'&deb_rech='+".pmb_escape()."(this.form.f_fou!!i!!.value), 'select_user', 400, 400, -2, -2, 'scrollbars=yes, toolbar=no, dependent=yes, resizable=yes'); \" />
311
        <input type='button' class='bouton_small' value='".$msg['raz']."'  onclick=\"this.form.f_fou_code!!i!!.value=''; this.form.f_fou!!i!!.value='';  \" />
312
</div>
313
";
314

    
315

    
316
$sel_dem_form="
317
<div class='row'>
318
        <span style='width: 267px;'>
319
                <input type='text' id='f_dem!!i!!' autfield='f_dem_code!!i!!' completion='origine' class='saisie-20emr' value='!!f_dem!!' autocomplete='off' callback='after_dem' />
320
        </span>
321
        <input type='hidden' id='f_dem_code!!i!!' name='f_dem_code[!!i!!]' value='!!f_dem_code!!' />
322
        <input type='hidden' id='t_dem!!i!!' name='t_dem[!!i!!]' value='!!t_dem!!' />
323
        <input type='button' class='bouton_small' value='".$msg['parcourir']."' onclick=\"openPopUp('./select.php?what=origine&sub=empr&caller=recept_search_form&param1=f_dem_code!!i!!&param2=f_dem!!i!!&param3=t_dem0&deb_rech='+".pmb_escape()."(this.form.f_dem0.value), 'select_user', 400, 400, -2, -2, 'scrollbars=yes, toolbar=no, dependent=yes, resizable=yes'); \" />
324
        <input type='button' class='bouton_small' value='".$msg['raz']."'  onclick=\"this.form.f_dem_code!!i!!.value=''; this.form.f_dem!!i!!.value=''; this.form.t_dem!!i!!.value=''; \" />
325
</div>
326
";
327

    
328
$sel_rub_form="
329
<div class='row'>
330
        <span style='width: 267px;'>
331
                <input type='text' id='f_rub!!i!!' autfield='f_rub_code!!i!!' linkfield='id_exer' completion='rubrique' class='saisie-20emr' value='!!f_rub!!' autocomplete='off' callback='after_rub' />
332
        </span>
333
        <input type='hidden' id='f_rub_code!!i!!' name='f_rub_code[!!i!!]' value='!!f_rub_code!!' />
334
        <input type='button' class='bouton_small' value='".$msg['parcourir']."' onclick=\"openPopUp('./select.php?what=rubriques&caller=recept_search_form&param1=f_rub_code!!i!!&param2=f_rub!!i!!&param3=t_rub0&deb_rech='+".pmb_escape()."(this.form.f_rub!!i!!.value), 'select_user', 400, 400, -2, -2, 'scrollbars=yes, toolbar=no, dependent=yes, resizable=yes'); \" />
335
        <input type='button' class='bouton_small' value='".$msg['raz']."' onclick=\"this.form.f_rub_code!!i!!.value=''; this.form.f_rub!!i!!.value=''; \" />
336
</div>
337
";
338

    
339
$bt_app ="<input type='button' id='bt_app' class='bouton' value='".$msg['acquisition_recept_bt_app']."' onclick=\"apply_changes(this.form);\" />";
340

    
341
$bt_rel ="<input type='button' id='bt_rel' class='bouton' value='".$msg['acquisition_recept_bt_rel']."' onclick=\"do_relances(this.form);\" />";
342

    
343
$bt_chk ="<input type='button' id='bt_chk' class='bouton' value='".$msg['acquisition_recept_checkAll']."' onclick=\"checkAll('recept_search_form', 'chk', check); return false;\" />";
344

    
345
$link_not = "<a href='./catalog.php?categ=isbd&id=!!id_prod!!' target='__LINK__' ><img border='0' align='middle' src='./images/notice.gif' alt='".htmlentities($msg['acquisition_recept_view_not'],ENT_QUOTES, $charset)."' title='".htmlentities($msg['acquisition_recept_view_not'],ENT_QUOTES, $charset)."' /></a>";
346

    
347
$link_bull = "<a href='./catalog.php?categ=serials&sub=bulletinage&action=view&bul_id=!!id_prod!!' target='__LINK__' ><img border='0' align='middle' src='./images/notice.gif' alt='".htmlentities($msg['acquisition_recept_view_bull'],ENT_QUOTES, $charset)."' title='".htmlentities($msg['acquisition_recept_view_bull'],ENT_QUOTES, $charset)."' /></a>";
348

    
349
$link_art = "<a href='./catalog.php?categ=serials&sub=bulletinage&action=view&bul_id=!!id_bull!!&art_to_show=!!id_prod!!#anchor_!!id_prod!!' target='__LINK__' ><img border='0' align='middle' src='./images/notice.gif' alt='".htmlentities($msg['acquisition_recept_view_art'],ENT_QUOTES, $charset)."' title='".htmlentities($msg['acquisition_recept_view_art'],ENT_QUOTES, $charset)."' /></a>";
350

    
351
$link_sug = "<a href='./acquisition.php?categ=sug&action=modif&id_bibli=0&id_sug=!!id_sug!!' target='__LINK__' ><img border='0' align='middle' src='./images/suggestion.png' alt='".htmlentities($msg['acquisition_recept_view_sug'],ENT_QUOTES, $charset)."' title='".htmlentities($msg['acquisition_recept_view_sug'],ENT_QUOTES, $charset)."' /></a>";
352

    
353
$bt_cat = "<input type='button' id='bt_cat' class='bouton_small' value='".$msg['acquisition_recept_cat']."' onclick=\"catalog(this.form);\" />
354
                        <br /><input type='radio' name='cat_!!no!!' id='cat_not_!!no!!' value='0' checked='checked'/><label class='etiquette' for='cat_not_!!no!!' >".htmlentities($msg['acquisition_type_mono'],ENT_QUOTES, $charset)."</label>
355
                        <br /><input type='radio' name='cat_!!no!!' id='cat_art_!!no!!' value='1' /><label class='etiquette' for='cat_art_!!no!!' >".htmlentities($msg['acquisition_type_art'],ENT_QUOTES, $charset)."</label>";
356

    
357
$bt_cat = "<input type='button' id='bt_cat' class='bouton_small' value='".$msg['acquisition_recept_cat']."' onclick=\"catalog(this.form,!!id_lig!!);\" />";
358

    
359

    
360
$recept_cat_error_form = "
361
<br />
362
<div class='erreur'>".htmlentities($msg[540],ENT_QUOTES, $charset)."</div>
363
<div class='row'>
364
        <div class='colonne10'>
365
                <img src='./images/error.gif' align='left' />
366
        </div>
367
        <div class='colonne80'>
368
                <strong>".htmlentities($msg['gen_signature_erreur_similaire'], ENT_QUOTES,$charset)."</strong>
369
        </div>
370
</div>
371
<div class='row'>
372
        <form class='form-".$current_module."' name='recept_cat_error_form'  method='post' action='./acquisition.php?categ=ach&sub=recept&action=record' >
373
                <input type='hidden' name='serialized_post' value='!!serialized_post!!' />
374
                <input type='hidden' name='existant_notice_id' value='!!existant_notice_id!!' />
375
                <input type='hidden' name='existant_b_level' value='!!existant_b_level!!' />
376
                <input type='hidden' name='existant_h_level' value='!!existant_h_level!!' />
377
                <input type='hidden' name='signature' value='!!signature!!' />                
378
                <input type='hidden' name='id_lig' value='!!id_lig!!' />
379
                <input type='hidden' name='serialized_search' value='!!serialized_search!!' />
380
                <input type='button' name='existant' class='bouton' value='".htmlentities($msg['acquisition_recept_cat_exists'], ENT_QUOTES, $charset)."' 
381
                        onClick=\"this.form.action = this.form.action+'&integre=existant';this.form.submit();\" />
382
                <input type='button' name='new' class='bouton'  value='".htmlentities($msg['acquisition_recept_cat_new'], ENT_QUOTES, $charset)."' 
383
                        onClick=\"this.form.action = this.form.action+'&integre=new';this.form.submit();\" />
384
                <input type='button' name='undo' class='bouton'  value='".htmlentities($msg[76], ENT_QUOTES, $charset)."' 
385
                        onClick=\"history.go(-1);\" />
386
        </form>
387
</div>
388
<div class='row'><!-- notice_display --></div>
389
<script type='text/javascript' src='./javascript/tablist.js'></script>
390
<script type='text/javascript'>
391
        document.getElementById('el!!existant_notice_id!!Child').setAttribute('startOpen','Yes');
392
        document.forms['recept_cat_error_form'].elements['existant'].focus();
393
</script>
394
";