File: WIAdmin/WIInc/site/Site/lang.php

Recommend this page to a friend!
  Classes of Jules Warner  >  WICMS  >  WIAdmin/WIInc/site/Site/lang.php  >  Download  
File: WIAdmin/WIInc/site/Site/lang.php
Role: Example script
Content type: text/plain
Description: Example script
Class: WICMS
Database driven content management system with PDO
Author: By
Last change:
Date: 3 years ago
Size: 2,276 bytes
 

Contents

Class file image Download
<script src="https://code.jquery.com/jquery-1.12.4.js"></script>
  <script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
  <script>
  $( function() {
  // $( "input" ).checkboxradio();
  } );
  </script>
 <form class="form-horizontal" id="email-form">
                        <fieldset>
                          <div id="legend">
                        <label>Multi Language</label>
                    <div class="btn-group" id="language" data-toggle="buttons-radio">
                        <input type="hidden" name="multilanguage" id="multilanguage" class="btn-group-value" value="<?php echo $site->Website_Info('multi_lang')?>"/>
                        <button type="button" id="multilanguage_true" name="multilanguage" value="on" class="btn">yes</button>
                        <button type="button" id="multilanguage_false" name="multilanguage" value="off" class="btn btn-danger activewhens" >No</button>
                    </div>

                    <span class="help-block">Select <strong>Yes</strong> to switch on multilanguage options</span>
                   
                 

                   <div class="control-group form-group">
                        <!-- Button -->
                        <div class="controls col-lg-offset-4 col-lg-8">
                           <button id="multilanguage_btn" class="btn btn-success" onclick="WILang.changeLang();">Save</button>
                        </div>
                      </div>
                      <div class="results" id="results"></div>
                        </fieldset>
                      </form>

                       <script type="text/javascript">
                       var multi_lang = $("#multilanguage").attr('value');
                       if (multi_lang === "off"){
                        $("#multilanguage_true").removeClass('btn-success active')
                        $("#multilanguage_false").addClass('btn-danger active');
                       }else if (multi_lang === "on"){
                        $("#multilanguage_false").removeClass('btn-danger active')
                        $("#multilanguage_true").addClass('btn-success active');
                       }

                     
                  
                      </script>



For more information send a message to info at phpclasses dot org.