Persönliche Werkzeuge

Test Bogenteile Vergleichen

Aus BogenWiki

(Unterschied zwischen Versionen)
Wechseln zu: Navigation, Suche
 
(Der Versionsvergleich bezieht 136 dazwischenliegende Versionen mit ein.)
Zeile 11: Zeile 11:
     </td>
     </td>
     <td id="Frame.TopRight">
     <td id="Frame.TopRight">
-
       <div id="BGF.BtV.Data" style="width:100%;">BGF.Data</div>
+
       <div id="BGF.BtV.StampFilter" style="width:100%;">BGF.StampFilter</div>
     </td>
     </td>
   </tr>
   </tr>
   <tr style="background:white" valign=top>
   <tr style="background:white" valign=top>
     <td id="Frame.Middle" width=100% valign=top>
     <td id="Frame.Middle" width=100% valign=top>
-
       <div id="BGF.BtV.Image.Main.Frame" style="width:100%;height:90vh;">BGF.Image.Main</div>
+
       <div id="BGF.BtV.Image.Main.Frame" style="width:100%;height:80vh;">BGF.Image.Main</div>
-
       <div id="BGF.BtV.Sample.Edit.Frame" style="display:none;width:100%;height:90vh;">BGF.Image.Main</div>
+
       <div id="BGF.BtV.Sample.Edit.Frame" style="display:none;width:100%;height:80vh;">BGF.Image.Main</div>
     </td>
     </td>
     <td id="Frame.MiddleRight">
     <td id="Frame.MiddleRight">
-
       <table style="background:silver;" width=100% cellspacing=1 cellpadding=4>
+
       <div id="BGF.BtV.Samples.List.Frame" style="width:100%;height:80vh;">
-
        <tr style="background:#E0E0E0;" valign=top>
+
        <table style="background:silver;" width=100% cellspacing=1 cellpadding=4>
-
          <td style="padding:2px 6px 1px 6px"><b>Ausschnitte</b></td>
+
          <tr style="background:#E0E0E0;" valign=top>
-
        </tr>
+
            <td style="padding:2px 6px 1px 6px"><b>Ausschnitte</b></td>
-
        <tr style="background:#F8F8F8;" valign=top>
+
          </tr>
-
          <td style="padding:2px 6px 1px 6px">
+
          <tr style="background:#F8F8F8;" valign=top>
-
            <button id="BGF.BtV.Sample.Add" type="button" onclick="BGF_BtV_OnClick(this)">Hinzufügen</button>
+
            <td style="padding:2px 6px 1px 6px">
-
          </td>
+
              <button id="BGF.BtV.Sample.Add" type="button" onclick="BGF_BtV_OnClick(this)">Hinzufügen</button>&nbsp;&nbsp;
-
        </tr>
+
              <button id="BGF.BtV.Samples.ShowImageList" type="button" onclick="BGF_BtV_OnClick(this)"
-
        <tr style="background:#F8F8F8;" valign=top>
+
                      style="border-style:inset;">IL</button>
-
          <td>
+
              <button id="BGF.BtV.Samples.ShowCompactList" type="button" onclick="BGF_BtV_OnClick(this)">CL</button>
-
            <div id="BGF.BtV.Samples.All" style="overflow:auto;height:90vh;width:100%;margin-top:4px;">BGF.Samples.All</div>
+
            </td>
-
            <div id="BGF.BtV.Samples.Sel" style="overflow:auto;height:90vh;width:100%;margin-top:4px;display:none;">BGF.Samples.Sel</div>
+
          </tr>
-
          </td>
+
          <tr style="background:#F8F8F8;" valign=top>
-
        </tr>
+
            <td>
-
      </table>
+
              <div id="BGF.BtV.Samples.ImageList" style="overflow:auto;height:80vh;width:100%;margin-top:4px;">
 +
                BGF.BtV.Samples.ImageList
 +
              </div>
 +
              <div id="BGF.BtV.Samples.CompactList" style="overflow:auto;height:80vh;width:100%;margin-top:4px;">
 +
                BGF.BtV.Samples.CompactList
 +
              </div>
 +
            </td>
 +
          </tr>
 +
        </table>
 +
      </div>
 +
      <div id="BGF.BtV.Samples.Stat.Frame" style="display:none;width:100%;height:80vh;">
 +
        <table style="background:silver;" width=100% cellspacing=1 cellpadding=4>
 +
          <tr style="background:#E0E0E0;" valign=top>
 +
            <td style="padding:2px 6px 1px 6px"><b>Übersicht / Statistik</b></td>
 +
          </tr>
 +
          <tr style="background:#F8F8F8;" valign=top>
 +
            <td>
 +
              <div id="BGF.BtV.Samples.StatList" style="overflow:auto;height:80vh;width:100%;margin-top:4px;">
 +
                BGF.BtV.Samples.StatList
 +
              </div>
 +
            </td>
 +
          </tr>
 +
        </table>
 +
      </div>
     </td>
     </td>
   </tr>
   </tr>
</table>
</table>
-
<hr/>
+
<template id="BGF.BtV.Sample.Template">
-
<b>Template "BGF.BtV.Sample.Template"</b><br>
+
  <template id="Body"></template>
-
<div id="BGF.BtV.Sample.Template">
+
   <div id="BGF.BtV.Sample.%%Sample.ID%%.div" style="width:100%;border:0px solid silver;margin:0px 0px 4px 0px;">
   <div id="BGF.BtV.Sample.%%Sample.ID%%.div" style="width:100%;border:0px solid silver;margin:0px 0px 4px 0px;">
     <table style="background:#F8F8F8;margin:0px;" width=100% cellspacing=0 cellpadding=4>
     <table style="background:#F8F8F8;margin:0px;" width=100% cellspacing=0 cellpadding=4>
       <tr valign=top>
       <tr valign=top>
-
         <td width=10px>
+
         <td width=10px rowspan=3>
-
           <img src="%%Sample.FN%%" width="%%Settings.MaxSampleImgWidth%%"/>
+
           <img src="%%Sample.FN%%" width="%%GUI.MaxSampleImgWidth%%"/>
         </td>
         </td>
         <td width=2px>&nbsp;</td>
         <td width=2px>&nbsp;</td>
         <td>
         <td>
-
          <b>%%Sample.ID%%</b> (%%Sample.IDSrc%%)<br>
 
           <table width=100% cellspacing=0 cellpadding=0>
           <table width=100% cellspacing=0 cellpadding=0>
             <tr valign=top>
             <tr valign=top>
-
               <td nowrap>Kat-Nr.:</td><td>&nbsp;</td><td width=100%>%%Stamp.KatNr%%%%Sample.KatNrVar%%</td>
+
               <td nowrap colspan=2 style="padding-bottom:8px">
 +
                <b>%%Sample.ID%%</b> (%%Sample.IDSrc%%)<br>
 +
              </td>
             </tr>
             </tr>
             <tr valign=top>
             <tr valign=top>
-
               <td>BRS:   </td><td>&nbsp;</td><td width=100%>%%Sample.BRS%%</td>
+
               <td nowrap>Kat-Nr.:&nbsp;</td>
 +
              <td width=100%>%%Stamp.KatNr%%%%Sample.KatNrVar%%</td>
             </tr>
             </tr>
             <tr valign=top>
             <tr valign=top>
-
               <td>Quelle: </td><td>&nbsp;</td><td width=100%>%%Sample.Source.TypeText%% %%Sample.Source.Name%%</td>
+
               <td nowrap>BRS:&nbsp;</td>
 +
              <td width=100%>%%Sample.BRS.Text%%</td>
             </tr>
             </tr>
             <tr valign=top>
             <tr valign=top>
-
               <td>       </td><td>&nbsp;</td><td width=100%>%%Sample.Source.ArtNr%% (%%Sample.Source.Date%%)</td>
+
               <td nowrap>Quelle:&nbsp;</td>
 +
              <td width=100%>%%Sample.Source.Type.Text%%</td>
             </tr>
             </tr>
             <tr valign=top>
             <tr valign=top>
-
               <td>Größe: </td><td>&nbsp;</td><td width=100%>%%Sample.ImageData.Width%% x %%Sample.ImageData.Height%%</td>
+
               <td nowrap>&nbsp;&nbsp;&nbsp;Name:&nbsp;</td>
 +
              <td>%%Sample.Source.Name%%</td>
             </tr>
             </tr>
-
          </table>
+
            <tr style="display:%%Sample.Source.ArtNr.Display%%" valign=top>
-
        </td>
+
              <td nowrap>&nbsp;&nbsp;&nbsp;%%Sample.Source.ArtNr.Title%%:&nbsp;</td>
-
      </tr>
+
               <td width=100%>%%Sample.Source.ArtNr%%</td>
-
    </table>
+
-
  </div>
+
-
</div>
+
-
<br>
+
-
<b>Template "BGF.BtV.Sample.Edit.Template"</b><br>
+
-
<div id="BGF.BtV.Sample.Edit.Template">
+
-
  <div id="BGF.BtV.Sample.Edit.div" style="width:100%;border:1px solid silver;margin:0px;">
+
-
    <table style="background:#F8F8F8;margin:0px;" width=100% cellspacing=0 cellpadding=4>
+
-
      <tr valign=top>
+
-
        <td width=10px>
+
-
          <img id="BGF.BtV.Sample.Edit.Image" src="/bogenwiki_bgf/BGF_Sample_Dummy_Image.jpg" width="200"/><br>
+
-
          <input id="BGF.BtV.Sample.Edit.Image.Upload" name="ImageUpload" type="file" size="20" accept="image/jpeg,image/png">
+
-
        </td>
+
-
        <td width=2px>&nbsp;</td>
+
-
        <td>
+
-
          <table width=100% cellspacing=0 cellpadding=2>
+
-
            <tr valign=top>
+
-
              <td nowrap>ID Source:</td>
+
-
              <td>&nbsp;</td>
+
-
               <td width=100%>
+
-
                <select id="BGF.BtV.Sample.Edit.IDSrc" name="Gebiet" onchange="BGF_BtV_OnChange(this)">
+
-
                  <option value="BGF">Bogenforschung</option>
+
-
                  <option value="BV">Bestandsverwaltung</option>
+
-
                </select>
+
-
              </td>
+
             </tr>
             </tr>
             <tr valign=top>
             <tr valign=top>
-
               <td nowrap>ID:</td>
+
               <td nowrap>&nbsp;&nbsp;&nbsp;Datum:&nbsp;</td>
-
              <td>&nbsp;</td>
+
               <td width=100%>%%Sample.Source.Date%%</td>
-
               <td width=100%>
+
-
                <input type="text" id="BGF.BtV.Sample.Edit.IDBGF" name="IDBGF" style="margin:0px" readonly>
+
-
                <select id="BGF.BtV.Sample.Edit.IDBV" name="IDBV" onchange="BGF_BtV_OnChange(this)">
+
-
                </select>
+
-
              </td>
+
             </tr>
             </tr>
-
             <tr valign=top>
+
             <tr style="display:%%Sample.Source.Price.Display%%" valign=top>
-
              <td nowrap>Kat-Nr.:</td><td>&nbsp;</td>
+
               <td nowrap>&nbsp;&nbsp;&nbsp;%%Sample.Source.PrType.Text%%:&nbsp;</td>
-
              <td width=100%>
+
               <td width=100%>%%Sample.Source.Price%%</td>
-
                <span id="BGF.BtV.Sample.Edit.KatNr">1234</span>
+
-
                <input type="text" id="BGF.BtV.Sample.Edit.KatNrVar" name="KatNrVar" size=10 style="margin:0px"
+
-
                      onchange="BGF_BtV_OnChange(this)">
+
-
              </td>
+
-
            </tr>
+
-
            <tr valign=top>
+
-
              <td nowrap>BRS:</td><td>&nbsp;</td>
+
-
              <td width=100%>
+
-
                <input type="text" id="BGF.BtV.Sample.Edit.BRSBGF" name="BRSBGF" style="margin:0px"
+
-
                      onchange="BGF_BtV_OnChange(this)" oninput="BGF_BtV_OnChange(this)">
+
-
                <div id="BGF.BtV.Sample.Edit.BRSBV"></div>
+
-
              </td>
+
-
            </tr>
+
-
            <tr valign=top>
+
-
              <td nowrap>Quelle:</td><td>&nbsp;</td>
+
-
              <td width=100%>
+
-
                <select id="BGF.BtV.Sample.Edit.SourceType" name="SourceType" onchange="BGF_BtV_OnChange(this)">
+
-
                  <option value="un">unbekannt</option>
+
-
                  <option value="eb">ebay</option>
+
-
                  <option value="ah">Auktionshaus</option>
+
-
                  <option value="fo">Forum</option>
+
-
                  <option value="sh">Shop</option>
+
-
                  <option value="pr">Privat</option>
+
-
                </select>
+
-
              </td>
+
-
            </tr>
+
-
            <tr valign=top>
+
-
               <td nowrap>&nbsp;&nbsp;Name:</td><td>&nbsp;</td>
+
-
              <td width=100%>
+
-
                <input type="text" id="BGF.BtV.Sample.Edit.SourceName" name="SourceName" style="margin:0px"
+
-
                      onchange="BGF_BtV_OnChange(this)" oninput="BGF_BtV_OnChange(this)">
+
-
              </td>
+
-
            </tr>
+
-
            <tr valign=top>
+
-
              <td nowrap>&nbsp;&nbsp;Art-Nr.:</td><td>&nbsp;</td>
+
-
               <td width=100%>
+
-
                <input type="text" id="BGF.BtV.Sample.Edit.SourceArtNr" name="SourceArtNr" style="margin:0px"
+
-
                      onchange="BGF_BtV_OnChange(this)" oninput="BGF_BtV_OnChange(this)">
+
-
              </td>
+
             </tr>
             </tr>
             <tr valign=top>
             <tr valign=top>
-
               <td nowrap>&nbsp;&nbsp;Datum:</td><td>&nbsp;</td>
+
               <td nowrap>Größe:&nbsp;</td>
               <td width=100%>
               <td width=100%>
-
                 <input type="date" id="BGF.BtV.Sample.Edit.SourceDate" name="SourceDate" style="margin:0px"
+
                 <span id="BGF.BtV.Sample.%%Sample.ID%%.Image.Width">%%Sample.ImageData.Width%%</span> x
