<?php include('./utility/texteditor_limited.php')?>
<form name="searchfrm" id="searchfrm" action="<?php echo $page_name?>" method="post" target="_parent" enctype="multipart/form-data">
<input type="hidden" name="expquote_id" id="expquote_id" value="<?php echo $_REQUEST["expquote_id"]?>" />
 <div style="padding-top:40px;">
<table width="99%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td align="left"><span class="td"><a href="index.php" class="bnav">Home</a> &raquo; Post Sharing Experiences</span></td>
                </tr>
              <tr>
                <td>&nbsp;</td>
                </tr>
              <tr>
                <td><h2>Post Sharing Experiences</h2></td>
                </tr>
              <tr>
                <td><br /><h3 style="color:red"><?php echo $error_msg;?></h3></td>
                </tr>
              <tr>
                <td>
                  <table width="95%" border="0" align="center" cellpadding="5" cellspacing="1">
                    <tr>
                      <td width="42%" align="right" bgcolor="#f5f5f5" class="td1"><strong>Title</strong></td>
                      <td width="58%" align="left" bgcolor="#f5f5f5">
					  <div class="form-group">
					  	<input name="title" type="text" class="txt-box" id="title" style="width:300px; height:35px" value="<?php echo $userDetails->title?>" />
						<div id="title_vmsg"></div>
                      </div>
						</td>
                    </tr>
                    
                    <tr>
                      <td align="right" bgcolor="#f5f5f5" class="td1"><strong>Description<br />
                      </strong></td>
                      <td align="left" bgcolor="#f5f5f5"><textarea name="description" id="description" cols="45" rows="5"><?php echo $userDetails->description?></textarea></td>
                    </tr>
                    <tr>
                      <td align="right" bgcolor="#f5f5f5" class="td1"><strong>Upload Image</strong></td>
                      <td align="left" bgcolor="#f5f5f5"><strong>
                        <input type="file" name="simage" id="simage" />
                      </strong></td>
                    </tr>
                    <tr align="left">
                      <td align="right" bgcolor="#f5f5f5" class="td1">&nbsp;</td>
                      <td bgcolor="#f5f5f5"><strong>
                        <input type="file" name="simage2" id="simage2" />
                      </strong></td>
                    </tr>
					<tr>
                      <td width="42%" align="right" bgcolor="#f5f5f5" class="td1"><strong>External Link</strong></td>
                      <td width="58%" align="left" bgcolor="#f5f5f5">
					  <div class="form-group">
					  	<input name="extlink" type="text" class="txt-box" id="extlink" style="width:300px; height:35px" value="<?php echo $userDetails->extlink?>" />
						<div id="title_vmsg"></div>
                      </div>
						</td>
                    </tr>
                    <tr align="left">
                      <td align="right" bgcolor="#f5f5f5" class="td1">&nbsp;</td>
                      <td bgcolor="#f5f5f5">&nbsp;</td>
                    </tr>
                    <tr align="left">
                      <td align="right" bgcolor="#f5f5f5">&nbsp;</td>
                      <td bgcolor="#f5f5f5"><input type="submit" class="btn" name="Submit" id="Submit" value="Submit" /></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: {
            title: {
				container:'#title_vmsg',
                message: 'The Title is not valid',
                validators: {
                    notEmpty: {
                        message: 'The Title is required and can\'t be empty'
                    }
                }
            }
        }
    });
});
</script>