<style>
    .required{
        color: #bf5050;
    }
    
</style>
      
        <!-- page content -->
        <div class="right_col" role="main">
          <div class="">
            <div class="page-title">
                <div class="title_left">
                    <h3> Create Paper</h3>
                </div>
            </div>
            <div class="clearfix"></div>
            <div class="row">
              <div class="col-md-12 col-sm-12 col-xs-12">
                <div class="x_panel">
                  <div class="x_title">
                    <h2>Selection</h2>
                    <ul class="nav navbar-right panel_toolbox">
                      <li><a class="collapse-link"><i class="fa fa-chevron-up"></i></a></li>
                    </ul>
                    <div class="clearfix"></div>
                  </div>
                  <div class="x_content">
           <form class="form-horizontal form-label-left enter" action="<?php echo $base_url;?>autopaper/get_question_print" method="post" >
                     <?php if($this->user_model->is_super()){ ?>
             <div class="item form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Branch <span class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                          <select id="branch" class="form-control col-md-7 col-xs-12" name="branch" required="required">
                            <option value=''>Select Branch</option>
                      <?php
                            foreach ($branch as $value) {
                      ?>
                            <option value="<?php echo $value->id; ?>"><?php echo $value->name;?></option>

                      <?php } ?>
                          </select>
                        </div>
                      </div>
                      <?php  }else{$branch=$this->user_model->getbranch();?>
                          <input id="branch" name="branch" type="hidden" value="<?= $branch ?>">
                      <?php  } ?>
                      <div class="item form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Class <span class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                          <select id="class" name="class" class="form-control" required>
                            <option value="">Select Class</option>
                          </select>
                        </div>
                      </div>
                      
                      
                        <div class="item form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Exam <span>*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                          <select id="exam" name="exam" class="form-control">
                            <option value="">Select Exam</option>
                          </select>
                        </div>
                      </div>
                      
                      
                      <div class="item form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Subject <span class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                          <select id="subject" name="subject" class="form-control sub" required>
                            <option value="">Select Subject</option>
                          </select>
                        </div>
                      </div>
                      
                      <div class="item form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Chapter<span class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                          <div id="chapterpast" class="ch[]">

                          </div>
                       
                        </div>
                      </div>
                       <div class="item form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Level<span class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                          
                          <select id="level" name="level" class="form-control" required>
                            <option value="">Select Level</option>
                            <option value="Easy">Easy</option>
                            <option value="Medium">Medium</option>
                            <option value="Difficult">Difficult</option>
                          </select>
                        </div>
                      </div>
                       
                      <div class="item form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-10" for="name">Date of Paper<span class="required">*</span>
                        </label>
                        <div class="col-md-2 col-sm-2 col-xs-10">
                                <input name="dateofpaper" id="dateofpaper" class="form-control" readonly required="true">
                        </div>
                        <label class="control-label col-md-1 col-sm-2 col-xs-5" for="name">Time<span class=" ">*</span>
                        </label>
                        <div class="col-md-3 col-sm-3 col-xs-2">
                                     <input id='timepickerr' class="form-control"  type='text'  name="time"/ >

                        </div>
                      </div>
                      <div class="item form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-10" for="name">Total Marks<span class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-2 col-xs-10">
                                <input type="number" name="totalmarks" class="form-control " placeholder="Total Marks of this paper"  >
                        </div>
                       
                      </div>
<!--start of mcq-->
                       <div class="item form-group"   >
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Tag Line for Mcqs<span class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                           <input type="text" name="mcq_tag" class="form-control" id="mcqtag" disabled  >                       
                        </div>
                        <div class="col-md-2 col-sm-2 col-xs-12">
                           <span class="mcqtype">0</span>                       
                        </div>
                      </div>
                      <div class="item form-group row1"  >
                        <label class="control-label col-md-3 col-sm-3 col-xs-10" for="name">Mcq's<span class="required">*</span>
                        </label>
                        <div class="col-md-2 col-sm-2 col-xs-10">
                                <input type="number" name="mcq" class="form-control q q0 mcqqty" disabled  >
                        </div>
                        <label class="control-label col-md-2 col-sm-2 col-xs-5" for="name">Mcq Marks<span class=" ">*</span>
                        </label>

                        <div class="col-md-2 col-sm-3 col-xs-2">
                                <input type="number" name="mcq_marks" class="form-control m m0 mcqmarks"  disabled>
                        </div>
                      </div>
<!---end of mcqs-->


<!--start of Paragraph-->
                      <div class="item form-group"   >
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Tag Line for Paragraph<span class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                           <input type="text" name="paragraph_tag" class="form-control" id="typee5" disabled >                       
                        </div>
                        <div class="col-md-2 col-sm-2 col-xs-12">
                           <span id="type5">0</span>                       
                        </div>
                      </div>
                      <div class="item form-group row1"  >
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Paragraph<span class=" ">*</span>
                        </label>

                        <div class="col-md-2 col-sm-2 col-xs-5">
                                <input type="number" name="paragraph"  class="form-control q q4 typeee5"  disabled   >
                        </div>

                        <label class="control-label col-md-2 col-sm-2 col-xs-12" for="name">Marks<span class=" ">*</span>
                        </label>

                        <div class="col-md-2 col-sm-2 col-xs-5">
                                <input type="number" name="paragraph_marks"  class="form-control  m m4 typeeemarks5"  disabled  >
                        </div>
                      </div>
<!--end of paragraph-->

<!--Start of summary-->

                      <div class="item form-group"   >
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Tag Line for Summary<span class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                           <input type="text" name="summary_tag" class="form-control" id="typee8" disabled >                       
                        </div>
                        <div class="col-md-2 col-sm-2 col-xs-12">
                           <span id="type8">0</span>                       
                        </div>
                      </div>
                      <div class="item form-group row1"   >
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Summary<span class=" ">*</span>
                        </label>

                        <div class="col-md-2 col-sm-2 col-xs-5">
                                <input type="number" name="summary"  class="form-control q q7 typeee8"  disabled >
                        </div>

                        <label class="control-label col-md-2 col-sm-2 col-xs-12" for="name">Marks<span class=" ">*</span>
                        </label>

                        <div class="col-md-2 col-sm-2 col-xs-5">
                                <input type="number" name="summary_marks"  class="form-control  m m7 typeeemarks8"  disabled  >
                        </div>
                      </div>

<!--end of summary-->

<!--essay start-->
                     <!-- <div class="item form-group"  >
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Tag Line for Essay<span class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                           <input type="text" name="essay_tag" class="form-control"  id="typee9" disabled >                       
                        </div>
                        <div class="col-md-2 col-sm-2 col-xs-12">
                           <span id="type9">0</span>                       
                        </div>
                      </div>
                      <div class="item form-group row1"   >
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Essay<span class=" ">*</span>
                        </label>

                        <div class="col-md-2 col-sm-2 col-xs-5">
                                <input type="number" name="essay"  class="form-control q q8 typeee9"  disabled  >
                        </div>

                        <label class="control-label col-md-2 col-sm-2 col-xs-12" for="name">Marks<span class=" ">*</span>
                        </label>

                        <div class="col-md-2 col-sm-2 col-xs-5">
                                <input type="number" name="essay_marks"  class="form-control  m m8 typeeemarks9"  disabled  >
                        </div>
                      </div>-->
<!--end of essay-->
<!--application-->
                      <div class="item form-group"  >
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Tag Line for Application<span class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                           <input type="text" name="application_tag" class="form-control" id="typee7"  disabled >                       
                        </div>
                        <div class="col-md-2 col-sm-2 col-xs-12">
                           <span id="type7">0</span>                       
                        </div>
                      </div>
                      <div class="item form-group row1"  >
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Application<span class=" ">*</span>
                        </label>

                        <div class="col-md-2 col-sm-2 col-xs-5">
                                <input type="number" name="application"  class="form-control q q6 typeee7" disabled >
                        </div>

                        <label class="control-label col-md-2 col-sm-2 col-xs-12" for="name">Marks<span class=" ">*</span>
                        </label>

                        <div class="col-md-2 col-sm-2 col-xs-5">
                                <input type="number" name="application_marks"  class="form-control  m m6 typeeemarks7" disabled >
                        </div>
                      </div>
<!--end of application-->
<!--start of letter-->
                      <div class="item form-group"   >
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Tag Line for Letter<span class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                           <input type="text" name="letter_tag" class="form-control" id="typee6" disabled >                       
                        </div>
                        <div class="col-md-2 col-sm-2 col-xs-12">
                           <span id="type6">0</span>                       
                        </div>
                      </div>
                      <div class="item form-group row1"   >
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Letter<span class=" ">*</span>
                        </label>

                        <div class="col-md-2 col-sm-2 col-xs-5">
                                <input type="number" name="letter"  class="form-control q q5 typeee6"  disabled >
                        </div>
                        <label class="control-label col-md-2 col-sm-2 col-xs-12" for="name">Marks<span class=" ">*</span>
                        </label>
                        <div class="col-md-2 col-sm-2 col-xs-5">
                                <input type="number" name="letter_marks"  class="form-control  m m5 typeeemarks6" disabled >
                        </div>
                      </div>
<!--end of letter-->
<!--short question-->
                      <div class="item form-group"   >
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Tag Line for ShortQuestion<span class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                           <input type="text" name="short_tag" class="form-control" id="shorttag"  disabled>                       
                        </div>
                        <div class="col-md-2 col-sm-2 col-xs-12">
                           <span class="shorttype">0</span>                       
                        </div>
                      </div>
                      <div class="item form-group row1" >
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Short Question<span class=" ">*</span>
                        </label>

                        <div class="col-md-2 col-sm-2 col-xs-5">
                                <input type="number" name="short"  class="form-control q q1 shortqty"  disabled  >
                        </div>
                        <label class="control-label col-md-2 col-sm-2 col-xs-12" for="name">Short Question Marks<span class=" ">*</span>
                        </label>

                        <div class="col-md-2 col-sm-2 col-xs-5">
                                <input type="number" name="short_marks"  class="form-control  m m1 shortmarks"   disabled  >
                        </div>
                      </div>
<!--end of short-->
<!--start of long-->
                      <div class="item form-group"   >
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Tag Line for long<span class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                           <input type="text" name="long_tag" class="form-control" id="longtag" disabled  >                       
                        </div>
                        <div class="col-md-2 col-sm-2 col-xs-12">
                           <span id="longtype">0</span>                       
                        </div>
                      </div>
                      <div class="item form-group row1"   >
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Long Question<span class=" ">*</span>
                        </label>

                        <div class="col-md-2 col-sm-2 col-xs-5">
                                <input type="number" name="long"  class="form-control q q2 longqty"  disabled  >
                        </div>

                        <label class="control-label col-md-2 col-sm-2 col-xs-12" for="name">Long Question Marks<span class=" ">*</span>
                        </label>

                        <div class="col-md-2 col-sm-2 col-xs-5">
                                <input type="number" name="long_marks"  class="form-control  m m2 longmarks"  disabled  >
                        </div>
                      </div>
<!--end of long-->
<!--centerl idea-->
                      <div class="item form-group"  >
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Tag Line for Central Idea<span class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                           <input type="text" name="ci_tag" class="form-control" id="typee13" disabled  >                       
                        </div>
                        <div class="col-md-2 col-sm-2 col-xs-12">
                           <span id="type13">0</span>                       
                        </div>
                      </div>
                      <div class="item form-group row1"  >
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Central Idea<span class=" ">*</span>
                        </label>

                        <div class="col-md-2 col-sm-2 col-xs-5">
                                <input type="number" name="centeralidea"  class="form-control q q12 typeee13"   disabled  >
                        </div>

                        <label class="control-label col-md-2 col-sm-2 col-xs-12" for="name">Marks<span class=" ">*</span>
                        </label>

                        <div class="col-md-2 col-sm-2 col-xs-5">
                                <input type="number" name="centeralidea_marks"  class="form-control  m m12 typeeemarks13"   disabled >
                        </div>
                      </div>