-
                      onchange="BGF_BtV_OnChange(this)" oninput="BGF_BtV_OnChange(this)">
+
                <span id="BGF.BtV.Sample.%%Sample.ID%%.Image.Height">%%Sample.ImageData.Height%%</span>
               </td>
               </td>
             </tr>
             </tr>
             <tr valign=top>
             <tr valign=top>
-
               <td colspan=3>
+
               <td nowrap colspan=2 style="padding-top:8px">
-
                 <button id="BGF.BtV.Sample.Save" type="button" onclick="BGF_BtV_OnClick(this)">Speichern</button>&nbsp;&nbsp;
+
                 <button id="BGF.BtV.Sample.Edit.ID%%Sample.ID%%" type="button"
-
                 <button id="BGF.BtV.Sample.Abort" type="button" onclick="BGF_BtV_OnClick(this)">Abbrechen</button>
+
                        onclick="BGF_BtV_OnClick(this)">Bearbeiten</button>&nbsp;&nbsp;
 +
                 <button id="BGF.BtV.Sample.Delete.ID%%Sample.ID%%" type="button"
 +
                        onclick="BGF_BtV_OnClick(this)">Löschen</button>&nbsp;&nbsp;
 +
                <button id="BGF.BtV.Sample.Clone.ID%%Sample.ID%%" type="button" style="display:%%Sample.CloneBtn.Display%%"
 +
                        onclick="BGF_BtV_OnClick(this)">Klonen</button>
               </td>
               </td>
             </tr>
             </tr>
Zeile 166: Zeile 128:
     </table>
     </table>
   </div>
   </div>
-
</div>
+
</template>
-
<br>
+
<template id="BGF.BtV.Sample.Edit.Template">
-
<b>Template "BGF.BtV.Data.Template"</b><br>
+
  <template id="Body"></template>
-
<div id="BGF.BtV.Data.Template">
+
  <table style="background:silver;" width=100% cellspacing=1 cellpadding=4>
-
   <div id="BGF.BtV.Data.div" style="width:500px;background:#F8F8F8;">
+
    <tr style="background:#E0E0E0;" valign=top>
 +
      <td style="padding:2px 6px 1px 6px"><b><span id="BGF.BtV.Sample.Edit.Title">%%Sample.Edit.Title%%</span></b></td>
 +
    </tr>
 +
    <tr style="background:#F8F8F8;" valign=top>
 +
      <td>
 +
      <table style="background:#F8F8F8;margin:0px;" width=100% cellspacing=0 cellpadding=4>
 +
        <tr valign=top>
 +
          <td width=10px>
 +
            <img id="BGF.BtV.Sample.Edit.Image" src="/bogenwiki_bgf/BGF_Sample_Dummy_Image.jpg" width="200"/><br>
 +
            <div id="BGF.BtV.Sample.Edit.Image.None">
 +
              <p>
 +
                <button id="BGF.BtV.Sample.Edit.Image.Select" type="button"
 +
                        onclick="document.getElementById('BGF.BtV.Sample.Edit.Image.Upload').click();">Bild auswählen</button>
 +
                <input id="BGF.BtV.Sample.Edit.Image.Upload" name="ImageUpload" type="file" size="20" accept="image/jpeg,image/png"
 +
                      style="display:none;" onchange="BGF_BtV_OnChange(this)">
 +
              </p>
 +
            </div>
 +
            <div id="BGF.BtV.Sample.Edit.Image.Avail" style="max-width:200px">
 +
              <p id="BGF.BtV.Sample.Edit.Image.OrgFN" style="max-width:200px;word-wrap:break-word;">...</p>
 +
              <button id="BGF.BtV.Sample.Edit.Image.Remove" type="button" onclick="BGF_BtV_OnClick(this)">Bild entfernen</button>
 +
            </div>
 +
          </td>
 +
          <td width=2px>&nbsp;</td>
 +
          <td>
 +
            <table width=100% cellspacing=0 cellpadding=2>
 +
              <tr valign=top>
 +
                <td nowrap>ID Source:</td>
 +
                <td>&nbsp;</td>
 +
                <td width=100%>
 +
                  <select id="BGF.BtV.Sample.Edit.IDSrc" name="Gebiet" onchange="BGF_BtV_OnChange(this)">
 +
                    <option value="BGF">Bogenforschung</option>
 +
                    <option value="BV">Bestandsverwaltung</option>
 +
                  </select>
 +
                </td>
 +
              </tr>
 +
              <tr valign=top>
 +
                <td nowrap>ID:</td>
 +
                <td>&nbsp;</td>
 +
                <td width=100%>
 +
                  <input type="text" id="BGF.BtV.Sample.Edit.IDBGF" name="IDBGF" style="margin:0px;color:grey;" readonly>
 +
                  <select id="BGF.BtV.Sample.Edit.IDBV" name="IDBV" onchange="BGF_BtV_OnChange(this)">
 +
                  </select>
 +
                </td>
 +
              </tr>
 +
              <tr valign=top>
 +
                <td nowrap>Kat-Nr.:</td><td>&nbsp;</td>
 +
                <td width=100%>
 +
                  <span id="BGF.BtV.Sample.Edit.KatNr">1234</span>
 +
                  <input type="text" id="BGF.BtV.Sample.Edit.KatNrVar" name="KatNrVar" size=10 style="margin:0px"
 +
                        onchange="BGF_BtV_OnChange(this)">
 +
                </td>
 +
              </tr>
 +
              <tr valign=top>
 +
                <td nowrap>BRS:</td><td>&nbsp;</td>
 +
                <td width=100%>
 +
                  <input type="text" id="BGF.BtV.Sample.Edit.BRSBGF" name="BRSBGF" style="margin:0px"
 +
                        onchange="BGF_BtV_OnChange(this)" oninput="BGF_BtV_OnChange(this)">
 +
                  <div id="BGF.BtV.Sample.Edit.BRSBV"></div>
 +
                </td>
 +
              </tr>
 +
              <tr valign=top>
 +
                <td nowrap>Quelle:</td><td>&nbsp;</td>
 +
                <td width=100%>
 +
                  <select id="BGF.BtV.Sample.Edit.Source.Type" name="SourceType" onchange="BGF_BtV_OnChange(this)">
 +
                    <option value="un">unbekannt</option>
 +
                    <option value="eb">ebay</option>
 +
                    <option value="ah">Auktionshaus</option>
 +
                    <option value="fo">Forum/Internet</option>
 +
                    <option value="sh">Shop</option>
 +
                    <option value="pr">Privat</option>
 +
                    <option value="li">Literatur</option>
 +
                  </select>
 +
                </td>
 +
              </tr>
 +
              <tr valign=top>
 +
                <td nowrap>&nbsp;&nbsp;Name:</td><td>&nbsp;</td>
 +
                <td width=100%>
 +
                  <input type="text" id="BGF.BtV.Sample.Edit.Source.Name" name="SourceName" style="margin:0px"
 +
                        onchange="BGF_BtV_OnChange(this)" oninput="BGF_BtV_OnChange(this)">
 +
                </td>
 +
              </tr>
 +
              <tr id="BGF.BtV.Sample.Edit.Source.ArtNr.Row" style="display:table-row" valign=top>
 +
                <td nowrap>&nbsp;&nbsp;<span id="BGF.BtV.Sample.Edit.Source.ArtNr.Title">Art-Nr.</span>:</td><td>&nbsp;</td>
 +
                <td width=100%>
 +
                  <input type="text" id="BGF.BtV.Sample.Edit.Source.ArtNr" name="SourceArtNr" style="margin:0px"
 +
                        onchange="BGF_BtV_OnChange(this)" oninput="BGF_BtV_OnChange(this)">
 +
                </td>
 +
              </tr>
 +
              <tr valign=top>
 +
                <td nowrap>&nbsp;&nbsp;Datum:</td><td>&nbsp;</td>
 +
                <td width=100%>
 +
                  <input type="date" id="BGF.BtV.Sample.Edit.Source.Date" name="SourceDate" style="margin:0px"
 +
                        onchange="BGF_BtV_OnChange(this)" oninput="BGF_BtV_OnChange(this)">
 +
                </td>
 +
              </tr>
 +
              <tr id="BGF.BtV.Sample.Edit.Source.Price.Row" style="display:table-row" valign=top>
 +
                <td nowrap>&nbsp;&nbsp;Preis:</td><td>&nbsp;</td>
 +
                <td width=100%>
 +
                  <input type="text" id="BGF.BtV.Sample.Edit.Source.Price" name="SourcePrice" style="margin:0px"
 +
                        size=7 onchange="BGF_BtV_OnChange(this)" oninput="BGF_BtV_OnChange(this)">
 +
                  <select id="BGF.BtV.Sample.Edit.Source.PrType" name="SourcePrType" onchange="BGF_BtV_OnChange(this)">
 +
                    <option value="un">unbekannt</option>
 +
                    <option value="zu" selected>Zuschlag</option>
 +
                    <option value="ar">Ausruf</option>
 +
                    <option value="nv">nicht verk.</option>
 +
                    <option value="fp">Festpreis</option>
 +
                  </select>
 +
                </td>
 +
              </tr>
 +
              <tr valign=top>
 +
                <td colspan=3 style="padding-top:8px">
 +
                  <button id="BGF.BtV.Sample.Save" type="button" onclick="BGF_BtV_OnClick(this)">Speichern</button>&nbsp;&nbsp;
 +
                  <button id="BGF.BtV.Sample.Abort" type="button" onclick="BGF_BtV_OnClick(this)">Abbrechen</button>
 +
                </td>
 +
              </tr>
 +
            </table>
 +
          </td>
 +
        </tr>
 +
      </table>
 +
      </td>
 +
    </tr>
 +
  </table>
 +
