summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Halkiadakis <gchalkiadakis@sklavenitis.co.gr>2023-03-13 00:46:14 +0200
committerGeorge Halkiadakis <gchalkiadakis@sklavenitis.co.gr>2023-03-13 00:46:14 +0200
commit33266244e8c75c29f31dd5dce756e55fb10a0b9b (patch)
tree15d4de966a191b5d1b1b9e375eba5ae4f57044b6
parent7aa203150fc1a2ec79c681c13f0d486d531746eb (diff)
downloadclassroom-33266244e8c75c29f31dd5dce756e55fb10a0b9b.tar.gz
classroom-33266244e8c75c29f31dd5dce756e55fb10a0b9b.tar.bz2
classroom-33266244e8c75c29f31dd5dce756e55fb10a0b9b.zip
hot-fix on validate namespace
-rw-r--r--html/app/models/user/Validate_model.php2
-rw-r--r--html/app/views/products_list.php47
2 files changed, 1 insertions, 48 deletions
diff --git a/html/app/models/user/Validate_model.php b/html/app/models/user/Validate_model.php
index ec60d72..16ad70a 100644
--- a/html/app/models/user/Validate_model.php
+++ b/html/app/models/user/Validate_model.php
@@ -1,6 +1,6 @@
<?php
-namespace app\models;
+namespace app\models\user;
use \Registry;
diff --git a/html/app/views/products_list.php b/html/app/views/products_list.php
deleted file mode 100644
index 1d9cf38..0000000
--- a/html/app/views/products_list.php
+++ /dev/null
@@ -1,47 +0,0 @@
-<style>
- body {
- max-width: 960px; width: 100%; margin: 0 auto;
- font-family: Ubuntu, Calibri, Helevetica, sans-serif;
- padding: 2em 1em;
- }
- td {
- vertical-align: top;
- padding: 2px; margin: .5em;
- font-size: .82em; text-align: right; color: #666;
- }
-
- h3 { color: #924; text-align: center; }
-
- .-edit {
- text-align: left; font-size: 1em;
- color: #357; background: #f6f6f6;
- padding: .5em;
- }
- td span { font-size: .8em; color: #9249; }
-
- [contenteditable='true']:focus { border-radius: 3px; }
- [contenteditable='true']:focus {
- outline: none;
- color: #924;
- border: 2px solid #9249; border-top: 4px solid #9249;
- }
-
-</style>
-
-<h3>— products —</h3>
-
-<?php foreach( $products as $product) : ?>
-
- <table>
- <?php foreach ($product as $key => $val) : ?>
-
- <tr>
- <td><?= $key ?><br/><span>int(11) NOT NULL</span></td>
- <td class='-edit' id='<?=$key .'_'. $product['ID']?>' contenteditable="true"><?=$val?></td>
- </tr>
-
- <?php endforeach ?>
- </table>
- <hr />
-
-<?php endforeach ?>