<!--end centeral Idea-->
<!--start of words meanings-->
                      <div class="item form-group"   >
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Tag Line for Words Meanings<span class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                           <input type="text" name="wm_tag" class="form-control" id="typee16" disabled >                       
                        </div>
                        <div class="col-md-2 col-sm-2 col-xs-12">
                           <span id="type16">0</span>                       
                        </div>
                      </div>
                      <div class="item form-group row1"   >
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Words Meanings<span class=" ">*</span>
                        </label>

                        <div class="col-md-2 col-sm-2 col-xs-5">
                                <input type="number" name="wordsmeanings"  class="form-control q q15 typeee16" disabled >
                        </div>

                        <label class="control-label col-md-2 col-sm-2 col-xs-12" for="name">Marks<span class=" ">*</span>
                        </label>

                        <div class="col-md-2 col-sm-2 col-xs-5">
                                <input type="number" name="wordsmeanings_marks"  class="form-control  m m15 typeeemarks16"  disabled  >
                        </div>
                      </div>
<!--end of words-->
<!--start of make sentese-->
                      <div class="item form-group"   >
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Tag Line for Make Sentences<span class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                           <input type="text" name="ms_tag" class="form-control" id="typee15" disabled  >                       
                        </div>
                        <div class="col-md-2 col-sm-2 col-xs-12">
                           <span id="type15">0</span>                       
                        </div>
                      </div>
                      <div class="item form-group row1"   >
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Make Sentences<span class=" ">*</span>
                        </label>

                        <div class="col-md-2 col-sm-2 col-xs-5">
                                <input type="number" name="makesentence"  class="form-control q q14 typeee15"  disabled  >
                        </div>

                        <label class="control-label col-md-2 col-sm-2 col-xs-12" for="name">Marks<span class=" ">*</span>
                        </label>

                        <div class="col-md-2 col-sm-2 col-xs-5">
                                <input type="number" name="makesentence_marks"  class="form-control  m m14 typeeemarks15"  disabled >
                        </div>
                      </div>
  <!--end of make sentence-->
<!--poem-->
                      <div class="item form-group"  >
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Tag Line for Poem<span class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                           <input type="text" name="poem_tag" class="form-control" id="typee10" disabled  >                       
                        </div>
                        <div class="col-md-2 col-sm-2 col-xs-12">
                           <span id="type10">0</span>                       
                        </div>
                      </div>
                      <div class="item form-group row1"   >
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Poem<span class=" ">*</span>
                        </label>

                        <div class="col-md-2 col-sm-2 col-xs-5">
                                <input type="number" name="poem"  class="form-control q q9 typeee10"  disabled >
                        </div>

                        <label class="control-label col-md-2 col-sm-2 col-xs-12" for="name">Marks<span class=" ">*</span>
                        </label>

                        <div class="col-md-2 col-sm-2 col-xs-5">
                                <input type="number" name="poem_marks"  class="form-control  m m9 typeeemarks10"  disabled >
                        </div>
                      </div>
<!--end of poem-->
<!--opposites-->
                      <div class="item form-group"   >
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Tag Line for Opposites<span class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                           <input type="text" name="opposites_tag" class="form-control" id="typee12" disabled >                       
                        </div>
                        <div class="col-md-2 col-sm-2 col-xs-12">
                           <span id="type12">0</span>                       
                        </div>
                      </div>
                      <div class="item form-group row1"   >
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Opposites<span class=" ">*</span>
                        </label>
                        <div class="col-md-2 col-sm-2 col-xs-5">
                                <input type="number" name="opposites"  class="form-control q q11 typeee12"  disabled >
                        </div>
                        <label class="control-label col-md-2 col-sm-2 col-xs-12" for="name">Marks<span class=" ">*</span>
                        </label>
                        <div class="col-md-2 col-sm-2 col-xs-5">
                                <input type="number" name="opposites_marks"  class="form-control  m m11 typeeemarks12"  disabled >
                        </div>
                      </div>
<!--end of opposites-->
<!--superlative-->
                      <div class="item form-group"   >
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Tag Line for Degrees Of Adjective<span class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                           <input type="text" name="postive_tag" class="form-control" id="typee17" disabled >                       
                        </div>
                        <div class="col-md-2 col-sm-2 col-xs-12">
                           <span id="type17">0</span>                       
                        </div>
                      </div>
                      <div class="item form-group row1"  >
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Degrees Of Adjective<span class=" ">*</span>
                        </label>

                        <div class="col-md-2 col-sm-2 col-xs-5">
                                <input type="number" name="postive"  class="form-control q q16 typeee17"  disabled  >
                        </div>

                        <label class="control-label col-md-2 col-sm-2 col-xs-12" for="name">Marks<span class=" ">*</span>
                        </label>

                        <div class="col-md-2 col-sm-2 col-xs-5">
                                <input type="number" name="postive_marks"  class="form-control  m m16 typeeemarks17"  disabled >
                        </div>
                      </div>
<!--end of superlative-->
<!--ideoms-->
                      <div class="item form-group"  >
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Tag Line for Idioms<span class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                           <input type="text" name="ideoms_tag" class="form-control"  id="typee18" disabled >                       
                        </div>
                        <div class="col-md-2 col-sm-2 col-xs-12">
                           <span id="type18">0</span>                       
                        </div>
                      </div>
                      <div class="item form-group row1"  >
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Idioms<span class=" ">*</span>
                        </label>

                        <div class="col-md-2 col-sm-2 col-xs-5">
                                <input type="number" name="ideoms"  class="form-control q q17 typeee18"   disabled >
                        </div>

                        <label class="control-label col-md-2 col-sm-2 col-xs-12" for="name">Marks<span class=" ">*</span>
                        </label>

                        <div class="col-md-2 col-sm-2 col-xs-5">
                                <input type="number" name="ideoms_marks"  class="form-control  m m17 typeeemarks18"  disabled  >
                        </div>
                      </div>
<!--end of ideoms-->

