CommunityID/modules/users/views/scripts/manageusers/index.phtml

83 lines
3.5 KiB
PHTML
Raw Normal View History

2019-07-17 20:08:50 +00:00
<script>
YAHOO.util.Event.onDOMReady(function () {
COMMID.loader.insert(
["datasource", "datatable", "paginator", "json", "connection", "dragdrop"],
function() {COMMID.usersList.init('all')}
);
});
</script>
2019-07-17 20:16:19 +00:00
<div class="links_topleft">
<div>
<input type="text" id="search" name="search" value="<?php echo $this->translate('Enter search string') ?>" onclick="(function () {COMMID.usersList.clickOnSearch()})()" />
<input type="button" id="goSearch" value="<?php echo $this->translate('Go') ?>" />
<input type="button" id="clearSearch" value="<?php echo $this->translate('Clear') ?>" />
</div>
<a href="#" id="links_topleft_all" onclick="COMMID.usersList.init('all'); return false;">
<?php echo $this->translate('All') ?>
2019-07-17 20:08:50 +00:00
</a>
2019-07-17 20:16:19 +00:00
| <a href="#" id="links_topleft_confirmed" onclick="COMMID.usersList.init('confirmed'); return false;">
<?php echo $this->translate('Confirmed') ?>
2019-07-17 20:08:50 +00:00
</a>
2019-07-17 20:16:19 +00:00
| <a href="#" id="links_topleft_unconfirmed" onclick="COMMID.usersList.init('unconfirmed'); return false;">
<?php echo $this->translate('Unconfirmed') ?>
2019-07-17 20:08:50 +00:00
</a>
</div>
<div id="paging"></div>
<div id="dt"></div>
2019-07-17 20:16:19 +00:00
<?php if ($this->user->role == Users_Model_User::ROLE_ADMIN): ?>
2019-07-17 20:08:50 +00:00
<div style="margin-top:10px">
2019-07-17 20:16:19 +00:00
<?php echo $this->translate('Total users:') ?> <span id="totalUsers"></span><br />
<?php echo $this->translate('Total confirmed users:') ?> <span id="totalConfirmedUsers"></span><br />
<?php echo $this->translate('Total unconfirmed users:') ?> <span id="totalUnconfirmedUsers"></span><br />
2019-07-17 20:08:50 +00:00
</div>
<div style="margin-top:10px">
2019-07-17 20:16:19 +00:00
<input type="button" id="addUser" value="<?php echo $this->translate('Add User') ?>" onclick="location.href='<?= $this->base ?>/users/profile?userid=0'" />
2019-07-17 20:08:50 +00:00
<span id="deleteUnconfirmedSpan">
2019-07-17 20:16:19 +00:00
<input type="button" id="deleteUnconfirmed" value="<?php echo $this->translate('Delete Unconfirmed Users') ?>" />
</span>
<span id="sendReminderSpan">
<input type="button" id="sendReminder" value="<?php echo $this->translate('Send Reminder') ?>" />
2019-07-17 20:08:50 +00:00
</span>
<script type="text/javascript">
new YAHOO.widget.Button(
"addUser",
{
type : "push",
onclick : {fn: function() {
2019-07-17 20:16:19 +00:00
location.href='<?php echo $this->base ?>/users/profile?userid=0'
2019-07-17 20:08:50 +00:00
}
}
}
);
new YAHOO.widget.Button(
"deleteUnconfirmed",
{
type : "push",
onclick : {fn: function() {COMMID.usersList.deleteUnconfirmed()}}
}
);
2019-07-17 20:16:19 +00:00
new YAHOO.widget.Button(
"sendReminder",
{
type : "push",
onclick : {fn: function() {COMMID.usersList.sendReminder()}}
}
);
new YAHOO.widget.Button(
"goSearch",
{
type : "push",
onclick : {fn: function() {COMMID.usersList.submitSearch()}}
}
);
new YAHOO.widget.Button(
"clearSearch",
{
type : "push",
onclick : {fn: function() {COMMID.usersList.clearSearch()}}
}
);
2019-07-17 20:08:50 +00:00
</script>
</div>
2019-07-17 20:16:19 +00:00
<?php endif ?>