</template>
 +
<template id="BGF.BtV.StampFilter.Template">
 +
  <template id="Body"></template>
 +
   <div id="BGF.BtV.StampFilter.div" style="width:500px;background:#F8F8F8;">
   <table style="background:silver;" width=100% cellspacing=1 cellpadding=4>
   <table style="background:silver;" width=100% cellspacing=1 cellpadding=4>
     <tr style="background:#E0E0E0;" valign=top>
     <tr style="background:#E0E0E0;" valign=top>
Zeile 181: Zeile 268:
             <td nowrap>Gebiet: </td><td>&nbsp;</td>
             <td nowrap>Gebiet: </td><td>&nbsp;</td>
             <td width=100%>
             <td width=100%>
-
               <select id="BGF.BtV.Data.Stamp.Gebiet" name="Gebiet" onchange="BGF_BtV_OnChange(this)">
+
               <select id="BGF.BtV.StampFilter.Stamp.Gebiet" name="Gebiet" onchange="BGF_BtV_OnChange(this)">
                 <option value="-">bitte auswählen</option>
                 <option value="-">bitte auswählen</option>
                 <option value="Bund">Bund</option>
                 <option value="Bund">Bund</option>
Zeile 187: Zeile 274:
                 <option value="DDR">DDR</option>
                 <option value="DDR">DDR</option>
                 <option value="Saar">Saarland</option>
                 <option value="Saar">Saarland</option>
-
               </select>
+
               </select> /  
-
            </td>
+
               <select id="BGF.BtV.StampFilter.Stamp.Gebiet1" name="Gebiet1" onchange="BGF_BtV_OnChange(this)">
-
          </tr>
+
-
          <tr valign=top>
+
-
            <td nowrap>Gebiet1:</td><td>&nbsp;</td>
+
-
            <td width=100%>
+
-
               <select id="BGF.BtV.Data.Stamp.Gebiet1" name="Gebiet1" onchange="BGF_BtV_OnChange(this)">
+
                 <option value="-">bitte auswählen</option>
                 <option value="-">bitte auswählen</option>
                 <option value=""></option>
                 <option value=""></option>
                 <option value="SMBM">SMBM</option>
                 <option value="SMBM">SMBM</option>
 +
                <option value="DienstA">Dienstmarken A</option>
 +
                <option value="DienstB">Dienstmarken B</option>
 +
                <option value="DienstC">Dienstmarken C</option>
 +
                <option value="DienstD">Dienstmarken D</option>
 +
                <option value="DienstE">Dienstmarken E</option>
               </select>
               </select>
 +
              <button id="BGF.BtV.StampFilter.Stat" type="button" onclick="BGF_BtV_OnClick(this)">Übersicht</button>
             </td>
             </td>
           </tr>
           </tr>
Zeile 203: Zeile 291:
             <td nowrap>Kat-Nr.:</td><td>&nbsp;</td>
             <td nowrap>Kat-Nr.:</td><td>&nbsp;</td>
             <td width=100%>
             <td width=100%>
-
               <input type="number" id="BGF.BtV.Data.Stamp.KatNr" name="KatNr" min="1" max="9999" style="margin:0px"
+
               <input type="number" id="BGF.BtV.StampFilter.Stamp.KatNr" name="KatNr" min="1" max="9999" style="margin:0px"
                     onchange="BGF_BtV_OnChange(this)" oninput="BGF_BtV_OnChange(this)">&nbsp;
                     onchange="BGF_BtV_OnChange(this)" oninput="BGF_BtV_OnChange(this)">&nbsp;
-
               (<span id="BGF.BtV.Data.Stamp.KatNr.Min">min</span> - <span id="BGF.BtV.Data.Stamp.KatNr.Max">max</span>)&nbsp;
+
               (<span id="BGF.BtV.StampFilter.Stamp.KatNr.Min">min</span> -
-
               <button id="BGF.BtV.Data.OK" type="button" onclick="BGF_BtV_OnClick(this)">OK</button>
+
              <span id="BGF.BtV.StampFilter.Stamp.KatNr.Max">max</span>)&nbsp;
 +
               <button id="BGF.BtV.StampFilter.OK" type="button" onclick="BGF_BtV_OnClick(this)">OK</button>
             </td>
             </td>
           </tr>
           </tr>
           <tr valign=top>
           <tr valign=top>
-
             <td nowrap>BRS-Filter:</td><td>&nbsp;</td>
+
             <td nowrap>Filter:</td><td>&nbsp;</td>
             <td width=100%>
             <td width=100%>
-
               <select id="BGF.BtV.Data.Stamp.Filter" name="Filter" onchange="BGF_BtV_OnChange(this)">
+
               <select id="BGF.BtV.StampFilter.Filter.Category" name="FilterKat" onchange="BGF_BtV_OnChange(this)">
 +
                <option value="-">Kein Filter</option>
 +
                <option value="BRS">BRS</option>
 +
                <option value="Quelle">Quelle</option>
 +
              </select>&nbsp;&nbsp;
 +
              <select id="BGF.BtV.StampFilter.Filter.BRS" name="FilterBRS" onchange="BGF_BtV_OnChange(this)" style="display:none">
                 <option value="-">Kein Filter</option>
                 <option value="-">Kein Filter</option>
               </select>
               </select>
 +
              <select id="BGF.BtV.StampFilter.Filter.Quelle" name="FilterQuelle" onchange="BGF_BtV_OnChange(this)" style="display:none">
 +
                <option value="-">Kein Filter</option>
 +
              </select><br>
 +
              <input type="checkbox" id="BGF.BtV.StampFilter.Filter.Quelle.NoFinalPrice" name="FilterNoFinalPrice" onchange="BGF_BtV_OnChange(this)">
 +
              <label for="BGF.BtV.StampFilter.Filter.Quelle.NoFinalPrice">Nur beendete Lose mit Startpreis/Ausruf anzeigen</label>
             </td>
             </td>
           </tr>
           </tr>
Zeile 222: Zeile 321:
   </table>
   </table>
   </div>
   </div>
-
</div>
+
</template>
-
<script>
+
<template id="BGF.BtV.Sample.CompactList.Template">
-
   function BGF_BtV_OnSamplesLoad(aSampleData)
+
   <template id="Head"></template>
-
   {
+
   <table style="background:silver;" width=100% cellspacing=1 cellpadding=4>
-
    sFilterOptions = '';
+
     <tr style="background:#E0E0E0;" valign=top>
-
     for (b = 0; b < aSampleData.BRS.length; b++) {
+
       <td style="padding:2px 6px 1px 6px"><b>KatNr</b></td>
-
       sFilterOptions += '<optgroup label="'+aSampleData.BRS[b].Type+'">'
+
       <td style="padding:2px 6px 1px 6px"><b>ID</b></td>
-
                        +'<option label="alle ('+aSampleData.BRS[b].Count+')">'+aSampleData.BRS[b].Type
+
      <td style="padding:2px 6px 1px 6px"><b>BRS</b></td>
-
                        +':*</option>';
+
       <td style="padding:2px 6px 1px 6px"><b>Quelle</b></td>
-
       for (k = 0; k < aSampleData.BRS[b].Keys.length; k++)
+
     </tr>
-
        sFilterOptions += '<option label="'+aSampleData.BRS[b].Type+' '+aSampleData.BRS[b].Keys[k].Key+' '
+
     <template id="Body"></template>
-
                          +'('+aSampleData.BRS[b].Keys[k].Count+')">'+aSampleData.BRS[b].Type+':'+aSampleData.BRS[b].Keys[k].Key
+
     <tr style="background:#F8F8F8;" valign=top>
-
                          +'</option>';
+
      <td style="padding:2px 6px 1px 6px">%%Stamp.KatNr%%%%Sample.KatNrVar%%</td>
-
       sFilterOptions += '</optgroup>';
+
       <td style="padding:2px 6px 1px 6px">%%Sample.ID%%</td>
-
     }
+
       <td style="padding:2px 6px 1px 6px" nowrap>%%Sample.BRS.Text%%</td>
-
     document.getElementById('BGF.BtV.Data.Stamp.Filter').innerHTML = sFilterOptions;
+
       <td style="padding:2px 6px 1px 6px">%%Sample.Source.Type%% %%Sample.Source.Name%% %%Sample.Source.ArtNr%%</td>
-
     BGFShowSamples(aSampleData.Samples,{});
+
     </tr>
-
  }
+
     <template id="Empty"></template>
-
  function BGF_BtV_ShowHideSample(sSampleID,bShow)
+
     <tr style="background:#F8F8F8;" valign=top>
-
  {
+
       <td colspan=4 style="padding:2px 6px 1px 6px"><i>Keine Ausschnitte vorhanden</i></td>
-
    eSample = document.getElementById('BGF.BtV.Sample.'+sSampleID+'.div');
+
    </tr>
-
    if (eSample)
+
    <template id="Foot"></template>
-
      eSample.style.display = (bShow ? 'inline-block' : 'none');
+
   </table>
-
  }
+
</template>
-
  var BGF_BtV_Stamp = {};
+
<template id="BGF.BtV.Sample.StatList.Template">
-
  var BGF_BtV_Sample = {};
+
  <template id="Head"></template>
-
  var BGF_BtV_SampleIdx = -1;
+
  <table style="background:silver;" cellspacing=1 cellpadding=4>
-
  var BGF_BtV_NewSampleIDs = {};
+
    <tr style="background:#E0E0E0;" valign=top>
-
  var BGF_BtV_SelIDNewBVIdx = -1
+
      <td style="padding:2px 6px 1px 6px"><b>Gebiet</b></td>
-
  function BGF_BtV_ShowSampleEdit(Gebiet,Gebiet1,KatNr,Sample,SampleIdx,NewSampleIDs)
+
      <td style="padding:2px 6px 1px 6px"><b>Gebiet1</b></td>