<!--Start of grammer-->

                      <div class="item form-group"  >
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Tag Line for Grammar<span class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                           <input type="text" name="grammer_tag" class="form-control"  id="typee20" disabled >                       
                        </div>
                        <div class="col-md-2 col-sm-2 col-xs-12">
                           <span id="type20">0</span>                       
                        </div>
                      </div>
                      <div class="item form-group row1"  >
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Grammar<span class=" ">*</span>
                        </label>

                        <div class="col-md-2 col-sm-2 col-xs-5">
                                <input type="number" name="grammer_question"  class="form-control q q10 typeee20"   disabled >
                        </div>

                        <label class="control-label col-md-2 col-sm-2 col-xs-12" for="name">Marks<span class=" ">*</span>
                        </label>

                        <div class="col-md-2 col-sm-2 col-xs-5">
                                <input type="number" name="grammer_marks"  class="form-control  m m10 typeeemarks20"  disabled >
                        </div>
                      </div>

<!--Start of grammer-->

<!--starting singular plural-->

                      <div class="item form-group"  >
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Tag Line for Singular/Plural<span class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                           <input type="text" name="sp_tag" class="form-control"  id="typee11" disabled >                       
                        </div>
                        <div class="col-md-2 col-sm-2 col-xs-12">
                           <span id="type11">0</span>                       
                        </div>
                      </div>
                      <div class="item form-group row1"  >
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Singular/plural<span class=" ">*</span>
                        </label>

                        <div class="col-md-2 col-sm-2 col-xs-5">
                                <input type="number" name="singular"  class="form-control q q10 typeee11"   disabled >
                        </div>

                        <label class="control-label col-md-2 col-sm-2 col-xs-12" for="name">Marks<span class=" ">*</span>
                        </label>

                        <div class="col-md-2 col-sm-2 col-xs-5">
                                <input type="number" name="singular_marks"  class="form-control  m m10 typeeemarks11"  disabled >
                        </div>
                      </div>

<!--ending singular plural-->

<!--fill in blanks-->
                      <div class="item form-group"  >
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Tag Line for Fill Blanks<span class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                           <input type="text" name="fill_tag" class="form-control"  id="typee4" disabled >                       
                        </div>
                        <div class="col-md-2 col-sm-2 col-xs-12">
                           <span id="type4">0 </span>                       
                        </div>
                      </div>
                      <div class="item form-group row1"   >
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Fill In Blanks<span class=" ">*</span>
                        </label>

                        <div class="col-md-2 col-sm-2 col-xs-5">
                                <input type="number" name="fill"  class="form-control q q3 typeee4"  disabled >
                        </div>

                        <label class="control-label col-md-2 col-sm-2 col-xs-12" for="name">Marks<span class=" ">*</span>
                        </label>

                        <div class="col-md-2 col-sm-2 col-xs-5">
                                <input type="number" name="fill_marks"  class="form-control  m m3 typeeemarks4"  disabled >
                        </div>
                      </div>
<!--end fill in blanks-->
<!--true false-->
                      <div class="item form-group"   >
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Tag Line for True/False<span class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                           <input type="text" name="tf_tag" class="form-control" id="typee19" disabled >                       
                        </div>
                        <div class="col-md-2 col-sm-2 col-xs-12">
                           <span id="type19">0</span>                       
                        </div>
                      </div>

                      <div class="item form-group row1"   >
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">True False<span class=" ">*</span>
                        </label>

                        <div class="col-md-2 col-sm-2 col-xs-5">
                                <input type="number" name="truefalse"  class="form-control q q18 typeee19"  disabled  >
                        </div>

                        <label class="control-label col-md-2 col-sm-2 col-xs-12" for="name">Marks<span class=" ">*</span>
                        </label>

                        <div class="col-md-2 col-sm-2 col-xs-5">
                                <input type="number" name="truefalse_marks"  class="form-control  m m18 typeeemarks19"  disabled >
                        </div>
                      </div>
<!--true false end-->
<!--translation-->
                      <div class="item form-group"  >
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Tag Line for Translation<span class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                           <input type="text" name="te_tag" class="form-control" id="typee14"  disabled >                       
                        </div>
                        <div class="col-md-2 col-sm-2 col-xs-12">
                           <span id="type14">0</span>                       
                        </div>
                      </div>
                      <div class="item form-group row1"   >
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Translate Into English<span class=" ">*</span>
                        </label>

                        <div class="col-md-2 col-sm-2 col-xs-5">
                                <input type="number" name="translateintoenglish"  class="form-control q q13 typeee14"  disabled  >
                        </div>

                        <label class="control-label col-md-2 col-sm-2 col-xs-12" for="name">Marks<span class=" ">*</span>
                        </label>

                        <div class="col-md-2 col-sm-2 col-xs-5">
                                <input type="number" name="translateintoenglish_marks"  class="form-control  m m13 typeeemarks14"  disabled>
                        </div>
                      </div>
  <!--end of translation-->
  
  <!--masculine feminine-->
                      <div class="item form-group"   >
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Tag Line for Masculine/Feminine<span class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                           <input type="text" name="mf_tag" class="form-control" id="typee21" disabled >                       
                        </div>
                        <div class="col-md-2 col-sm-2 col-xs-12">
                           <span id="type21">0</span>                       
                        </div>
                      </div>

                      <div class="item form-group row1"   >
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Masculine Feminine<span class=" ">*</span>
                        </label>

                        <div class="col-md-2 col-sm-2 col-xs-5">
                                <input type="number" name="masculine"  class="form-control q q20 typeee21"  disabled  >
                        </div>

                        <label class="control-label col-md-2 col-sm-2 col-xs-12" for="name">Marks<span class=" ">*</span>
                        </label>

                        <div class="col-md-2 col-sm-2 col-xs-5">
                                <input type="number" name="masculine_marks"  class="form-control  m m20 typeeemarks21"  disabled >
                        </div>
                      </div>
<!--masculine feminine end-->

