Пример #1
0
function phpfmg_form($sErr = false)
{
    $style = " class='form_text' ";
    ?>




<div id='frmFormMailContainer'>

<form name="frmFormMail" id="frmFormMail" target="submitToFrame" action='<?php 
    echo PHPFMG_ADMIN_URL . '';
    ?>
' method='post' enctype='multipart/form-data' onsubmit='return fmgHandler.onSubmit(this);'>

<input type='hidden' name='formmail_submit' value='Y'>
<input type='hidden' name='mod' value='ajax'>
<input type='hidden' name='func' value='submit'>

            
<ol class='phpfmg_form' >

<li class='field_block' id='field_0_div'><div class='col_label'>
	<label class='form_field'>Name</label> <label class='form_required' >*</label> </div>
	<div class='col_field'>
	<input type="text" name="field_0"  id="field_0" value="<?php 
    phpfmg_hsc("field_0", "");
    ?>
" class='text_box'>
	<div id='field_0_tip' class='instruction'></div>
	</div>
</li>

<li class='field_block' id='field_1_div'><div class='col_label'>
	<label class='form_field'>Email</label> <label class='form_required' >*</label> </div>
	<div class='col_field'>
	<input type="text" name="field_1"  id="field_1" value="<?php 
    phpfmg_hsc("field_1", "");
    ?>
" class='text_box'>
	<div id='field_1_tip' class='instruction'></div>
	</div>
</li>

<li class='field_block' id='field_2_div'><div class='col_label'>
	<label class='form_field'>Platform Suggestion</label> <label class='form_required' >*</label> </div>
	<div class='col_field'>
	<textarea name="field_2" id="field_2" rows=4 cols=25 class='text_area'><?php 
    phpfmg_hsc("field_2");
    ?>
</textarea>

	<div id='field_2_tip' class='instruction'></div>
	</div>
</li>


<li class='field_block' id='phpfmg_captcha_div'>
	<div class='col_label'></div><div class='col_field'>
	<?php 
    phpfmg_show_captcha();
    ?>
	</div>
</li>


            <li>
            <div class='col_label'>&nbsp;</div>
            <div class='form_submit_block col_field'>
	

                <input type='submit' value='Submit' class='form_button'>

				<div id='err_required' class="form_error" style='display:none;'>
				    <label class='form_error_title'>Please check the required fields</label>
				</div>
				


                <span id='phpfmg_processing' style='display:none;'>
                    <img id='phpfmg_processing_gif' src='<?php 
    echo PHPFMG_ADMIN_URL . '?mod=image&amp;func=processing';
    ?>
' border=0 alt='Processing...'> <label id='phpfmg_processing_dots'></label>
                </span>
            </div>
            </li>

</ol>
</form>

<iframe name="submitToFrame" id="submitToFrame" src="javascript:false" style="position:absolute;top:-10000px;left:-10000px;" /></iframe>

</div>
<!-- end of form container -->


<!-- [Your confirmation message goes here] -->
<div id='thank_you_msg' style='display:none;'>
Your form has been sent. Thank you!
</div>


            






<?php 
    phpfmg_javascript($sErr);
}
Пример #2
0
function phpfmg_form($sErr = false)
{
    $style = " class='form_text' ";
    ?>




<div class="text-center"id='frmFormMailContainer'>

<form class="" name="frmFormMail" id="frmFormMail" target="submitToFrame" action='<?php 
    echo PHPFMG_ADMIN_URL . '';
    ?>
' method='post' enctype='multipart/form-data' onsubmit='return fmgHandler.onSubmit(this);'>

<input type='hidden' name='formmail_submit' value='Y'>
<input type='hidden' name='mod' value='ajax'>
<input type='hidden' name='func' value='submit'>


<ol class='phpfmg_form' >

<li class='field_block' id='field_0_div'><div class='col_label'>
	<label class='form_field'>Title</label> <label class='form_required' >*</label> </div>
	<div class='col_field'>
	<?php 
    phpfmg_dropdown('field_0', "Mr.|Mrs.|Ms.|Miss");
    ?>
	<div id='field_0_tip' class='instruction'></div>
	</div>
</li>

<li class='field_block' id='field_1_div'><div class='col_label'>
	<label class='form_field'>Full Name</label> <label class='form_required' >*</label> </div>
	<div class='col_field'>
	<input type="text" name="field_1"  id="field_1" value="<?php 
    phpfmg_hsc("field_1", "");
    ?>
" class='text_box'>
	<div id='field_1_tip' class='instruction'></div>
	</div>
</li>

<li class='field_block' id='field_2_div'><div class='col_label'>
	<label class='form_field'>E-Mail</label> <label class='form_required' >*</label> </div>
	<div class='col_field'>
	<input type="text" name="field_2"  id="field_2" value="<?php 
    phpfmg_hsc("field_2", "");
    ?>
" class='text_box'>
	<div id='field_2_tip' class='instruction'></div>
	</div>
</li>
<!-- HERE 2 INLINE RADIO BUTTONS -->
<li class='field_block inline' id='field_3_div'><div class='col_label'>
	<label class='form_field'>Type of Work</label> <label class='form_required' >*</label> </div>
	<div class='col_field'>
	<?php 
    phpfmg_radios('field_3', "Freelance|Short-Term|Long-Term|Other", true);
    ?>
	<div id='field_3_tip' class='instruction'></div>
	</div>
</li>

<li class='field_block' id='field_4_div'><div class='col_label'>
	<label class='form_field'>Message</label> <label class='form_required' >*</label> </div>
	<div class='col_field'>
	<textarea name="field_4" id="field_4" rows=4 cols=25 class='text_area'><?php 
    phpfmg_hsc("field_4");
    ?>
</textarea>

	<div id='field_4_tip' class='instruction'></div>
	</div>
</li>


<li class='field_block' id='phpfmg_captcha_div'>
	<div class='col_label'></div><div class='col_field'>
	<?php 
    phpfmg_show_captcha();
    ?>
	<!-- <div class="g-recaptcha" data-sitekey="6LcJdAgTAAAAAFNtfMQDBij8f1N6k8nCPk24ENv6"></div> -->
	</div>
</li>


            <li>
            <div class='col_label'>&nbsp;</div>
            <div class='form_submit_block col_field'>


                <input type='submit' value='Submit' class='form_button'>

				<div id='err_required' class="form_error" style='display:none;'>
				    <label class='form_error_title'>Please check the required fields</label>
				</div>



                <span id='phpfmg_processing' style='display:none;'>
                    <img id='phpfmg_processing_gif' src='<?php 
    echo PHPFMG_ADMIN_URL . '?mod=image&amp;func=processing';
    ?>
' border=0 alt='Processing...'> <label id='phpfmg_processing_dots'></label>
                </span>
            </div>
            </li>

</ol>
</form>

<iframe name="submitToFrame" id="submitToFrame" src="javascript:false" style="position:absolute;top:-10000px;left:-10000px;" /></iframe>

</div>
<!-- end of form container -->


<!-- [Your confirmation message goes here] -->
<div id='thank_you_msg' style='display:none;'>
Your form has been sent. Thank you!
</div>









<?php 
    phpfmg_javascript($sErr);
}