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
--- /dev/null
+<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>
--- /dev/null
+<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 } ?>
--- /dev/null
+<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 } ?>
--- /dev/null
+<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 } ?>
--- /dev/null
+<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']; } ?>
.maxSizeForm {
width: 500px;
}
+
+.input-multiple-template {
+ display: inline-block;
+ margin-right: 5px;
+}