-
  {
+
      <td style="padding:2px 6px 1px 6px"><b>KatNr</b></td>
-
    BGF_BtV_Stamp = {Gebiet:Gebiet,Gebiet1:Gebiet1,KatNr:KatNr};
+
      <td style="padding:2px 6px 1px 6px"><b>Anzahl</b></td>
-
    BGF_BtV_Sample = Sample;
+
      <td style="padding:2px 6px 1px 6px"><b>...</b></td>
-
    BGF_BtV_SampleIdx = SampleIdx;
+
    </tr>
-
    BGF_BtV_NewSampleIDs = NewSampleIDs;
+
    <template id="Body"></template>
-
    var eSampleImageFrame = document.getElementById('BGF.BtV.Image.Main.Frame');
+
    <tr style="background:#F8F8F8;" valign=top>
-
    var eSampleEditFrame = document.getElementById('BGF.BtV.Sample.Edit.Frame');
+
      <td style="padding:2px 6px 1px 6px">%%Statistic.Gebiet%%</td>
-
    var eSampleEditTemplate = document.getElementById('BGF.BtV.Sample.Edit.Template');
+
      <td style="padding:2px 6px 1px 6px">%%Statistic.Gebiet1%%</td>
-
    var sInnerHTML = eSampleEditTemplate.innerHTML;
+
       <td style="padding:2px 6px 1px 6px">%%Statistic.KatNr%%</td>
-
    eSampleEditFrame.innerHTML = sInnerHTML;
+
       <td style="padding:2px 6px 1px 6px">%%Statistic.Count%%</td>
-
    document.getElementById('BGF.BtV.Sample.Edit.KatNr').innerHTML = BGF_BtV_Stamp.KatNr;
+
       <td style="padding:2px 6px 1px 6px">
-
    document.getElementById('BGF.BtV.Sample.Edit.KatNrVar').value = Sample.KatNrVar;
+
         <button id="BGF.BtV.Sample.StatList.Select.%%Statistic.Gebiet%%.%%Statistic.Gebiet1%%.%%Statistic.KatNr%%"
-
    var eSampleIDSrc = document.getElementById('BGF.BtV.Sample.Edit.IDSrc');
+
                type="button" onclick="BGF_BtV_OnClick(this)">Auswählen</button>
-
    var eSampleIDBGF = document.getElementById('BGF.BtV.Sample.Edit.IDBGF');
+
       </td>
-
    var eSampleIDBV = document.getElementById('BGF.BtV.Sample.Edit.IDBV');
+
    </tr>
-
    var eSampleBRSBGF = document.getElementById('BGF.BtV.Sample.Edit.BRSBGF');
+
    <template id="Empty"></template>
-
    var eSampleBRSBV = document.getElementById('BGF.BtV.Sample.Edit.BRSBV');
+
    <tr style="background:#F8F8F8;" valign=top>
-
    if (Sample.IDSrc != '') {
+
      <td colspan=4 style="padding:2px 6px 1px 6px"><i>Keine Ausschnitte vorhanden</i></td>
-
       eSampleIDSrc.value = Sample.IDSrc;
+
    </tr>
-
      eSampleIDSrc.disabled = true;
+
    <template id="Foot"></template>
-
      eSampleIDBGF.value = Sample.ID;
+
    <tr style="background:#F8F8F8;" valign=top>
-
       eSampleIDBGF.style.display = 'inline-block';
+
      <td style="padding:2px 6px 1px 6px" colspan=3>Summe:</td>
-
      eSampleIDBV.style.display = 'none';
+
      <td style="padding:2px 6px 1px 6px">%%Statistic.Total%%</td>
-
      var sBRS = '';
+
      <td style="padding:2px 6px 1px 6px"> </td>
-
      for (b = 0; b < Sample.BRS.length; b++)
+
    </tr>
-
        sBRS += (sBRS!='' ? ', ' : '')+Sample.BRS[b].Type+' '+Sample.BRS[b].Key;
+
  </table>
-
      eSampleBRSBGF.value = sBRS;
+
</template>
-
      eSampleBRSBGF.style.display = 'inline-block';
+
<script src="/bogenwiki_bgf/src/bgf_btv.js"></script>
-
      eSampleBRSBV.style.display = 'none';
+
-
    } else {
+
-
      eSampleIDSrc.value = 'BGF';
+
-
      eSampleIDBGF.value = NewSampleIDs.BGF;
+
-
      var sInnerHTML = '';
+
-
      for (i = 0; i < NewSampleIDs.BV.length; i++)
+
-
        sInnerHTML += '<option value="'+i+'">'+NewSampleIDs.BV[i].ID+'</option>';
+
-
       eSampleIDBV.innerHTML = sInnerHTML;
+
-
      eSampleIDBGF.style.display = 'inline-block';
+
-
      eSampleIDBV.style.display = 'none';
+
-
      eSampleBRSBGF.style.display = 'inline-block';
+
-
      eSampleBRSBV.style.display = 'none';
+
-
    }
+
-
    document.getElementById('BGF.BtV.Sample.Edit.SourceType').value = (Sample.Source.Type=='' ? 'un' : Sample.Source.Type);
+
-
    document.getElementById('BGF.BtV.Sample.Edit.SourceName').value = Sample.Source.Name;
+
-
    document.getElementById('BGF.BtV.Sample.Edit.SourceArtNr').value = Sample.Source.ArtNr;
+
-
     document.getElementById('BGF.BtV.Sample.Edit.SourceDate').value = Sample.Source.Date;
+
-
     document.getElementById('BGF.BtV.Sample.Edit.SourceDate')
+
-
    sImageFN = BGFGetImageFN({Gebiet:Gebiet,Gebiet1:Gebiet1,KatNr:KatNr},Sample);
+
-
     document.getElementById('BGF.BtV.Sample.Edit.Image').src = sImageFN;
+
-
    eSampleImageFrame.style.display = 'none';
+
-
    eSampleEditFrame.style.display = 'inline-block';
+
-
  }
+
-
  function BGF_BtV_OnChange(eElement)
