synch'ing 2.0.0 branch (RC4 tag) and head
[koha.git] / koha-tmpl / intranet-tmpl / default / fr / acqui.simple / additem.tmpl
1 <!-- TMPL_INCLUDE NAME="cat-top.inc" -->
2 <STYLE TYPE="text/css" MEDIA=screen>
3         table { font-family:Arial;
4         font-weight:normal;
5         text-decoration:none;
6         font-size:10pt;}
7 </STYLE>
8 <br /><br />
9 <form method="post" action="additem.pl" name="f">
10 <input type="hidden" name="op" value="<!-- TMPL_VAR name="op" -->">
11 <input type="hidden" name="bibid" value="<!-- TMPL_VAR name="bibid" -->">
12 <table width="80%" align="center" cellspacing=0 cellpadding=5 border=1>
13 <tr background="<!-- TMPL_VAR name="themelang" -->/images/background-mem.gif">
14         <td>
15         <table width="100%" border=0 cellpadding=0 cellspacing=0>
16                 <tr>
17                         <td width=8%><a href="addbiblio.pl?oldbiblionumber=<!-- TMPL_VAR name="biblionumber" -->"><img border="0" src="<!-- TMPL_VAR name="interface" -->/<!-- TMPL_VAR name="theme" -->/images/fileopen.png"></td>
18                         <td width=8%><a href="../detail.pl?bib=<!-- TMPL_VAR name="biblionumber" -->">Normal</a></td>
19                         <td align="center"><b>Notice biblio MARC : <!-- TMPL_VAR name="biblionumber" --></b></td>
20                 </tr>
21         </table>
22         </td>
23 </tr>
24 </table>
25 <br />
26 <center>
27
28 <DIV name="10XX" id="10XX">
29 <table border=1 cellspacing=0 cellpadding=5 width=80%>
30         <tr  background="<!-- TMPL_VAR name="themelang" -->/images/background-mem.gif">
31                 <th>Ouvrages existant</th>
32         </tr>
33 </table>
34 <table border=1 cellspacing=0 cellpadding=0 width=80%>
35         <tr  background="<!-- TMPL_VAR name="themelang" -->/images/background-mem.gif">
36                 <!-- TMPL_LOOP name="item_header_loop" --><th><tmpl_var name="header_value"></th><!-- /TMPL_LOOP --><th colspan=2>&nbsp;</th>
37         </tr>
38                 <!-- TMPL_LOOP name="item_loop" -->
39                 <tr>
40                         <!-- TMPL_VAR name="item_value" -->
41                         <td><a href="additem.pl?op=edititem&bibid=<!-- TMPL_VAR name="bibid" -->&itemnum=<!-- TMPL_VAR name="itemnum" -->"><img src="<!-- TMPL_VAR name="interface" -->/<!-- TMPL_VAR name="theme" -->/images/fileopen.png" border=0></a></td>
42                         <td><a href="javascript:confirm_deletion(<!-- TMPL_VAR name="bibid" -->,<!-- TMPL_VAR name="itemnum" -->)"><img src="<!-- TMPL_VAR name="interface" -->/<!-- TMPL_VAR name="theme" -->/images/edittrash.png" border=0></a></td>
43                 </tr>
44                 <!-- /TMPL_LOOP -->
45 </table>
46 </DIV>
47 <br /><br />
48
49 <table border=1 cellspacing=0 cellpadding=5 width=80%>
50         <tr  background="<!-- TMPL_VAR name="themelang" -->/images/background-mem.gif">
51                 <th>Nouveau ouvrage</th>
52         </tr>
53 </table><table width=80%  cellspacing=0 cellpadding=1 border=0>
54         <!-- TMPL_LOOP name="item" -->
55         <tr>
56                 <td width="3%">&nbsp;</td>
57                 <td width="2%"><!-- TMPL_VAR name="subfield" --></td>
58                 <td width="55%"><!-- TMPL_IF name="mandatory" --><b><!-- /TMPL_IF --><!-- TMPL_VAR name="marc_lib" --><!-- TMPL_IF name="mandatory" --> *</b><!-- /TMPL_IF --></td>
59                 <td width="40%">
60                         <!-- TMPL_VAR name="marc_value" -->
61                         <input type="hidden" name="tag" value="<!-- TMPL_VAR name="tag" -->">
62                         <input type="hidden" name="subfield" value="<!-- TMPL_VAR name="subfield" -->">
63                         <input type="hidden" name="mandatory" value="<!-- TMPL_VAR name="mandatory" -->">
64                 </td>
65         </tr>
66         </tmpl_loop>
67 </table>
68 <input type="hidden" name="itemnum" value="<!-- TMPL_VAR name="itemnum" -->">
69 <!-- TMPL_IF name="barcode_not_unique" -->
70         <div id="problem"><b>ERREUR: Code barre existe déjà!<b></div>
71 <!-- /TMPL_IF -->
72 <!-- TMPL_IF name="opisadd" -->
73 <input type="button" value="Ajouter un ouvrage" onClick='Check(this.form)' accesskey="w">
74 <!-- TMPL_ELSE -->
75 <input type="hidden" name="tag" value="<!-- TMPL_VAR name="itemtagfield" -->">
76 <input type="hidden" name="subfield" value="<!-- TMPL_VAR name="itemtagsubfield" -->">
77 <input type="hidden" name="field_value" value="<!-- TMPL_VAR name="itemnum" -->">
78 <input type="button" value="Modifier ouvrage" onClick='Check(this.form)' accesskey="w">
79 <!-- /TMPL_IF -->
80 </center>
81 </form>
82 <script LANGUAGE="JavaScript">
83 function active(numlayer)
84 {
85         for (i=10; i < 11 ; i++ ) {
86                 ong = i+"XX";
87                         link = "link"+i;
88                 if (numlayer==i) {
89                         document.getElementById(ong).style.visibility="visible";
90                         document.getElementById(link).style.backgroundColor="#11AA11";
91                         document.getElementById(link).style.backgroundImage="url(<!-- TMPL_VAR name="themelang" -->/images/background-mem.gif)";
92                 } else {
93                         document.getElementById(ong).style.visibility="hidden";
94                         document.getElementById(link).style.backgroundColor="#FFFFFF";
95                         document.getElementById(link).style.backgroundImage="";
96                 }
97         }
98 }
99 function Check(f) {
100         var total_errors=0;
101 //      alert(f.field_value.length);
102         for (i=0 ; i<f.field_value.length ; i++) {
103 //      alert (f.field_value[i].value);
104                 if (f.field_value[i].value.length==0 && f.mandatory[i].value==1) {
105                         document.getElementById("error"+i).style.backgroundColor="#FF0000";
106                         total_errors++;
107                 } else {
108 //                      document.getElementById("error"+i).style.backgroundColor="#FFFFFF";
109                 }
110         }
111         var alertString2;
112         if (total_errors==0) {
113                 document.f.submit();
114         } else {
115                 alertString2 = "Form not submitted because sur the following problem(s)\n";
116                 alertString2 += "------------------------------------------------------------------------------------\n\n";
117                 alertString2 += "- "+ total_errors+" mandatory fields empty (see bold subfields)";
118                 alert(alertString2);
119         }
120 }
121 function Dopop(link,i) {
122         defaultvalue=document.forms[0].field_value[i].value;
123         newin=window.open(link+"&result="+defaultvalue,"value builder",'width=500,height=400,toolbar=false,scrollbars=oui');
124 }
125 function confirm_deletion(bibid,itemnum) {
126         var is_confirmed = confirm('Do you confirm item deletion ?');
127         if (is_confirmed) {
128         window.location = "additem.pl?op=delitem&bibid="+bibid+"&itemnum="+itemnum;
129         }
130 }
131 </script>
132 </body>
133 </html>