This repository has been archived by the owner on Jan 30, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 284
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4f13de9
commit b43d8ed
Showing
3,843 changed files
with
17,054 additions
and
17,054 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Large diffs are not rendered by default.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
200 changes: 100 additions & 100 deletions
200
...lates/scripts/floaters/editglobalrole.php → ...lates/scripts/floaters/editglobalrole.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,101 +1,101 @@ | ||
<?php | ||
|
||
$extensions = array(); | ||
$keyHierarchy = array(); | ||
|
||
$this->getHelper('ParseHierarchy')->parseHierarchy($this->permissions, $extensions, $keyHierarchy); | ||
?> | ||
<div id="floater_innerwrap"> | ||
<div id="floater_handle"> | ||
<span id="floater_title"><?php echo $this->title ?></span> | ||
<div class="right"> | ||
<a href="#" class="close" onclick="floaterClose();return false;"><?php echo $this->kga['lang']['close'] ?></a> | ||
</div> | ||
</div> | ||
<div class="menuBackground"> | ||
<ul class="menu tabSelection"> | ||
<li class="tab norm"><a href="#general"> | ||
<span class="aa"> </span> | ||
<span class="bb"><?php echo $this->kga['lang']['general'] ?></span> | ||
<span class="cc"> </span> | ||
</a></li> | ||
<?php | ||
foreach ($keyHierarchy as $key => $subKeys): | ||
if (count($subKeys) == 1 && array_key_exists('access', $subKeys)) continue; | ||
|
||
$name = $key; | ||
if (isset($this->kga['lang']['extensions'][$name])) | ||
$name = $this->kga['lang']['extensions'][$name]; | ||
?> | ||
<li class="tab norm"><a href="#<?php echo $key ?>"> | ||
<span class="aa"> </span> | ||
<span class="bb"><?php echo $name ?></span> | ||
<span class="cc"> </span> | ||
</a></li> | ||
<?php endforeach; ?> | ||
</ul> | ||
</div> | ||
<form id="adminPanel_extension_form_editRole" action="../extensions/ki_adminpanel/processor.php" method="post"> | ||
<input type="hidden" name="id" value="<?php echo $this->id ?>"/> | ||
<input type="hidden" name="axAction" value="<?php echo $this->action; ?>"/> | ||
<div id="floater_tabs" class="floater_content"> | ||
<fieldset id="general"> | ||
<ul> | ||
<li> | ||
<label for="name"><?php echo $this->kga['lang']['rolename'] ?>:</label> | ||
<input class="formfield" type="text" name="name" id="name" value="<?php echo $this->escape($this->name) ?>"/> | ||
</li> | ||
</ul> | ||
<fieldset class="floatingTabLayout"> | ||
<?php if (count($extensions) > 0): ?> | ||
<legend><?php echo $this->kga['lang']['extensionsTitle']; ?></legend> | ||
<?php | ||
endif; | ||
foreach ($extensions as $key => $value): | ||
$name = $key; | ||
if (isset($this->kga['lang']['extensions'][$name])) | ||
$name = $this->kga['lang']['extensions'][$name]; | ||
?> | ||
<span class="permission"><input type="checkbox" value="1" name="<?php echo $key ?>-access" <?php if ($value == 1): ?> checked="checked" <?php endif; ?> /><?php echo $name ?></span> | ||
<?php endforeach; ?> | ||
</fieldset> | ||
</fieldset> | ||
<?php $this->echoHierarchy($this->kga, $keyHierarchy); ?> | ||
</div> | ||
<div id="formbuttons"> | ||
<input class='btn_norm' type='button' value='<?php echo $this->kga['lang']['cancel'] ?>' onclick='floaterClose();return false;'/> | ||
<input class='btn_ok' type='submit' value='<?php echo $this->kga['lang']['submit'] ?>'/> | ||
</div> | ||
</form> | ||
</div> | ||
<script type="text/javascript"> | ||
$(document).ready(function () { | ||
$('#floater_innerwrap').tabs({selected: 0}); | ||
var $adminPanel_extension_form_editRole = $('#adminPanel_extension_form_editRole'); | ||
$adminPanel_extension_form_editRole.ajaxForm({ | ||
'beforeSubmit': function () { | ||
clearFloaterErrorMessages(); | ||
if ($('#adminPanel_extension_form_editRole').attr('submitting')) { | ||
return false; | ||
} | ||
else { | ||
$adminPanel_extension_form_editRole.attr('submitting', true); | ||
return true; | ||
} | ||
}, | ||
'success': function (result) { | ||
$adminPanel_extension_form_editRole.removeAttr('submitting'); | ||
for (var fieldName in result.errors) { | ||
setFloaterErrorMessage(fieldName, result.errors[fieldName]); | ||
} | ||
if (result.errors.length == 0) { | ||
floaterClose(); | ||
adminPanel_extension_refreshSubtab('<?php echo $this->jsEscape($this->reloadSubtab); ?>'); | ||
} | ||
}, | ||
'error': function () { | ||
$adminPanel_extension_form_editRole.removeAttr('submitting'); | ||
} | ||
}); | ||
}); | ||
<?php | ||
|
||
$extensions = array(); | ||
$keyHierarchy = array(); | ||
|
||
$this->getHelper('ParseHierarchy')->parseHierarchy($this->permissions, $extensions, $keyHierarchy); | ||
?> | ||
<div id="floater_innerwrap"> | ||
<div id="floater_handle"> | ||
<span id="floater_title"><?php echo $this->title ?></span> | ||
<div class="right"> | ||
<a href="#" class="close" onclick="floaterClose();return false;"><?php echo $this->kga['lang']['close'] ?></a> | ||
</div> | ||
</div> | ||
<div class="menuBackground"> | ||
<ul class="menu tabSelection"> | ||
<li class="tab norm"><a href="#general"> | ||
<span class="aa"> </span> | ||
<span class="bb"><?php echo $this->kga['lang']['general'] ?></span> | ||
<span class="cc"> </span> | ||
</a></li> | ||
<?php | ||
foreach ($keyHierarchy as $key => $subKeys): | ||
if (count($subKeys) == 1 && array_key_exists('access', $subKeys)) continue; | ||
|
||
$name = $key; | ||
if (isset($this->kga['lang']['extensions'][$name])) | ||
$name = $this->kga['lang']['extensions'][$name]; | ||
?> | ||
<li class="tab norm"><a href="#<?php echo $key ?>"> | ||
<span class="aa"> </span> | ||
<span class="bb"><?php echo $name ?></span> | ||
<span class="cc"> </span> | ||
</a></li> | ||
<?php endforeach; ?> | ||
</ul> | ||
</div> | ||
<form id="adminPanel_extension_form_editRole" action="../extensions/ki_adminpanel/processor.php" method="post"> | ||
<input type="hidden" name="id" value="<?php echo $this->id ?>"/> | ||
<input type="hidden" name="axAction" value="<?php echo $this->action; ?>"/> | ||
<div id="floater_tabs" class="floater_content"> | ||
<fieldset id="general"> | ||
<ul> | ||
<li> | ||
<label for="name"><?php echo $this->kga['lang']['rolename'] ?>:</label> | ||
<input class="formfield" type="text" name="name" id="name" value="<?php echo $this->escape($this->name) ?>"/> | ||
</li> | ||
</ul> | ||
<fieldset class="floatingTabLayout"> | ||
<?php if (count($extensions) > 0): ?> | ||
<legend><?php echo $this->kga['lang']['extensionsTitle']; ?></legend> | ||
<?php | ||
endif; | ||
foreach ($extensions as $key => $value): | ||
$name = $key; | ||
if (isset($this->kga['lang']['extensions'][$name])) | ||
$name = $this->kga['lang']['extensions'][$name]; | ||
?> | ||
<span class="permission"><input type="checkbox" value="1" name="<?php echo $key ?>-access" <?php if ($value == 1): ?> checked="checked" <?php endif; ?> /><?php echo $name ?></span> | ||
<?php endforeach; ?> | ||
</fieldset> | ||
</fieldset> | ||
<?php $this->echoHierarchy($this->kga, $keyHierarchy); ?> | ||
</div> | ||
<div id="formbuttons"> | ||
<input class='btn_norm' type='button' value='<?php echo $this->kga['lang']['cancel'] ?>' onclick='floaterClose();return false;'/> | ||
<input class='btn_ok' type='submit' value='<?php echo $this->kga['lang']['submit'] ?>'/> | ||
</div> | ||
</form> | ||
</div> | ||
<script type="text/javascript"> | ||
$(document).ready(function () { | ||
$('#floater_innerwrap').tabs({selected: 0}); | ||
var $adminPanel_extension_form_editRole = $('#adminPanel_extension_form_editRole'); | ||
$adminPanel_extension_form_editRole.ajaxForm({ | ||
'beforeSubmit': function () { | ||
clearFloaterErrorMessages(); | ||
if ($('#adminPanel_extension_form_editRole').attr('submitting')) { | ||
return false; | ||
} | ||
else { | ||
$adminPanel_extension_form_editRole.attr('submitting', true); | ||
return true; | ||
} | ||
}, | ||
'success': function (result) { | ||
$adminPanel_extension_form_editRole.removeAttr('submitting'); | ||
for (var fieldName in result.errors) { | ||
setFloaterErrorMessage(fieldName, result.errors[fieldName]); | ||
} | ||
if (result.errors.length == 0) { | ||
floaterClose(); | ||
adminPanel_extension_refreshSubtab('<?php echo $this->jsEscape($this->reloadSubtab); ?>'); | ||
} | ||
}, | ||
'error': function () { | ||
$adminPanel_extension_form_editRole.removeAttr('submitting'); | ||
} | ||
}); | ||
}); | ||
</script> |
112 changes: 56 additions & 56 deletions
112
.../templates/scripts/floaters/editgroup.php → .../templates/scripts/floaters/editgroup.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,57 +1,57 @@ | ||
<div id="floater_innerwrap"> | ||
<div id="floater_handle"> | ||
<span id="floater_title"><?php echo $this->kga['lang']['editGroup'] ?></span> | ||
<div class="right"> | ||
<a href="#" class="close" onclick="floaterClose();return false;"><?php echo $this->kga['lang']['close'] ?></a> | ||
</div> | ||
</div> | ||
<div class="floater_content"> | ||
<form id="adminPanel_extension_form_editGroup" action="../extensions/ki_adminpanel/processor.php" method="post"> | ||
<input type="hidden" name="id" value="<?php echo $this->group_details['groupID'] ?>"/> | ||
<input type="hidden" name="axAction" value="sendEditGroup"/> | ||
<fieldset> | ||
<ul> | ||
<li> | ||
<label for="name"><?php echo $this->kga['lang']['groupname'] ?>:</label> | ||
<input class="formfield" type="text" name="name" id="name" value="<?php echo $this->escape($this->group_details['name']) ?>" size=35/> | ||
</li> | ||
</ul> | ||
<div id="formbuttons"> | ||
<input class='btn_norm' type='button' value='<?php echo $this->kga['lang']['cancel'] ?>' onclick='floaterClose();return false;'/> | ||
<input class='btn_ok' type='submit' value='<?php echo $this->kga['lang']['submit'] ?>'/> | ||
</div> | ||
</fieldset> | ||
</form> | ||
</div> | ||
</div> | ||
<script type="text/javascript"> | ||
$(document).ready(function () { | ||
var $adminPanel_extension_form_editGroup = $('#adminPanel_extension_form_editGroup'); | ||
$adminPanel_extension_form_editGroup.ajaxForm({ | ||
'beforeSubmit': function () { | ||
clearFloaterErrorMessages(); | ||
if ($adminPanel_extension_form_editGroup.attr('submitting')) { | ||
return false; | ||
} | ||
else { | ||
$adminPanel_extension_form_editGroup.attr('submitting', true); | ||
return true; | ||
} | ||
}, | ||
'success': function (result) { | ||
$adminPanel_extension_form_editGroup.removeAttr('submitting'); | ||
for (var fieldName in result.errors) { | ||
setFloaterErrorMessage(fieldName, result.errors[fieldName]); | ||
} | ||
if (result.errors.length == 0) { | ||
floaterClose(); | ||
adminPanel_extension_refreshSubtab('groups'); | ||
adminPanel_extension_refreshSubtab('users'); | ||
} | ||
}, | ||
'error': function () { | ||
$adminPanel_extension_form_editGroup.removeAttr('submitting'); | ||
} | ||
}); | ||
}); | ||
<div id="floater_innerwrap"> | ||
<div id="floater_handle"> | ||
<span id="floater_title"><?php echo $this->kga['lang']['editGroup'] ?></span> | ||
<div class="right"> | ||
<a href="#" class="close" onclick="floaterClose();return false;"><?php echo $this->kga['lang']['close'] ?></a> | ||
</div> | ||
</div> | ||
<div class="floater_content"> | ||
<form id="adminPanel_extension_form_editGroup" action="../extensions/ki_adminpanel/processor.php" method="post"> | ||
<input type="hidden" name="id" value="<?php echo $this->group_details['groupID'] ?>"/> | ||
<input type="hidden" name="axAction" value="sendEditGroup"/> | ||
<fieldset> | ||
<ul> | ||
<li> | ||
<label for="name"><?php echo $this->kga['lang']['groupname'] ?>:</label> | ||
<input class="formfield" type="text" name="name" id="name" value="<?php echo $this->escape($this->group_details['name']) ?>" size=35/> | ||
</li> | ||
</ul> | ||
<div id="formbuttons"> | ||
<input class='btn_norm' type='button' value='<?php echo $this->kga['lang']['cancel'] ?>' onclick='floaterClose();return false;'/> | ||
<input class='btn_ok' type='submit' value='<?php echo $this->kga['lang']['submit'] ?>'/> | ||
</div> | ||
</fieldset> | ||
</form> | ||
</div> | ||
</div> | ||
<script type="text/javascript"> | ||
$(document).ready(function () { | ||
var $adminPanel_extension_form_editGroup = $('#adminPanel_extension_form_editGroup'); | ||
$adminPanel_extension_form_editGroup.ajaxForm({ | ||
'beforeSubmit': function () { | ||
clearFloaterErrorMessages(); | ||
if ($adminPanel_extension_form_editGroup.attr('submitting')) { | ||
return false; | ||
} | ||
else { | ||
$adminPanel_extension_form_editGroup.attr('submitting', true); | ||
return true; | ||
} | ||
}, | ||
'success': function (result) { | ||
$adminPanel_extension_form_editGroup.removeAttr('submitting'); | ||
for (var fieldName in result.errors) { | ||
setFloaterErrorMessage(fieldName, result.errors[fieldName]); | ||
} | ||
if (result.errors.length == 0) { | ||
floaterClose(); | ||
adminPanel_extension_refreshSubtab('groups'); | ||
adminPanel_extension_refreshSubtab('users'); | ||
} | ||
}, | ||
'error': function () { | ||
$adminPanel_extension_form_editGroup.removeAttr('submitting'); | ||
} | ||
}); | ||
}); | ||
</script> |
Oops, something went wrong.