Separate scripts from html & New rendering function

This commit is contained in:
Flat 2016-07-02 19:51:56 +09:00
commit e16e92278b
84 changed files with 848 additions and 1280 deletions

View file

@ -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>