<!--words synonyms-->
                      <div class="item form-group"   >
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Tag Line for Words/Synonyms<span class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                           <input type="text" name="ws_tag" class="form-control" id="typee22" disabled >                       
                        </div>
                        <div class="col-md-2 col-sm-2 col-xs-12">
                           <span id="type22">0</span>                       
                        </div>
                      </div>

                      <div class="item form-group row1"   >
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Words Synonyms<span class=" ">*</span>
                        </label>

                        <div class="col-md-2 col-sm-2 col-xs-5">
                                <input type="number" name="wordsforsynonyms"  class="form-control q q22 typeee22"  disabled  >
                        </div>

                        <label class="control-label col-md-2 col-sm-2 col-xs-12" for="name">Marks<span class=" ">*</span>
                        </label>

                        <div class="col-md-2 col-sm-2 col-xs-5">
                                <input type="number" name="wordss_marks"  class="form-control  m m22 typeeemarks22"  disabled >
                        </div>
                      </div>
<!--words synonyms end-->

<!--words antonyms-->
                      <div class="item form-group"   >
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Tag Line for Words/Antonyms<span class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                           <input type="text" name="wa_tag" class="form-control" id="typee23" disabled >                       
                        </div>
                        <div class="col-md-2 col-sm-2 col-xs-12">
                           <span id="type23">0</span>                       
                        </div>
                      </div>

                      <div class="item form-group row1"   >
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Words Antonyms<span class=" ">*</span>
                        </label>

                        <div class="col-md-2 col-sm-2 col-xs-5">
                                <input type="number" name="wordsforantonyms"  class="form-control q q24 typeee23"  disabled  >
                        </div>

                        <label class="control-label col-md-2 col-sm-2 col-xs-12" for="name">Marks<span class=" ">*</span>
                        </label>

                        <div class="col-md-2 col-sm-2 col-xs-5">
                                <input type="number" name="antonyms_marks"  class="form-control  m m24 typeeemarks23"  disabled >
                        </div>
                      </div>
<!--words antonyms end-->
<!--start of Rearrange Sentence-->
                      <div class="item form-group"   >
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Tag Line for Rearrange Sentence<span class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                           <input type="text" name="rearrange_tag" class="form-control" id="typee24" disabled >                       
                        </div>
                        <div class="col-md-2 col-sm-2 col-xs-12">
                           <span id="type24">0</span>                       
                        </div>
                      </div>

                      <div class="item form-group row1"   >
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Rearrange Sentence<span class=" ">*</span>
                        </label>

                        <div class="col-md-2 col-sm-2 col-xs-5">
                                <input type="number" name="Rearrange_Sentence"  class="form-control q q25 typeee24"  disabled  >
                        </div>

                        <label class="control-label col-md-2 col-sm-2 col-xs-12" for="name">Marks<span class=" ">*</span>
                        </label>

                        <div class="col-md-2 col-sm-2 col-xs-5">
                                <input type="number" name="rearrange_marks"  class="form-control  m m25 typeeemarks24"  disabled >
                        </div>
                      </div>
<!--end of Rearrange-->

<!--start of verbs-->
                      <div class="item form-group"   >
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Tag Line for Verb Forms<span class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                           <input type="text" name="verb_tag" class="form-control" id="typee25" disabled >                       
                        </div>
                        <div class="col-md-2 col-sm-2 col-xs-12">
                           <span id="type25">0</span>                       
                        </div>
                      </div>

                      <div class="item form-group row1"   >
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Verb forms<span class=" ">*</span>
                        </label>

                        <div class="col-md-2 col-sm-2 col-xs-5">
                                <input type="number" name="verb"  class="form-control q q27 typeee25"  disabled  >
                        </div>

                        <label class="control-label col-md-2 col-sm-2 col-xs-12" for="name">Marks<span class=" ">*</span>
                        </label>

                        <div class="col-md-2 col-sm-2 col-xs-5">
                                <input type="number" name="verb_marks"  class="form-control  m m27 typeeemarks25"  disabled >
                        </div>
                      </div>
<!--end of verbs-->


<!--start of underline-->
                      <div class="item form-group"   >
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Tag Line for Underline Words<span class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                           <input type="text" name="underline_tag" class="form-control" id="typee26" disabled >                       
                        </div>
                        <div class="col-md-2 col-sm-2 col-xs-12">
                           <span id="type26">0</span>                       
                        </div>
                      </div>

                      <div class="item form-group row1"   >
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Underline Words<span class=" ">*</span>
                        </label>

                        <div class="col-md-2 col-sm-2 col-xs-5">
                                <input type="number" name="underline"  class="form-control q q28 typeee26"  disabled  >
                        </div>

                        <label class="control-label col-md-2 col-sm-2 col-xs-12" for="name">Marks<span class=" ">*</span>
                        </label>

                        <div class="col-md-2 col-sm-2 col-xs-5">
                                <input type="number" name="underline_marks"  class="form-control  m m28 typeeemarks26"  disabled >
                        </div>
                      </div>
<!--end of underline-->

<!--start of match_column-->
                      <div class="item form-group"   >
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Tag Line for Match Column<span class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                           <input type="text" name="match_column_tag" class="form-control" id="typee27" disabled >                       
                        </div>
                        <div class="col-md-2 col-sm-2 col-xs-12">
                           <span id="type27">0</span>                       
                        </div>
                      </div>

                      <div class="item form-group row1"   >
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Match Column<span class=" ">*</span>
                        </label>

                        <div class="col-md-2 col-sm-2 col-xs-5">
                                <input type="number" name="match_column"  class="form-control q q30 typeee27"  disabled  >
                        </div>

                        <label class="control-label col-md-2 col-sm-2 col-xs-12" for="name">Marks<span class=" ">*</span>
                        </label>

                        <div class="col-md-2 col-sm-2 col-xs-5">
                                <input type="number" name="match_column_marks"  class="form-control  m m30 typeeemarks27"  disabled >
                        </div>
                      </div>
<!--end of matchcolumn-->


