summaryrefslogtreecommitdiffstats
path: root/template/admin/html/user
diff options
context:
space:
mode:
authorThomas Lange <code@nerdmind.de>2017-02-24 21:27:59 +0100
committerThomas Lange <code@nerdmind.de>2017-02-24 21:27:59 +0100
commit52b077a48c743ba4d08ac00520a0bf1ef6deef5f (patch)
treeb4205c194167e0e03e273957cdd0aab3be9fdf01 /template/admin/html/user
downloadblog-52b077a48c743ba4d08ac00520a0bf1ef6deef5f.tar.gz
blog-52b077a48c743ba4d08ac00520a0bf1ef6deef5f.tar.xz
blog-52b077a48c743ba4d08ac00520a0bf1ef6deef5f.zip
Initial commit.v1.0
Diffstat (limited to 'template/admin/html/user')
-rw-r--r--template/admin/html/user/delete.php6
-rw-r--r--template/admin/html/user/form.php97
-rw-r--r--template/admin/html/user/index.php10
-rw-r--r--template/admin/html/user/insert.php4
-rw-r--r--template/admin/html/user/item.php15
-rw-r--r--template/admin/html/user/update.php4
6 files changed, 136 insertions, 0 deletions
diff --git a/template/admin/html/user/delete.php b/template/admin/html/user/delete.php
new file mode 100644
index 0000000..dac4185
--- /dev/null
+++ b/template/admin/html/user/delete.php
@@ -0,0 +1,6 @@
+<h1><i class="fa fa-trash-o"></i><?=$Language->text('delete_user')?></h1>
+<p><?=$Language->template('delete_user_desc')?></p>
+
+<p class="red"><?=$Language->template('delete_user_warning')?></p>
+
+<?=$HTML?> \ No newline at end of file
diff --git a/template/admin/html/user/form.php b/template/admin/html/user/form.php
new file mode 100644
index 0000000..c284187
--- /dev/null
+++ b/template/admin/html/user/form.php
@@ -0,0 +1,97 @@
+<?php if(isset($FORM['INFO'])): ?>
+ <?php foreach($FORM['INFO'] as $message): ?>
+ <div class="red"><?=$message?></div>
+ <?php endforeach; ?>
+<?php endif; ?>
+
+<form action="" method="POST">
+ <input type="hidden" name="token" value="<?=$FORM['TOKEN']?>" />
+
+<?php if($FORM['TYPE'] !== 'DELETE'): ?>
+ <section class="flex flex-responsive">
+ <section>
+ <div class="form-icon-flex"><i class="fa fa-database"></i></div>
+ <div class="form-label-flex"><label for="L_ID">ID</label></div>
+ <div class="form-field-flex"><input<?=($FORM['TYPE'] === 'UPDATE') ? ' disabled="disabled"' : '';?> id="L_ID" name="id" placeholder="[AUTO_INCREMENT]" value="<?=escapeHTML($FORM['DATA']['ID'])?>" /></div>
+ </section>
+ <section>
+ <div class="form-icon-flex"><i class="fa fa-key"></i></div>
+ <div class="form-label-flex"><label for="L_PASSWORD"><?=$Language->template('LABEL_PASSWORD')?></label></div>
+ <div class="form-field-flex"><input id="L_PASSWORD" name="password" placeholder="[NO CHANGE]" value="<?=escapeHTML($FORM['DATA']['PASSWORD'])?>" type="password" /></div>
+ </section>
+ </section>
+ <section class="flex flex-responsive">
+ <section>
+ <div class="form-icon-flex"><i class="fa fa-user"></i></div>
+ <div class="form-label-flex"><label for="L_FULLNAME"><?=$Language->template('LABEL_FULLNAME')?></label></div>
+ <div class="form-field-flex"><input id="L_FULLNAME" name="fullname" value="<?=escapeHTML($FORM['DATA']['FULLNAME'])?>" /></div>
+ </section>
+ <section>
+ <div class="form-icon-flex"><i class="fa fa-envelope-o"></i></div>
+ <div class="form-label-flex"><label for="L_MAILADDR"><?=$Language->template('LABEL_MAILADDR')?></label></div>
+ <div class="form-field-flex"><input id="L_MAILADDR" name="mailaddr" value="<?=escapeHTML($FORM['DATA']['MAILADDR'])?>" /></div>
+ </section>
+ </section>
+ <section class="flex flex-responsive">
+ <section>
+ <div class="form-icon-flex"><i class="fa fa-user-secret"></i></div>
+ <div class="form-label-flex"><label for="L_USERNAME"><?=$Language->template('LABEL_USERNAME')?></label></div>
+ <div class="form-field-flex"><input id="L_USERNAME" name="username" value="<?=escapeHTML($FORM['DATA']['USERNAME'])?>" /></div>
+ </section>
+ <section>
+ <div class="form-icon-flex"><i class="fa fa-link"></i></div>
+ <div class="form-label-flex"><label for="L_SLUG"><?=$Language->template('LABEL_SLUG')?></label></div>
+ <div class="form-field-flex"><input id="L_SLUG" name="slug" value="<?=escapeHTML($FORM['DATA']['SLUG'])?>" /></div>
+ </section>
+ </section>
+ <section class="flex flex-responsive">
+ <section>
+ <div class="form-icon-flex"><i class="fa fa-clock-o"></i></div>
+ <div class="form-label-flex"><label for="L_TIME_INSERT"><?=$Language->template('LABEL_INSERT')?></label></div>
+ <div class="form-field-flex"><input id="L_TIME_INSERT" name="time_insert" placeholder="[YYYY-MM-DD HH:II:SS]" value="<?=escapeHTML($FORM['DATA']['TIME_INSERT'])?>" /></div>
+ </section>
+ <section>
+ <div class="form-icon-flex"><i class="fa fa-clock-o"></i></div>
+ <div class="form-label-flex"><label for="L_TIME_UPDATE"><?=$Language->template('LABEL_UPDATE')?></label></div>
+ <div class="form-field-flex"><input id="L_TIME_UPDATE" name="time_update" placeholder="<?=escapeHTML($FORM['DATA']['TIME_UPDATE'] ? $FORM['DATA']['TIME_UPDATE'] : '[CURRENT_TIMESTAMP]')?>" value="" /></div>
+ </section>
+ </section>
+ <section class="flex flex-padding">
+ <textarea id="content-editor" name="body" placeholder="[…]"><?=escapeHTML($FORM['DATA']['BODY'])?></textarea>
+ </section>
+ <section class="flex flex-padding background">
+ <ul class="button-list emoticons">
+ <?php foreach(getEmoticons() as $emoticon => $data):?>
+ <li onmousedown="emoticonReplace('<?=$emoticon?>')" title="<?=$data[1]?>"><?=$data[0]?></li>
+ <?php endforeach; ?>
+ </ul>
+ </section>
+ <section class="flex flex-padding background">
+ <ul class="button-list markdown">
+ <li onmousedown="markdownReplace('bold');" class="fa fa-bold" title="Bold"></li>
+ <li onmousedown="markdownReplace('italic');" class="fa fa-italic" title="Italic"></li>
+ <li onmousedown="markdownReplace('header');" class="fa fa-header" title="Heading"></li>
+ <li onmousedown="markdownReplace('link');" class="fa fa-link" title="Link"></li>
+ <li onmousedown="markdownReplace('image');" class="fa fa-picture-o" title="Image"></li>
+ <li onmousedown="markdownReplace('code');" class="fa fa-code" title="Code"></li>
+ <li onmousedown="markdownReplace('quote');" class="fa fa-quote-right" title="Quote"></li>
+ <li onmousedown="markdownReplace('list_ul');" class="fa fa-list-ul" title="List [unordered]"></li>
+ <li onmousedown="markdownReplace('list_ol');" class="fa fa-list-ol" title="List [ordered]"></li>
+ </ul>
+ </section>
+<?php else: ?>
+ <section class="flex flex-padding background flex-direction-column">
+ <?=$HTML?>
+ </section>
+<?php endif; ?>
+
+ <section class="flex flex-padding background">
+ <?php if($FORM['TYPE'] === 'INSERT'): ?>
+ <input type="submit" name="insert" value="<?=$Language->text('insert')?>" />
+ <?php elseif($FORM['TYPE'] === 'UPDATE'): ?>
+ <input type="submit" name="update" value="<?=$Language->text('update')?>" />
+ <?php elseif($FORM['TYPE'] === 'DELETE'): ?>
+ <input type="submit" name="delete" value="<?=$Language->text('delete')?>" onclick="return confirm('<?=$Language->template('sure')?>')" />
+ <?php endif; ?>
+ </section>
+</form> \ No newline at end of file
diff --git a/template/admin/html/user/index.php b/template/admin/html/user/index.php
new file mode 100644
index 0000000..6b23536
--- /dev/null
+++ b/template/admin/html/user/index.php
@@ -0,0 +1,10 @@
+<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->template('overview_user_desc')?></p>
+
+<ul class="item-list">
+ <?php foreach($LIST['USERS'] as $user): ?>
+ <?php echo $user; ?>
+ <?php endforeach; ?>
+</ul>
+
+<?=$PAGINATION['HTML']?> \ No newline at end of file
diff --git a/template/admin/html/user/insert.php b/template/admin/html/user/insert.php
new file mode 100644
index 0000000..54598ee
--- /dev/null
+++ b/template/admin/html/user/insert.php
@@ -0,0 +1,4 @@
+<h1><i class="fa fa-user"></i><?=$Language->text('insert_user')?></h1>
+<p><?=$Language->template('insert_user_desc')?></p>
+
+<?=$HTML?> \ No newline at end of file
diff --git a/template/admin/html/user/item.php b/template/admin/html/user/item.php
new file mode 100644
index 0000000..df8e5b1
--- /dev/null
+++ b/template/admin/html/user/item.php
@@ -0,0 +1,15 @@
+<li class="content">
+ <header>
+ <h2><i class="fa fa-user"></i><?=escapeHTML($USER['ATTR']['FULLNAME'])?><span>#<?=$USER['ID']?></span></h2>
+ </header>
+ <article>
+ <p><?=excerpt($USER['BODY']['HTML'])?></p>
+ </article>
+ <footer>
+ <ul>
+ <li><a href="<?=$USER['URL']?>" target="_blank" title="<?=$Language->text('select_user')?>"><i class="fa fa-external-link"></i></a></li>
+ <li><a href="<?=Application::getAdminURL("user/update.php?id={$USER['ID']}")?>" title="<?=$Language->text('update_user')?>"><i class="fa fa-pencil-square-o"></i></a></li>
+ <li><a href="<?=Application::getAdminURL("user/delete.php?id={$USER['ID']}")?>" title="<?=$Language->text('delete_user')?>"><i class="fa fa-trash-o"></i></a></li>
+ </ul>
+ </footer>
+</li> \ No newline at end of file
diff --git a/template/admin/html/user/update.php b/template/admin/html/user/update.php
new file mode 100644
index 0000000..6f7ddae
--- /dev/null
+++ b/template/admin/html/user/update.php
@@ -0,0 +1,4 @@
+<h1><i class="fa fa-user"></i><?=$Language->text('update_user')?></h1>
+<p><?=$Language->template('update_user_desc')?></p>
+
+<?=$HTML?> \ No newline at end of file