mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-21 05:44:07 -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
|
@ -34,24 +34,6 @@
|
|||
<form id="vstobjects" name="v_add_user" method="post">
|
||||
<input type="hidden" name="token" value="<?=$_SESSION['token']?>" />
|
||||
<input type="hidden" name="ok" value="Add" />
|
||||
<script type="text/javascript">
|
||||
$(function() {
|
||||
$("#v_email").change(function() {
|
||||
document.getElementById('v_notify').value = document.getElementById('v_email').value;
|
||||
});
|
||||
});
|
||||
|
||||
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_add_user.v_password.value = randomstring;
|
||||
}
|
||||
</script>
|
||||
|
||||
<table class="data mode-add">
|
||||
<tr class="data-add">
|
||||
|
@ -112,7 +94,7 @@
|
|||
}
|
||||
echo ">".htmlentities($key)."</option>\n";
|
||||
}
|
||||
?>
|
||||
?>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
|
@ -188,4 +170,4 @@
|
|||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue