Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?
- if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die();
- ?>
- <?if ($arResult["isFormErrors"] == "Y"):?><div class="form_error_field"><?=$arResult["FORM_ERRORS"];?></div><?endif;?>
- <?=$arResult["FORM_NOTE"]?>
- <?if ($arResult["isFormNote"] != "Y")
- {
- ?>
- <?//=$arResult["FORM_HEADER"]?>
- <form name="<?=$arResult["WEB_FORM_NAME"]?>" action="<?=POST_FORM_ACTION_URI?>" method="POST" enctype="multipart/form-data" class="form-ptct" novalidate="novalidate">
- <input type="hidden" name="WEB_FORM_ID" value="<?=$arParams["WEB_FORM_ID"]?>">
- <?=bitrix_sessid_post()?>
- <!--<table>
- <?
- if ($arResult["isFormDescription"] == "Y" || $arResult["isFormTitle"] == "Y" || $arResult["isFormImage"] == "Y")
- {
- ?>
- <tr>
- <td><?
- /***********************************************************************************
- form header
- ***********************************************************************************/
- if ($arResult["isFormTitle"])
- {
- ?>
- <h1><?=$arResult["FORM_TITLE"]?></h1>
- <?
- } //endif ;
- if ($arResult["isFormImage"] == "Y")
- {
- ?>
- <a href="<?=$arResult["FORM_IMAGE"]["URL"]?>" target="_blank" alt="<?=GetMessage("FORM_ENLARGE")?>"><img src="<?=$arResult["FORM_IMAGE"]["URL"]?>" <?if($arResult["FORM_IMAGE"]["WIDTH"] > 300):?>width="300"<?elseif($arResult["FORM_IMAGE"]["HEIGHT"] > 200):?>height="200"<?else:?><?=$arResult["FORM_IMAGE"]["ATTR"]?><?endif;?> hspace="3" vscape="3" border="0" /></a>
- <?//=$arResult["FORM_IMAGE"]["HTML_CODE"]?>
- <?
- } //endif
- ?>
- <p><?=$arResult["FORM_DESCRIPTION"]?></p>
- </td>
- </tr>
- <?
- } // endif
- ?>
- </table>
- <br />-->
- <?
- /***********************************************************************************
- form questions
- ***********************************************************************************/
- ?>
- <!--<table class="form-table data-table">
- <thead>
- <tr>
- <th colspan="2"> </th>
- </tr>
- </thead>
- <tbody>-->
- <?
- foreach ($arResult["QUESTIONS"] as $FIELD_SID => $arQuestion)
- {
- ?>
- <div class="form-ptct_l">
- <div class="form-ptct_field-text-l"><span class="form-ptct_field-text<?if ($arQuestion["REQUIRED"] == "Y"):?><?echo ' -req';?><?endif;?>">
- <?=$arQuestion["CAPTION"]?><?//if ($arQuestion["REQUIRED"] == "Y"):?><?//=$arResult["REQUIRED_SIGN"];?><?//endif;?>
- <?=$arQuestion["IS_INPUT_CAPTION_IMAGE"] == "Y" ? "<br />".$arQuestion["IMAGE"]["HTML_CODE"] : ""?>
- </span></div>
- <div class="form-ptct_input-l"><?=$arQuestion["HTML_CODE"]?></div>
- </div>
- <?
- } //endwhile
- ?>
- <?
- if($arResult["isUseCaptcha"] == "Y")
- {
- ?>
- <div class="form-ptct_l"><div class="form-ptct_field-text-l"><span class="form-ptct_field-text"><b><?=GetMessage("FORM_CAPTCHA_TABLE_TITLE")?></b></span></div><div class="form-ptct_input-l"></div></div>
- <div class="form-ptct_l">
- <div class="form-ptct_field-text-l"><input type="hidden" name="captcha_sid" value="<?=htmlspecialchars($arResult["CAPTCHACode"]);?>" />
- <span class="form-ptct_field-text<?if ($arQuestion["REQUIRED"] == "Y"):?><?echo ' -req';?><?endif;?>"><?=GetMessage("FORM_CAPTCHA_FIELD_TITLE")?></span></div>
- <div class="form-ptct_input-l">
- <div class="form-ptct_capcha"><a class="reload" href="javascript:refreshCaptcha('capchaHolder')"><img src="/bitrix/tools/captcha.php?captcha_sid=<?=htmlspecialchars($arResult["CAPTCHACode"]);?>" width="180" height="40" id="capchaHolder" align="middle"/></a></div>
- <input type="text" name="captcha_word" size="30" maxlength="50" value="" class="form-ptct_input -capcha-offset" required />
- </div>
- </div>
- <?
- } // isUseCaptcha
- ?>
- <!--</tbody>
- <tfoot>
- <tr>
- <th colspan="2"><div align="center">-->
- <div class="form-ptct_l -align-right"><span class="form-ptct_field-text -req-front -offset"> - <?=GetMessage("FORM_REQUIRED_FIELDS")?></span>
- <input class="btn-form" <?=(intval($arResult["F_RIGHT"]) < 10 ? "disabled=\"disabled\"" : "");?> type="submit" name="web_form_submit" value="<?=strlen(trim($arResult["arForm"]["BUTTON"])) <= 0 ? GetMessage("FORM_ADD") : $arResult["arForm"]["BUTTON"];?>" />
- </div>
- <!--</div></th>
- </tr>
- </tfoot>
- </table>-->
- <?=$arResult["FORM_FOOTER"]?>
- <?
- } //endif (isFormNote)
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement