]> 91.132.146.200 Git - bibliotheca-php.git/commitdiff
theme 98: adding tools
authorBanana <mail@bananas-playground.net>
Mon, 1 May 2023 08:29:06 +0000 (10:29 +0200)
committerBanana <mail@bananas-playground.net>
Mon, 1 May 2023 08:29:06 +0000 (10:29 +0200)
webclient/view/98/manageentry/field-lookupmultiple.html
webclient/view/98/tool/tool-gameinfo.html [new file with mode: 0644]
webclient/view/98/tool/tool-googlebooks.html [new file with mode: 0644]
webclient/view/98/tool/tool-imdbweb.html [new file with mode: 0644]
webclient/view/98/tool/tool-musicbrainz.html [new file with mode: 0644]
webclient/view/98/tool/tool.html [new file with mode: 0644]
webclient/view/98/ui/css/style.css

index d2e931533a268c7048ac2a13fc5f8a3cc0298114..56766311fb8309b7d842e79395f762a711e1fcf7 100644 (file)
@@ -13,7 +13,7 @@ if(Summoner::ifset($TemplateData['editData'], $field['identifier'])) {
                foreach($existingFieldValue as $ev) { ?>
 
                <div class="input-multiple-template" id="<?php echo $field['identifier']; ?>-<?php echo $ev; ?>">
-                       <a onclick="removeTag('<?php echo $ev; ?>','<?php echo $field['identifier']; ?>')" title="click to remove"><span><?php echo $ev; ?></span>></a>
+                       <a onclick="removeTag('<?php echo $ev; ?>','<?php echo $field['identifier']; ?>')" title="click to remove"><span><?php echo $ev; ?></span></a>
                </div>
 
        <?php
diff --git a/webclient/view/98/tool/tool-gameinfo.html b/webclient/view/98/tool/tool-gameinfo.html
new file mode 100644 (file)
index 0000000..fc9e7b2
--- /dev/null
@@ -0,0 +1,8 @@
+<p>This is a collection of websites which provide different kind of information about games.</p>
+<ul>
+       <li><a target=_blank href="https://www.mobygames.com/">Moby Games</a> All plattforms</li>
+       <li><a target=_blank href="https://www.gametdb.com/">Game TDB</a> Console games</li>
+       <li><a target=_blank href="https://thegamesdb.net/">The games db</a> All plattforms</li>
+       <li><a target=_blank href="https://whatoplay.com">What to play</a> All plattforms</li>
+       <li><a target=_blank href="https://www.giantbomb.com/">Giant Bomb</a> All plattforms</li>
+</ul>
diff --git a/webclient/view/98/tool/tool-googlebooks.html b/webclient/view/98/tool/tool-googlebooks.html
new file mode 100644 (file)
index 0000000..b6f0f49
--- /dev/null
@@ -0,0 +1,49 @@
+<p>
+       <b>Limitations</b><br />
+       Data will be overwritten
+</p>
+
+
+<form class="maxSizeForm" method="post" enctype="multipart/form-data">
+       <div class="field-row-stacked">
+               <label  for="search">Search ISBN</label>
+               <input id="search" type="text" autocomplete="off"
+                      name="fdata[search]"
+                      value="<?php echo Summoner::ifset($TemplateData['editEntry'], 'isbn'); ?>"
+               />
+       </div>
+       <div class="field-row-stacked">
+               <input type="submit" name="submitFormSearch" value="Search">
+       </div>
+</form>
+
+<?php if($TemplateData['showMatchingForm']) { ?>
+<form class="maxSizeForm" method="post" enctype="multipart/form-data">
+
+       <?php
+       if(!empty($TemplateData['bookData'])) {
+               foreach($TemplateData['bookData'] as $k=>$v) {
+       ?>
+       <input name="fdata[from][<?php echo $k; ?>]" type="hidden" value="<?php echo $v; ?>"  />
+       <div class="field-row-stacked">
+               <p>
+                       <b><?php echo $k; ?></b><br />
+                       <?php echo nl2br($v); ?>
+               </p>
+               <select id="<?php echo $k; ?>" class="uk-select" name="fdata[into][<?php echo $k; ?>]">
+                       <option value="">None</option>
+                       <?php echo toolMethod_GetTargetSelection($TemplateData['saveToSelection'],$k); ?>
+               </select>
+       </div>
+
+       <?php
+               }
+       }
+       ?>
+
+       <div class="field-row-stacked">
+               <input type="submit" name="submitFormSave" value="Save" />
+       </div>
+
+</form>
+<?php } ?>
diff --git a/webclient/view/98/tool/tool-imdbweb.html b/webclient/view/98/tool/tool-imdbweb.html
new file mode 100644 (file)
index 0000000..505c175
--- /dev/null
@@ -0,0 +1,48 @@
+<p>
+       <b>Limitations</b><br />
+       Data will be overwritten
+</p>
+
+<form class="maxSizeForm" method="post" enctype="multipart/form-data">
+       <div class="field-row-stacked">
+               <label for="search">Search</label>
+               <input id="search" type="text" autocomplete="off"
+                          name="fdata[search]"
+                          value="<?php echo Summoner::ifset($TemplateData['editEntry'], 'title'); ?>"
+               />
+       </div>
+       <div class="field-row-stacked">
+               <input value="Search" type="submit" name="submitFormSearch">
+       </div>
+</form>
+
+<?php if($TemplateData['showMatchingForm']) { ?>
+<form class="maxSizeForm" method="post" enctype="multipart/form-data">
+       <input type="hidden" name="fdata[imdbId]" value="<?php echo $TemplateData['movieImdbId']; ?>">
+       <?php
+       if(!empty($TemplateData['movieData'])) {
+               foreach($TemplateData['movieData'] as $k=>$v) {
+       ?>
+
+       <div class="field-row-stacked">
+               <p>
+                       <b><?php echo $v['name']; ?></b><br />
+                       <?php echo $v['value']; ?>
+               </p>
+               <select name="fdata[into][<?php echo $k; ?>]">
+                       <option value="">None</option>
+                       <?php echo toolMethod_GetTargetSelection($TemplateData['saveToSelection'],$k); ?>
+               </select>
+       </div>
+
+       <?php
+               }
+       }
+       ?>
+
+       <div class="field-row-stacked">
+               <input value="Save" type="submit" name="submitFormSave" />
+       </div>
+
+</form>
+<?php } ?>
diff --git a/webclient/view/98/tool/tool-musicbrainz.html b/webclient/view/98/tool/tool-musicbrainz.html
new file mode 100644 (file)
index 0000000..6d7b679
--- /dev/null
@@ -0,0 +1,66 @@
+<p>
+       <b>Limitations</b><br />
+       Data will be overwritten; No wildcardsearch or partial words.
+</p>
+
+<form class="maxSizeForm" method="post" enctype="multipart/form-data">
+       <div class="field-row-stacked">
+               <label for="artist">Artist</label>
+               <input id="artist" type="text" autocomplete="off"
+                       name="fdata[artist]"
+                       value="<?php echo Summoner::ifset($TemplateData['editEntry'], 'artist'); ?>"
+               >
+       </div>
+       <div class="field-row-stacked">
+               <label for="album">Album/Title</label>
+               <input class="uk-input" id="album" type="text" autocomplete="off"
+                      name="fdata[album]"
+                      value="<?php echo Summoner::ifset($TemplateData['editEntry'], 'title'); ?>"
+               >
+       </div>
+       <div class="field-row-stacked">
+               <input value="Search" type="submit" name="submitFormSearch" />
+       </div>
+</form>
+
+<?php if(!empty($TemplateData['releases'])) { ?>
+<form class="maxSizeForm" method="post" enctype="multipart/form-data">
+       <div class="field-row-stacked">
+               <?php foreach($TemplateData['releases'] as $k=>$v) { ?>
+
+               <input id="<?php echo $k; ?>" class="uk-radio" type="radio" name="fdata[rselect]" value="<?php echo $k; ?>">
+               <label for="<?php echo $k; ?>"><?php echo $v; ?></label>
+
+               <?php } ?>
+       </div>
+
+       <div class="field-row-stacked">
+               <input value="Select" type="submit" name="submitFormReleaseSelect">
+       </div>
+</form>
+<?php } ?>
+
+<?php if(!empty($TemplateData['release'])) { ?>
+<a href="https://musicbrainz.org/release/<?php echo $TemplateData['release']['id']; ?>" target=_blank>Musicbrainz release page</a>
+<form class="maxSizeForm" method="post" enctype="multipart/form-data">
+
+       <?php foreach($TemplateData['release'] as $k=>$v) { ?>
+       <input name="fdata[from][<?php echo $k; ?>]" type="hidden" value="<?php echo $v; ?>"  />
+       <div class="field-row-stacked">
+               <p>
+                       <b><?php echo $k; ?></b><br />
+                       <?php echo nl2br($v); ?>
+               </p>
+               <select name="fdata[into][<?php echo $k; ?>]">
+                       <option value="">None</option>
+                       <?php echo toolMethod_GetTargetSelection($TemplateData['saveToSelection'],$k); ?>
+               </select>
+       </div>
+
+       <?php } ?>
+
+       <div class="field-row-stacked">
+               <input value="Save" type="submit" name="submitFormSave">
+       </div>
+</form>
+<?php } ?>
diff --git a/webclient/view/98/tool/tool.html b/webclient/view/98/tool/tool.html
new file mode 100644 (file)
index 0000000..6a2fdf5
--- /dev/null
@@ -0,0 +1,8 @@
+<h3 >Using <?php echo $TemplateData['tool']['name']; ?> with collection: <?php echo $TemplateData['collection']['name']; ?></h3>
+<?php if(!empty($TemplateData['editEntry'])) { ?>
+<p>
+       <a href="index.php?p=manageentry&collection=<?php echo $TemplateData['collection']['id']; ?>&id=<?php echo $TemplateData['editEntry']['id']; ?>"><?php echo Summoner::ifset($TemplateData['editEntry'], 'title'); ?></a>
+</p>
+<?php } ?>
+
+<?php if(!empty($TemplateData['tool']['viewFile'])) { require_once $TemplateData['tool']['viewFile']; } ?>
index b8026a67d450a71c0b1a0c6ca5fa82bbdaa99984..71198eee27e1daf3d4747feb6490107d39686581 100644 (file)
@@ -102,3 +102,8 @@ h5 {
 .maxSizeForm {
     width: 500px;
 }
+
+.input-multiple-template {
+    display: inline-block;
+    margin-right: 5px;
+}