|
|
(Der Versionsvergleich bezieht 145 dazwischenliegende Versionen mit ein.) |
Zeile 16: |
Zeile 16: |
| <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;margin-bottom:8px">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%;;margin-bottom:8px">BGF.SampleEdit.Main</div> |
| + | <div id="BGF.BtV.FullImage.Frame" style="display:none;width:100%;height:80vh;;margin-bottom:8px">BGF.FullImage.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"> |
- | <button id="BGF.BtV.Samples.ImgList" type="button" onclick="BGF_BtV_OnClick(this)" style="border-style:inset;">N</button>
| + | <button id="BGF.BtV.Sample.Add" type="button" onclick="BGF_BtV_OnClick(this)">Hinzufügen</button> |
- | <button id="BGF.BtV.Samples.ShortList" type="button" onclick="BGF_BtV_OnClick(this)">Ü</button>
| + | <button id="BGF.BtV.Samples.ShowImageList" type="button" onclick="BGF_BtV_OnClick(this)" |
- | </td>
| + | style="border-style:inset;">IL</button> |
- | </tr>
| + | <button id="BGF.BtV.Samples.ShowCompactList" type="button" onclick="BGF_BtV_OnClick(this)">CL</button> |
- | <tr style="background:#F8F8F8;" valign=top>
| + | |
- | <td>
| + | |
- | <div id="BGF.BtV.Samples.All" style="overflow:auto;height:90vh;width:100%;margin-top:4px;">BGF.Samples.All</div>
| + | |
- | <div id="BGF.BtV.Samples.ShortList" style="overflow:auto;height:90vh;width:100%;margin-top:4px;display:none;">BGF.Samples.Sel</div>
| + | |
- | </td>
| + | |
- | </tr> | + | |
- | </table>
| + | |
- | </td>
| + | |
- | </tr>
| + | |
- | </table>
| + | |
- | <template id="BGF.BtV.Sample.Template">
| + | |
- | <template id="Body"></template>
| + | |
- | <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>
| + | |
- | <tr valign=top>
| + | |
- | <td width=10px rowspan=3>
| + | |
- | <img src="%%Sample.FN%%" width="%%GUI.MaxSampleImgWidth%%"/> | + | |
- | </td>
| + | |
- | <td width=2px> </td>
| + | |
- | <td>
| + | |
- | <table width=100% cellspacing=0 cellpadding=0>
| + | |
- | <tr valign=top>
| + | |
- | <td nowrap colspan=2 style="padding-bottom:8px">
| + | |
- | <b>%%Sample.ID%%</b> (%%Sample.IDSrc%%)<br>
| + | |
- | </td>
| + | |
- | </tr>
| + | |
- | <tr valign=top>
| + | |
- | <td nowrap>Kat-Nr.: </td>
| + | |
- | <td width=100%>%%Stamp.KatNr%%%%Sample.KatNrVar%%</td>
| + | |
- | </tr> | + | |
- | <tr valign=top>
| + | |
- | <td nowrap>BRS: </td>
| + | |
- | <td width=100%>%%Sample.BRS.Text%%</td>
| + | |
- | </tr>
| + | |
- | <tr valign=top>
| + | |
- | <td nowrap>Quelle: </td>
| + | |
- | <td width=100%>%%Sample.Source.Type.Text%%</td>
| + | |
- | </tr>
| + | |
- | <tr valign=top>
| + | |
- | <td nowrap> Name: </td>
| + | |
- | <td>%%Sample.Source.Name%%</td>
| + | |
- | </tr>
| + | |
- | <tr valign=top>
| + | |
- | <td nowrap> Art-Nr.: </td>
| + | |
- | <td width=100%>%%Sample.Source.ArtNr%%</td>
| + | |
- | </tr>
| + | |
- | <tr valign=top>
| + | |
- | <td nowrap> Datum: </td>
| + | |
- | <td width=100%>%%Sample.Source.Date%%</td>
| + | |
- | </tr>
| + | |
- | <tr valign=top>
| + | |
- | <td nowrap>Größe: </td>
| + | |
- | <td width=100%>
| + | |
- | <span id="BGF.BtV.Sample.%%Sample.ID%%.Image.Width">%%Sample.ImageData.Width%%</span> x
| + | |
- | <span id="BGF.BtV.Sample.%%Sample.ID%%.Image.Height">%%Sample.ImageData.Height%%</span>
| + | |
- | </td>
| + | |
- | </tr>
| + | |
- | <tr valign=top>
| + | |
- | <td nowrap colspan=2 style="padding-top:8px">
| + | |
- | <button id="BGF.BtV.Sample.Edit.ID%%Sample.ID%%" type="button"
| + | |
- | onclick="BGF_BtV_OnClick(this)">Bearbeiten</button>
| + | |
- | <button id="BGF.BtV.Sample.Delete.ID%%Sample.ID%%" type="button"
| + | |
- | onclick="BGF_BtV_OnClick(this)">Löschen</button>
| + | |
- | </td>
| + | |
- | </tr>
| + | |
- | </table> | + | |
- | </td>
| + | |
- | </tr>
| + | |
- | </table>
| + | |
- | </div>
| + | |
- | </template>
| + | |
- | <template id="BGF.BtV.Sample.Edit.Template">
| + | |
- | <template id="Body"></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>
| + | |
- | <div id="BGF.BtV.Sample.Edit.Image.None">
| + | |
- | Kein Bild ausgewählt<br>
| + | |
- | <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)">
| + | |
- | </div>
| + | |
- | <div id="BGF.BtV.Sample.Edit.Image.Avail">
| + | |
- | <span id="BGF.BtV.Sample.Edit.Image.OrgFN">...</span>
| + | |
- | <button id="BGF.BtV.Sample.Edit.Image.Remove" type="button" onclick="BGF_BtV_OnClick(this)">Bild entfernen</button>
| + | |
- | </div>
| + | |
- | </td>
| + | |
- | <td width=2px> </td>
| + | |
- | <td>
| + | |
- | <table width=100% cellspacing=0 cellpadding=2>
| + | |
- | <tr valign=top>
| + | |
- | <td nowrap>ID Source:</td>
| + | |
- | <td> </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> </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> </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> </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> </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> Name:</td><td> </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> Art-Nr.:</td><td> </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 valign=top>
| + | |
- | <td nowrap> Datum:</td><td> </td>
| + | |
- | <td width=100%>
| + | |
- | <input type="date" id="BGF.BtV.Sample.Edit.SourceDate" name="SourceDate" style="margin:0px"
| + | |
- | onchange="BGF_BtV_OnChange(this)" oninput="BGF_BtV_OnChange(this)">
| + | |
- | </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>
| + | |
- | <button id="BGF.BtV.Sample.Abort" type="button" onclick="BGF_BtV_OnClick(this)">Abbrechen</button>
| + | |
- | </td>
| + | |
- | </tr>
| + | |
- | </table>
| + | |
- | </td>
| + | |
- | </tr>
| + | |
- | </table>
| + | |
- | </div>
| + | |
- | </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>
| + | |
- | <tr style="background:#E0E0E0;" valign=top>
| + | |
- | <td style="padding:2px 6px 1px 6px"><b>Auswahl / Filter</b></td>
| + | |
- | </tr>
| + | |
- | <tr style="background:#F8F8F8;" valign=top>
| + | |
- | <td>
| + | |
- | <table width=100% cellspacing=0 cellpadding=2>
| + | |
- | <tr valign=top>
| + | |
- | <td nowrap>Gebiet: </td><td> </td>
| + | |
- | <td width=100%>
| + | |
- | <select id="BGF.BtV.StampFilter.Stamp.Gebiet" name="Gebiet" onchange="BGF_BtV_OnChange(this)">
| + | |
- | <option value="-">bitte auswählen</option>
| + | |
- | <option value="Bund">Bund</option>
| + | |
- | <option value="Berlin">Berlin</option>
| + | |
- | <option value="DDR">DDR</option>
| + | |
- | <option value="Saar">Saarland</option>
| + | |
- | </select> /
| + | |
- | <select id="BGF.BtV.StampFilter.Stamp.Gebiet1" name="Gebiet1" onchange="BGF_BtV_OnChange(this)">
| + | |
- | <option value="-">bitte auswählen</option>
| + | |
- | <option value=""></option>
| + | |
- | <option value="SMBM">SMBM</option>
| + | |
- | </select>
| + | |
| </td> | | </td> |
| </tr> | | </tr> |
- | <tr valign=top> | + | <tr style="background:#F8F8F8;" valign=top> |
- | <td nowrap>Kat-Nr.:</td><td> </td> | + | <td> |
- | <td width=100%>
| + | <div id="BGF.BtV.Samples.ImageList" style="overflow:auto;height:75vh;width:100%;margin-top:4px;"> |
- | <input type="number" id="BGF.BtV.StampFilter.Stamp.KatNr" name="KatNr" min="1" max="9999" style="margin:0px" | + | BGF.BtV.Samples.ImageList |
- | onchange="BGF_BtV_OnChange(this)" oninput="BGF_BtV_OnChange(this)">
| + | </div> |
- | (<span id="BGF.BtV.StampFilter.Stamp.KatNr.Min">min</span> - <span id="BGF.BtV.StampFilter.Stamp.KatNr.Max">max</span>)
| + | <div id="BGF.BtV.Samples.CompactList" style="overflow:auto;height:75vh;width:100%;margin-top:4px;"> |
- | <button id="BGF.BtV.StampFilter.OK" type="button" onclick="BGF_BtV_OnClick(this)">OK</button>
| + | BGF.BtV.Samples.CompactList |
| + | </div> |
| </td> | | </td> |
| </tr> | | </tr> |
- | <tr valign=top> | + | </table> |
- | <td nowrap>BRS-Filter:</td><td> </td> | + | </div> |
- | <td width=100%> | + | <div id="BGF.BtV.Samples.Stat.Frame" style="display:none;width:100%;height:80vh;"> |
- | <select id="BGF.BtV.StampFilter.BRS.Filter" name="Filter" onchange="BGF_BtV_OnChange(this)"> | + | <table style="background:silver;" width=100% cellspacing=1 cellpadding=4> |
- | <option value="-">Kein Filter</option> | + | <tr style="background:#E0E0E0;" valign=top> |
- | </select> | + | <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> | | </td> |
| </tr> | | </tr> |
| </table> | | </table> |
- | </td> | + | </div> |
- | </tr> | + | </td> |
- | </table> | + | </tr> |
- | </div>
| + | </table> |
- | </template>
| + | <script src="/bogenwiki_lib/bw_libaux.js"></script> |
- | <template id="BGF.BtV.Sample.ShortList.Template">
| + | <script src="/bogenwiki_lib/bw_libdebug.js"></script> |
- | <template id="Head"></template>
| + | <script src="/bogenwiki_lib/bw_libgui.js"></script> |
- | <table style="background:silver;" width=100% cellspacing=1 cellpadding=4>
| + | |
- | <tr style="background:#E0E0E0;" valign=top>
| + | |
- | <td style="padding:2px 6px 1px 6px"><b>KatNr</b></td>
| + | |
- | <td style="padding:2px 6px 1px 6px"><b>ID</b></td>
| + | |
- | <td style="padding:2px 6px 1px 6px"><b>BRS</b></td>
| + | |
- | <td style="padding:2px 6px 1px 6px"><b>Quelle</b></td>
| + | |
- | </tr>
| + | |
- | <template id="Body"></template>
| + | |
- | <tr style="background:#F8F8F8;" valign=top>
| + | |
- | <td>%%Stamp.KatNr%%%%Sample.KatNrVar%%</td>
| + | |
- | <td>%%Sample.IDSrc%%: %%Sample.ID%%</td>
| + | |
- | <td>%%Sample.BRS.Text%%</td>
| + | |
- | <td>%%Sample.Source.Type%% %%Sample.Source.Name%% %%Sample.Source.ArtNr%%</td>
| + | |
- | </tr>
| + | |
- | <template id="Foot"></template>
| + | |
- | </table>
| + | |
- | </template>
| + | |
| <script src="/bogenwiki_bgf/src/bgf_btv.js"></script> | | <script src="/bogenwiki_bgf/src/bgf_btv.js"></script> |
| <script src="/bogenwiki_bgf/src/bgf_lib.js"></script> | | <script src="/bogenwiki_bgf/src/bgf_lib.js"></script> |
| <script> | | <script> |
- | BGF_BtV_AddTemplate('BGF.BtV.StampFilter.Template'); | + | BGF_BtV_ViewOptions.Templates.OnLoadFinished = BGFOnTemplatesLoaded; |
- | BGF_BtV_AddTemplate('BGF.BtV.Sample.Template'); | + | BGF_BtV_ViewOptions.Templates.LoadFromFile("/bogenwiki_bgf/src/bgf_btv_templates.html"); |
- | BGF_BtV_AddTemplate('BGF.BtV.Sample.Edit.Template');
| + | |
- | BGF_BtV_AddTemplate('BGF.BtV.Sample.ShortList.Template');
| + | |
| BGFInit(wgUserName,wgUserGroups,BGF_BtV_DoRender); | | BGFInit(wgUserName,wgUserGroups,BGF_BtV_DoRender); |
| + | window.onresize = BGF_BtV_OnWindowRezise; |
| + | window.addEventListener("storage", (e) => { |
| + | if (e.key == 'BGF_BTV_Filter') BGF_BtV_CheckCmdFromStorage(); |
| + | }); |
| </script> | | </script> |
| </html> | | </html> |