Guest User

Untitled

a guest
May 22nd, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 7.43 KB | None | 0 0
  1.  
  2. <a data-toggle="modal" href="#buyModal" id="buyBtnModal" class="btn success large"><perch:content id="buy-button-text" type="text" label="Button text" required="true" /></a>
  3. <br/><br/>
  4. <a data-toggle="modal" href="#callbackModal" id="callbackBtnModal" data-content="get service..." data-original-title="<perch:content id="callback-button-text" type="text" label="Callback Button text" required="true" />"  class="btn info large"><perch:content id="callback-button-text" type="text" label="Button text" required="true" /></a>
  5.  
  6. <perch:form id="buy-contact" method="post" app="perch_forms" class="horizontal-form">
  7.     <div id="buyModal" class="modal hide fade">
  8.         <div class="modal-header">
  9.             <a href="#" class="close" data-dismiss="modal">&times;</a>
  10.             <h3><perch:content id="modal-heading" type="text" label="Dialog title text" required="true" /></h3>
  11.         </div>
  12.         <div class="modal-body">
  13.             <div id="buyform-step1">
  14.                         <p><perch:content id="form-description" type="text" label="Form description on top" /></p>
  15.  
  16.                 <fieldset class="control-group">
  17.                     <label class="control-label" for="">Please tell us how we may help you</label>
  18.                         <div class="controls">
  19.                                 <perch:label for="requested-services1">
  20.                             <perch:input type="checkbox" id="requested-services1" value="Individual Product Presentation / Live-Demo" />
  21.                             Individual Product Presentation / Live-Demo
  22.                         </perch:label>
  23.                         <perch:label for="requested-services2">
  24.                             <perch:input type="checkbox" id="requested-services2" value="Z1 Software 30-Days-Trial" />
  25.                             Z1 Software 30-Days-Trial
  26.                         </perch:label>
  27.                         <perch:label for="requested-services3">
  28.                             <perch:input type="checkbox" id="requested-services3" value="Price Quote - depending on your requirements" />
  29.                             Price Quote - depending on your requirements
  30.                         </perch:label>
  31.                         </div>
  32.                     </fieldset>
  33.                 <p class="help-block">One of your staff members will contact you soon after your successful registration with zertificon.</p>
  34.             </div>
  35.             <div id="buyform-step2" class="hide">
  36.                 <legend>Online Inquiry Form - Z1 Demos, Trials and Price Info</legend>
  37.                 <fieldset class="control-group">
  38.                         <label class="control-label" for="company-name">Company name</label>
  39.                         <div class="controls">
  40.                         <perch:input type="text" id="company-name" required="true" /> *
  41.                         </div>
  42.                 </fieldset>
  43.                 <fieldset class="control-group">
  44.                         <label class="control-label" for="company-name">Company Website URL</label>
  45.                         <div class="controls">
  46.                         <perch:input type="url" id="company-name" />
  47.                         </div>
  48.                 </fieldset>
  49.                 <fieldset class="control-group">
  50.                         <label class="control-label" for="name">Name</label>
  51.                         <div class="controls">
  52.                         <perch:input type="text" id="name" required="true" /> *
  53.                         </div>
  54.                 </fieldset>
  55.                 <fieldset class="control-group">
  56.                         <label class="control-label" for="e-mail">E-Mail address</label>
  57.                         <div class="controls">
  58.                         <perch:input type="email" id="e-mail" required="true" /> *
  59.                     </div>
  60.                     </fieldset>
  61.                 <fieldset class="control-group">
  62.                         <label class="control-label" for="telephone">Phone no.</label>
  63.                         <div class="controls">
  64.                         <perch:input type="text" id="telephone" required="true" /> *
  65.                         </div>
  66.                     </fieldset>
  67.             </div>
  68.             <div id="buyform-step3" class="hide">
  69.                 <legend>Further Information (voluntary)</legend>
  70.                 <fieldset class="control-group">
  71.                         <label class="control-label" for="attention">How did you find out about Zertificon?</label>
  72.                         <div class="controls">
  73.                         <perch:input type="select" id="attention" required="false" options="—, Search Engine|search, Attended trade show/event|event, Zertificon website|website, Press Release|press, Recommendation, Zertificon partner|partner" />
  74.                         </div>
  75.                 </fieldset>
  76.                 <fieldset class="control-group">
  77.                         <label class="control-label" for="organization-size">What's the size of your company?</label>
  78.                         <div class="controls">
  79.                         <perch:input type="select" id="organization-size" required="false" options="—, Big Corporation › 10.000 employees|big corporation, Mayor Enterprise › 1.000 employees|mayor enterprise, Medium sized company 101 - 1.000 employees|medium company, Small-medium sized enterprise 11 - 100 employees|small-medium, Small office / home office 1 - 10 employees|small company, Public institution|public institution, School/University|school university, Research/Development|research, Private, Other" />
  80.                         </div>
  81.                 </fieldset>
  82.             </div>
  83.         </div>
  84.         <div class="modal-footer">
  85.             <div class="span2"><h3>Step <span id="buy-step-counter">3</span>/3</h3></div>
  86.  
  87.  
  88.             <div class="span2">
  89.                 <a class="btn info hide" id="buy-back-button">Back</a>
  90.             </div>
  91.             <div class="span2 pull-right">
  92.                 <a class="btn primary" id="buy-next-button" >Next</a>
  93.             </div>
  94.             <div class="span2 pull-right">
  95.                 <input type="submit" value="Send Inquiry" class="btn success" id="buy-submit-button">
  96.             </div>
  97.         </div>
  98.     </div>
  99. </perch:form>
  100.  
  101. <perch:form id="callback" method="post" app="perch_forms" class="horizontal-form">
  102.     <div id="callbackModal" class="modal hide fade" style="display: block; width: 586px;border-radius: 30px;">
  103.         <a href="#" class="fancyclose" data-dismiss="modal" style="position: absolute;top: 10px;right: 13px;"></a>
  104.  
  105.         <div class="modal-body" style="">
  106.  
  107.             <div style="padding:50px">
  108.                 <label for="" style="font-family: Georgia,Times New Roman,Times,serif;font-size: 23px;color: #555;">Please write down your phone number:</label>
  109.            
  110.                 <div class="horizontal-form" style="margin-top:30px;">
  111.                     <perch:input type="text" id="telephone" style="background: none;border: 0;font-size: 40px;height: auto;font-family: Georgia,Times New Roman,Times,serif;width: 300px;margin: 20px 0;" placeholder="011-44-7981-897555" required="true" />
  112.                     <span style="font-family: Georgia,Times New Roman,Times,serif;font-size: 23px;">*</span>
  113.                     <input type="submit" value="CALL ME BACK" class="btn success large"/>
  114.                 </div>
  115.             </div>
  116.         </div>
  117.     </div>
  118. </perch:form>
  119.  
  120. <script src="/media/js/bootstrap-modal.js"></script>
  121. <script src="/media/js/bootstrap-twipsy.js"></script>
  122. <script src="/media/js/bootstrap-popover.js"></script>
  123.  
  124. <script>
  125. $('#buyModal').modal('hide');
  126. $('#callbackModal').modal('hide');
  127.  
  128. var cur_step;
  129. setBuyStep(1);
  130.  
  131. $("#buy-submit-button").hide();
  132. $("#buy-back-button").hide();
  133.  
  134. $("#buy-next-button").click(function() {
  135.     $("#buyform-step"+cur_step).hide();
  136.     cur_step++
  137.     setBuyStep(cur_step);
  138.     $("#buyform-step"+cur_step).show();
  139.     $("#buy-back-button").show();
  140.     if (cur_step==3)
  141.     {
  142.         $("#buy-next-button").hide();
  143.         $("#buy-submit-button").show();
  144.     }
  145. });
  146.  
  147. function setBuyStep(step) {
  148.     cur_step = step;
  149.     $("#buy-step-counter").html(step);
  150. }
  151.  
  152. $("#buy-back-button").click(function() {
  153.     $("#buyform-step"+cur_step).hide();
  154.    
  155.     if(cur_step!=1)
  156.     {
  157.         cur_step--
  158.         setBuyStep(cur_step);
  159.         $("#buyform-step"+cur_step).show();
  160.     }
  161.  
  162.     if (cur_step<3)
  163.     {
  164.         $("#buy-submit-button").hide();
  165.         $("#buy-back-button").show();
  166.         $("#buy-next-button").show();
  167.     }
  168.  
  169.     if (cur_step==1)
  170.     {
  171.         $("#buy-back-button").hide();
  172.     }
  173. });
  174.  
  175. $("#callbackBtnModal").popover();
  176.  
  177. /*$('#callbackModal').modal('hide');*/
  178. </script>
Add Comment
Please, Sign In to add comment