<!--start of match_word-->
                      <div class="item form-group"   >
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Tag Line for Match words<span class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                           <input type="text" name="match_word_tag" class="form-control" id="typee28" disabled >                       
                        </div>
                        <div class="col-md-2 col-sm-2 col-xs-12">
                           <span id="type28">0</span>                       
                        </div>
                      </div>

                      <div class="item form-group row1"   >
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Match words<span class=" ">*</span>
                        </label>

                        <div class="col-md-2 col-sm-2 col-xs-5">
                                <input type="number" name="match_word"  class="form-control q q31 typeee28"  disabled  >
                        </div>

                        <label class="control-label col-md-2 col-sm-2 col-xs-12" for="name">Marks<span class=" ">*</span>
                        </label>

                        <div class="col-md-2 col-sm-2 col-xs-5">
                                <input type="number" name="match_word_marks"  class="form-control  m m31 typeeemarks28"  disabled >
                        </div>
                      </div>
<!--end of matchword-->

<!--start of active wise-->
                      <div class="item form-group"   >
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Tag Line for Active Wise<span class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                           <input type="text" name="active_wise_tag" class="form-control" id="typee30" disabled >                       
                        </div>
                        <div class="col-md-2 col-sm-2 col-xs-12">
                           <span id="type30">0</span>                       
                        </div>
                      </div>

                      <div class="item form-group row1"   >
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Active Wise<span class=" ">*</span>
                        </label>

                        <div class="col-md-2 col-sm-2 col-xs-5">
                                <input type="number" name="active_wise"  class="form-control q q31 typeee30"  disabled  >
                        </div>

                        <label class="control-label col-md-2 col-sm-2 col-xs-12" for="name">Marks<span class=" ">*</span>
                        </label>

                        <div class="col-md-2 col-sm-2 col-xs-5">
                                <input type="number" name="active_wise_marks"  class="form-control  m m31 typeeemarks30"  disabled >
                        </div>
                      </div>
  <!--end of active wise-->
  
  <!--start of passive wise-->
                      <div class="item form-group"   >
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Tag Line for Passive Wise<span class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                           <input type="text" name="passive_wise_tag" class="form-control" id="typee31" disabled >                       
                        </div>
                        <div class="col-md-2 col-sm-2 col-xs-12">
                           <span id="type31">0</span>                       
                        </div>
                      </div>

                      <div class="item form-group row1"   >
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Passive Wise<span class=" ">*</span>
                        </label>

                        <div class="col-md-2 col-sm-2 col-xs-5">
                                <input type="number" name="passive_wise"  class="form-control q q32 typeee31"  disabled  >
                        </div>

                        <label class="control-label col-md-2 col-sm-2 col-xs-12" for="name">Marks<span class=" ">*</span>
                        </label>

                        <div class="col-md-2 col-sm-2 col-xs-5">
                                <input type="number" name="passive_wise_marks"  class="form-control  m m32 typeeemarks31"  disabled >
                        </div>
                      </div>
  <!--end of passive wise-->
  
    <!--start of direcet sentence-->
                      <div class="item form-group"   >
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Tag Line for Direct Sentence<span class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                           <input type="text" name="direct_sentence_tag" class="form-control" id="typee32" disabled >                       
                        </div>
                        <div class="col-md-2 col-sm-2 col-xs-12">
                           <span id="type32">0</span>                       
                        </div>
                      </div>

                      <div class="item form-group row1"   >
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Direct Sentence<span class=" ">*</span>
                        </label>

                        <div class="col-md-2 col-sm-2 col-xs-5">
                                <input type="number" name="direct_sentence"  class="form-control q q33 typeee32"  disabled  >
                        </div>

                        <label class="control-label col-md-2 col-sm-2 col-xs-12" for="name">Marks<span class=" ">*</span>
                        </label>

                        <div class="col-md-2 col-sm-2 col-xs-5">
                                <input type="number" name="direct_sentence_marks"  class="form-control  m m33 typeeemarks32"  disabled >
                        </div>
                      </div>
  <!--end of direct sentence-->


    <!--start of indirecet sentence-->
                      <div class="item form-group"   >
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Tag Line for Indirect Sentence<span class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                           <input type="text" name="indirect_sentence_tag" class="form-control" id="typee33" disabled >                       
                        </div>
                        <div class="col-md-2 col-sm-2 col-xs-12">
                           <span id="type33">0</span>                       
                        </div>
                      </div>

                      <div class="item form-group row1"   >
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Indirect Sentence<span class=" ">*</span>
                        </label>

                        <div class="col-md-2 col-sm-2 col-xs-5">
                                <input type="number" name="indirect_sentence"  class="form-control q q34 typeee33"  disabled  >
                        </div>

                        <label class="control-label col-md-2 col-sm-2 col-xs-12" for="name">Marks<span class=" ">*</span>
                        </label>

                        <div class="col-md-2 col-sm-2 col-xs-5">
                                <input type="number" name="indirect_sentence_marks"  class="form-control  m m34 typeeemarks33"  disabled >
                        </div>
                      </div>
  <!--end of indirect sentence-->

             <!--start of remove sentence-->
                      <div class="item form-group"   >
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Tag Line for Removed Too Sentence<span class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                           <input type="text" name="remove_sentence_tag" class="form-control" id="typee34" disabled >                       
                        </div>
                        <div class="col-md-2 col-sm-2 col-xs-12">
                           <span id="type34">0</span>                       
                        </div>
                      </div>

                      <div class="item form-group row1"   >
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Removed Too Sentence<span class=" ">*</span>
                        </label>

                        <div class="col-md-2 col-sm-2 col-xs-5">
                                <input type="number" name="remove_sentence"  class="form-control q q35 typeee34"  disabled  >
                        </div>

                        <label class="control-label col-md-2 col-sm-2 col-xs-12" for="name">Marks<span class=" ">*</span>
                        </label>

                        <div class="col-md-2 col-sm-2 col-xs-5">
                                <input type="number" name="remove_sentence_marks"  class="form-control  m m35 typeeemarks34"  disabled >
                        </div>
                      </div>
  <!--end of remove sentence-->

<!--mark_sign-->
                      <div class="item form-group"  >
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Tag Line for Mark The Signs<span class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                           <input type="text" name="mark_sign_tag" class="form-control" id="typee35" disabled  >                       
                        </div>
                        <div class="col-md-2 col-sm-2 col-xs-12">
                           <span id="type35">0</span>                       
                        </div>
                      </div>
                      <div class="item form-group row1"  >
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Mark The Signs<span class=" ">*</span>
                        </label>

                        <div class="col-md-2 col-sm-2 col-xs-5">
                                <input type="number" name="mark_sign"  class="form-control q q36 typeee35"   disabled  >
                        </div>

                        <label class="control-label col-md-2 col-sm-2 col-xs-12" for="name">Marks<span class=" ">*</span>
                        </label>

                        <div class="col-md-2 col-sm-2 col-xs-5">
                                <input type="number" name="mark_sign_marks"  class="form-control  m m36 typeeemarks35"   disabled >
                        </div>
                      </div>
<!--end mark_sign-->
         
                      <div class="ln_solid"></div>
                      <div class="form-group">
                        <div class="col-md-6 col-md-offset-3">
                          <button id="send" type="submit" class="btn btn-success pull-right ">Save</button>
                        </div>
                      </div>
                    </form>
                  </div>
                </div>
              </div>
            
                
            </div>
          </div>
        </div>
        <!-- /page content -->
        <!-- footer content -->
        <footer>
          <div class="pull-right">
            EduSolutions
          </div>
          <div class="clearfix"></div>
        </footer>
        <!-- /footer content -->
      </div>
    </div>

    <!-- jQuery -->
    <script src="<?php echo base_url(); ?>assets/vendors/jquery/dist/jquery.min.js"></script>

    <!-- Custom JS -->
    <script src="<?php echo base_url(); ?>assets/js/main.js"></script>
    <!-- Bootstrap -->
    <script src="<?php echo base_url(); ?>assets/vendors/bootstrap/dist/js/bootstrap.min.js"></script>
    <!-- FastClick -->
    <script src="<?php echo base_url(); ?>assets/vendors/fastclick/lib/fastclick.js"></script>
    <!-- NProgress -->
    <script src="<?php echo base_url(); ?>assets/vendors/nprogress/nprogress.js"></script>
    <!-- Chart.js -->
    <script src="<?php echo base_url(); ?>assets/vendors/Chart.js/dist/Chart.min.js"></script>
    <!-- gauge.js -->
    <script src="<?php echo base_url(); ?>assets/vendors/gauge.js/dist/gauge.min.js"></script>
    <!-- bootstrap-progressbar -->
    <script src="<?php echo base_url(); ?>assets/vendors/bootstrap-progressbar/bootstrap-progressbar.min.js"></script>
    <!-- iCheck -->
    <script src="<?php echo base_url(); ?>assets/vendors/iCheck/icheck.min.js"></script>
    <!-- Skycons -->
    <script src="<?php echo base_url(); ?>assets/vendors/skycons/skycons.js"></script>
    <!-- Flot -->
    <script src="<?php echo base_url(); ?>assets/vendors/Flot/jquery.flot.js"></script>
    <script src="<?php echo base_url(); ?>assets/vendors/Flot/jquery.flot.pie.js"></script>
    <script src="<?php echo base_url(); ?>assets/vendors/Flot/jquery.flot.time.js"></script>
    <script src="<?php echo base_url(); ?>assets/vendors/Flot/jquery.flot.stack.js"></script>
    <script src="<?php echo base_url(); ?>assets/vendors/Flot/jquery.flot.resize.js"></script>
    <!-- Flot plugins -->
    <script src="<?php echo base_url(); ?>assets/js/flot/jquery.flot.orderBars.js"></script>
    <script src="<?php echo base_url(); ?>assets/js/flot/date.js"></script>
    <script src="<?php echo base_url(); ?>assets/js/flot/jquery.flot.spline.js"></script>
    <script src="<?php echo base_url(); ?>assets/js/flot/curvedLines.js"></script>
    <!-- jVectorMap -->
    <script src="<?php echo base_url(); ?>assets/js/maps/jquery-jvectormap-2.0.3.min.js"></script>
    <!-- bootstrap-daterangepicker -->
    <script src="<?php echo base_url(); ?>assets/js/moment/moment.min.js"></script>
    <script src="<?php echo base_url(); ?>assets/js/datepicker/daterangepicker.js"></script>
    <script src="<?php echo base_url(); ?>assets/js/timepicki/timepicki.js"></script>
    <script src="<?php echo base_url(); ?>assets/js/timepicki/timepicki.js~"></script>

    <script src="<?php echo base_url(); ?>assets/js/timepicki/bootstrap.min.js"></script>



<script type='text/javascript' > 
	$('#timepicker').timepicki();  
        $('#timepicker1').timepicki();   
</script>

<script src="<?php echo base_url()?>assets/select/js/select2.min.js"></script>
<script  src="<?php echo base_url(); ?>assets/js/notify.js"></script>
   <script>
 
     $('#class').select2({
     //selectOnClose: true,
    placeholder: "Select a Class",
    allowClear:true
    });
    </script>
     <script>
 
     $('#subject').select2({
     //selectOnClose: true,
    placeholder: "Select a Subject",
    allowClear:true
    });
    </script>
     <script>
 
     $('#exam').select2({
     //selectOnClose: true,
    placeholder: "Select a Exam",
    allowClear:true
    });
    </script>
     <script>
 
     $('#level').select2({
     //selectOnClose: true,
    placeholder: "Select a Level",
    allowClear:true
    });
    </script>

    <!-- Custom Theme Scripts -->
    <script src="<?php echo base_url(); ?>assets/build/js/custom.min.js"></script>
    <script>
        $(document).ready(function(){
            
                var value = $('#branch').val();
                $.get("<?php echo base_url(); ?>load/classs/role/"+value,{},function(d){
                    var pre = '<option value="">Select Class</opiton>';
                    $("#class").html(pre+d);
                });
            
        });
    </script>
    
