12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- <?php
- defined('IN_ADMIN') or exit('No permission resources.');
- $show_dialog = 1;
- include $this->admin_tpl('header','admin');
- ?>
- <script type="text/javascript">
- <!--
- $(function(){
- $.formValidator.initConfig({autotip:true,formid:"myform",onerror:function(msg){}});
- $("#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')?>"});
- $("#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')?>"});
- $("#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')?>"});
- })
- //-->
- </script>
- <div class="pad-lr-10">
- <form action="?m=message&c=message&a=send_one" method="post" name="myform" id="myform">
- <table cellpadding="2" cellspacing="1" class="table_form" width="100%">
- <tr>
- <th width="100"><?php echo L('subject')?>:</th>
- <td><input type="text" name="info[subject]" id="subject"
- size="30" class="input-text"></td>
- </tr>
-
- <tr>
- <th width="100"><?php echo L('touserid')?>:</th>
- <td><input type="text" name="info[send_to_id]" id="tousername"
- size="20" class="input-text" value=""></td>
- </tr>
-
- <tr>
- <th><?php echo L('content')?>:</th>
- <td><textarea name="info[content]" id="con" cols="50"
- rows="6"></textarea></td>
- </tr>
- <tr>
- <th></th>
- <td><input
- type="submit" name="dosubmit" id="dosubmit" class="button"
- value=" <?php echo L('submit')?> "></td>
- </tr>
- </table>
- </form>
- </div>
- </body>
- </html>
|