<?php include('./utility/texteditor_limited.php')?>
<form name="searchfrm" id="searchfrm" action="<?php echo $page_name?>" method="post" target="_parent" >
<input type="hidden" name="act" id="act" value="" />
<input type="hidden" name="member_id" id="member_id" value="<?php echo $_REQUEST["member_id"]?>" />
<input type="hidden" name="family_id" id="family_id" value="<?php echo $_REQUEST["family_id"]?>" />
<input type="hidden" name="memberemail" id="memberemail" value="<?php echo $_REQUEST["email"]?>" />
<div style="padding-top:40px;">
<table width="70%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td align="left" class="breadcrumb"><a href="index.php">Home</a> &raquo; Send Message</span></td>
                </tr>
              <tr>
                <td>&nbsp;</td>
                </tr>
              <tr>
                <td><h3>Send Message to Member</h3></td>
                </tr>
              <tr>
                <td>&nbsp;</td>
              </tr>
              <tr>
                <td><?php if($msg!=''){?><font color="#FF0000"><?php echo $msg;?></font><?php }?></td>
                </tr>
              <tr>
                <td>
                  <table width="95%" border="0" align="center" cellpadding="5" cellspacing="1" class="table table-bordered">
                    <tr>
                      <td width="42%" align="right"><strong>Name</strong></td>
                      <td width="58%" align="left">
					  <div class="form-group">
						  <input name="name" type="text" class="form-control" id="name" style="width:300px; height:35px" />
						  <div id="name_vmsg"></div>
					  </div>
					  </td>
                    </tr>
                    <tr>
                      <td align="right"><strong>Mobile</strong></td>
                      <td align="left">
					  <div class="form-group">
					  		<input name="mobile" type="text" class="form-control" id="mobile" style="width:300px; height:35px" />
							<div id="mobile_vmsg"></div>
					  </div>
					  </td>
                    </tr>
					<tr>
                      <td align="right"><strong>Email</strong></td>
                      <td align="left">
					  <div class="form-group">
					  		<input name="memail" type="text" class="form-control" id="memail" style="width:300px; height:35px" />
							<div id="email_vmsg"></div>
					  </div>
					  </td>
                    </tr>
					<tr>
                      <td align="right"><strong>Message</strong></td>
                      <td align="left">
					  <div class="form-group">
					 	<textarea name="message" id="message" cols="35"></textarea>
						<div id="message_vmsg"></div>
					  </div>
					  </td>
						
                    </tr>
					<tr>
                      <td align="right">&nbsp;</td>
                      <td align="left">
					  <img src="./utility/security/securimage_show.php?sid=<?php echo md5(uniqid(time())); ?>">
					  </td>
						
                    </tr>
                   <tr>
                      <td align="right"><strong>Security Code</strong></td>
                      <td align="left">
					  <div class="form-group">
					 	<input name="security_code" type="text"  size="27" class="form-control">
						<div id="security_code_vmsg"></div>
					  </div>
					  </td>
						
                    </tr>
                    <tr align="left">
                      <td align="right">&nbsp;</td>
                      <td><input type="submit" name="submit" value="Send" class="btn btn-primary" /></td>
                    </tr>
                  </table>
                </td>
              </tr>
              <tr>
                <td>&nbsp;</td>
              </tr>
              <tr>
                <td align="center">&nbsp;</td>
              </tr>
              <tr>
                <td>&nbsp;</td>
              </tr>
              <tr>
                <td align="center">&nbsp;</td>
              </tr>
              </table>
              </div>
</form>
<script type="text/javascript">
$(document).ready(function() {
    $('#searchfrm').bootstrapValidator({
        message: 'This value is not valid',
        fields: {
            name: {
				container:'#name_vmsg',
                message: 'The Name is not valid',
                validators: {
                    notEmpty: {
                        message: 'The Name is required and can\'t be empty'
                    }
                }
            },mobile: {
				container:'#mobile_vmsg',
                message: 'The Mobile is not valid',
                validators: {
                    notEmpty: {
                        message: 'The Mobile is required and can\'t be empty'
                    }
                }
            },email: {
				container:'#email_vmsg',
                message: 'The Email is not valid',
                validators: {
                    notEmpty: {
                        message: 'The Email is required and can\'t be empty'
                    }
                }
				,email: {
                        message: 'The Email is not valid'
                    }
            },security_code: {
				container:'#security_code_vmsg',
                message: 'The Security Code is not valid',
                validators: {
                    notEmpty: {
                        message: 'The Security Code is required and can\'t be empty'
                    }
                }
            }
        }
    });
});
</script>