<code>
<div class="fast_order">
<div class="button button2" data-id="<?=$product->get('id')?>" id="fast_order" onclick="fast_ordert();" >Быстрый заказ</div>
</div>
<?
if (!isset($_SESSION['fast_order'])||@$_SESSION['fast_order']==0){$fast_order=0;$_SESSION['fast_order']=0;}?>
<?if ($_SESSION['fast_order']==0){?>
<div class="fast_order_form" id="fast_order_form" style="display:none;">
<div style=" width: 95%; display:inline-block;text-align: center; font: bold 16px/24px arial;">Быстрый заказ</div><div style="width: 5%;cursor:pointer; display:inline-block;text-align: right; font: bold 16px/24px arial; "onclick="fast_ordert();" class="close_fast_order">✖</div>
<? if(isSet($data['posted'])) { ?>
<div style="color:red; font-size:14px; padding:20px;">Некорректно заполнены поля</div>
<? }
$form_data = array(
'fio' => array('Фамилия Имя Отчество', 'text', 300, 1),
'tel' => array('Телефон', 'phone', 300, 1),
);?>
<script type="text/javascript">
function a_send()
{
$('input[name="send"]').val('Отправление...').attr({'disabled' : 'disabled'});
var str = $("form[name='frmFeedback']").serialize();
$.post('<?=SITE_URL?>', str, function(data) {
$('input[name="send"]').val('Отправить').removeAttr('disabled');
$('body').append('<div class="send_window">Сообщение отправлено<\/div>');
$('.send_window').delay('5000').fadeOut(1000);
});
}
</script>
<form method="post" action="<?=$_SERVER['REQUEST_URI']?>" class="validate form_content" id="frmFeedback" enctype="multipart/form-data" onsubmit="validate_form(this);return false;">
<?
foreach($form_data as $id=>$val) {
$val['0'] = lg($val['0']);
$txt_d = (!empty($txt_data[$id])) ? htmlspecialchars($txt_data[$id]) : '';
if(isset($_POST['keystring']) && isset($_SESSION['captcha_keystring']) && $_SESSION['captcha_keystring'] != $_POST['keystring']){
if(isset($_POST['p'.$id])) $txt_d = is_array($_POST['p'.$id]) ? $_POST['p'.$id] : htmlspecialchars($_POST['p'.$id]);
}
$required = '';
if($val[3]) $required = ' required="required"';
?>
<div class="form_block">
<div class="form_title fb_title"> <?=($val['3'] == 1) ? ' <span class="redz">* </span>':''?><?=$val['0']?>:</div>
<div class="form_content fb_field">
<?if($val['1'] == 'text') { //Текст?>
<input type="text" name="p<?=$id?>" value="<?=$txt_d?>" class="input_text" style="width: <?=$val['2']?>px" id="p<?=$id?>"<?=$required?>>
<?=(!empty($val['4']))?' <div class="flabel">'.$val['4'].'</div>':''?>
<?} elseif($val['1'] == 'phone') { //Телефон?>
<input type="tel" name="p<?=$id?>" value="<?=$txt_d?>" class="input_text" style="width: <?=$val['2']?>px;" id="p<?=$id?>"<?=$required?>>
<script type="text/javascript" src="<?=SITE_URL?>jscripts/jquery.maskedinput.js"></script>
<script type="text/javascript">
$(function(){
$('#frmFeedback').find("#p<?=$id?>").mask("+7 (999) 999-9999");
});
</script>
<?} elseif($val['1'] == 'email') { //E-mail?>
<input type="email" name="p<?=$id?>" value="<?=$txt_d?>" class="input_text" style="width:<?=$val['2']?>px;" id="p<?=$id?>"<?=$required?>>
<?} elseif($val['1'] == 'file') { //Загрузка файла?>
<div class="files_element">
<input type="file" id="p<?=$id?>" name="p<?=$id?>[]" value="123<?=$txt_d?>" class="input_upload"<?=$required?>>
<div class="input_text input_file_text" onclick="review_file(this)" style="width:<?=$val['2']?>px;"></div><!--
--><div class="button button1 input_file_button" onclick="review_file(this)">Обзор</div><!--
--><div class="button button1 nbtn" onclick="add_new<?=$id?>(this)">+</div>
</div>
<script type="text/javascript">
function add_new<?=$id?>(row) {
var this_block = $(row).parent('div.files_element');
var kolvo_check = $(row).parents('div.form_content').children('div.files_element').length;
if(kolvo_check < 4){
$(row).remove();
$(this_block).after('<div class="files_element"><input type="file" id="p<?=$id?>" name="p<?=$id?>[]" value="123<?=$txt_d?>" class="input_upload"><div class="input_text input_file_text" onclick="review_file(this)" style="width:<?=$val['2']?>px;"></div><div class="button button1 input_file_button" onclick="review_file(this)">Обзор</div><div class="button button1 nbtn" onclick="add_new<?=$id?>(this)">+</div></div>').appendTo();
}else if(kolvo_check == 4) {
$(row).remove();
$(this_block).after('<div class="files_element"><input type="file" id="p<?=$id?>" name="p<?=$id?>[]" value="123<?=$txt_d?>" class="input_upload"><div class="input_text input_file_text" onclick="review_file(this)" style="width:<?=$val['2']?>px;"></div><div class="button button1 input_file_button" onclick="review_file(this)">Обзор</div></div>').appendTo();
}
}
</script>
<?} elseif($val['1'] == 'select') { //Поле выбора из вариантов?>
<select name="p<?=$id?>" id="p<?=$id?>" style="width: auto">
<?foreach($val['4'] as $did=>$dval) {?>
<option value="<?=$dval?>"<?if($dval == $txt_d) echo ' selected="selected"'?>><?=$dval?></option>
<?}?>
</select>
<?} elseif($val['1'] == 'select_beznal') { //Поле выбора для безналичной оплаты?>
<select name="p<?=$id?>" id="p<?=$id?>" style="width: auto">
<?foreach($val['4'] as $did=>$dval) {?>
<option value="<?=$did?>"><?=$dval?></option>
<?}?>
</select>
<?} elseif($val['1'] == 'radio') { //Поле выбора из вариантов?>
<?foreach($val['4'] as $did=>$dval) {?>
<label><input type="radio" name="p<?=$id?>" value="<?=$dval?>"<?if($dval == $txt_d) echo ' checked="checked"'?>> - <?=$dval?></label><br>
<?}?>
<?} elseif($val['1'] == 'checkboxes') { //Выбор галочками?>
<?foreach($val['4'] as $did=>$dval){?>
<label><input type="checkbox" name="p<?=$id?>[<?=$did?>]" value="<?=$dval?>"<?if(isset($txt_d[$did]) && $dval == $txt_d[$did]) echo ' checked="checked"'?>> - <?=$dval?></label><br>
<?}?>
<?} elseif($val['1'] == 'checkbox') { //Галочка да/нет?>
<label><input type="checkbox" name="p<?=$id?>" value="1"<?if($txt_d) echo ' checked="checked"'?>> - <?=$val['4']?></label>
<?} elseif($val['1'] == 'data') { //Дата?>
<input type="date" name="p<?=$id?>" value="<?=!empty($txt_d) ? $txt_d : date('Y-m-d')?>" id="p<?=$id?>"<?=$required?>>
<?} elseif($val['1'] == 'keystring') { //Капча?>
<div class="form_kapcha"><input type="text" name="keystring" value="" class="input_text" id="p<?=$id?>"<?=$required?>></div>
<div class="form_kapcha"><img src="<?=SITE_URL?>kcaptcha/?<?php echo session_name()?>=<?php echo session_id()?>"></div>
<?if(isset($_POST['keystring']) && isset($_SESSION['captcha_keystring']) && $_SESSION['captcha_keystring'] != $_POST['keystring']){?>
<div class="alert">Неверно введен код с картинки!</div>
<?}?>
<?} elseif($val['1'] == 'textarea') { //Текстовае поле?>
<textarea name="p<?=$id?>" style="width:<?=$val['2']?>px" class="input_textarea input_text" id="p<?=$id?>"<?=$required?>><?=$txt_d?></textarea>
<?}?>
</div>
</div>
<?}?>
<div class="form_block">
<div class="form_title fb_title">
<div class="fb_title"><span class="redz"> *</span> - <?=lg('поля, обязательные для заполнения')?></div>
</div>
<div class="form_content">
<div class="button button2" onclick="$(this).parents('form').submit();"><?=lg('Отправить')?></div>
<input type="hidden" name="send" value="1">
<input type="hidden" name="posted" value="1">
<input type="hidden" name="fast_order" value="1">
<input type="hidden" name="price" value="<?=$product->getPrice()?>">
<input type="hidden" name="prd_id" value="<?=$product->get('id')?>">
</div>
</div>
</form>
<script type="text/javascript">
function review_file(review_btn) {
$(review_btn).parent('div').find('input[type=file]').click();
$(review_btn).parent('div').find('input[type=file]').on('change', function(){
$(review_btn).parent('div').find('.input_file_text').html($(review_btn).parent('div').find('input[type=file]').val());
});
}
</script>
</div>
<?} else
{ ?>
<div class="fast_order_form" id="fast_order_form" style="display:none;">
<div class="close_fast_order" style=" width: 95%; display:inline-block;text-align: center; font: bold 16px/24px arial;">Быстрый заказ</div><div style="width: 5%;cursor:pointer; display:inline-block;text-align: right; font: bold 16px/24px arial; "onclick="fast_ordert();">✖</div>
<div style="text-align: center; min-height: 20px;">Ваш заказ успешно сформирован.<br />
Заказ <b style="font: bold 16px/24px arial;">№<?=$_SESSION['last_id_prd'];?></b><br />
Наш менеджер свяжется с вами в ближайшее время.</div>
</div>
<?$fast_order=$_SESSION['fast_order'];unset($_SESSION['fast_order']);}?>
<script>
if(<?=$fast_order?>==1){
fast_ordert()
}
function fast_ordert()
{
if (document.getElementById('fast_order_form').style.display=='none')
{
document.getElementById('fast_order_form').style.display='';
$('.pop_up_fon2').fadeIn(300);
}
else
{
document.getElementById('fast_order_form').style.display='none'
}
}
$('.pop_up_fon2, .close_fast_order').on('click', function() {
$('.fast_order_form').fadeOut(300);
$('.pop_up_fon2').fadeOut(300);
});
</script></code>
function getPrice($full_id = '')
{
$prod_info = explode('_', $full_id);
$prod_id = $prod_info[0];
if( Ishop::gI()->sets['ishop_palitra'] && !empty($prod_info[1])){
//$price = Ishop::gI()->get_palopts(1, $prod_info[1]-1, $this->data['param_palitra']); //изменяемая цена (палитра)
$price=Ishop::gI()->get_param_filter($prod_info[1],'param_2');
} else {
$price = $this->data['tsena']; //цена
}
if( $this->get('skidka') > 0 && Ishop::gI()->sets['mod_skidki_product'] ) { //товары со скидкой
$price = $price * (100 - $this->data['skidka']) / 100;
}
if( Ishop::gI()->get_cumulative_discount() > 0 ) { //накопительная скидка
$price = $price * (100 - Ishop::gI()->get_cumulative_discount()) / 100;
}
return $price;
}
Если так, то это и не устраивает-)