+
-
  {
+
-
    var eGebiet  = document.getElementById('BGF.BtV.Data.Stamp.Gebiet');
+
-
    var eGebiet1  = document.getElementById('BGF.BtV.Data.Stamp.Gebiet1');
+
-
    var eKatNr    = document.getElementById('BGF.BtV.Data.Stamp.KatNr');
+
-
    var eFilter  = document.getElementById('BGF.BtV.Data.Stamp.Filter');
+
-
    console.log('[BGF_BtV_OnChange] eElement.id='+eElement.id);
+
-
    switch (eElement.id) {
+
-
       case 'BGF.BtV.Data.Stamp.Gebiet':
+
-
        switch (eGebiet.value) {
+
-
          case 'Bund':  eKatNr.min = 111; eKatNr.max = 1793; break;
+
-
          case 'Berlin': eKatNr.min = 1;  eKatNr.max = 879; break;
+
-
          case 'DDR':    eKatNr.min = 242; eKatNr.max = 3365; break;
+
-
          case 'Saar':  eKatNr.min = 380; eKatNr.max = 448; break;
+
-
        }
+
-
        document.getElementById('BGF.BtV.Data.Stamp.KatNr.Min').innerHTML = eKatNr.min;
+
-
        document.getElementById('BGF.BtV.Data.Stamp.KatNr.Max').innerHTML = eKatNr.max;
+
-
        var nKatNr = parseInt(eKatNr.value,10);
+
-
        if ((nKatNr < parseInt(eKatNr.min,10)) || (nKatNr > parseInt(eKatNr.max,10)))
+
-
          eKatNr.style.color = 'red';
+
-
        else
+
-
          eKatNr.style.color = 'black';
+
-
        eGebiet1.value = '';
+
-
        break;
+
-
      case 'BGF.BtV.Data.Stamp.Gebiet1':
+
-
        break;
+
-
      case 'BGF.BtV.Data.Stamp.KatNr':
+
-
        //console.log('typeof(value)='+typeof(eKatNr.value)+'; typeof(min)='+typeof(eKatNr.min)+';');
+
-
        var nKatNr = parseInt(eKatNr.value,10);
+
-
        if ((nKatNr < parseInt(eKatNr.min,10)) || (nKatNr > parseInt(eKatNr.max,10)))
+
-
          eKatNr.style.color = 'red';
+
-
        else
+
-
          eKatNr.style.color = 'black';
+
-
        break;
+
-
      case 'BGF.BtV.Data.Stamp.Filter':
+
-
        var sGebiet   = document.getElementById('BGF.BtV.Data.Stamp.Gebiet').value;
+
-
        var sGebiet1  = document.getElementById('BGF.BtV.Data.Stamp.Gebiet1').value;
+
-
        var sKatNr    = document.getElementById('BGF.BtV.Data.Stamp.KatNr').value;
+
-
        var sFilter  = document.getElementById('BGF.BtV.Data.Stamp.Filter').value;
+
-
        BGF_BtV_StampFilterChanged(sGebiet,sGebiet1,sKatNr,sFilter);
+
-
        break;
+
-
      case 'BGF.BtV.Sample.Edit.IDSrc':
+
-
        var eSampleIDBGF = document.getElementById('BGF.BtV.Sample.Edit.IDBGF');
+
-
        var eSampleIDBV = document.getElementById('BGF.BtV.Sample.Edit.IDBV');
+
-
        var eSampleBRSBGF = document.getElementById('BGF.BtV.Sample.Edit.BRSBGF');
+
-
        var eSampleBRSBV = document.getElementById('BGF.BtV.Sample.Edit.BRSBV');
+
-
        var sIDSrc = document.getElementById('BGF.BtV.Sample.Edit.IDSrc').value;
+
-
        if (sIDSrc == 'BGF') {
+
-
          eSampleIDBGF.style.display = 'inline-block';
+
-
          eSampleIDBV.style.display = 'none';
+
-
          eSampleBRSBGF.style.display = 'inline-block';
+
-
          eSampleBRSBV.style.display = 'none';
+
-
          document.getElementById('BGF.BtV.Sample.Edit.KatNrVar').removeAttribute("readonly");
+
-
          document.getElementById('BGF.BtV.Sample.Edit.SourceType').removeAttribute("readonly");
+
-
          document.getElementById('BGF.BtV.Sample.Edit.SourceName').removeAttribute("readonly");
+
-
          document.getElementById('BGF.BtV.Sample.Edit.SourceArtNr').removeAttribute("readonly");
+
-
          document.getElementById('BGF.BtV.Sample.Edit.SourceDate').removeAttribute("readonly");
+
-
          document.getElementById('BGF.BtV.Sample.Edit.BRSBGF').value = '';
+
-
          document.getElementById('BGF.BtV.Sample.Edit.KatNrVar').value = '';
+
-
          document.getElementById('BGF.BtV.Sample.Edit.SourceType').value = 'un';
+
-
          document.getElementById('BGF.BtV.Sample.Edit.SourceName').value = '';
+
-
          document.getElementById('BGF.BtV.Sample.Edit.SourceArtNr').value = '';
+
-
          document.getElementById('BGF.BtV.Sample.Edit.SourceDate').value = '';
+
-
        } else {
+
-
          eSampleIDBGF.style.display = 'none';
+
-
          eSampleIDBV.style.display = 'inline-block';
+
-
          eSampleBRSBGF.style.display = 'none';
+
-
          eSampleBRSBV.style.display = 'inline-block';
+
-
          document.getElementById('BGF.BtV.Sample.Edit.KatNrVar').setAttribute("readonly",true);
+
-
          document.getElementById('BGF.BtV.Sample.Edit.SourceType').setAttribute("readonly",true);
+
-
          document.getElementById('BGF.BtV.Sample.Edit.SourceName').setAttribute("readonly",true);
+
-
          document.getElementById('BGF.BtV.Sample.Edit.SourceArtNr').setAttribute("readonly",true);
+
-
          document.getElementById('BGF.BtV.Sample.Edit.SourceDate').setAttribute("readonly",true);
+
-
          BGF_BtV_OnChange(document.getElementById('BGF.BtV.Sample.Edit.IDBV'));
+
-
        }
+
-
        break;
+
-
      case 'BGF.BtV.Sample.Edit.IDBV':
+
-
        var sNewID = document.getElementById('BGF.BtV.Sample.Edit.IDBV').value;
+
-
        BGF_BtV_SelIDNewBVIdx = parseInt(sNewID,10);
+
-
        console.log('[BGF_BtV_OnChange] BGF_BtV_SelIDNewBVIdx='+BGF_BtV_SelIDNewBVIdx+'; '
+
-
                  +'BV['+BGF_BtV_SelIDNewBVIdx+'].ID='+BGF_BtV_NewSampleIDs.BV[BGF_BtV_SelIDNewBVIdx].ID+';');
+
-
        var sInnerHTMLBRSBV = '';
+
-
        for (b = 0; b < BGF_BtV_NewSampleIDs.BV[BGF_BtV_SelIDNewBVIdx].BRS.length; b++) {
+
-
          var sBRS = BGF_BtV_NewSampleIDs.BV[BGF_BtV_SelIDNewBVIdx].BRS[b].Type+' '
+
-
                    +BGF_BtV_NewSampleIDs.BV[BGF_BtV_SelIDNewBVIdx].BRS[b].Key;
+
-
          sInnerHTMLBRSBV += '<input type="checkbox" id="BGF.BtV.Sample.Edit.BRSBV.'+b+'" name="BRSBV.'+b+'" value="'+sBRS+'">'
+
-
                            +'<label for="BGF.BtV.Sample.Edit.BRSBV.'+b+'">'+sBRS+'</label><br>';
+
-
        }
+
-
        document.getElementById('BGF.BtV.Sample.Edit.BRSBV').innerHTML = sInnerHTMLBRSBV;
+
-
        document.getElementById('BGF.BtV.Sample.Edit.BRSBGF').style.display = 'none';
+
-
        document.getElementById('BGF.BtV.Sample.Edit.KatNrVar').value = BGF_BtV_NewSampleIDs.BV[BGF_BtV_SelIDNewBVIdx].Unterart;
+
-
        document.getElementById('BGF.BtV.Sample.Edit.SourceType').value = BGF_BtV_NewSampleIDs.BV[BGF_BtV_SelIDNewBVIdx].Source.Type;
+
-
        document.getElementById('BGF.BtV.Sample.Edit.SourceName').value = BGF_BtV_NewSampleIDs.BV[BGF_BtV_SelIDNewBVIdx].Source.Name;
+
-
        document.getElementById('BGF.BtV.Sample.Edit.SourceArtNr').value = BGF_BtV_NewSampleIDs.BV[BGF_BtV_SelIDNewBVIdx].Source.ArtNr;
+
-
        document.getElementById('BGF.BtV.Sample.Edit.SourceDate').value = BGF_BtV_NewSampleIDs.BV[BGF_BtV_SelIDNewBVIdx].Source.Date;
+
-
        break;
+
-
       case 'BGF.BtV.Sample.Edit.SourceType':
+
-
        if (document.getElementById('BGF.BtV.Sample.Edit.IDSrc').value == 'BV')
+
-
          document.getElementById('BGF.BtV.Sample.Edit.SourceType').value = BGF_BtV_NewSampleIDs.BV[BGF_BtV_SelIDNewBVIdx].Source.Type;
+
-
        break;
+
-
      case 'BGF.BtV.Sample.Edit.BRSBGF':
+
-
      case 'BGF.BtV.Sample.Edit.KatNrVar':
+
-
       case 'BGF.BtV.Sample.Edit.SourceName':
+
-
      case 'BGF.BtV.Sample.Edit.SourceArtNr':
+
-
       case 'BGF.BtV.Sample.Edit.SourceDate':
+
-
         break;
+
-
      default:
+
-
        alert('[BGF_BtV_OnChange] Unknown element ID "'+eElement.id+'" !!!');
+
-
        break;
+
-
    }
+
-
  }
+
-
  function BGF_BtV_OnClick(eElement)
