1 line
819 B
PHP
1 line
819 B
PHP
<?php defined("SYSPATH") or die("No direct script access.") ?>
|
|
<html>
|
|
<head>
|
|
<title>Send eCard</title>
|
|
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
|
|
<script type="text/javascript">
|
|
$(document).ready(function(){
|
|
$('textarea').keyup(function(){
|
|
var message = document.getElementById("g-text");
|
|
var max = parseInt($(message).attr('maxlength'));
|
|
if($(message).val().length > max){
|
|
$(message).val($(message).val().substr(0, $(message).attr('maxlength')));
|
|
}
|
|
$(document).find('.charsRemaining').html('Message (You have ' + (max - $(message).val().length) + ' characters remaining)');
|
|
});
|
|
});
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<?= ecard::prefill_send_form(ecard::get_send_form($item_id)); ?>
|
|
</body>
|
|
</html>
|