message_send_one.tpl.php 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <?php
  2. defined('IN_ADMIN') or exit('No permission resources.');
  3. $show_dialog = 1;
  4. include $this->admin_tpl('header','admin');
  5. ?>
  6. <script type="text/javascript">
  7. <!--
  8. $(function(){
  9. $.formValidator.initConfig({autotip:true,formid:"myform",onerror:function(msg){}});
  10. $("#subject").formValidator({onshow:"<?php echo L('input','','admin').L('subject')?>",onfocus:"<?php echo L('subject').L('no_empty')?>"}).inputValidator({min:1,max:999,onerror:"<?php echo L('subject').L('no_empty')?>"});
  11. $("#con").formValidator({onshow:"<?php echo L('content').L('no_empty')?>",onfocus:"<?php echo L('content').L('no_empty')?>"}).inputValidator({min:1,max:999,onerror:"<?php echo L('content').L('no_empty')?>"});
  12. $("#tousername").formValidator({onshow:"<?php echo L('input','','admin').L('touserid')?>",onfocus:"<?php echo L('touserid').L('no_empty')?>"}).inputValidator({min:1,onerror:"<?php echo L('input','','admin').L('touserid')?>"}).ajaxValidator({type : "get",url : "",data :"m=message&c=message&a=public_name",datatype : "html",async:'true',success : function(data){if( data == 1 ){return true;}else{return false;}},buttons: $("#dosubmit"),onerror : "<?php echo L('not_myself')?>! ",onwait : "<?php echo L('connecting')?>"});
  13. })
  14. //-->
  15. </script>
  16. <div class="pad-lr-10">
  17. <form action="?m=message&c=message&a=send_one" method="post" name="myform" id="myform">
  18. <table cellpadding="2" cellspacing="1" class="table_form" width="100%">
  19. <tr>
  20. <th width="100"><?php echo L('subject')?>:</th>
  21. <td><input type="text" name="info[subject]" id="subject"
  22. size="30" class="input-text"></td>
  23. </tr>
  24. <tr>
  25. <th width="100"><?php echo L('touserid')?>:</th>
  26. <td><input type="text" name="info[send_to_id]" id="tousername"
  27. size="20" class="input-text" value=""></td>
  28. </tr>
  29. <tr>
  30. <th><?php echo L('content')?>:</th>
  31. <td><textarea name="info[content]" id="con" cols="50"
  32. rows="6"></textarea></td>
  33. </tr>
  34. <tr>
  35. <th></th>
  36. <td><input
  37. type="submit" name="dosubmit" id="dosubmit" class="button"
  38. value=" <?php echo L('submit')?> "></td>
  39. </tr>
  40. </table>
  41. </form>
  42. </div>
  43. </body>
  44. </html>