mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-21 13:54:26 -07:00
Separate scripts from html & New rendering function
This commit is contained in:
parent
656d34ed0b
commit
e16e92278b
84 changed files with 848 additions and 1280 deletions
|
@ -32,26 +32,6 @@
|
|||
<form id="vstobjects" name="v_edit_db" method="post" class="<?=$v_status?>">
|
||||
<input type="hidden" name="token" value="<?=$_SESSION['token']?>" />
|
||||
<input type="hidden" name="save" value="save" />
|
||||
<script type="text/javascript">
|
||||
function elementHideShow(elementToHideOrShow) {
|
||||
var el = document.getElementById(elementToHideOrShow);
|
||||
if (el.style.display == "block") {
|
||||
el.style.display = "none";
|
||||
} else {
|
||||
el.style.display = "block";
|
||||
}
|
||||
}
|
||||
function randomString() {
|
||||
var chars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz";
|
||||
var string_length = 10;
|
||||
var randomstring = '';
|
||||
for (var i=0; i<string_length; i++) {
|
||||
var rnum = Math.floor(Math.random() * chars.length);
|
||||
randomstring += chars.substring(rnum,rnum+1);
|
||||
}
|
||||
document.v_edit_db.v_password.value = randomstring;
|
||||
}
|
||||
</script>
|
||||
|
||||
<table class='data'>
|
||||
<tr class="data-add">
|
||||
|
@ -146,8 +126,3 @@
|
|||
</table>
|
||||
</form>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
GLOBAL.DB_USER_PREFIX = '<?php echo $user; ?>_';
|
||||
GLOBAL.DB_DBNAME_PREFIX = '<?php echo $user; ?>_';
|
||||
</script>
|
||||
<script type="text/javascript" src="/js/pages/edit.db.js"></script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue