Sindbad~EG File Manager

Current Path : /home/numerotech/public_html/livemt2023.aios-scientificcommittee.org/app/views/ic/
Upload File :
Current File : //home/numerotech/public_html/livemt2023.aios-scientificcommittee.org/app/views/ic/ic.blade.php

@extends('layout')

@section('title')
  <title>IC</title>
@stop

@section('scriptTop')
      {{ HTML::script('/js/ajaxloader.js') }}    
      {{ HTML::script('/js/jquery.validate.js') }}
      {{ HTML::script('/js/jquery.common.js') }}
      {{ HTML::script('/js/custom.js') }}
@stop

@section('scriptBottom')
      
       <script type="text/javascript">

            var hdnId     = "#hdnId";
            var hdnStep   = "#hdnStep";
            var hdnIsNext = "#hdnIsNext";

              //Step 3 validator add 
              var CheckPanel_msg = "";
              var CheckPanel_msg_func = function () { return CheckPanel_msg; };

            // Setp1  
            $(document).ready(function () {
                
                $.validator.addMethod("custom_conf", function(value, elem, param) {
                  is_chkAnnual = $('#chkAnnual').is(":checked");
                  is_chkMidYear = $('#chkMidYear').is(":checked");
                  return !(!is_chkAnnual && !is_chkMidYear)
                },"Please choose at least one Conference");

              validation();

              $.validator.setDefaults({ onkeyup: false });
            
              $.validator.addMethod("CheckPanel", function(value, element) {
                  
                    var data = OnChangePanel(); // this funcation in step3
                    if(data['code'] == 0)
                    {
                        CheckPanel_msg = data['msg'];
                        return false;    
                    }
                    else if(data['code'] == 1)
                    {
                        CheckPanel_msg ="";                       
                        return true;
                    }                                  
                }, CheckPanel_msg_func ); 
            });


           

           function validation()
           {
              if($(hdnStep).val() == 1)
              {
                        $("#form_s1").validate({
                                    rules: {    
                                      ddlSection: {                      
                                        required: true
                                      },      
                                     ddlLevel: {
                                        required: true                      
                                      }
                                    }                
                              });
                }
                else if($(hdnStep).val() == 2)
                {
                        $("#form_s2").validate({
                              rules: {    
                                txtTitle: {                      
                                  required: true,
                                  maxlength:100
                                },      
                                txtSynopsis: {
                                  required: true,
                                  maxlength:1000
                                },                
                                txtResume: {
                                  required: true,
                                  maxlength:600                      
                                }                                
                              },  
                              messages: {
                                txtTitle:{
                                  maxlength : "Please enter not more than 100 characters"
                                },
                                txtSynopsis:{
                                  maxlength : "Please enter not more than 1000 characters"
                                },
                                txtResume:{
                                  maxlength : "Please enter not more than 600 characters"
                                }
                              }              
                        });
                }

                else if($(hdnStep).val() == 3)
                {
                        $("#form_s3").validate({
                              rules: {    
                                txtpanel_discussion: {                                  
                                  number:true,
                                  maxlength:2,
                                  min:0,
                                  CheckPanel:true
                                }
                              }                
                        });
                }
                else if($(hdnStep).val() == 4)
                {
                        $("#form_s4").validate({
                            ignore: "",
                              rules: {    
                                chkterms: {                                  
                                  required:true
                                },
                                 conference:{
                                  custom_conf:true
                                }
                              },
                              messages: {
                                chkterms:"Please, accept terms & conditions"
                              }                
                        });
                }
           }

            function Move(step,nextprevious)
            {

                //set next or previous 
                //next then 1 else 0 then previous
                $(hdnIsNext).val(nextprevious);

                if(nextprevious == 1)                  
                {
                    validation();                    
                    if(!$("#form_s"+ step).valid())
                    {
                      return false;
                    }

                    if(step == 4)
                    {
                     var cfm = confirm("It is not possible to edit your abstract after submit. Do you want to submit it ? Click OK to confirm." + '\n' + '\n' + "While submitting, please do not press ‘Back‘ button or Close the window. Please wait patiently until the submission is complete");
                     if(!cfm)
                     {
                      return false;
                     }
                    }  
                }  
                


                    // now do whatever you want here
                  $.ajax({
                      type: 'POST', // <-- get method of form
                      url: $("#form_s"+ step).attr('action'), // <-- get action of form
                      data: $("#form_s"+ step).serialize(), // <-- serialize all fields into a string that is ready to be posted to your PHP file
                      dataType: 'json',
                      beforeSend: function(){
                           ShowProgress();
                      },
                      success: function(data){
                        if(data.code == 1)
                        {
                            $('#frm').html(data.data);
                        }
                        else
                        {
                            errormsg(data.msg);
                        }
                        StopProgress();
                      },
                      error: function(XMLHttpRequest, textStatus, errorThrown) { 
                          // location.reload();  
                      }  
                  });   
                    
              return false;

            }
 

 </script> 

@stop

@section('content')     

@section('ContentTitle')
{{ CustomClass::$Title }} Instruction Course Submission Form 
@stop

<div id="frm">
  @include('ic.step1')  
</div>

@stop

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists