Advertisement
jraavis

Issac Masid Issue

Nov 19th, 2018
266
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 41.85 KB | None | 0 0
  1. <div class="clearfix"></div>
  2. <div class="content">
  3.   <div class="container-fluid">
  4.     <div class="">
  5.       <div class="card">
  6.         <div class="card-header card-header-success">
  7.           <h4 class="card-title"><?php echo $this->lang->line('masjid_list');?>
  8.  
  9.  
  10.             <button type="button" class="btn btn-outline-white pull-right btn-inline btn_add" data-toggle="modal" data-target="#exampleModal"><?php echo $this->lang->line('add_masjid');?></button>
  11.           </h4>
  12.  
  13.         </div>
  14.  
  15.         <div class="">
  16.  
  17.           <div class="px-4">
  18.  
  19.  
  20.             <!-- Nav tabs -->
  21.             <ul class="nav nav-tabs nav-justified green" role="tablist">
  22.               <li class="nav-item">
  23.                 <a class="nav-link active" data-toggle="tab" href="#panel5" role="tab">
  24.                   <i class="fa fa-eye input-lg"></i> <?php echo $this->lang->line('active');?></a>
  25.                 </li>
  26.                 <li class="nav-item">
  27.                   <a class="nav-link" data-toggle="tab" href="#panel6" role="tab">
  28.                     <i class="fa fa-eye-slash input-lg"></i> <?php echo $this->lang->line('pending');?></a>
  29.                   </li>
  30.                 </ul>
  31.                 <!-- Nav tabs -->
  32.                 <!-- Tab panels -->
  33.                 <div class="tab-content">
  34.                   <!--Panel 1-->
  35.                   <div class="tab-pane fade in show active" id="panel5" role="tabpanel">
  36.  
  37.                     <div class="clearfix"></div>
  38.  
  39.                     <div class="mg-top-20">
  40.                       <!--Table-->
  41.                       <table class="table table-striped table-bordered table table-hover mb-0 user_table">
  42.                         <!--Table head-->
  43.                         <thead>
  44.                           <tr>
  45.                             <th class="th-lg"><a><b><?php echo $this->lang->line('s.no');?></b></a></th>
  46.                             <th class="th-lg"><a><b><?php echo $this->lang->line('name');?></b></a></th>
  47.                             <th class="th-lg"><a><b><?php echo $this->lang->line('photo');?></b></a></th>
  48.                             <th class="th-lg"><a><b><?php echo $this->lang->line('added_by');?></b></a></th>
  49.                             <th class="th-lg"><a><b><?php echo $this->lang->line('options');?></b></a></th>
  50.                           </tr>
  51.                         </thead>
  52.                         <!--Table head-->
  53.  
  54.                         <!--Table body-->
  55.                         <tbody>
  56.  
  57.                         </tbody>
  58.                         <!--Table body-->
  59.                       </table>
  60.                       <!--Table-->
  61.                     </div>
  62.  
  63.                     <hr class="my-0">
  64.  
  65.  
  66.                   </div>
  67.                   <!--Bottom Table UI-->
  68.  
  69.                   <!--/.Panel 1-->
  70.                   <!--Panel 2-->
  71.                   <div class="tab-pane fade" id="panel6" role="tabpanel">
  72.  
  73.                     <div class="mg-top-20">
  74.                       <table class="table table-striped table-bordered table table-hover mb-0 user_table_pending">
  75.                         <thead>
  76.                           <tr>
  77.                             <th class="th-lg"><a><b><?php echo $this->lang->line('s.no');?></b></a></th>
  78.                             <th class="th-lg"><a><b><?php echo $this->lang->line('name');?></b></a></th>
  79.                             <th class="th-lg"><a><b><?php echo $this->lang->line('photo');?></b></a></th>
  80.                             <th class="th-lg"><a><b><?php echo $this->lang->line('added_by');?></b></a></th>
  81.                             <th class="th-lg"><a><b><?php echo $this->lang->line('options');?></b></a></th>
  82.                           </tr>
  83.                         </thead>
  84.                         <tbody></tbody>
  85.  
  86.                       </table>
  87.  
  88.  
  89.  
  90.  
  91.  
  92.                     </div>
  93.                     <!--/.Panel 2-->
  94.                   </div>
  95.                   <!-- Tab panels -->
  96.                 </div>
  97.               </div>
  98.             </div>
  99.           </div>
  100.         </div>
  101.       </div>
  102.     </div>
  103.  
  104.  
  105.     <div class="bd-example">
  106.  
  107.       <!-- <button type="button" class="btn btn-primary" data-toggle="modal" data-target="#exampleModal">Add User</button> -->
  108.       <div class="modal fade" id="exampleModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
  109.         <div class="modal-dialog modal-lg">
  110.           <div class="modal-content">
  111.             <div class="modal-header">
  112.               <button type="buton" class="close" data-dismiss="modal">&times;</button>
  113.               <h3 class="modal-title" id="masjid_details"><?php echo $this->lang->line('masjid_details');?> </h3>
  114.             </div>
  115.  
  116.             <form id="msform" method="post" class="add_masjid_form">
  117.               <!-- progressbar -->
  118.               <ul id="progressbar">
  119.                 <li class="active"><?php echo $this->lang->line('masjid_details');?></li>
  120.                 <li><?php echo $this->lang->line('masjid_address');?></li>
  121.                 <li><?php echo $this->lang->line('bank_details');?></li>
  122.                 <li><?php echo $this->lang->line('masjid_timings');?></li>
  123.                 <li><?php echo $this->lang->line('masjid_pictures');?></li>
  124.               </ul>
  125.               <!-- fieldsets -->
  126.  
  127.  
  128.               <fieldset class="field_class">
  129.  
  130.                 <h2 class="fs-title"><?php echo $this->lang->line('masjid_list');?></h2>
  131.                 <div class="col-sm-12">
  132.                   <div class="form-group">
  133.                     <label for="masjid_name" class="bmd-label-floating"><?php echo $this->lang->line('masjid_name');?></label>
  134.                     <input type="text" name="masjid_name" class="form-control" id="masjid_name" required="required" />
  135.                   </div>
  136.                 </div>
  137.  
  138.                 <div class="col-sm-12">
  139.                   <div class="form-group">
  140.                     <label for="seating_capacity" class="bmd-label-floating"><?php echo $this->lang->line('seating_capacity');?></label>
  141.                     <input type="number" name="seating_capacity" class="form-control" id="seating_capacity" required="required"/>
  142.  
  143.                   </div>
  144.                 </div>
  145.                 <div class="col-sm-12">
  146.                   <div class="form-group">
  147.                     <label for="main_description" class="bmd-label-floating"><?php echo $this->lang->line('main_description');?></label>
  148.                     <input type="text" name="main_description" class="form-control" id="main_description" required="required"/>
  149.  
  150.                   </div>
  151.                 </div>
  152.  
  153. <div class="col-sm-6">
  154.                   <div class="form-group" >
  155.                     <label for="user_id" class="bmd-label-floating"><?php echo $this->lang->line('added_by');?></label>
  156.                     <select class="dropdown-primary form-control" name="user_id" id="user_id">
  157.                       <option value="" disabled ><?php echo $this->lang->line('select_one');?></option>
  158.  
  159.                       <?php
  160.                      foreach ($user_data as $key => $value) {
  161.  
  162.                         echo '<option value="'.$value['id'].'">'.$value['first_name'].''.$value['last_name'].'</option>';
  163.  
  164.                       }
  165.  
  166.                       ?>
  167.  
  168.                     </select>
  169. <!-- <label for="exampleInputEmail1" class="bmd-label-floating">Status</label>
  170.  <input type="user" class="form-control" id="exampleInputEmail1"> -->
  171.  
  172. </div>
  173. </div>
  174.  
  175. <div class="col-sm-6">
  176.   <div class="form-group">
  177.   <label for="maslak" class="bmd-label-floating"><?php echo $this->lang->line('maslak');?></label>
  178.     <select class="dropdown-primary form-control" name="maslak" id="maslak" required="required">
  179.       <option value="" disabled ><?php echo $this->lang->line('maslak');?></option>
  180.       <option value="<?php echo $this->lang->line('sunni');?>"><?php echo $this->lang->line('sunni');?></option>
  181.       <option value="<?php echo $this->lang->line('shia');?>"><?php echo $this->lang->line('shia');?></option>
  182.       <option value="<?php echo $this->lang->line('hanfi');?>"><?php echo $this->lang->line('hanfi');?></option>
  183.       <option value="<?php echo $this->lang->line('maliki');?>"><?php echo $this->lang->line('maliki');?></option>
  184.       <option value="<?php echo $this->lang->line('shafi');?>"><?php echo $this->lang->line('shafi');?></option>
  185.       <option value="<?php echo $this->lang->line('hanbali');?>"><?php echo $this->lang->line('hanbali');?></option>
  186.       <option value="<?php echo $this->lang->line('barelvi');?>"><?php echo $this->lang->line('barelvi');?></option>
  187.       <option value="<?php echo $this->lang->line('deobandi');?>"><?php echo $this->lang->line('deobandi');?></option>
  188.       <option value="<?php echo $this->lang->line('ahle_hadith');?>"><?php echo $this->lang->line('ahle_hadith');?></option>
  189.       <option value="<?php echo $this->lang->line('salafi');?>"><?php echo $this->lang->line('salafi');?></option>
  190.       <option value="<?php echo $this->lang->line('wahhabi');?>"><?php echo $this->lang->line('wahhabi');?></option>
  191.       <option value="<?php echo $this->lang->line('tableeghi');?>"><?php echo $this->lang->line('tableeghi');?></option>
  192.       <option value="<?php echo $this->lang->line('jamat_e_islami');?>"><?php echo $this->lang->line('jamat_e_islami');?></option>
  193.       <option value="<?php echo $this->lang->line('bohra');?>"><?php echo $this->lang->line('bohra');?></option>
  194.       <option value="<?php echo $this->lang->line('islamaili');?>"><?php echo $this->lang->line('islamaili');?></option>
  195.       <option value="<?php echo $this->lang->line('sufi');?>"><?php echo $this->lang->line('sufi');?></option>
  196.       <option value="<?php echo $this->lang->line('zahiri');?>"><?php echo $this->lang->line('zahiri');?></option>
  197.       <option value="<?php echo $this->lang->line('ibadi');?>"><?php echo $this->lang->line('ibadi');?></option>
  198.       <option value="<?php echo $this->lang->line('kalam');?>"><?php echo $this->lang->line('kalam');?></option>
  199.       <option value="<?php echo $this->lang->line('ashari');?>"><?php echo $this->lang->line('ashari');?></option>
  200.       <option value="<?php echo $this->lang->line('maturidi');?>"><?php echo $this->lang->line('maturidi');?></option>
  201.       <option value="<?php echo $this->lang->line('athari');?>"><?php echo $this->lang->line('athari');?></option>
  202.       <option value="<?php echo $this->lang->line('mutazili');?>"><?php echo $this->lang->line('mutazili');?></option>
  203.       <option value="<?php echo $this->lang->line('jahmiyyah');?>"><?php echo $this->lang->line('jahmiyyah');?></option>
  204.       <option value="<?php echo $this->lang->line('ahmadiyya');?>"><?php echo $this->lang->line('ahmadiyya');?></option>
  205.       <option value="<?php echo $this->lang->line('ikhwani');?>"><?php echo $this->lang->line('ikhwani');?></option>
  206.  
  207.     </select>
  208.  
  209.   </div>
  210. </div>
  211.  
  212. <!-- Switch -->
  213. <div class="col-sm-6">
  214.   <div class="form-group">
  215.     <label for="ladies_arrangement" class="bmd-label-floating"><?php echo $this->lang->line('ladies_arrangement');?></label>
  216.     <select class="dropdown-primary form-control" name="ladies_arrangement" id="ladies_arrangement">
  217.       <option value="" disabled ><?php echo $this->lang->line('ladies_arrangement');?></option>
  218.       <option value="1" selected><?php echo $this->lang->line('yes');?></option>
  219.       <option value="2"><?php echo $this->lang->line('no');?></option>
  220.     </select>
  221.  
  222.   </div>
  223. </div>
  224. <div class="col-sm-6">
  225.   <label for="status" class="bmd-label-floating"><?php echo $this->lang->line('status');?></label>
  226.   <select class="dropdown-primary form-control" name="status" id="status">
  227.     <option value="" disabled ><?php echo $this->lang->line('status');?></option>
  228.     <option value="2" selected><?php echo $this->lang->line('active');?></option>
  229.     <option value="1"><?php echo $this->lang->line('pending');?></option>
  230.  
  231.   </select>
  232.  
  233. </div>
  234. <!-- Disabled Switch -->
  235. <div class="clearfix"></div>
  236. <input type="button" name="next" class="next action-button" value="Next"/>
  237.  
  238. </fieldset>
  239. <fieldset class="field_class hidden">
  240.  
  241.   <h2 class="fs-title"><?php echo $this->lang->line('masjid_address');?></h2>
  242.   <h3 class="fs-subtitle"></h3>
  243.  
  244.   <div class="col-sm-12">
  245.     <div class="form-group">
  246.       <label for="contact_person" class="bmd-label-floating"><?php echo $this->lang->line('contact_person');?></label>
  247.       <input type="text" name="contact_person" class="form-control" id="contact_person"/>
  248.     </div>
  249.   </div>
  250.   <div class="col-sm-6">
  251.     <div class="form-group">
  252.       <label for="mobile" class="bmd-label-floating"><?php echo $this->lang->line('phone');?></label>
  253.       <input type="tel" name="mobile" class="form-control" id="mobile" required="required"/>
  254.     </div>
  255.   </div>
  256.   <div class="col-sm-6">
  257.     <div class="form-group">
  258.       <label for="email_id" class="bmd-label-floating"><?php echo $this->lang->line('email');?></label>
  259.       <input type="email" name="email_id" class="form-control" id="email_id"/>
  260.     </div>
  261.   </div>
  262.  
  263.   <div class="col-sm-6">
  264.     <div class="form-group">
  265.       <label for="door_no" class="bmd-label-floating"><?php echo $this->lang->line('door_no');?></label>
  266.       <input type="text" name="door_no" class="form-control" id="door_no" required="required"/>
  267.  
  268.     </div>
  269.   </div>
  270.  
  271.   <div class="col-sm-6">
  272.     <div class="form-group">
  273.       <label for="landmark" class="bmd-label-floating"><?php echo $this->lang->line('landmark');?></label>
  274.       <input type="text" name="landmark" class="form-control" id="landmark" required="required"/>
  275.  
  276.     </div>
  277.   </div>
  278.  
  279.     <div class="col-sm-12">
  280.     <div class="form-group">
  281.       <label for="street_name" class="bmd-label-floating"><?php echo $this->lang->line('street_name');?></label>
  282.       <input type="text" name="street_name" class="form-control" id="street_name" required="required"/>
  283.  
  284.     </div>
  285.   </div>
  286.  
  287.   <div class="col-sm-12">
  288.     <div class="form-group">
  289.       <label for="address" class="bmd-label-floating"><?php echo $this->lang->line('address');?></label>
  290.       <input type="text" name="address" class="form-control" id="address" required="required"/>
  291.     </div>
  292.   </div>
  293.    <div class="col-sm-12">
  294. <div class="map_canvas"></div><div class="search_map">
  295. <input id="geocomplete" type="text" placeholder="Type in an address" />
  296. <span class="search_icon find_geo"><i class="fa fa-search"></i></span></div>
  297. </div>
  298.  
  299.   <!-- <input type="text"  name="landmark"  placeholder="Landmark" value=""> -->
  300.   <div class="col-sm-6">
  301.     <div class="form-group">
  302.       <label for="latitude" class="bmd-label-floating"><?php echo $this->lang->line('latitude');?></label>
  303.       <input type="text" name="latitude" class="form-control" id="latitude" required="required"/>
  304.  
  305.     </div>
  306.   </div>
  307.   <!-- <input type="text"  name="latitude"  placeholder="Latitude" value=""> -->
  308.   <div class="col-sm-6">
  309.     <div class="form-group">
  310.       <label for="longitude" class="bmd-label-floating"><?php echo $this->lang->line('longitude');?></label>
  311.       <input type="text" name="longitude" class="form-control" id="longitude" required="required"/>
  312.  
  313.     </div>
  314.   </div>
  315.  
  316.   <!-- <input type="text"  name="longitude"  placeholder="Longitude" value=""> -->
  317.  
  318.   <input type="button" name="previous" class="previous action-button" value="Previous" />
  319.   <input type="button" name="next" class="next action-button" value="Next" />
  320. </fieldset>
  321.  
  322.  
  323. <fieldset class="field_class hidden">
  324.   <h2 class="fs-title"><?php echo $this->lang->line('bank_details');?></h2>
  325.   <h3 class="fs-subtitle"></h3>
  326.   <div class="col-sm-12">
  327.     <div class="form-group">
  328.       <label for="account_no" class="bmd-label-floating"><?php echo $this->lang->line('account_number');?></label>
  329.       <input type="number" name="account_no" class="form-control" id="account_no"/>
  330.  
  331.     </div>
  332.   </div>
  333.   <!-- <input type="text" name="account_no" placeholder="Account Number" /> -->
  334.   <div class="col-sm-12">
  335.     <div class="form-group">
  336.       <label for="bank_name" class="bmd-label-floating"><?php echo $this->lang->line('bank_name');?></label>
  337.       <input type="text" name="bank_name" class="form-control" id="bank_name"/>
  338.  
  339.     </div>
  340.   </div>
  341.   <!-- <input type="text" name="bank_name" placeholder="Bank Name" /> -->
  342.   <div class="col-sm-12">
  343.     <div class="form-group">
  344.       <label for="bank_branch" class="bmd-label-floating"><?php echo $this->lang->line('branch_name');?></label>
  345.       <input type="text" name="bank_branch" class="form-control" id="bank_branch" />
  346.  
  347.     </div>
  348.   </div>
  349.   <!-- <input type="text" name="branch_name" placeholder="Branch Name" /> -->
  350.   <div class="col-sm-12">
  351.     <div class="form-group">
  352.       <label for="bank_ifsc" class="bmd-label-floating"><?php echo $this->lang->line('ifsc_code');?></label>
  353.       <input type="text" name="bank_ifsc" class="form-control" id="bank_ifsc"/>
  354.  
  355.     </div>
  356.   </div>
  357.  
  358.   <input type="button" name="previous" class="previous action-button" value="Previous" />
  359.   <input type="button" name="next" class="next action-button" value="Next" />
  360. </fieldset>
  361. <fieldset class="field_class hidden">
  362.   <h2 class="fs-title"><?php echo $this->lang->line('masjid_timings');?></h2>
  363.   <div class="clearfix"></div>
  364.   <div class="col-sm-4">
  365.     <div class="form-group">
  366.       <label for="salah_time1" class="bmd-label-floating"><?php echo $this->lang->line('salah');?></label>
  367.       <input type="text" name="salah_time1" value="fajar" class="form-control" id="salah_time1" required="required" readonly />
  368.     </div>
  369.   </div>
  370.   <div class="col-sm-4">
  371.     <div class="form-group">
  372.       <label for="azan_time1" class="bmd-label-floating"/><?php echo $this->lang->line('azan_time');?></label>
  373.       <input type="text" class="prayer" name="azan_time1" id="azan_time1" required />
  374.  
  375.     </div>
  376.   </div>
  377.   <div class="col-sm-4">
  378.     <div class="form-group">
  379.       <label for="prayer_time1" class="bmd-label-floating"/><?php echo $this->lang->line('prayer_time');?></label>
  380.       <input type="text" class="prayer" name="prayer_time1" id="prayer_time1" required />
  381.  
  382.     </div>
  383.   </div>
  384.   <div class="col-sm-4">
  385.     <div class="form-group">
  386.       <label for="salah_time2" class="bmd-label-floating"><?php echo $this->lang->line('salah');?></label>
  387.       <input type="text" name="salah_time2" value="<?php echo $this->lang->line('zohar');?>" class="form-control" id="salah_time2" required="required" readonly/>
  388.  
  389.     </div>
  390.   </div>
  391.   <div class="col-sm-4">
  392.     <div class="form-group">
  393.       <label for="azan_time2" class="bmd-label-floating"/><?php echo $this->lang->line('azan_time');?></label>
  394.       <input type="text" class="prayer" id="azan_time2" name="azan_time2" required />
  395.  
  396.     </div>
  397.   </div>
  398.   <div class="col-sm-4">
  399.     <div class="form-group">
  400.       <label for="prayer_time2" class="bmd-label-floating"/><?php echo $this->lang->line('prayer_time');?></label>
  401.       <input type="text" class="prayer" name="prayer_time2" id="prayer_time2" required />
  402.  
  403.     </div>
  404.   </div>
  405.   <div class="col-sm-4">
  406.     <div class="form-group">
  407.       <label for="salah_time3" class="bmd-label-floating"><?php echo $this->lang->line('salah');?></label>
  408.       <input type="text" name="salah_time3" value="<?php echo $this->lang->line('asar');?>" class="form-control" id="salah_time3" required="required" readonly/>
  409.  
  410.     </div>
  411.   </div>
  412.   <div class="col-sm-4">
  413.     <div class="form-group">
  414.       <label for="azan_time3" class="bmd-label-floating"/><?php echo $this->lang->line('azan_time');?></label>
  415.       <input type="text" class="prayer" id="azan_time3" name="azan_time3" class="azan_time" required />
  416.  
  417.     </div>
  418.   </div>
  419.   <div class="col-sm-4">
  420.     <div class="form-group">
  421.       <label for="prayer_time3" class="bmd-label-floating"/><?php echo $this->lang->line('prayer_time');?></label>
  422.       <input type="text" class="prayer" name="prayer_time3" id="prayer_time3" required />
  423.  
  424.     </div>
  425.   </div>
  426.   <div class="col-sm-4">
  427.     <div class="form-group">
  428.       <label for="salah_time4" class="bmd-label-floating"><?php echo $this->lang->line('salah');?></label>
  429.       <input type="text" name="salah_time4" value="<?php echo $this->lang->line('maghrib');?>" class="form-control" id="salah_time4" required="required" readonly/>
  430.  
  431.     </div>
  432.   </div>
  433.   <div class="col-sm-4">
  434.     <div class="form-group">
  435.       <label for="azan_time4" class="bmd-label-floating"/><?php echo $this->lang->line('azan_time');?></label>
  436.       <input type="text" class="prayer" name="azan_time4" id="azan_time4" required />
  437.  
  438.     </div>
  439.   </div>
  440.   <div class="col-sm-4">
  441.     <div class="form-group">
  442.       <label for="prayer_time4" class="bmd-label-floating"/><?php echo $this->lang->line('prayer_time');?></label>
  443.       <input type="text" class="prayer" name="prayer_time4" id="prayer_time4" required />
  444.  
  445.     </div>
  446.   </div>
  447.   <div class="col-sm-4">
  448.     <div class="form-group">
  449.       <label for="salah_time5" class="bmd-label-floating"><?php echo $this->lang->line('salah');?></label>
  450.       <input type="text" name="salah_time5" value="<?php echo $this->lang->line('ishaa');?>" class="form-control" id="salah_time5" required="required" readonly/>
  451.  
  452.     </div>
  453.   </div>
  454.   <div class="col-sm-4">
  455.     <div class="form-group">
  456.       <label for="azan_time5" class="bmd-label-floating"/><?php echo $this->lang->line('azan_time');?></label>
  457.       <input type="text" class="prayer" id="azan_time5" name="azan_time5" class="azan_time" required />
  458.  
  459.     </div>
  460.   </div>
  461.   <div class="col-sm-4">
  462.     <div class="form-group">
  463.       <label for="prayer_time5" class="bmd-label-floating"/><?php echo $this->lang->line('prayer_time');?></label>
  464.       <input type="text" class="prayer" id="prayer_time5" name="prayer_time5" required />
  465.  
  466.     </div>
  467.   </div>
  468.   <div class="col-sm-4">
  469.     <div class="form-group">
  470.       <label for="salah_time6" class="bmd-label-floating"><?php echo $this->lang->line('salah');?></label>
  471.       <input type="text" name="salah_time6" value="<?php echo $this->lang->line('jumuah');?>" class="form-control" id="salah_time6" required="required" readonly/>
  472.  
  473.     </div>
  474.   </div>
  475.   <div class="col-sm-4">
  476.     <div class="form-group">
  477.       <label for="azan_time6" class="bmd-label-floating"/><?php echo $this->lang->line('azan_time');?></label>
  478.       <input type="text" class="prayer" id="azan_time6" name="azan_time6" required />
  479.  
  480.     </div>
  481.   </div>
  482.   <div class="col-sm-3">
  483.     <div class="form-group">
  484.       <label for="prayer_time6" class="bmd-label-floating"/><?php echo $this->lang->line('prayer_time');?></label>
  485.       <input type="text" class="prayer" name="prayer_time6" id="prayer_time6" required />
  486.  
  487.     </div>
  488.   </div>
  489.  
  490.  
  491.   <div class="field_wrapper">
  492. <div class="col-sm-1">
  493. <div class="form-group">
  494. <a href="javascript:void(0);" class="add_input_button" title="Add field"><i class="material-icons" value="Add Field">add_circle</i></a>
  495.  
  496. </div></div></div>
  497.   <div class="clearfix"></div>
  498.   <input type="button" name="previous" class="previous action-button" value="Previous" />
  499.   <input type="button" name="next" class="next action-button" value="Next" />
  500.  
  501. </fieldset>
  502.  
  503. <fieldset class="field_class hidden">
  504.   <h2 class="fs-title"><?php echo $this->lang->line('masjid_pictures');?></h2>
  505.   <h3 class="fs-subtitle"></h3>
  506.   <div class="col-sm-12">
  507.     <div class="dropzone2" id="myDropzone">
  508.  
  509.     </div>
  510.     <div class="clearfix"></div>
  511.   </div>
  512.   <br/>
  513.   <div class="clearfix"></div>
  514.   <input type="button" name="previous" class="previous action-button" value="Previous" />
  515.   <input type="submit" name="submit" data-edit_masjid="" class="btn_post action-button" value="submit" />
  516.  
  517. </fieldset>
  518.  
  519.  
  520. <div class="clearfix"></div>
  521. </form>
  522. </div>
  523. </div>
  524. </div>
  525. </div>
  526.  
  527.  
  528.  
  529.  
  530.  
  531.  
  532.  
  533. <script src="<?= base_url('assets/js/dropzone.js') ?>"></script>
  534.  
  535. <script type="text/javascript">
  536.  
  537. // new things added
  538. $(document).ready(function(){
  539. var max_fields = 10;
  540. var add_input_button = $('.add_input_button');
  541. var field_wrapper = $('.field_wrapper');
  542. var current_field_count = $("input[name^='prayer_time']").last().attr('id').replace('prayer_time','');
  543. current_field_count=+1;
  544. var new_field_html = '<div>'+
  545. '<input type="text" name="salah_time'+current_field_count+'" id="salah_time'+current_field_count+'" class="col-sm-4" value="" placeholder="Salah"/>'+
  546. '<input type="text" name="azan_time'+current_field_count+'" id="azan_time'+current_field_count+'" class="col-sm-4 prayer" value="" placeholder="Azan Time"/>'+
  547. '<input type="text" name="prayer_time'+current_field_count+'" id="prayer_time'+current_field_count+'" class="col-sm-3 prayer" value="" placeholder="Prayer Time"/>'+
  548. '<a href="javascript:void(0);" class="remove_input_button" title="Remove field"><i class="material-icons">clear</i></a></div>';
  549.  
  550. var input_count = 1;
  551. // Add button dynamically
  552. $(add_input_button).click(function(){
  553. if(input_count < max_fields){
  554. input_count++;
  555. $(field_wrapper).append(new_field_html);
  556. }
  557. });
  558. // Remove dynamically added button
  559. $(field_wrapper).on('click', '.remove_input_button', function(e){
  560. e.preventDefault();
  561. $(this).parent('div').remove();
  562. input_count--;
  563. });
  564. });
  565.  
  566.  
  567.  
  568.  
  569.  
  570.  
  571.  
  572.  
  573. // end new things
  574.  
  575.  
  576.  
  577.  
  578.  
  579.  
  580. jQuery(document).ready(function()
  581. {
  582.  
  583. jQuery(".add_masjid_form").on("submit",function(e)
  584. {
  585.  e.preventDefault();
  586. });
  587.  
  588. function reset_masjid() {
  589.  
  590. jQuery(".add_masjid_form").find(".field_class").removeAttr("style");
  591. jQuery(".add_masjid_form").find(".field_class:first-child").css({"display": "block"," left":" 0%"," opacity": "1", "transform": "scale(1)", "position": "relative"});
  592. jQuery(".add_masjid_form").find(".field_class").addClass("hidden");
  593. jQuery(".add_masjid_form").find("#progressbar li").removeClass("active");
  594. jQuery(".add_masjid_form").find("#progressbar li:first-child").addClass("active");
  595. jQuery(".add_masjid_form").find(".field_class:first-child").removeClass("hidden");
  596. }
  597.  
  598. var response;
  599. $.validator.addMethod(
  600.  "uniqueUserName",
  601.  function(value, element) {
  602.    $.ajax({
  603.      type: "POST",
  604.      url: "<?php echo base_url().'admin/email_check';?>",
  605.       data: {"email":value,"table":"users"},
  606.       success: function(msg)
  607.       {
  608. //If username exists, set response to true
  609.  
  610. if(msg == "true")
  611. {
  612.   response = true;
  613. }
  614. else
  615. {
  616.   response = false;
  617. }
  618. }
  619. });
  620.     return response;
  621.   },
  622.   "Username is Already Taken"
  623.   );
  624.  
  625. //jQuery time
  626. var current_fs, next_fs, previous_fs; //fieldsets
  627. var left, opacity, scale; //fieldset properties which we will animate
  628. var animating; //flag to prevent quick multi-click glitches
  629.  
  630. var $validator = jQuery(".add_masjid_form").validate({
  631.   submitHandler: function(form) {
  632.     jQuery('.popup_loader').css({"display":"block"});
  633.   }
  634. });
  635.  
  636.  
  637. jQuery(".add_masjid_form").on("click",".next",function(){
  638.  
  639. var $valid = jQuery(".add_masjid_form").valid();
  640. if(!$valid){
  641.   $validator.focusInvalid();
  642. }
  643. else
  644. {
  645.   if(animating) return false;
  646.   animating = true;
  647.   current_fs = $(this).parent();
  648.   next_fs = $(this).parent().next();
  649.   jQuery(".field_class").addClass("hidden")
  650.   next_fs.removeClass("hidden");
  651.  
  652.  
  653. //activate next step on progressbar using the index of next_fs
  654. $("#progressbar li").eq($("fieldset").index(next_fs)).addClass("active");
  655.  
  656. //show the next fieldset
  657. next_fs.show();
  658. //hide the current fieldset with style
  659. current_fs.animate({opacity: 0}, {
  660.   step: function(now, mx) {
  661. //as the opacity of current_fs reduces to 0 - stored in "now"
  662. //1. scale current_fs down to 80%
  663. scale = 1 - (1 - now) * 0.2;
  664. //2. bring next_fs from the right(50%)
  665. left = (now * 50)+"%";
  666. //3. increase opacity of next_fs to 1 as it moves in
  667. opacity = 1 - now;
  668. current_fs.css({
  669.   'transform': 'scale('+scale+')',
  670.   'position': 'relative'
  671. });
  672. next_fs.css({'left': left, 'opacity': opacity});
  673. },
  674. duration: 800,
  675. complete: function(){
  676.   current_fs.hide();
  677.   animating = false;
  678. },
  679. //this comes from the custom easing plugin
  680. easing: 'easeInOutBack'
  681. });
  682. }
  683. });
  684.  
  685. $(".previous").click(function(){
  686.   if(animating) return false;
  687.   animating = true;
  688.  
  689.   current_fs = $(this).parent();
  690.   previous_fs = $(this).parent().prev();
  691.  
  692. jQuery(".field_class").addClass("hidden")
  693. previous_fs.removeClass("hidden");
  694.  
  695. //de-activate current step on progressbar
  696. $("#progressbar li").eq($("fieldset").index(current_fs)).removeClass("active");
  697.  
  698. //show the previous fieldset
  699. previous_fs.show();
  700. //hide the current fieldset with style
  701. current_fs.animate({opacity: 0}, {
  702.   step: function(now, mx) {
  703. //as the opacity of current_fs reduces to 0 - stored in "now"
  704. //1. scale previous_fs from 80% to 100%
  705. scale = 0.8 + (1 - now) * 0.2;
  706. //2. take current_fs to the right(50%) - from 0%
  707. left = ((1-now) * 50)+"%";
  708. //3. increase opacity of previous_fs to 1 as it moves in
  709. opacity = 1 - now;
  710. current_fs.css({'left': left});
  711. previous_fs.css({'transform': 'scale('+scale+')', 'opacity': opacity});
  712. },
  713. duration: 800,
  714. complete: function(){
  715.   current_fs.hide();
  716.   animating = false;
  717. },
  718. //this comes from the custom easing plugin
  719. easing: 'easeInOutBack'
  720. });
  721.  
  722. });
  723.  
  724. $(".submit").click(function(){
  725.   return false;
  726. })
  727.   jQuery("#msform").on("submit",function(e)
  728.   {
  729.     e.preventDefault();
  730.  
  731.   });
  732.  
  733. // $('.prayer').bootstrapMaterialDatePicker({ date: false });
  734. $(document).on("focus", ".prayer", function(){
  735.   $(this).bootstrapMaterialDatePicker({
  736.     date: false,
  737.     shortTime: false,
  738.     format: 'HH:mm'
  739.   });
  740. });
  741.     $(".dtp-buttons").click(function ()
  742.     {      
  743.       if( $('#azan_time1').val().length != 0  && $('#prayer_time1').val().length != 0) {
  744.        var startTime = $('#azan_time1').val();  
  745.         var endTime   = $('#prayer_time1').val();    
  746.         if (startTime >= endTime)
  747.         {
  748.           alert('End time always greater then start time.');
  749.           $('#prayer_time1').val('')
  750.         }
  751.       }
  752.     if( $('#azan_time2').val().length != 0  && $('#prayer_time2').val().length != 0) {
  753.      var startTime = $('#azan_time2').val();  
  754.       var endTime   = $('#prayer_time2').val();    
  755.       if (startTime >= endTime)
  756.       {
  757.         alert('End time always greater then start time.');
  758.         $('#prayer_time2').val('')
  759.       }
  760.     }
  761.   if( $('#azan_time3').val().length != 0  && $('#prayer_time3').val().length != 0) {
  762.    var startTime = $('#azan_time3').val();  
  763.     var endTime   = $('#prayer_time3').val();    
  764.     if (startTime >= endTime)
  765.     {
  766.         alert('End time always greater then start time.');
  767.          $('#prayer_time3').val('')
  768.     }
  769.   }
  770.   if( $('#azan_time4').val().length != 0  && $('#prayer_time4').val().length != 0) {
  771.    var startTime = $('#azan_time4').val();  
  772.     var endTime   = $('#prayer_time4').val();    
  773.     if (startTime >= endTime)
  774.     {
  775.         alert('End time always greater then start time.');
  776.          $('#prayer_time4').val('')
  777.     }
  778.   }
  779.   if( $('#azan_time5').val().length != 0  && $('#prayer_time5').val().length != 0) {
  780.    var startTime = $('#azan_time5').val();  
  781.     var endTime   = $('#prayer_time5').val();    
  782.     if (startTime >= endTime)
  783.     {
  784.         alert('End time always greater then start time.');
  785.          $('#prayer_time5').val('')
  786.     }
  787.   }
  788.   if( $('#azan_time6').val().length != 0  && $('#prayer_time6').val().length != 0) {
  789.    var startTime = $('#azan_time6').val();  
  790.     var endTime   = $('#prayer_time6').val();    
  791.     if (startTime >= endTime)
  792.     {
  793.         alert('End time always greater then start time.');
  794.          $('#prayer_time6').val('')
  795.     }
  796.   }
  797.  
  798. });
  799.  
  800. var url = '<?php echo base_url();?>';//$('.content-header').attr('rel');
  801.  
  802. var table = $('.user_table').DataTable({
  803.   dom: 'lfBrtip',
  804.   buttons: [
  805.   'copy', 'excel', 'pdf', 'print'
  806.   ],
  807.   "processing": true,
  808.   "serverSide": false,
  809.   "aoColumnDefs" : [ {
  810.     "bSortable" : true,
  811.  
  812.     "aTargets" : [ "sorting_disabled" ]
  813.  
  814.   } ],
  815.  
  816.   "order": [
  817.  
  818.   [1, 'asc']
  819.  
  820.   ],
  821.  
  822.   "ajax": url+"admin/active_masjid_list",
  823.  
  824.   "sPaginationType": "full_numbers",
  825.  
  826.   "language": {
  827.  
  828.     "search": "_INPUT_",
  829.     "searchPlaceholder": "Search",
  830.     "paginate": {
  831.       "next": '<i class="fa fa-angle-right"></i>',
  832.       "previous": '<i class="fa fa-angle-left"></i>',
  833.       "first": '<i class="fa fa-angle-double-left"></i>',
  834.       "last": '<i class="fa fa-angle-double-right"></i>'
  835.     }
  836.   },
  837.   "iDisplayLength": 10,
  838.   "aLengthMenu": [[10, 25, 50, 100,500,-1], [10, 25, 50,100,500,"All"]]
  839. });
  840.  
  841. var table2 = $('.user_table_pending').DataTable({
  842.   dom: 'lfBrtip',
  843.   buttons: [
  844.   'copy', 'excel', 'pdf', 'print'
  845.   ],
  846.   "processing": true,
  847.   "serverSide": false,
  848.   "aoColumnDefs" : [ {
  849.     "bSortable" : true,
  850.  
  851.     "aTargets" : [ "sorting_disabled" ]
  852.  
  853.   } ],
  854.  
  855.   "order": [
  856.  
  857.   [1, 'asc']
  858.  
  859.   ],
  860.  
  861.   "ajax": url+"admin/non_active_masjid_list",
  862.  
  863.   "sPaginationType": "full_numbers",
  864.  
  865.   "language": {
  866.  
  867.     "search": "_INPUT_",
  868.     "searchPlaceholder": "Search",
  869.     "paginate": {
  870.       "next": '<i class="fa fa-angle-right"></i>',
  871.       "previous": '<i class="fa fa-angle-left"></i>',
  872.       "first": '<i class="fa fa-angle-double-left"></i>',
  873.       "last": '<i class="fa fa-angle-double-right"></i>'
  874.     }
  875.   },
  876.   "iDisplayLength": 10,
  877.   "aLengthMenu": [[10, 25, 50, 100,500,-1], [10, 25, 50,100,500,"All"]]
  878. });
  879.  
  880.  
  881. jQuery("input[name='mobile']").intlTelInput({
  882. // allowDropdown: false,
  883. // autoHideDialCode: false,
  884. // autoPlaceholder: "off",
  885. // dropdownContainer: "body",
  886. // excludeCountries: ["us"],
  887. // formatOnDisplay: false,
  888. // geoIpLookup: function(callback) {
  889. //   $.get("http://ipinfo.io", function() {}, "jsonp").always(function(resp) {
  890. //     var countryCode = (resp && resp.country) ? resp.country : "";
  891. //     callback(countryCode);
  892. //   });
  893. // },
  894. // hiddenInput: "full_number",
  895. // initialCountry: "auto",
  896. // localizedCountries: { 'de': 'Deutschland' },
  897. // nationalMode: false,
  898. // onlyCountries: ['us', 'gb', 'ch', 'ca', 'do'],
  899. // placeholderNumberType: "MOBILE",
  900. // preferredCountries: ['cn', 'jp'],
  901. // separateDialCode: true,
  902. utilsScript: "<?php echo base_url();?>assets/js/utils.js"
  903. });
  904.  
  905.  
  906.  
  907. var removed_list = [];
  908. var edit_masjid = '';
  909. var myDropzone = new Dropzone("div#myDropzone", {
  910.   url: "<?php echo base_url().'admin/add_masjid';?>",
  911.   autoProcessQueue: false,
  912.   uploadMultiple: true,
  913.   parallelUploads: 100,
  914.   maxFiles: 100,
  915.   acceptedFiles: "image/*",
  916.   init: function () {
  917.     var submitButton = document.querySelector(".btn_post");
  918.     var wrapperThis = this;
  919.     jQuery(document).on("click",".btn_post", function() {
  920.       $this = jQuery(this);
  921.       jQuery('.popup_loader').css({"display":"block"});
  922.       edit_masjid = jQuery($this).attr('data-edit_masjid');
  923.       if(wrapperThis.processQueue())
  924.       {
  925. $(".add_masjid_form").valid();
  926.       }
  927.       else
  928.       {  
  929.         if(myDropzone.getUploadingFiles().length <= 0)
  930.        {
  931.          var formDatas = new FormData(),
  932.          params   = jQuery(".add_masjid_form").serializeArray();
  933.          $.each(params, function(i, val) {
  934.            formDatas.append(val.name, val.value);
  935.          });
  936.          var edit_m = jQuery($this).attr('data-edit_masjid');
  937.          formDatas.append("edit_masjid",edit_m);
  938.          formDatas.append('removed_list',JSON.stringify(removed_list));
  939.  
  940.          jQuery.ajax({
  941.            url:"<?php echo base_url().'admin/add_masjid';?>",
  942.             data: formDatas,
  943.             dataType:"JSON",
  944.             cache: false,
  945.             contentType: false,
  946.             processData: false,
  947.             method: 'POST',
  948.             type: 'POST',
  949.             success: function(response){
  950.               jQuery('.popup_loader').css({"display":"none"});
  951.               jQuery('#exampleModal').modal("hide");
  952.               $.notify({
  953.                 title: '<strong><?php echo $this->lang->line('success');?></strong>',
  954.                 message: "<?php echo $this->lang->line('data_inserted_sucessfully');?>"
  955.               },{
  956.                 type: 'success'
  957.               });
  958.               jQuery(".add_masjid_form")[0].reset();
  959.               table.ajax.reload();
  960.               table2.ajax.reload();
  961.             }
  962.           });
  963.         }
  964.       }
  965.     });
  966.  
  967.     jQuery("body").on("click",".edit_btn", function() {
  968.       reset_masjid();
  969.       jQuery('.popup_loader').css({"display":"block"});
  970.       edit_masjid = jQuery(this).attr('data-id');
  971.       $this = jQuery(this);
  972.       $.ajax({
  973.         url:'<?php echo site_url('admin/get_masjiddata'); ?>',
  974.         type: 'POST',
  975.         data: {"edit_masjid" : edit_masjid},
  976.         dataType:"json",
  977.         success: function(response){
  978.           jQuery('.popup_loader').css({"display":"none"});
  979.           populate('.add_masjid_form',response['masjid']);
  980.           populate('.add_masjid_form',response['timings']);
  981.           jQuery(".btn_post").attr("data-edit_masjid",edit_masjid);
  982.           jQuery('#exampleModal').modal('show');
  983.           var files_data = JSON.parse(response['file_data']);
  984.           myDropzone.emit("reset");
  985.           myDropzone.removeAllFiles(true);
  986.           removed_list = [];
  987.           $.each(files_data, function(key,value){
  988.             var mockFile = { name: value.name, size: value.size, url: value.thumb};
  989. //myDropzone.options.addedfile.call(myDropzone, mockFile);
  990. // myDropzone.options.thumbnail.call(myDropzone, mockFile, value.thumb);
  991. mockFile.isMock = true;
  992. mockFile.status = Dropzone.ADDED;
  993. mockFile.accepted = true;
  994. myDropzone.emit("success", mockFile);
  995. myDropzone.emit("addedfile", mockFile);
  996. myDropzone.emit("complete", mockFile);
  997. myDropzone.emit("thumbnail", mockFile, mockFile.url);
  998. myDropzone.files.push(mockFile);
  999. });
  1000.         }
  1001.       });
  1002.     });
  1003.     this.on('sendingmultiple', function (data, xhr, formData) {
  1004.       var id_ports = edit_masjid;
  1005.       formData.append('edit_masjid', id_ports);
  1006.       formData.append('removed_list',JSON.stringify(removed_list));
  1007.       var params   = jQuery(".add_masjid_form").serializeArray();
  1008.       $.each(params, function(i, val) {
  1009.         formData.append(val.name, val.value);
  1010.       });
  1011.     });
  1012.     this.on('removedfile', function (data, xhr, formData)
  1013.     {
  1014.       removed_list.push(data.name);
  1015.  
  1016.     });
  1017.  
  1018.     this.on("complete", function (file) {
  1019.       jQuery('.popup_loader').css({"display":"none"});
  1020.  
  1021.       table.ajax.reload();
  1022.       table2.ajax.reload();
  1023.  
  1024.     });
  1025.   }
  1026. });
  1027.  
  1028.  
  1029. function populate(frm, data) {
  1030.   $.each(data, function(key, value){
  1031.     $('#'+key, frm).val(value);
  1032.   });
  1033. }
  1034.  
  1035. jQuery(document).on("click",".delete_btn",function()
  1036. {
  1037.   var delete_id = jQuery(this).attr('data-id');
  1038.   bootbox.confirm("<?php echo $this->lang->line('delete_confirmation');?>",
  1039.     function(result){
  1040.       if(result)
  1041.       {
  1042.         jQuery('.popup_loader').css({"display":"block"});
  1043.  
  1044.         $.ajax({
  1045.           url: "<?php echo base_url().'admin/delete_masjid';?>",
  1046.           type: 'POST',
  1047.           data:{"delete_id":delete_id},
  1048.           success: function(response) {
  1049.             jQuery('.popup_loader').css({"display":"none"});
  1050.             $.notify({
  1051.               title: '<strong><?php echo $this->lang->line('success');?></strong>',
  1052.               message: "<?php echo $this->lang->line('data_deleted_sucessfully');?>"
  1053.             },{
  1054.               type: 'success'
  1055.             });
  1056.             table.ajax.reload();
  1057.             table2.ajax.reload();
  1058.           }            
  1059.         });
  1060.  
  1061.       }
  1062.     });
  1063.  
  1064. });
  1065.  
  1066.  
  1067. jQuery(".btn_add").on("click",function()
  1068. {
  1069. jQuery(".btn_post").attr("data-edit_masjid",'');
  1070. reset_masjid();
  1071. jQuery(".add_masjid_form")[0].reset();
  1072. });
  1073.  
  1074. });
  1075.  
  1076.      
  1077. </script>
  1078.  
  1079.  
  1080.  
  1081.  <script src="<?php echo site_url('assets/js/jquery.geocomplete.js');?>"></script>
  1082.  
  1083.  
  1084.     <script>
  1085.       jQuery(document).ready(function(){
  1086.         var curr_latt;
  1087.         var curr_lang;
  1088.         getLocation();
  1089. function getLocation() {
  1090.     if (navigator.geolocation) {
  1091.         navigator.geolocation.getCurrentPosition(function(position) {
  1092.     showPosition(position.coords);
  1093.     },
  1094.     function(failure) {
  1095.         $.getJSON('https://ipinfo.io/geo', function(response) {
  1096.         var loc = response.loc.split(',');
  1097.         var coords = {
  1098.             latitude: loc[0],
  1099.             longitude: loc[1]
  1100.         };
  1101.         showPosition(coords);
  1102.         });
  1103. });
  1104.     } else {
  1105.                $.getJSON('https://ipinfo.io/geo', function(response) {
  1106.         var loc = response.loc.split(',');
  1107.         var coords = {
  1108.             latitude: loc[0],
  1109.             longitude: loc[1]
  1110.         };
  1111.         showPosition(coords);
  1112.         });
  1113.     }
  1114. }
  1115.  
  1116.  
  1117. function showPosition(position) {
  1118.    curr_latt= position.latitude;
  1119.     curr_lang= position.longitude;
  1120.  
  1121.     $(".add_masjid_form").find("input[name=latitude]").val(curr_latt);
  1122.           $(".add_masjid_form").find("input[name=longitude]").val(curr_lang);
  1123. }
  1124.  
  1125.  
  1126. jQuery('.next').on('click',function()
  1127. {
  1128.  
  1129.  
  1130.  $(".add_masjid_form").find("#geocomplete").geocomplete({
  1131.           map: ".map_canvas",
  1132.           details: ".add_masjid_form",
  1133.           detailsAttribute: "data-geo",
  1134.            location: [curr_latt, curr_lang],
  1135.            types: ["geocode","establishment"],
  1136.           mapOptions: {
  1137.             zoom: 18,
  1138.             disableDefaultUI: true,
  1139.             zoomControl: true,
  1140.             zoomControlOptions: {
  1141.               style: google.maps.ZoomControlStyle.SMALL
  1142.             }
  1143.           },
  1144.         markerOptions: {
  1145.             animation: google.maps.Animation.DROP,
  1146.              draggable: true,
  1147.             flat: true,
  1148.           }
  1149.         });
  1150.  
  1151. });
  1152.    
  1153.        
  1154.  
  1155.        
  1156.         $("#geocomplete").bind("geocode:dragged", function(event, latLng){
  1157.           $(".add_masjid_form").find("input[name=latitude]").val(latLng.lat());
  1158.           $(".add_masjid_form").find("input[name=longitude]").val(latLng.lng());
  1159.           $("#reset").show();
  1160.         });
  1161.         $("#geocomplete").bind("geocode:click", function(event, latLng){
  1162.           $(".add_masjid_form").find("input[name=latitude]").val(latLng.lat());
  1163.           $(".add_masjid_form").find("input[name=longitude]").val(latLng.lng());
  1164.           $("#geocomplete").trigger("geocode");
  1165.           $("#reset").show();
  1166.            });
  1167.        
  1168.        
  1169.         $("#reset").click(function(){
  1170.           $("#geocomplete").geocomplete("resetMarker");
  1171.           $("#reset").hide();
  1172.           return false;
  1173.         });
  1174.        
  1175.         $(".find_geo").click(function(){
  1176.           $("#geocomplete").trigger("geocode");
  1177.         }).click();
  1178.  
  1179.       });
  1180.      
  1181.     </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement