source: branches/1.2/content/plugins/user_manager/templates/user_man_add.php @ 1332

Revision 1332, 5.8 KB checked in by nick_ramsay, 3 years ago (diff)

[Branch 1.2] User Manager 0.9 - forgotten user_man_add.php template.

Line 
1<?php
2/**
3 * Plugin name: User Manager
4 * Template name: plugins/user_manager/user_man_add.php
5 *
6 * PHP version 5
7 *
8 * LICENSE: Hotaru CMS is free software: you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License as
10 * published by the Free Software Foundation, either version 3 of
11 * the License, or (at your option) any later version.
12 *
13 * Hotaru CMS is distributed in the hope that it will be useful, but WITHOUT
14 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
15 * FITNESS FOR A PARTICULAR PURPOSE.
16 *
17 * You should have received a copy of the GNU General Public License along
18 * with Hotaru CMS. If not, see http://www.gnu.org/licenses/.
19 *
20 * @category  Content Management System
21 * @package   HotaruCMS
22 * @author    Nick Ramsay <admin@hotarucms.org>
23 * @copyright Copyright (c) 2009, Hotaru CMS
24 * @license   http://www.gnu.org/copyleft/gpl.html GNU General Public License
25 * @link      http://www.hotarucms.org/
26 */
27
28?>
29
30<h2><?php echo $h->lang['user_man_add']; ?></h2>
31
32<?php echo $h->lang["user_man_add_desc"]; ?>
33
34<p id="user_man_navigation">
35    <a href='<?php echo BASEURL; ?>admin_index.php?plugin=user_manager&page=plugin_settings'><?php echo $h->lang["user_man"]; ?></a>&nbsp;&nbsp;
36    <?php echo "<a href='" . BASEURL . "admin_index.php?plugin=user_manager&page=plugin_settings&subpage=default_perms'>" . $h->lang["user_man_default_perms"] . "</a>"; ?>&nbsp;&nbsp;
37    <?php echo "<a href='" . BASEURL . "admin_index.php?plugin=user_manager&page=plugin_settings&subpage=default_settings'>" . $h->lang["user_man_default_settings"] . "</a>"; ?> &nbsp;&nbsp;
38    <b><u><?php echo $h->lang["user_man_add"]; ?></u></b>
39</p>
40
41<?php echo $h->showMessages(); ?>
42
43<div id="user_man_add_user">
44
45    <!-- REQUEST CREATE NEW USER -->
46    <form name='user_man_add_user' action='<?php echo BASEURL; ?>admin_index.php' method='post'>
47    <h3><?php echo $h->lang['user_man_add_new_user']; ?></h3>
48    <p><?php echo $h->lang["user_man_add_detail"]; ?></p>
49        <table class='user_man_add'>
50            <tr><td>
51                <?php if (!isset($h->vars['user_man_username_1'])) { $h->vars['user_man_username_1'] = ''; } ?>
52                <?php echo $h->lang["user_signin_register_username"]; ?>&nbsp; </td><td><input type='text' size=30 name='username' value='<?php echo $h->vars['user_man_username_1']; ?>' />
53                <br /><small><?php echo $h->lang["user_signin_register_username_error_short"]; ?></small>
54            </td></tr>
55           
56            <tr><td>
57                <?php if (!isset($h->vars['user_man_email'])) { $h->vars['user_man_email'] = ''; } ?>
58                <?php echo $h->lang["user_signin_register_email"]; ?>&nbsp; </td><td><input type='text' size=30 name='email' value='<?php echo $h->vars['user_man_email']; ?>' />
59            </td></tr>
60        </table>
61        <input type='hidden' name='plugin' value='user_manager' />
62        <input type='hidden' name='page' value='plugin_settings' />
63        <input type='hidden' name='subpage' value='add_user' />
64        <input type='hidden' name='submitted' value='new_user' />
65        <input type='hidden' name='csrf' value='<?php echo $h->csrfToken; ?>' />
66        <div style='text-align: right'><input class='submit' id='user_man_submit' type='submit' value='<?php echo  $h->lang['user_man_create_send']; ?>' /></div>
67    </form>
68   
69    <!-- SEND NEW PASSWORD -->
70    <form name='user_man_send_password' action='<?php echo BASEURL; ?>admin_index.php' method='post'>
71        <h3><?php echo $h->lang['user_man_send_new_password']; ?></h3>
72        <p><?php echo $h->lang["user_man_send_password_detail"]; ?></p>
73        <table class='user_man_send_password'>
74            <tr><td>
75                <?php if (!isset($h->vars['user_man_username_2'])) { $h->vars['user_man_username_2'] = ''; } ?>
76                <?php echo $h->lang["user_signin_register_username"]; ?>&nbsp; </td><td><input type='text' size=30 name='username' value='<?php echo $h->vars['user_man_username_2']; ?>' />
77            </td></tr>
78        </table>
79        <input type='hidden' name='plugin' value='user_manager' />
80        <input type='hidden' name='page' value='plugin_settings' />
81        <input type='hidden' name='subpage' value='add_user' />
82        <input type='hidden' name='submitted' value='new_password' />
83        <input type='hidden' name='csrf' value='<?php echo $h->csrfToken; ?>' />
84        <div style='text-align: right'><input class='submit' id='user_man_submit' type='submit' value='<?php echo  $h->lang['user_man_send_password']; ?>' /></div>
85    </form>
86   
87    <!-- REQUEST EMAIL VAIDATON -->
88    <form name='user_man_send_email_validation' action='<?php echo BASEURL; ?>admin_index.php' method='post'>
89        <h3><?php echo $h->lang['user_man_send_email_validation']; ?></h3>
90        <p><?php echo $h->lang["user_man_send_email_validation_detail"]; ?></p>
91        <table class='user_man_email_valid'>
92            <tr><td>
93                <?php if (!isset($h->vars['user_man_username_3'])) { $h->vars['user_man_username_3'] = ''; } ?>
94                <?php echo $h->lang["user_signin_register_username"]; ?>&nbsp; </td><td><input type='text' size=30 name='username' value='<?php echo $h->vars['user_man_username_3']; ?>' />
95            </td></tr>
96        </table>
97        <input type='hidden' name='plugin' value='user_manager' />
98        <input type='hidden' name='page' value='plugin_settings' />
99        <input type='hidden' name='subpage' value='add_user' />
100        <input type='hidden' name='submitted' value='email_validation' />
101        <input type='hidden' name='csrf' value='<?php echo $h->csrfToken; ?>' />
102        <div style='text-align: right'><input class='submit' id='user_man_submit' type='submit' value='<?php echo  $h->lang['user_man_request_valid_email']; ?>' /></div>
103    </form>
104</div>
Note: See TracBrowser for help on using the repository browser.