diff options
author | Malf Furious <m@lfurio.us> | 2018-10-27 18:12:02 -0400 |
---|---|---|
committer | Malf Furious <m@lfurio.us> | 2018-10-27 18:12:02 -0400 |
commit | 6512655aee73d3d295daa4de0e4ef25c08cfec9e (patch) | |
tree | c3285276f6c53b6789e2f6dc82cb3b0fd17b38a4 /todo/setting.modal.view.php | |
parent | 41a5877e5986910344c5e51275bfa02cd341cd9d (diff) | |
download | scrott-6512655aee73d3d295daa4de0e4ef25c08cfec9e.tar.gz scrott-6512655aee73d3d295daa4de0e4ef25c08cfec9e.zip |
Rename examples/ directory
In preparation for the release, I'm renaming this directory since
'examples' is confusion and misleading. Really this directory just
holds some old code that needs re-integrated, so I name it 'todo'.
Signed-off-by: Malf Furious <m@lfurio.us>
Diffstat (limited to 'todo/setting.modal.view.php')
-rw-r--r-- | todo/setting.modal.view.php | 218 |
1 files changed, 218 insertions, 0 deletions
diff --git a/todo/setting.modal.view.php b/todo/setting.modal.view.php new file mode 100644 index 0000000..029b58b --- /dev/null +++ b/todo/setting.modal.view.php @@ -0,0 +1,218 @@ + <?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 } ?> + + <?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 } ?> + + + <?php if ($mod->common_settingShowTab['group']) { ?> + <?php include "view/common/group.setting.modal.view.php"; ?> + <?php } ?> + + + + + + + + <?php if ($mod->getCurrentUser()->admin == 1) { ?> + <div class="tab-pane fade" id="settAdminTab"> + <p> </p> + + <form method="post" action="<?=$mod->ap()?>"> + <input type="hidden" name="input[action]" value="common-setting-admin" /> + <div class="form-group"> + <label>HTTP(S)</label> + <div class="radio"> + <label> + <input type="radio" name="input[settSSL]" value="force" <?=$mod->common_settingAdminSettSSLChecked['force']?> <?=$mod->common_settingAdminSettSSLDisabled?> /> + Always Force SSL + </label> + </div> + + <div class="radio"> + <label> + <input type="radio" name="input[settSSL]" value="neither" <?=$mod->common_settingAdminSettSSLChecked['neither']?> <?=$mod->common_settingAdminSettSSLDisabled?> /> + Neither + </label> + </div> + + <div class="radio"> + <label> + <input type="radio" name="input[settSSL]" value="forbid" <?=$mod->common_settingAdminSettSSLChecked['forbid']?> <?=$mod->common_settingAdminSettSSLDisabled?> /> + Always Forbid SSL + </label> + </div> + </div> + + <label>Access</label> + <div class="checkbox"> + <label> + <input type="checkbox" name="input[allowPublicSignup]" value="1" <?=$mod->common_settingAdminAllowPublicSignupChecked?> /> Allow anyone to create an account + </label> + </div> + + <button type="submit" class="btn btn-success pull-right">Save</button> + </form> + + <p> </p> + </div> + + <div class="tab-pane fade" id="settUsersTab"> + <p> </p> + + <div class="panel-group" id="common-setting-allusers"> + <div class="panel panel-default"> + <div class="panel-heading"> + <h4 class="panel-title"> + <a href="#common-setting-allusers-add-collapse" data-toggle="collapse" data-parent="#common-setting-allusers" aria-expanded="false"> + <span class="glyphicon glyphicon-plus"></span> Add New User + </a> + </h4> + </div> + + <div class="panel-collapse collapse" id="common-setting-allusers-add-collapse"> + <div class="panel-body"> + <form method="post" action="<?=$mod->ap()?>"> + <input type="hidden" name="input[action]" value="common-setting-allusers-adduser" /> + <div class="form-group"> + <label>Username</label> + <input type="text" name="input[username]" class="form-control" required="true" maxlength="50" /> + </div> + + <div class="form-group"> + <label>Password</label> + <input type="password" name="input[password]" class="form-control" /> + </div> + + <div class="form-group"> + <label>Confirm Password</label> + <input type="password" name="input[cPassword]" class="form-control" /> + </div> + + <div class="checkbox"> + <label> + <input type="checkbox" name="input[admin]" value="1" /> Administrator + </label> + </div> + + <div class="form-group"> + <label>Alias</label> + <input type="text" name="input[alias]" class="form-control" maxlength="50" /> + </div> + + <div class="form-group"> + <label>Email</label> + <input type="text" name="input[email]" class="form-control" maxlength="50" /> + </div> + + <button type="submit" class="btn btn-success pull-right">Add</button> + </form> + </div> + </div> + </div> + + <?php foreach ($mod->common_settingAllUsers as $user) { ?> + <div class="panel panel-default"> + <div class="panel-heading"> + <h4 class="panel-title"> + <a href="#common-setting-allusers-<?=$user->guid?>-collapse" data-toggle="collapse" data-parent="#common-setting-allusers" aria-expanded="false"> + <span class="<?=$user->getGlyphicon()?>"></span> <?=$user->name?> <?=($user->alias != "" ? "(" . $user->alias . ")" : "")?> + </a> + </h4> + </div> + + <div class="panel-collapse collapse" id="common-setting-allusers-<?=$user->guid?>-collapse"> + <div class="panel-body"> + <form method="post" action="<?=$mod->ap()?>" enctype="multipart/form-data"> + <input type="hidden" name="input[action]" value="common-setting-allusers-edituser" /> + <input type="hidden" name="input[guid]" value="<?=$user->guid?>" /> + + <div class="row"> + <div class="col-md-8"> + <div class="form-group"> + <label>Username</label> + <input type="text" class="form-control" value="<?=$user->name?>" disabled /> + </div> + + <div class="checkbox"> + <label data-toggle="collapse" data-target="#input<?=$user->guid?>PasswdCollapse"> + <input type="checkbox" name="input[setPasswd]" value="1" /> Change Password + </label> + </div> + </div> + + <div class="col-md-4 text-center"> + <img src="<?=$user->getHeadImage()?>" alt="<?=$user->getDisplayName()?>" class="img-circle" height="100" /> + <br /> + <br /> + <button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#input<?=$user->guid?>ImageCollapse"> + <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="input<?=$user->guid?>ImageCollapse"> + <div class="form-group"> + <label>User Image</label> + <input type="file" name="attachment" /> + </div> + </div> + + <div class="collapse" id="input<?=$user->guid?>PasswdCollapse"> + <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="checkbox"> + <label> + <input type="checkbox" name="input[admin]" value="1" <?=($user->admin ? "checked" : "")?>> Administrator + </label> + </div> + + <div class="form-group"> + <label>Alias</label> + <input type="text" name="input[alias]" class="form-control" maxlength="50" value="<?=$user->alias?>" /> + </div> + + <div class="form-group"> + <label>Email</label> + <input type="text" name="input[email]" class="form-control" maxlength="50" value="<?=$user->email?>" /> + </div> + + <button type="submit" class="btn btn-success pull-right">Save</button> + </form> + + <p> </p> + <p> </p> + + <form method="post" action="<?=$mod->ap()?>"> + <input type="hidden" name="input[action]" value="common-setting-allusers-deluser" /> + <input type="hidden" name="input[guid]" value="<?=$user->guid?>" /> + <button type="submit" class="btn btn-danger btn-xs pull-right" onclick="return assertConfirm()"> + <span class="glyphicon glyphicon-trash"></span> Delete Account + </button> + </form> + </div> + </div> + </div> + <?php } ?> + </div> + </div> + <?php } ?> |