diff options
author | Thomas Lange <code@nerdmind.de> | 2017-10-22 21:04:02 +0200 |
---|---|---|
committer | Thomas Lange <code@nerdmind.de> | 2017-10-22 21:04:02 +0200 |
commit | b886b447c939db888aee84224995da58540b4503 (patch) | |
tree | 6738b1c7979eaa049a247d749a881944777326b8 /template/admin/html | |
parent | c73c6acbf280c99fd4178577cc99a55a6e2e11cf (diff) | |
download | blog-b886b447c939db888aee84224995da58540b4503.tar.gz blog-b886b447c939db888aee84224995da58540b4503.tar.xz blog-b886b447c939db888aee84224995da58540b4503.zip |
Implemented: A full-text search functionality for posts and pages in the administration area. In addition, some markup within the "/*/index.php" files of the admin template was re-formatted.
Diffstat (limited to 'template/admin/html')
-rw-r--r-- | template/admin/html/home.php | 20 | ||||
-rw-r--r-- | template/admin/html/page/index.php | 5 | ||||
-rw-r--r-- | template/admin/html/page/search.php | 20 | ||||
-rw-r--r-- | template/admin/html/post/index.php | 5 | ||||
-rw-r--r-- | template/admin/html/post/search.php | 20 | ||||
-rw-r--r-- | template/admin/html/user/index.php | 5 |
6 files changed, 69 insertions, 6 deletions
diff --git a/template/admin/html/home.php b/template/admin/html/home.php index f8a45c5..7698035 100644 --- a/template/admin/html/home.php +++ b/template/admin/html/home.php @@ -2,7 +2,12 @@ <p><?=$Language->text('overview_dashboard_desc')?></p> <h2><i class="fa fa-newspaper-o"></i><?=$Language->text('last_post')?></h2> -<p><strong><?=$Language->text('posts')?>:</strong> <?=$COUNT['POST']?> | <a href="<?=Application::getAdminURL('post/')?>"><?=$Language->text('post_overview')?></a> | <a href="<?=Application::getAdminURL('post/insert.php')?>"><?=$Language->text('insert')?></a></p> +<p> + <strong><?=$Language->text('posts')?>:</strong> <?=$COUNT['POST']?> + | <a href="<?=Application::getAdminURL('post/')?>"><?=$Language->text('post_overview')?></a> + | <a href="<?=Application::getAdminURL('post/insert.php')?>"><?=$Language->text('insert')?></a> + | <a href="<?=Application::getAdminURL('post/search.php')?>"><?=$Language->text('search')?></a> +</p> <?php if(!empty($LAST['POST'])): ?> <div class="item-container post"> <?=$LAST['POST']?> @@ -12,7 +17,12 @@ <?php endif; ?> <h2><i class="fa fa-file-text-o"></i><?=$Language->text('last_page')?></h2> -<p><strong><?=$Language->text('pages')?>:</strong> <?=$COUNT['PAGE']?> | <a href="<?=Application::getAdminURL('page/')?>"><?=$Language->text('page_overview')?></a> | <a href="<?=Application::getAdminURL('page/insert.php')?>"><?=$Language->text('insert')?></a></p> +<p> + <strong><?=$Language->text('pages')?>:</strong> <?=$COUNT['PAGE']?> + | <a href="<?=Application::getAdminURL('page/')?>"><?=$Language->text('page_overview')?></a> + | <a href="<?=Application::getAdminURL('page/insert.php')?>"><?=$Language->text('insert')?></a> + | <a href="<?=Application::getAdminURL('page/search.php')?>"><?=$Language->text('search')?></a> +</p> <?php if(!empty($LAST['PAGE'])): ?> <div class="item-container page"> @@ -23,7 +33,11 @@ <?php endif; ?> <h2><i class="fa fa-user"></i><?=$Language->text('last_user')?></h2> -<p><strong><?=$Language->text('users')?>:</strong> <?=$COUNT['USER']?> | <a href="<?=Application::getAdminURL('user/')?>"><?=$Language->text('user_overview')?></a> | <a href="<?=Application::getAdminURL('user/insert.php')?>"><?=$Language->text('insert')?></a></p> +<p> + <strong><?=$Language->text('users')?>:</strong> <?=$COUNT['USER']?> + | <a href="<?=Application::getAdminURL('user/')?>"><?=$Language->text('user_overview')?></a> + | <a href="<?=Application::getAdminURL('user/insert.php')?>"><?=$Language->text('insert')?></a> +</p> <?php if(!empty($LAST['USER'])): ?> <div class="item-container user"> diff --git a/template/admin/html/page/index.php b/template/admin/html/page/index.php index dbd5144..1027996 100644 --- a/template/admin/html/page/index.php +++ b/template/admin/html/page/index.php @@ -1,4 +1,7 @@ -<h1><i class="fa fa-file-text-o"></i><?=$Language->text('page_overview')?><a class="brackets" href="<?=Application::getAdminURL("page/insert.php")?>"><?=$Language->text('insert')?></a></h1> +<h1> + <i class="fa fa-file-text-o"></i><?=$Language->text('page_overview')?> + <a class="brackets" href="<?=Application::getAdminURL("page/insert.php")?>"><?=$Language->text('insert')?></a> +</h1> <p><?=$Language->text('overview_page_desc')?></p> <div class="item-container page"> diff --git a/template/admin/html/page/search.php b/template/admin/html/page/search.php new file mode 100644 index 0000000..1a43bf7 --- /dev/null +++ b/template/admin/html/page/search.php @@ -0,0 +1,20 @@ +<h1> + <i class="fa fa-search"></i><?=$Language->text('title_page_search')?> + <a class="brackets" href="<?=Application::getAdminURL("page/insert.php")?>"><?=$Language->text('insert')?></a> +</h1> +<p><?=$Language->text('search_page_desc')?></p> + +<form id="search-form" method="GET"> + <div class="flex flex-padding background"> + <input id="search-text" type="search" name="q" placeholder="<?=$Language->text('placeholder_search')?>" value="<?=escapeHTML($QUERY)?>" /> + </div> + <div class="flex flex-padding background"> + <input id="update-button" type="submit" value="<?=$Language->text('search')?>" /> + </div> +</form> + +<div class="item-container post"> + <?php foreach($PAGES as $page): ?> + <?php echo $page; ?> + <?php endforeach; ?> +</div>
\ No newline at end of file diff --git a/template/admin/html/post/index.php b/template/admin/html/post/index.php index a78076e..1ae8471 100644 --- a/template/admin/html/post/index.php +++ b/template/admin/html/post/index.php @@ -1,4 +1,7 @@ -<h1><i class="fa fa-newspaper-o"></i><?=$Language->text('post_overview')?><a class="brackets" href="<?=Application::getAdminURL("post/insert.php")?>"><?=$Language->text('insert')?></a></h1> +<h1> + <i class="fa fa-newspaper-o"></i><?=$Language->text('post_overview')?> + <a class="brackets" href="<?=Application::getAdminURL("post/insert.php")?>"><?=$Language->text('insert')?></a> +</h1> <p><?=$Language->text('overview_post_desc')?></p> <div class="item-container post"> diff --git a/template/admin/html/post/search.php b/template/admin/html/post/search.php new file mode 100644 index 0000000..ab021b9 --- /dev/null +++ b/template/admin/html/post/search.php @@ -0,0 +1,20 @@ +<h1> + <i class="fa fa-search"></i><?=$Language->text('title_post_search')?> + <a class="brackets" href="<?=Application::getAdminURL("post/insert.php")?>"><?=$Language->text('insert')?></a> +</h1> +<p><?=$Language->text('search_post_desc')?></p> + +<form id="search-form" method="GET"> + <div class="flex flex-padding background"> + <input id="search-text" type="search" name="q" placeholder="<?=$Language->text('placeholder_search')?>" value="<?=escapeHTML($QUERY)?>" /> + </div> + <div class="flex flex-padding background"> + <input id="update-button" type="submit" value="<?=$Language->text('search')?>" /> + </div> +</form> + +<div class="item-container post"> + <?php foreach($POSTS as $post): ?> + <?php echo $post; ?> + <?php endforeach; ?> +</div>
\ No newline at end of file diff --git a/template/admin/html/user/index.php b/template/admin/html/user/index.php index b1b4463..e1e24ef 100644 --- a/template/admin/html/user/index.php +++ b/template/admin/html/user/index.php @@ -1,4 +1,7 @@ -<h1><i class="fa fa-user"></i><?=$Language->text('user_overview')?><a class="brackets" href="<?=Application::getAdminURL("user/insert.php")?>"><?=$Language->text('insert')?></a></h1> +<h1> + <i class="fa fa-user"></i><?=$Language->text('user_overview')?> + <a class="brackets" href="<?=Application::getAdminURL("user/insert.php")?>"><?=$Language->text('insert')?></a> +</h1> <p><?=$Language->text('overview_user_desc')?></p> <div class="item-container user"> |