+
-
  {
+
-
    switch (eElement.id) {
+
-
      case 'BGF.BtV.Data.OK':
+
-
        var sGebiet  = document.getElementById('BGF.BtV.Data.Stamp.Gebiet').value;
+
-
        var sGebiet1  = document.getElementById('BGF.BtV.Data.Stamp.Gebiet1').value;
+
-
        var sKatNr    = document.getElementById('BGF.BtV.Data.Stamp.KatNr').value;
+
-
        console.log('[BGF_BtV_OnClick] sGebiet="'+sGebiet+'"; sGebiet1="'+sGebiet1+'"; sKatNr="'+sKatNr+'";');
+
-
        var bValuesOK = true;
+
-
        bValuesOK = (sGebiet == '-' ? false : bValuesOK);
+
-
        bValuesOK = (sKatNr == '' ? false : bValuesOK);
+
-
        if (bValuesOK)
+
-
          BGF_BtV_StampFilterChanged(sGebiet,sGebiet1,sKatNr,'');
+
-
        break;
+
-
       case 'BGF.BtV.Sample.Add':
+
-
        BGF_BtV_SampleNew();
+
-
        break;
+
-
      case 'BGF.BtV.Sample.Save':
+
-
        var NewSample = BGFInitSample();
+
-
        NewSample.IDSrc = document.getElementById('BGF.BtV.Sample.Edit.IDSrc').value;
+
-
        if (NewSample.IDSrc == 'BGF') {
+
-
          NewSample.ID = document.getElementById('BGF.BtV.Sample.Edit.IDBGF').value;
+
-
          var sSampleBRS = document.getElementById('BGF.BtV.Sample.Edit.BRSBGF').value;
+
-
          var aSampleBRS = sSampleBRS.split(',');
+
-
          for (b = 0; b < aSampleBRS; b++) {
+
-
            var sBRSType = substr(aSampleBRS,0,aSampleBRS.indexOf(' '));
+
-
            var sBRSKey = substr(aSampleBRS,sBRSType.length+1,aSampleBRS.length);
+
-
            NewSample.BRS.push({Type:sBRSType,Key:sBRSKey,Text:'',Pos:[]});
+
-
          }
+
-
          NewSample.KatNrVar = document.getElementById('BGF.BtV.Sample.Edit.KatNrVar').value;
+
-
          NewSample.Source.Type = document.getElementById('BGF.BtV.Sample.Edit.SourceType').value;
+
-
          NewSample.Source.Name = document.getElementById('BGF.BtV.Sample.Edit.SourceName').value;
+
-
          NewSample.Source.ArtNr = document.getElementById('BGF.BtV.Sample.Edit.SourceArtNr').value;
+
-
          NewSample.Source.Date = document.getElementById('BGF.BtV.Sample.Edit.SourceDate').value;
+
-
        } else {
+
-
          NewSample.ID = BGF_BtV_NewSampleIDs.BV[BGF_BtV_SelIDNewBVIdx].ID;
+
-
          console.log('[BGF_BtV_OnClick] BGF_BtV_NewSampleIDs.BV[BGF_BtV_SelIDNewBVIdx].BRS.length='
+
-
                      +BGF_BtV_NewSampleIDs.BV[BGF_BtV_SelIDNewBVIdx].BRS.length);
+
-
          for (b = 0; b < BGF_BtV_NewSampleIDs.BV[BGF_BtV_SelIDNewBVIdx].BRS.length; b++) {
+
-
            var aBRSBV = BGF_BtV_NewSampleIDs.BV[BGF_BtV_SelIDNewBVIdx].BRS[b];
+
-
            var eBRSBV = document.getElementById('BGF.BtV.Sample.Edit.BRSBV.'+b);
+
-
            console.log('[BGF_BtV_OnClick] eBRSBV.checked='+eBRSBV.checked);
+
-
            if (document.getElementById('BGF.BtV.Sample.Edit.BRSBV.'+b).checked)
+
-
              NewSample.BRS.push({Type:aBRSBV.Type,Key:aBRSBV.Key,Text:'',Pos:[]});
+
-
          }
+
-
          NewSample.KatNrVar = document.getElementById('BGF.BtV.Sample.Edit.KatNrVar').value;
+
-
          NewSample.Source.Type = '';
+
-
          NewSample.Source.Name = '';
+
-
          NewSample.Source.ArtNr = '';
+
-
          NewSample.Source.Date = '';
+
-
        }
+
-
        var files = document.getElementById('BGF.BtV.Sample.Edit.Image.Upload').files;
+
-
        if (files.length > 0)
+
-
          NewSample.OrgFN = files[0].name;
+
-
        // Sample speichern
+
-
        BGFSampleSave(NewSample,BGF_BtV_SampleIdx);
+
-
        // Bild/Ausschnitt hochladen
+
-
        //var eUploadLog = document.getElementById('bvbfBgScanUploadLog');
+
-
        //eUploadLog.innerHTML = 'bitte warten...';
+
-
        // Create formdata
+
-
        var formData = new FormData();
+
-
        // Add meta-data of the sample to formdata
+
-
        formData.append('WI', NewSample.ID);
+
-
        formData.append('_WU', wgUserName);
+
-
        formData.append('_GE', BGF_BtV_Stamp.Gebiet);
+
-
        formData.append('_GE1', BGF_BtV_Stamp.Gebiet1);
+
-
        formData.append('_KN', BGF_BtV_Stamp.KatNr);
+
-
        // Add file to formdata
+
-
        formData.append('files[]', file[0]);
+
-
        // Send formdata
+
-
        fetch('/bogenwiki_bgf/src/BGFWriteImage.php', {
+
-
          method: 'POST',
+
-
          body: formData
+
-
        }).then(response => {
+
-
          // Callback for response
+
-
          console.log('response.status="'+response.status+'"');
+
-
          console.log('response.statusText="'+response.statusText+'"');
+
-
          //var eUploadLog = document.getElementById('bvbfBgScanUploadLog');
+
-
          //eUploadLog.innerHTML = '<span style="color:green;font-weight:bold;">fertig</span>';
+
-
          document.getElementById('BGF.BtV.Sample.Edit.Image').src = BGFGetImageFN(BGF_BtV_Stamp,NewSample);
+
-
        });
+
-
        break;
+
-
      default:
+
-
        alert('[BGF_BtV_OnClick] Unknown element ID "'+eElement.id+'" !!!');
+
-
        break;
+
-
    }
+
-
  }
+
-
</script>
+
<script src="/bogenwiki_bgf/src/bgf_lib.js"></script>
<script src="/bogenwiki_bgf/src/bgf_lib.js"></script>
<script>
<script>
-
   BGF_BtV_Init(wgUserName,wgUserGroups);
+
   BGF_BtV_AddTemplate('BGF.BtV.StampFilter.Template');
 +
  BGF_BtV_AddTemplate('BGF.BtV.Sample.Template');
 +
  BGF_BtV_AddTemplate('BGF.BtV.Sample.Edit.Template');
 +
  BGF_BtV_AddTemplate('BGF.BtV.Sample.CompactList.Template');
 +
  BGF_BtV_AddTemplate('BGF.BtV.Sample.StatList.Template');
 +
  BGFInit(wgUserName,wgUserGroups,BGF_BtV_DoRender);
</script>
</script>
</html>
</html>

Aktuelle Version vom 10:34, 7. Jan. 2024

Menü
BGF.Menu
BGF.StampFilter
BGF.Image.Main
Ausschnitte
  
BGF.BtV.Samples.ImageList
BGF.BtV.Samples.CompactList