diff --git a/.vscode/launch.json b/.vscode/launch.json index 9dc6b4d..49de5b8 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -1,7 +1,4 @@ { - // Use IntelliSense to learn about possible attributes. - // Hover to view descriptions of existing attributes. - // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 "version": "0.2.0", "configurations": [ { diff --git a/application/CMSviews/admin/admin.php b/application/CMSviews/admin/admin.php new file mode 100644 index 0000000..e1b86a5 --- /dev/null +++ b/application/CMSviews/admin/admin.php @@ -0,0 +1,77 @@ +

All Articles

+ +
+ + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
Publication DateArticleCategorySubcategoryAuthorsActive
publicationDate)?> + title?> + + categoryId)) { + echo $results['category'][$article->categoryId]; + } + else { + echo "Без категории"; + } + ?> + + subcategoryId)){ + echo $results['subcategory'][$article->subcategoryId]; + } + ?> + + authors); + $counter = 0; + foreach ($article->authors as $key => $author) { + ?> + + + + + + active == 1) ? 'Active' : 'Not active'; + ?> +
+ +

article in total.

+ +

Add a New Article

diff --git a/application/CMSviews/admin/edit/article.php b/application/CMSviews/admin/edit/article.php new file mode 100644 index 0000000..61d2724 --- /dev/null +++ b/application/CMSviews/admin/edit/article.php @@ -0,0 +1,84 @@ +

+ +
+ + id): ?> + + + +
+ + + + +
+ + +
+
+ +id) { ?> +

+ Delete This Article + +

+ diff --git a/application/CMSviews/admin/edit/category.php b/application/CMSviews/admin/edit/category.php new file mode 100644 index 0000000..6dd8f01 --- /dev/null +++ b/application/CMSviews/admin/edit/category.php @@ -0,0 +1,39 @@ +

+ +
+ + id): ?> + + + + +
+ + + + +
+ + +
+
+ +id): ?> +

+ + Delete This Category + +

+ diff --git a/application/CMSviews/admin/edit/subcategory.php b/application/CMSviews/admin/edit/subcategory.php new file mode 100644 index 0000000..81dca87 --- /dev/null +++ b/application/CMSviews/admin/edit/subcategory.php @@ -0,0 +1,61 @@ + +

+ +
+ + id): ?> + + + + +
+ + + +
+ + +