* sort by filter for collection display
* responsive and breakpoints
* tag management. Edit, update and unused ones.
+* imdb collector. Number storage -> runtime
+* clickable image in card view
* A Webserver (tested on Apache 2.4)
-* PHP 7+ with mysqli, mbstring
+* PHP 7+ with mysqli, mbstring, curl
* MySQL 8+ / MariaDB 10.2
* At least 20MB storage WITHOUT images
* @return mixed
*/
private function _saveField_number($data, $queryData) {
- $queryData['init'][] = "`".$data['identifier']."` = ".$this->_DB->real_escape_string($data['valueToSave'])."";
+ // make sure there is something (int) to save
+ if(empty($data['valueToSave'])) {
+ $data['valueToSave'] = 0;
+ }
+ $queryData['init'][] = "`".$data['identifier']."` = '".$this->_DB->real_escape_string($data['valueToSave'])."'";
return $queryData;
}
if(!empty($TemplateData['editData'])) {
$_entry = $TemplateData['editData']['id'];
?>
- <h3 class="uk-h3">Update an entry in: <?php echo $TemplateData['loadedCollection']['name']; ?></h3>
+ <h3 class="uk-h3">Update an entry in: <a href="index.php?p=collections&collection=<?php echo $TemplateData['loadedCollection']['id']; ?>"><?php echo $TemplateData['loadedCollection']['name']; ?></a></h3>
<p><a href="index.php?p=entry&collection=<?php echo $TemplateData['loadedCollection']['id']; ?>&id=<?php echo $_entry; ?>">View entry</a></p>
<?php } else { ?>
- <h3 class="uk-h3">Add an entry to: <?php echo $TemplateData['loadedCollection']['name']; ?></h3>
+ <h3 class="uk-h3">Add an entry to: <a href="index.php?p=collections&collection=<?php echo $TemplateData['loadedCollection']['id']; ?>"><?php echo $TemplateData['loadedCollection']['name']; ?></a></h3>
<?php } ?>
<div class="uk-grid-small uk-grid-row-small" uk-grid>
<div class="uk-width-2-3">