<script>
        $(document).ready(function(){
     
            $(document).on("change","#branch",function(){
                var value = $(this).val();
                $.get("<?php echo base_url(); ?>load/classs/role/"+value,{},function(d){
                    var pre = '<option value="">Select Class</opiton>';
                    $("#class").html(pre+d);
                });
            });
            

            
            
        });
    </script>
<script>
        $(document).ready(function(){
             
            $(document).on("change","#class",function(){
                var value = $(this).val();
                var branch=$('#branch').val();
                $.get("<?php echo base_url(); ?>load/subjectforpaper/"+value,{},function(d){
                    var pre = '<option value="">Select Subject</opiton>';
                    $("#subject").html(pre+d);
                });
                
             $.get("<?php echo base_url(); ?>Load/exam/"+branch,{},function(data){
            var pre = "<option value=''>Select Exam</option>";
            $("#exam").html(pre+data);
          });
            });
            
            
            
        });                             
</script>
<script type="text/javascript">
 
        $('#subject').change(function(){
          var id=$('#class').val();
          var idsub=$('#subject').val();
          var exam=$('#exam').val();
          var branch=$('#branch').val();
          $.ajax({
                    url: "<?php echo base_url(); ?>load/questionagainstchpter_checkbox/"+id+"/"+idsub,
                    data: {},
                      success: function( result )
                      {
                        if(result=="")
                        {
                            $.notify("Chapters not defined yet...", "danger");
                        }
                       $("#chapterpast").html(result);
                       $('#all_check').change(function() {
                            if($(this).is(":checked")) {
                               $(".ch").each(function () {
                                $(this).prop('checked',true);
                            });
                            }else
                            {
                             $(".ch").each(function () {
                                    $(this).removeAttr('checked');  
                                 });
                                
                            }//else
                        }); 
                        
                     }
                });
        
              

//get date and time
            $.ajax({
                    url: "<?php echo base_url(); ?>load/date_time/"+id+"/"+idsub+"/"+exam+"/"+branch,
                    data: {},
                      success: function( res ) {
                    if(res==0)
                    {
                       // alert('Please create datesheet for this subject...');
                        //$('#send').prop('disabled',true);
                    }else
                    {
                        $('#send').prop('disabled',false);
                        
                        var obj=JSON.parse(res);
                        var dateofpaper = obj.date_exam.split("-");
                        var formt=dateofpaper[2]+'-'+dateofpaper[1]+'-'+dateofpaper[0].slice(-4);
                         var start_time = obj.start_time;
                        $('#dateofpaper').val(formt);
                        $('#timepickerr').val(start_time);
                    }
              }
            });
//end

        });
         
</script>
//=======================================Function for the total of Marks here=======================
<script type="text/javascript">
      $('document').ready(function(){
        $('.enter').submit(function(e){
          e.preventDefault();
          var sum = parseInt(0);
          var b =parseInt(0);
        $('.q').each(function(i,v){
          if($('.q'+i).val()!='' && $('.m'+i).val()!='' ) {
            sum = parseInt($('.q'+i).val())*parseInt($('.m'+i).val());
            b+=sum;
          }          
      });
    $('.marks').val(b);
     $('.enter').unbind("submit").submit();
    });
}); 
</script>
//=======================================Validation=================================
<script type="text/javascript">
        $('#level').change(function(){
          $('.mcqtype').html(0);
          $('#mcqtag').attr('disabled',true);
          $('.mcqqty').attr('disabled',true);
          $('.mcqmarks').attr('disabled',true);
          $('.shorttype').html(0);
          $('#shorttag').attr('disabled',true);
          $('.shortqty').attr('disabled',true);
          $('.shortmarks').attr('disabled',true);
          $('#longtype').html(0);
          $('#longtag').attr('disabled',true);
          $('.longqty').attr('disabled',true);
          $('.longmarks').attr('disabled',true);
          for ( var t =19; t >=4; t-- ) {
            $('#type'+t).html(0);
            $('#typee'+t).attr('disabled',true);
            $('.typeee'+t).attr('disabled',true);
            $('.typeeemarks'+t).attr('disabled',true);
          }
          var cl=$('#class').val();
          var branch=$('#branch').val();
          var subject=$('#subject').val();
          var level=$('#level').val();
          var ch_checked=new Array();
         $( ".ch:checked" ).each(function() {
              ch_checked.push($(this).val());
          });
          $.get("<?php echo base_url(); ?>load/questions_checked/"+cl+"/"+branch+"/"+subject+"/"+level,{ch_checked:ch_checked},function(d){
             
             if(d!="")
             {
                 var res=jQuery.parseJSON(d);
                      $.each( res[3], function( i, v ){
                          $('#type'+v.type).html(v.total);
                          $('#typee'+v.type).removeAttr("disabled");
                          $('.typeee'+v.type).removeAttr("disabled");
                          $('.typeeemarks'+v.type).removeAttr("disabled");
                          $('.typeee'+v.type).attr("max",v.total);
                    });
                    //======================mcq=====================
                    if(res[0].total_mcq>0){
                     $('.mcqtype').html(res[0].total_mcq);
                     $('#mcqtag').removeAttr("disabled");
                     $('.mcqqty').removeAttr("disabled");
                     $('.mcqmarks').removeAttr("disabled");
                     $('.mcqqty').attr("max",res[0].total_mcq);
                    }
                     //=======================long=====================
                     if(res[2].total_long>0){
                     $('#longtype').html(res[2].total_long);
                     $('#longtag').removeAttr("disabled");
                     $('.longqty').removeAttr("disabled");
                     $('.longmarks').removeAttr("disabled");
                     $('.longqty').attr("max",res[2].total_long);
                      }
                      //=======================short===================
                     if(res[1].total_short>0){
                     $('.shorttype').html(res[1].total_short);
                     $('#shorttag').removeAttr("disabled");
                     $('.shortqty').removeAttr("disabled");
                     $('.shortmarks').removeAttr("disabled");
                     $('.shortqty').attr("max",res[1].total_short);
                      }
             }else{
                 $.notify("Question not defined yet...", "danger");
             }
                    
                });
                
                
                
        });
</script>
     
  </body>
</html>