2013-06-30 03:53:31 +00:00
{ block name = content }
2013-07-01 16:28:37 +00:00
<div class="row-fluid sortable ui-sortable">
2014-09-03 10:22:14 +00:00
<div class="box col-md-4">
<div class="box-inner">
2013-07-01 16:28:37 +00:00
<div class="box-header well" data-original-title="">
<h2><i class="icon-th"></i> Change Password</h2>
2013-06-30 03:53:31 +00:00
</div>
2013-07-01 16:28:37 +00:00
<div class="box-content">
<div class="row-fluid">
2013-07-01 21:29:16 +00:00
<form id="changePassword" class="form-vertical" method="post" action="index.php?page=settings&id= { $target_id } ">
2013-06-30 03:53:31 +00:00
<legend>Change Password</legend>
2014-09-03 01:08:57 +00:00
2013-07-18 19:12:03 +00:00
{ if ! isset ( $changesOther ) or $changesOther eq "FALSE" }
2013-07-01 21:29:16 +00:00
<div class="control-group { if isset ( $MATCH_ERROR ) and $MATCH_ERROR eq "TRUE" } error { else if
isset($match_error_message) and $match_error_message neq "fail"}success { else } { /if } ">
<label class="control-label">Current Password</label>
<div class="controls">
<div class="input-prepend">
<span class="add-on" style="margin-left:5px;"><i class="icon-lock"></i></span>
<input type="password" class="input-xlarge" id="CurrentPass" name="CurrentPass" placeholder="Your current password" { if isset ( $prevCurrentPass ) } value=" { $prevCurrentPass } " { /if } >
{ if isset ( $MATCH_ERROR ) and $MATCH_ERROR eq "TRUE" } <span class="help-inline">The password is incorrect</span> { /if }
2014-02-09 04:15:38 +00:00
</div>
</div>
</div>
{ /if }
<div class="control-group { if isset ( $NEWPASSWORD_ERROR ) and $NEWPASSWORD_ERROR eq "TRUE" } error { else if
isset($newpass_error_message) and $newpass_error_message eq "success"}success { else } { /if } ">
<label class="control-label">New Password</label>
<div class="controls">
<div class="input-prepend">
<span class="add-on" style="margin-left:5px;"><i class="icon-tag"></i></span>
<input type="password" class="input-xlarge" id="NewPass" name="NewPass" placeholder="Your new password" { if isset ( $prevNewPass ) } value=" { $prevNewPass } " { /if } >
{ if isset ( $NEWPASSWORD_ERROR ) and $NEWPASSWORD_ERROR eq "TRUE" } <span class="help-inline"> { $newpass_error_message } </span> { /if }
</div>
</div>
</div>
2014-09-03 01:08:57 +00:00
2014-02-09 04:15:38 +00:00
<div class="control-group { if isset ( $CNEWPASSWORD_ERROR ) and $CNEWPASSWORD_ERROR eq "TRUE" } error { else if
isset($confirmnewpass_error_message) and $confirmnewpass_error_message eq "success"}success { else } { /if } ">
<label class="control-label">Confirm New Password</label>
<div class="controls">
<div class="input-prepend">
<span class="add-on" style="margin-left:5px;"><i class="icon-tags"></i></span>
<input type="password" class="input-xlarge" id="ConfirmNewPass" name="ConfirmNewPass" placeholder="Re-enter the new password" { if isset ( $prevConfirmNewPass ) } value=" { $prevConfirmNewPass } " { /if } >
{ if isset ( $CNEWPASSWORD_ERROR ) and $CNEWPASSWORD_ERROR eq "TRUE" } <span class="help-inline"> { $confirmnewpass_error_message } </span> { /if }
</div>
</div>
</div>
2014-09-03 01:08:57 +00:00
2014-02-09 04:15:38 +00:00
{ if isset ( $SUCCESS_PASS ) and $SUCCESS_PASS eq "OK" }
<div class="alert alert-success">
The password has been changed!
</div>
{ /if }
2014-09-03 01:08:57 +00:00
2014-02-09 04:15:38 +00:00
{ if isset ( $SUCCESS_PASS ) and $SUCCESS_PASS eq "SHARDOFF" }
<div class="alert alert-warning">
The password has been changed, though the shard seems offline, it may take some time to see the change on the shard.
</div>
{ /if }
2014-09-03 01:08:57 +00:00
2014-02-09 04:15:38 +00:00
<input type="hidden" name="function" value="change_password">
<input type="hidden" name="target_id" value=" { $target_id } ">
<div class="control-group">
<label class="control-label"></label>
<div class="controls">
<button type="submit" class="btn btn-primary" style="margin-left:5px; margin-top:10px;">Change Password</button>
</div>
</div>
2014-09-03 01:08:57 +00:00
</form>
</div>
2014-02-09 04:15:38 +00:00
</div>
2014-09-03 10:22:14 +00:00
</div>
2014-02-09 04:15:38 +00:00
</div><!--/span-->
2014-09-03 01:08:57 +00:00
2014-09-03 04:32:48 +00:00
{ if $permission ! = '1' }
2014-09-03 10:22:14 +00:00
<div class="box col-md-4">
<div class="box-inner">
2014-02-09 04:15:38 +00:00
<div class="box-header well" data-original-title="">
<h2><i class="icon-th"></i> Add User</h2>
</div>
<div class="box-content">
<div class="row-fluid">
<form id="addUser" class="form-vertical" method="post" action="index.php?page=settings&id= { $target_id } ">
<legend>Add User</legend>
2014-09-03 01:08:57 +00:00
2014-09-03 06:24:41 +00:00
<div class="control-group { if isset ( $USERNAME_ERROR ) and $USERNAME_ERROR eq "TRUE" } error { /if } ">
2014-02-09 04:15:38 +00:00
<label class="control-label">Username</label>
<div class="controls">
<div class="input-prepend">
<span style="margin-left:5px;" class="add-on"><i class="icon-user"></i></span>
2014-09-03 06:24:41 +00:00
<input type="text" placeholder="Username" name="Username" id="Username" class="input-xlarge" { if isset ( $prevUsername ) } value=" { $prevUsername } " { /if } >
{ if isset ( $USERNAME_ERROR ) and $USERNAME_ERROR eq "TRUE" } <span class="help-inline"> { $USERNAME } </span> { /if }
2014-02-09 04:15:38 +00:00
</div>
</div>
2014-09-03 01:08:57 +00:00
</div>
2014-09-03 06:24:41 +00:00
<div class="control-group { if isset ( $PASSWORD_ERROR ) and $PASSWORD_ERROR eq "TRUE" } error { /if } ">
2014-02-09 04:15:38 +00:00
<label class="control-label">Password</label>
<div class="controls">
<div class="input-prepend">
<span style="margin-left:5px;" class="add-on"><i class="icon-lock"></i></span>
<input type="password" placeholder="Password" name="Password" id="Password" class="input-xlarge">
2014-09-03 06:24:41 +00:00
{ if isset ( $PASSWORD_ERROR ) and $PASSWORD_ERROR eq "TRUE" } <span class="help-inline"> { $PASSWORD } </span> { /if }
2014-02-09 04:15:38 +00:00
</div>
</div>
</div>
2014-09-03 01:08:57 +00:00
2014-09-03 06:24:41 +00:00
<div class="control-group { if isset ( $CPASSWORD_ERROR ) and $CPASSWORD_ERROR eq "TRUE" } error { /if } ">
2014-02-09 04:15:38 +00:00
<label class="control-label">Confirm Password</label>
<div class="controls">
<div class="input-prepend">
<span style="margin-left:5px;" class="add-on"><i class="icon-lock"></i></span>
<input type="password" placeholder="Confirm Password" name="ConfirmPass" id="ConfirmPass" class="input-xlarge">
2014-09-03 06:24:41 +00:00
{ if isset ( $CPASSWORD_ERROR ) and $CPASSWORD_ERROR eq "TRUE" } <span class="help-inline"> { $CPASSWORD } </span> { /if }
2014-02-09 04:15:38 +00:00
</div>
</div>
</div>
2014-09-03 01:08:57 +00:00
2014-09-03 07:23:47 +00:00
<div class="control-group { if isset ( $EMAIL_ERROR ) and $EMAIL_ERROR eq "TRUE" and isset ( $do ) } error { /if } ">
2014-02-09 04:15:38 +00:00
<label class="control-label">Email</label>
<div class="controls">
<div class="input-prepend">
<span style="margin-left:5px;" class="add-on"><i class="icon-envelope"></i></span>
2014-09-03 06:24:41 +00:00
<input type="text" class="input-xlarge" id="Email" name="Email" placeholder="Email" { if isset ( $prevEmail ) } value=" { $prevEmail } " { /if } >
2014-09-03 07:23:47 +00:00
{ if isset ( $EMAIL_ERROR ) and $EMAIL_ERROR eq "TRUE" and isset ( $do ) } <span class="help-inline"> { $EMAIL } </span> { /if }
2014-02-09 04:15:38 +00:00
</div>
</div>
</div>
2014-09-03 01:08:57 +00:00
2014-09-03 06:24:41 +00:00
{ if isset ( $SUCCESS_ADD ) and $SUCCESS_ADD eq "ok" }
2014-02-09 04:15:38 +00:00
<div class="alert alert-success">
2014-09-03 06:24:41 +00:00
The user has been created!
2014-02-09 04:15:38 +00:00
</div>
{ /if }
2014-09-03 01:08:57 +00:00
2014-09-03 06:24:41 +00:00
{ if isset ( $SUCCESS_ADD ) and $SUCCESS_ADD eq "shardoffline" }
2014-02-09 04:15:38 +00:00
<div class="alert alert-warning">
2014-09-03 06:24:41 +00:00
The user is created, though the shard seems offline, it may take some time to see the change on the shard.
2014-02-09 04:15:38 +00:00
</div>
{ /if }
2014-09-03 01:08:57 +00:00
2014-02-09 04:15:38 +00:00
<input type="hidden" name="function" value="add_user">
<input type="hidden" name="target_id" value=" { $target_id } ">
<div class="control-group">
<label class="control-label"></label>
<div class="controls">
<button type="submit" class="btn btn-primary" style="margin-left:5px; margin-top:10px;">Create User</button>
</div>
</div>
2014-09-03 01:08:57 +00:00
</form>
</div>
2014-02-09 04:15:38 +00:00
</div>
2014-09-03 10:22:14 +00:00
</div>
2014-02-09 04:15:38 +00:00
</div><!--/span-->
2014-09-03 04:32:48 +00:00
{ /if }
2014-09-03 01:08:57 +00:00
2014-09-03 10:22:14 +00:00
<div class="box col-md-4">
<div class="box-inner">
2013-07-01 16:28:37 +00:00
<div class="box-header well" data-original-title="">
<h2><i class="icon-th"></i> Change Email</h2>
</div>
<div class="box-content">
<div class="row-fluid">
2013-07-02 02:42:12 +00:00
<form id="changeEmail" class="form-vertical" method="post" action="index.php?page=settings&id= { $target_id } ">
2013-06-30 03:53:31 +00:00
<legend>Change Email</legend>
2014-09-03 06:24:41 +00:00
<div class="control-group { if isset ( $CEMAIL_ERROR ) and $CEMAIL_ERROR eq "TRUE" } error { /if } ">
2013-06-30 03:53:31 +00:00
<label class="control-label">New Email</label>
<div class="controls">
<div class="input-prepend">
<span class="add-on" style="margin-left:5px;"><i class="icon-envelope"></i></span>
2013-07-02 02:42:12 +00:00
<input type="text" class="input-xlarge" id="NewEmail" name="NewEmail" placeholder="Your new email" { if isset ( $prevNewEmail ) } value=" { $prevNewEmail } " { else if isset ( $current_mail ) } value=" { $current_mail } " { /if } >
2014-09-03 06:24:41 +00:00
{ if isset ( $CEMAIL_ERROR ) and $CEMAIL_ERROR eq "TRUE" } <span class="help-inline"> { $EMAIL } </span> { /if }
2014-09-03 01:08:57 +00:00
2013-07-02 02:42:12 +00:00
</div>
2013-06-30 03:53:31 +00:00
</div>
2013-07-02 02:42:12 +00:00
</div>
2014-09-03 01:08:57 +00:00
2013-07-02 02:42:12 +00:00
{ if isset ( $SUCCESS_MAIL ) and $SUCCESS_MAIL eq "OK" }
<div class="alert alert-success">
The email has been changed!
</div>
{ /if }
2014-09-03 01:08:57 +00:00
2013-07-02 02:42:12 +00:00
{ if isset ( $SUCCESS_MAIL ) and $SUCCESS_MAIL eq "SHARDOFF" }
<div class="alert alert-warning">
The email has been changed, though the shard seems offline, it may take some time to see the change on the shard.
</div>
{ /if }
2014-09-03 01:08:57 +00:00
2013-07-02 02:42:12 +00:00
<input type="hidden" name="function" value="change_mail">
<input type="hidden" name="target_id" value=" { $target_id } ">
2013-06-30 03:53:31 +00:00
<div class="control-group">
<label class="control-label"></label>
<div class="controls">
<button type="submit" class="btn btn-primary" style="margin-left:5px; margin-top:10px;">Change Email</button>
</div>
</div>
</form>
2014-09-03 01:08:57 +00:00
</div>
2013-07-01 16:28:37 +00:00
</div>
2014-09-03 10:22:14 +00:00
</div>
2013-10-24 01:35:44 +00:00
</div>
2014-09-03 01:08:57 +00:00
2014-09-03 10:22:14 +00:00
<div class="box col-md-4">
<div class="box-inner">
2013-08-18 22:02:55 +00:00
<div class="box-header well" data-original-title="">
<h2><i class="icon-envelope"></i> Ticket updates</h2>
</div>
2014-09-03 01:08:57 +00:00
2013-08-18 22:02:55 +00:00
<div class="box-content">
<div class="row-fluid">
<form id="changeReceiveMail" class="form-vertical" method="post" action="index.php?page=settings&id= { $target_id } ">
<legend>Ticket-Update Mail Settings</legend>
2014-09-03 01:08:57 +00:00
2013-08-18 22:02:55 +00:00
<div class="control-group">
<label class="control-label">Receive ticket updates</label>
<div class="controls">
2014-09-03 01:08:57 +00:00
<select name="ReceiveMail">
2013-08-18 22:02:55 +00:00
<option value="1" { if isset ( $ReceiveMail ) and $ReceiveMail eq 1 } selected="selected" { /if } >Yes</option>
<option value="0" { if isset ( $ReceiveMail ) and $ReceiveMail eq 0 } selected="selected" { /if } >No</option>
2014-09-03 01:08:57 +00:00
</select>
2013-08-18 22:02:55 +00:00
</div>
</div>
2014-09-03 01:08:57 +00:00
2013-08-18 22:02:55 +00:00
<input type="hidden" name="function" value="change_receivemail">
<input type="hidden" name="target_id" value=" { $target_id } ">
<div class="control-group">
<label class="control-label"></label>
<div class="controls">
<button type="submit" class="btn btn-primary" style="margin-left:5px; margin-top:10px;">Change Updates</button>
</div>
</div>
</form>
</div>
</div>
2014-09-03 10:22:14 +00:00
</div>
2013-07-01 16:28:37 +00:00
</div><!--/span-->
2014-09-03 01:08:57 +00:00
2014-09-03 10:22:14 +00:00
<div class="box col-md-4">
<div class="box-inner">
2013-07-01 16:28:37 +00:00
<div class="box-header well" data-original-title="">
<h2><i class="icon-th"></i> Change Info</h2>
</div>
<div class="box-content">
<div class="row-fluid">
2013-07-02 14:07:55 +00:00
<form id="changeEmail" class="form-vertical" method="post" action="index.php?page=settings&id= { $target_id } ">
2013-06-30 03:53:31 +00:00
<legend>Change Info</legend>
2014-09-03 01:08:57 +00:00
2013-06-30 03:53:31 +00:00
<div class="control-group">
<label class="control-label">Firstname</label>
<div class="controls">
<div class="input-prepend">
<span class="add-on" style="margin-left:5px;"><i class="icon-user"></i></span>
2013-07-02 14:36:44 +00:00
<input type="text" class="input-xlarge" id="FirstName" name="FirstName" placeholder="Your firstname" { if isset ( $FirstName ) and $FirstName neq "" } value=" { $FirstName } " { /if } >
2013-06-30 03:53:31 +00:00
</div>
</div>
</div>
2014-09-03 01:08:57 +00:00
2013-06-30 03:53:31 +00:00
<div class="control-group">
<label class="control-label">Lastname</label>
<div class="controls">
<div class="input-prepend">
<span class="add-on" style="margin-left:5px;"><i class="icon-user"></i></span>
2013-07-02 14:36:44 +00:00
<input type="text" class="input-xlarge" id="LastName" name="LastName" placeholder="Your lastname" { if isset ( $LastName ) and $LastName neq "" } value=" { $LastName } " { /if } >
2013-06-30 03:53:31 +00:00
</div>
</div>
</div>
2014-09-03 01:08:57 +00:00
2013-07-01 16:28:37 +00:00
<div class="control-group">
2013-06-30 03:53:31 +00:00
<label class="control-label">Country</label>
<div class="controls">
2013-07-04 20:05:26 +00:00
<select name="Country">
{ foreach from = $country_array key = k item = v }
<option value=" { $k } " { if isset ( $Country ) and $Country eq $k } selected="selected" { /if } > { $v } </option>
{ /foreach }
2014-09-03 01:08:57 +00:00
</select>
2013-06-30 03:53:31 +00:00
</div>
</div>
2014-09-03 01:08:57 +00:00
2014-09-03 10:22:14 +00:00
<div class="control-group gender-list">
2013-06-30 03:53:31 +00:00
<label class="control-label">Gender</label>
2014-09-03 01:08:57 +00:00
<div class="controls">
2013-06-30 03:53:31 +00:00
<label class="radio">
2014-09-03 10:22:14 +00:00
<div id="uniform-optionsRadios2" class="radio"><span class=" { if isset ( $Gender ) and $Gender eq 0 } checked { /if } "><input name="Gender" id="optionsRadios0" value="0" { if isset ( $Gender ) and $Gender eq 0 } checked="" { /if } type="radio"></span></div>
2013-06-30 03:53:31 +00:00
Secret
</label>
<div style="clear:both"></div>
<label class="radio">
2014-09-03 10:22:14 +00:00
<div id="uniform-optionsRadios1" class="radio"><span class=" { if isset ( $Gender ) and $Gender eq 1 } checked { /if } "><input name="Gender" id="optionsRadios1" value="1" { if isset ( $Gender ) and $Gender eq 1 } checked="" { /if } type="radio"></span></div>
2013-06-30 03:53:31 +00:00
Male
</label>
<div style="clear:both"></div>
<label class="radio">
2014-09-03 10:22:14 +00:00
<div id="uniform-optionsRadios2" class="radio"><span class=" { if isset ( $Gender ) and $Gender eq 2 } checked { /if } "><input name="Gender" id="optionsRadios2" value="2" { if isset ( $Gender ) and $Gender eq 2 } checked="" { /if } type="radio"></span></div>
2013-06-30 03:53:31 +00:00
Female
</label>
</div>
</div>
2014-09-03 01:08:57 +00:00
2013-07-03 01:05:01 +00:00
{ if isset ( $info_updated ) and $info_updated eq "OK" }
<div class="alert alert-success">
The Info has been updated!
</div>
{ /if }
2014-09-03 01:08:57 +00:00
2013-07-02 14:07:55 +00:00
<input type="hidden" name="function" value="change_info">
<input type="hidden" name="target_id" value=" { $target_id } ">
2013-06-30 03:53:31 +00:00
<div class="control-group">
<label class="control-label"></label>
<div class="controls">
<button type="submit" class="btn btn-primary" style="margin-left:5px; margin-top:10px;">Change Info</button>
</div>
</div>
</form>
2014-09-03 01:08:57 +00:00
</div>
2013-06-30 03:53:31 +00:00
</div>
2014-09-03 10:22:14 +00:00
</div>
2013-07-01 16:28:37 +00:00
</div><!--/span-->
</div><!--/row-->
2014-09-03 01:08:57 +00:00
2013-06-30 03:53:31 +00:00
{ /block }
2014-09-03 01:08:57 +00:00