Вход Регистрация
Файл: version 2.0.5/demo-order.html
Строк: 220
<?php
<!DOCTYPE html
<
html>
    <
head>
        <
title>Sky Forms Pro</title>
        
        <
meta charset="utf-8">
        <
meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0">
        
        <
link rel="stylesheet" href="css/demo.css">
        <
link rel="stylesheet" href="css/font-awesome.css">
        <
link rel="stylesheet" href="css/sky-forms.css">
        <
link rel="stylesheet" href="css/sky-forms-red.css">
        <!--[if 
lt IE 9]>
            <
link rel="stylesheet" href="css/sky-forms-ie8.css">
        <![endif]-->
        
        <
script src="js/jquery.min.js"></script>
        <
script src="js/jquery-ui.min.js"></script>
        <
script src="js/jquery.form.min.js"></script>
        <
script src="js/jquery.validate.min.js"></script>
        <!--[if 
lt IE 10]>
            <
script src="js/jquery.placeholder.min.js"></script>
        <![endif]-->        
        <!--[if 
lt IE 9]>
            <
script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
            <
script src="js/sky-forms-ie8.js"></script>
        <![endif]-->
    </
head>
    
    <
body class="bg-red">
        <
div class="body">        
            <
form action="demo-order-process.php" method="post" enctype="multipart/form-data" id="sky-form" class="sky-form">
                <
header>Order services</header>
                    
                <
fieldset>                    
                    <
div class="row">
                        <
section class="col col-6">
                            <
label class="input">
                                <
class="icon-append fa fa-user"></i>
                                <
input type="text" name="name" placeholder="Name">
                            </
label>
                        </
section>
                        <
section class="col col-6">
                            <
label class="input">
                                <
class="icon-append fa fa-briefcase"></i>
                                <
input type="text" name="company" placeholder="Company">
                            </
label>
                        </
section>
                    </
div>
                    
                    <
div class="row">
                        <
section class="col col-6">
                            <
label class="input">
                                <
class="icon-append fa fa-envelope-o"></i>
                                <
input type="email" name="email" placeholder="E-mail">
                            </
label>
                        </
section>
                        <
section class="col col-6">
                            <
label class="input">
                                <
class="icon-append fa fa-phone"></i>
                                <
input type="tel" name="phone" placeholder="Phone">
                            </
label>
                        </
section>
                    </
div>
                </
fieldset>
                    
                <
fieldset>
                    <
div class="row">
                        <
section class="col col-6">
                            <
label class="select">
                                <
select name="interested">
                                    <
option value="none" selected disabled>Interested in</option>
                                    <
option value="design">design</option>
                                    <
option value="development">development</option>
                                    <
option value="illustration">illustration</option>
                                    <
option value="branding">branding</option>
                                    <
option value="video">video</option>
                                </
select>
                                <
i></i>
                            </
label>
                        </
section>
                        <
section class="col col-6">
                            <
label class="select">
                                <
select name="budget">
                                    <
option value="0" selected disabled>Budget</option>
                                    <
option value="less than 5000$">less than 5000$</option>
                                    <
option value="5000$ - 10000$">5000$ - 10000$</option>
                                    <
option value="10000$ - 20000$">10000$ - 20000$</option>
                                    <
option value="more than 20000$">more than 20000$</option>
                                </
select>
                                <
i></i>
                            </
label>
                        </
section>
                    </
div>
                    
                    <
div class="row">
                        <
section class="col col-6">
                            <
label class="input">
                                <
class="icon-append fa fa-calendar"></i>
                                <
input type="text" name="start" id="start" placeholder="Expected start date">
                            </
label>
                        </
section>
                        <
section class="col col-6">
                            <
label class="input">
                                <
class="icon-append fa fa-calendar"></i>
                                <
input type="text" name="finish" id="finish" placeholder="Expected finish date">
                            </
label>
                        </
section>
                    </
div>
                    
                    <
section>
                        <
label for="file" class="input input-file">
                            <
div class="button"><input type="file" name="file" multiple onchange="this.parentNode.nextSibling.value = this.value">Browse</div><input type="text" placeholder="Include some file" readonly>
                        </
label>
                    </
section>
                    
                    <
section>
                        <
label class="textarea">
                            <
class="icon-append fa fa-comment"></i>
                            <
textarea rows="5" name="comment" placeholder="Tell us about your project"></textarea>
                        </
label>
                    </
section>                    
                </
fieldset>
                <
footer>
                    <
button type="submit" class="button">Send request</button>
                    <
div class="progress"></div>
                </
footer>                
                <
div class="message">
                    <
class="fa fa-check"></i>
                    <
p>Thanks for your order!<br>We'll contact you very soon.</p>
                </div>
            </form>            
        </div>
        
        <script type="text/javascript">
            $(function()
            {
                // Datepickers
                $('
#start').datepicker({
                    
dateFormat'dd.mm.yy',
                    
prevText'<i class="fa fa-chevron-left"></i>',
                    
nextText'<i class="fa fa-chevron-right"></i>',
                    
onSelect: function( selectedDate )
                    {
                        $(
'#finish').datepicker('option''minDate'selectedDate);
                    }
                });
                $(
'#finish').datepicker({
                    
dateFormat'dd.mm.yy',
                    
prevText'<i class="fa fa-chevron-left"></i>',
                    
nextText'<i class="fa fa-chevron-right"></i>',
                    
onSelect: function( selectedDate )
                    {
                        $(
'#start').datepicker('option''maxDate'selectedDate);
                    }
                });
                
                
// Validation
                
$("#sky-form").validate(
                {                    
                    
// Rules for form validation
                    
rules:
                    {
                        
name:
                        {
                            
requiredtrue
                        
},
                        
email:
                        {
                            
requiredtrue,
                            
emailtrue
                        
},
                        
phone:
                        {
                            
requiredtrue
                        
},
                        
interested:
                        {
                            
requiredtrue
                        
},
                        
budget:
                        {
                            
requiredtrue
                        
}
                    },
                                        
                    
// Messages for form validation
                    
messages:
                    {
                        
name:
                        {
                            
required'Please enter your name'
                        
},
                        
email:
                        {
                            
required'Please enter your email address',
                            
email'Please enter a VALID email address'
                        
},
                        
phone:
                        {
                            
required'Please enter your phone number'
                        
},
                        
interested:
                        {
                            
required'Please select interested service'
                        
},
                        
budget:
                        {
                            
required'Please select your budget'
                        
}
                    },

                    
// Ajax form submition
                    
submitHandler: function(form)
                    {
                        $(
form).ajaxSubmit(
                        {
                            
beforeSend: function()
                            {
                                $(
'#sky-form button[type="submit"]').addClass('button-uploading').attr('disabled'true);
                            },
                        
uploadProgress: function(eventpositiontotalpercentComplete)
                        {
                            $(
"#sky-form .progress").text(percentComplete '%');
                        },
                            
success: function()
                            {
                                $(
"#sky-form").addClass('submited');
                                $(
'#sky-form button[type="submit"]').removeClass('button-uploading').attr('disabled'false);
                            }
                        });
                    },    
                    
                    
// Do not change code below
                    
errorPlacement: function(errorelement)
                    {
                        
error.insertAfter(element.parent());
                    }
                });
            });            
        </
script>
    </
body>
</
html>
?>
Онлайн: 0
Реклама