summaryrefslogtreecommitdiffstats
path: root/examples/setting.modal.view.php
diff options
context:
space:
mode:
authorMalf Furious <m@lfurio.us>2018-09-16 22:25:22 -0400
committerMalf Furious <m@lfurio.us>2018-09-16 22:25:22 -0400
commit9830d73b6819c4930bd96cc657b42aa3a10d8d66 (patch)
tree7dbca07c6b4efa21fe5f1955e475c4d4d0c21f1b /examples/setting.modal.view.php
parent964560d85d4b98dd503184542f71c5f6880e72ac (diff)
downloadscrott-9830d73b6819c4930bd96cc657b42aa3a10d8d66.tar.gz
scrott-9830d73b6819c4930bd96cc657b42aa3a10d8d66.zip
Remove old content
Diffstat (limited to '')
-rw-r--r--examples/setting.modal.view.php130
1 files changed, 1 insertions, 129 deletions
diff --git a/examples/setting.modal.view.php b/examples/setting.modal.view.php
index 2217805..029b58b 100644
--- a/examples/setting.modal.view.php
+++ b/examples/setting.modal.view.php
@@ -1,147 +1,24 @@
-<?php
-
-/*
- * SCROTT Copyright (C) 2016 Malf Furious
- *
- * Scrott is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published
- * by the Free Software Foundation, either version 3 of the License,
- * or (at your option) any later version.
- *
- * Scrott is distributed in the hope that it will be useful, but
- * WITHOUT ANY WARRANTY; even the implied warranty of MERCHANTABILITY
- * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
- * License for more details.
- */
-
-?>
-
-<div id="settingModal" class="modal fade" tabindex="-1" role="dialog">
- <div class="modal-dialog" role="document">
- <div class="modal-content">
- <div class="modal-header">
-
- <button type="button" class="close" data-dismiss="modal">
- <span aria-hidden="true">&times;</span>
- </button>
-
- <h4 class="modal-title"><span class="glyphicon glyphicon-cog"></span> Settings</h4>
-
- </div>
-
- <div class="modal-body">
- <ul class="nav nav-tabs" role="tablist">
<?php if ($mod->common_settingShowTab['group']) { ?>
<li class="<?=$mod->getSettingModalTabActiveClass()?>"><a href="#settGroupTab" aria-controls="settGroupTab" data-toggle="tab">
<span class="glyphicon glyphicon-th"></span> <?=$mod->group->name?>
</a></li>
<?php } ?>
- <li class="<?=$mod->getSettingModalTabActiveClass()?>"><a href="#settUserTab" aria-controls="settUserTab" data-toggle="tab">
- <span class="glyphicon glyphicon-user"></span> <?=$mod->getCurrentUser()->getDisplayName()?>
- </a></li>
-
<?php if ($mod->getCurrentUser()->admin == 1) { ?>
<li><a href="#settAdminTab" aria-controls="settAdminTab" data-toggle="tab"><span class="glyphicon glyphicon-sunglasses"></span> Admin</a></li>
<li><a href="#settUsersTab" aria-controls="settUsersTab" data-toggle="tab"><span class="glyphicon glyphicon-th"></span> All Users</a></li>
<?php } ?>
- </ul>
- <div class="tab-content">
+
<?php if ($mod->common_settingShowTab['group']) { ?>
<?php include "view/common/group.setting.modal.view.php"; ?>
<?php } ?>
- <div class="tab-pane fade <?=$mod->getSettingModalTabDispClasses()?>" id="settUserTab">
- <p>&nbsp;</p>
-
- <form method="post" action="<?=$mod->ap()?>" enctype="multipart/form-data">
- <input type="hidden" name="input[action]" value="common-setting-user" />
-
- <div class="row">
- <div class="col-md-8">
- <?php if ($mod->getCurrentUser()->admin == 1) { ?>
- <p class="pull-right"><span class="glyphicon glyphicon-sunglasses"></span> <?=$mod->getCurrentUser()->getDisplayName()?> is a Scrott Administrator</p>
- <?php } ?>
-
- <div class="form-group">
- <label>Username</label>
- <input type="text" class="form-control" value="<?=$mod->getCurrentUser()->name?>" disabled />
- </div>
-
- <div class="checkbox">
- <label data-toggle="collapse" data-target="#inputUserPasswdCollapse">
- <input type="checkbox" name="input[setPasswd]" value="1" /> Change Password
- </label>
- </div>
- </div>
-
- <div class="col-md-4 text-center">
- <img src="<?=$mod->getCurrentUser()->getHeadImage()?>" alt="<?=$mod->getCurrentUser()->getDisplayName()?>" class="img-circle" height="100" />
- <br />
- <br />
- <button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#inputUserImageCollapse">
- <span class="glyphicon glyphicon-camera"></span> Upload new image
- </button>
- <br />
- <button type="submit" name="input[rmImage]" class="btn btn-danger btn-xs" onclick="return assertConfirm()">
- <span class="glyphicon glyphicon-remove"></span> Remove image
- </button>
- </div>
- </div>
-
- <div class="collapse" id="inputUserImageCollapse">
- <div class="form-group">
- <label>User Image</label>
- <input type="file" name="attachment" />
- </div>
- </div>
-
- <div class="collapse" id="inputUserPasswdCollapse">
- <div class="form-group">
- <label>Current Password</label>
- <input type="password" name="input[curPasswd]" class="form-control" />
- </div>
-
- <div class="form-group">
- <label>New Password</label>
- <input type="password" name="input[newPasswd]" class="form-control" />
- </div>
-
- <div class="form-group">
- <label>Confirm Password</label>
- <input type="password" name="input[confPasswd]" class="form-control" />
- </div>
- </div>
-
- <div class="form-group">
- <label>Alias</label>
- <input type="text" name="input[alias]" class="form-control" value="<?=$mod->getCurrentUser()->alias?>" maxlength="50" />
- </div>
-
- <div class="form-group">
- <label>Email</label>
- <input type="text" name="input[email]" class="form-control" value="<?=$mod->getCurrentUser()->email?>" maxlength="50" />
- </div>
- <?php if ($mod->getCurrentUser()->email != "" && $mod->getCurrentUser()->emailConf == 0) { ?>
- <div class="form-group has-warning">
- <label class="control-label">Email Confirmation Key</label>
- <input type="text" name="input[emailConfKey]" class="form-control" />
- <span class="help-block">You have not yet confirmed ownership of your saved email address</span>
- </div>
- <?php } ?>
- <button type="submit" class="btn btn-success pull-right">Save</button>
- </form>
- <p>&nbsp;</p>
- <p>&nbsp;</p>
- <a href="<?=$mod->ar()?>/deleteaccount" class="btn btn-danger btn-xs pull-right"><span class="glyphicon glyphicon-trash"></span> Delete Account</a>
- <p>&nbsp;</p>
- </div>
<?php if ($mod->getCurrentUser()->admin == 1) { ?>
<div class="tab-pane fade" id="settAdminTab">
@@ -339,8 +216,3 @@
</div>
</div>
<?php } ?>
- </div>
- </div>
- </div>
- </div>
-</div>