<style>
    .select-editable {
         position: relative;
    background-color: white;
 }
 .select-editable select {
     position: absolute;
    top: 0px;
    left: 0px;
    margin: 0;
 }
 .select-editable input {
    position: absolute;
    top: 2px;
    left: 4px;
    padding: 1px;
    font-size: 12px;
    border: none;
    width: auto;
    height: 30px;
    padding-left: 12px;
        min-width: 200px;
 }
 .select-editable select:focus, .select-editable input:focus {
     outline:none;
 }
 .frmgroupdivbtmmrgn{
     margin-bottom: 48px;
 }
</style>

<!-- Page Content -->
<div class="page-content">
    <!-- Page Header -->
    <div class="page-header position-relative">
        <div class="header-title">
            <h1><?php echo $this->lang->line("COMPANYINFORMATION"); ?></h1>
        </div>
        <!--Header Buttons-->
        <div class="header-buttons">
            <a class="sidebar-toggler" href="#">
                <i class="fa fa-arrows-h"></i>
            </a>
            <a class="refresh" id="refresh-toggler" href="">
                <i class="glyphicon glyphicon-refresh"></i>
            </a>
            <a class="fullscreen" id="fullscreen-toggler" href="#">
                <i class="glyphicon glyphicon-fullscreen"></i>
            </a>
        </div>
        <!--Header Buttons End-->
    </div>
    <!-- /Page Header -->
    <!-- Page Body -->
    <div class="page-body" id="resources">
        <div class="well ">
            <br>
            <?php
            if ($this->session->flashdata('success_msg')) {
                ?>
                <div class="alert alert-success">

                    <a href="#" class="close" data-dismiss="alert">&times;</a>

                    <?php echo $this->session->flashdata('success_msg'); $this->session->unset_userdata('success_msg');?>
                </div>

                <?php
            }
            ?>

            <div class="row">
                <div class="col-md-12">
                    <div class="tabbable">
        <ul class="nav nav-tabs" id="myTab">
            <li class="active">
                <a data-toggle="tab" href="#basic">
                    <?php echo $this->lang->line("GENERAL"); ?>
                </a>
            </li>
            <li class="tab-red">
                <a data-toggle="tab" href="#logo">
                    <?php echo $this->lang->line("LOGO"); ?>
                </a>
            </li>
            <li class="tab-blue">
                <a data-toggle="tab" href="#locale">
                    <?php echo $this->lang->line("LOCALE"); ?>
                </a>
            </li>
            <li class="tab-red">
                <a data-toggle="tab" href="#agreementcnt">
                    <?php echo $this->lang->line("DOCUMENTSETTINGS"); ?>
                </a>
            </li>
        </ul>

        <div class="tab-content">
            <div id="basic" class="tab-pane in active">
                <div class="myform">
                    <form action="<?php echo base_url(); ?>settings/companyinfo/update" method="post" id="companyinfo">
                        <div class="myform-controls">

                            <div class="row">

                                <label class="control-label col-xs-12 col-sm-4 col-md-2 form-group"><?php echo $this->lang->line("COMPANYNAME"); ?></label>
                                <div class="col-xs-12 col-sm-8 col-md-10 form-group">
                                    <input value="<?= $company->COMPANYNAME ?>" name="companyname" type="text" class="inp-form form-control" />
                                </div>
                            </div>

                            <div class="row">
                                <label class="control-label col-xs-12 col-sm-4 col-md-2 form-group"><?php echo $this->lang->line("ADDRESS1"); ?></label>
                                <div class="col-xs-12 col-sm-8 col-md-10 form-group">
                                    <input value="<?= $company->ADDRESS1 ?>" name="address1" type="text" class="inp-form form-control" />
                                </div>
                            </div>

                            <div class="row">
                                <label class="control-label col-xs-12 col-sm-4 col-md-2 form-group"><?php echo $this->lang->line("ADDRESS2"); ?></label>
                                <div class="col-xs-12 col-sm-8 col-md-10 form-group">
                                    <input value="<?= $company->ADDRESS2 ?>" name="address2" type="text" class="inp-form form-control" />
                                </div>
                            </div>

                            <div class="row">
                                <label class="control-label col-xs-12 col-sm-4 col-md-2 form-group"><?php echo $this->lang->line("POSTALCODE"); ?></label>
                                <div class="col-xs-12 col-sm-8 col-md-10 form-group">
                                    <input value="<?= $company->POSTAL ?>" name="postal" type="text" class="inp-form form-control" />
                                </div>
                            </div>

                            <div class="row">
                                <label class="control-label col-xs-12 col-sm-4 col-md-2 form-group"><?php echo $this->lang->line("CITY"); ?></label>
                                <div class="col-xs-12 col-sm-8 col-md-10 form-group">
                                    <input value="<?= $company->CITY ?>" name="city" type="text" class="inp-form form-control" />
                                </div>
                            </div>

                            <div class="row">
                                <label class="control-label col-xs-12 col-sm-4 col-md-2 form-group"><?php echo $this->lang->line("REGION"); ?></label>
                                <div class="col-xs-12 col-sm-8 col-md-10 form-group">
                                    <input value="<?= $company->REGION ?>" name="region" type="text" class="inp-form form-control" />
                                </div>
                            </div>

                            <div class="row">
                                <label class="control-label col-xs-12 col-sm-4 col-md-2 form-group"><?php echo $this->lang->line("COUNTRY"); ?></label>
                                <div class="col-xs-12 col-sm-8 col-md-10 form-group">
                                    <input value="<?= $company->COUNTRY ?>" name="country" type="text" class="inp-form form-control" />
                                </div>
                            </div>

                            <div class="row">
                                <label class="control-label col-xs-12 col-sm-4 col-md-2 form-group"><?php echo $this->lang->line("PHONE1"); ?></label>
                                <div class="col-xs-12 col-sm-8 col-md-10 form-group">
                                    <input value="<?= $company->PHONE1 ?>" name="phone1" type="text" class="inp-form form-control" />
                                </div>
                            </div>

                            <div class="row">
                                <label class="control-label col-xs-12 col-sm-4 col-md-2 form-group"><?php echo $this->lang->line("PHONE2"); ?></label>
                                <div class="col-xs-12 col-sm-8 col-md-10 form-group">
                                    <input value="<?= $company->PHONE2 ?>" name="phone2" type="text" class="inp-form form-control" />
                                </div>
                            </div>

                            <div class="row">
                                <label class="control-label col-xs-12 col-sm-4 col-md-2 form-group"><?php echo $this->lang->line("FAX"); ?></label>
                                <div class="col-xs-12 col-sm-8 col-md-10 form-group">
                                    <input value="<?= $company->FAX ?>" name="fax" type="text" class="inp-form form-control" />
                                </div>
                            </div>

                            <div class="row">
                                <label class="control-label col-xs-12 col-sm-4 col-md-2 form-group"><?php echo $this->lang->line("EMAIL"); ?></label>
                                <div class="col-xs-12 col-sm-8 col-md-10 form-group">
                                    <input value="<?= $company->EMAIL ?>" name="email" type="text" class="inp-form form-control" />
                                </div>
                            </div>

                            <div class="row">
                                <label class="control-label col-xs-12 col-sm-4 col-md-2 form-group"><?php echo $this->lang->line("WEBSITE"); ?></label>
                                <div class="col-xs-12 col-sm-8 col-md-10 form-group">
                                    <input value="<?= $company->WEBSITE ?>" name="web" type="text" class="inp-form form-control" />
                                </div>
                            </div>

                            <div class="row">
                                <label class="control-label col-xs-12 col-sm-4 col-md-2 form-group"><?php echo $this->lang->line("TAXID"); ?></label>
                                <div class="col-xs-12 col-sm-8 col-md-10 form-group">
                                    <input value="<?= $company->TAXID ?>" name="taxid" type="text" class="inp-form form-control" />
                                </div>
                            </div>

                            <div class="row">
                                <label class="control-label col-xs-12 col-sm-4 col-md-2 form-group"></label>
                                <div class="col-xs-12 col-sm-8 col-md-10 form-group">
                                    <input type="hidden" name="update" value="<?php echo $this->lang->line("UPDATE"); ?>" />
                                    <input type="submit"  align="center" value="<?php echo $this->lang->line("SAVE"); ?>" class="btn btn-success">

                                </div>
                            </div>

                        </div>
                    </form>
                </div>
            </div>

            <div id="logo" class="tab-pane">
                <div class="myform">
                    <?php echo $error;?>
                    <?php echo form_open_multipart('settings/companyinfo/updatelogo');?>
<!--                    <form action="<?php echo base_url(); ?>settings/companyinfo/update" method="post" id="companyinfo">-->
                        <div class="myform-controls">

                            <div class="row">
                                <label class="control-label col-xs-12 col-sm-4 col-md-2 form-group"><?php echo $this->lang->line("DISPLAYLOGO"); ?></label>
                                <div class="col-xs-12 col-sm-8 col-md-10 form-group">
                                    <span class="file-input btn btn-azure btn-file">
                                        Browse <input type="file" name="displaylogo" id="displaylogo" class="inp-form form-control" />
                                    </span>
                                </div>
                            </div>
                            <div class="row">
                                <div class="col-xs-12 col-sm-8 col-md-10">
                                    <img src="<?php echo $company->DISPLAYLOGO; ?>" id="displaylogoimg" width="150" />
                                </div>
                            </div>
                            <input type="hidden" name="displaylogohidden" id="displaylogohidden" value="" />
<!--                            <div class="row">
                                <label class="control-label col-xs-12 col-sm-4 col-md-2 form-group">Print Logo</label>
                                <div class="col-xs-12 col-sm-8 col-md-10 form-group">
                                    <span class="file-input btn btn-azure btn-file">
                                        Browse <input type="file" name="printlogo" id="printlogo" class="inp-form form-control" />
                                    </span>
                                </div>
                            </div>
                            <div class="row">
                                <div class="col-xs-12 col-sm-8 col-md-10">
                                    <img src="<?php echo $company->PRINTLOGO; ?>" id="printlogoimg" width="150" />
                                </div>
                            </div>-->
                            <div class="row">
                                <label class="control-label col-xs-12 col-sm-4 col-md-2 form-group"></label>
                                <div class="col-xs-12 col-sm-8 col-md-10 form-group">
                                    <input type="hidden" name="update" value="update" />
                                    <input type="submit" align="center" value="<?php echo $this->lang->line("SAVE"); ?>" class="btn btn-success">
                                </div>
                            </div>

                        </div>
                    </form>
                </div>
            </div>
            
            <div id="locale" class="tab-pane">
                <div class="myform">
                    <form action="<?php echo base_url(); ?>settings/companyinfo/updatelocalesettings" method="post" id="localeinfo">
                        <div class="myform-controls">

                            <div class="row">
                                <label class="control-label col-xs-12 col-sm-4 col-md-2 form-group"><?php echo $this->lang->line("LOCALE"); ?></label>
                                <div class="col-xs-12 col-sm-8 col-md-10 form-group">
                                    <select name="COUNTRY" id="COUNTRY" class="inp-form form-control">
                                        <option value=""><?php echo $this->lang->line("DEFAULT"); ?></option>
                                        <?php
                                        if($countrylist){
                                            foreach($countrylist as $key=>$value){
                                        ?>
<option value="<?php echo $key; ?>" <?php if($locale->COUNTRY==$key) echo "selected"; ?>>
                                                <?php echo $value; ?>
                                            </option>
                                        <?php
                                            }
                                        }
                                        ?>
                                    </select>
                                </div>
                            </div>
                            
                            <div class="row">
                                <label class="control-label col-xs-12 col-sm-4 col-md-2 form-group"><?php echo $this->lang->line("INTEGER"); ?></label>
                                <div class="col-xs-12 col-sm-8 col-md-10 form-group frmgroupdivbtmmrgn">
<div class="select-editable">
    <select onchange="this.nextElementSibling.value=this.value" class="inp-form form-control">
        <option value="#0"><?php echo $this->lang->line("DEFAULT"); ?></option>
        <option value="#0">#0</option>
        <option value="#,##0">#,##0</option>
    </select>
    <input type="text" class="inp-form form-control" name="FORMATINTEGER" id="FORMATINTEGER" value="<?php echo $locale->FORMATINTEGER; ?>" />
</div>
                                </div>
                            </div>
                            <div class="row">
                                <label class="control-label col-xs-12 col-sm-4 col-md-2 form-group"><?php echo $this->lang->line("DOUBLE"); ?></label>
                                <div class="col-xs-12 col-sm-8 col-md-10 form-group frmgroupdivbtmmrgn">
<div class="select-editable">
    <select  onchange="this.nextElementSibling.value=this.value" class="inp-form form-control">
        <option value="#0.0"><?php echo $this->lang->line("DEFAULT"); ?></option>
        <option value="#0.0">#0.0</option>
        <option value="#,##0.#">#,##0.#</option>
    </select>
    <input type="text" class="inp-form form-control" name="FORMATDOUBLE" id="FORMATDOUBLE" value="<?php echo $locale->FORMATDOUBLE; ?>" />
</div>
                                    
                                </div>
                            </div>
                            <div class="row">
                                <label class="control-label col-xs-12 col-sm-4 col-md-2 form-group"><?php echo $this->lang->line("CURRENCY"); ?></label>
                                <div class="col-xs-12 col-sm-8 col-md-10 form-group frmgroupdivbtmmrgn">
<div class="select-editable">
    <select onchange="this.nextElementSibling.value=this.value" class="inp-form form-control">
        <option value="#0.00"><?php echo $this->lang->line("DEFAULT"); ?></option>
        <option value="#0.00">#0.00</option>
        <option value="#,##0.00">#,##0.00</option>
    </select>
    <input type="text" class="inp-form form-control" name="FORMATCURRENCY" id="FORMATCURRENCY" value="<?php echo $locale->FORMATCURRENCY; ?>" />
</div>
                                </div>
                            </div>
                            <div class="row">
                                <label class="control-label col-xs-12 col-sm-4 col-md-2 form-group"><?php echo $this->lang->line("PERCENT"); ?></label>
                                <div class="col-xs-12 col-sm-8 col-md-10 form-group frmgroupdivbtmmrgn">
<div class="select-editable">
    <select onchange="this.nextElementSibling.value=this.value" class="inp-form form-control">
                                        <option value="#0%"><?php echo $this->lang->line("DEFAULT"); ?></option>
                                        <option value="#,##0.##%">#,##0.##%</option>
                                    </select>
    <input type="text" class="inp-form form-control" name="FORMATPERCENT" id="FORMATPERCENT" value="<?php echo $locale->FORMATPERCENT; ?>" />
</div>
                                    
                                </div>
                            </div>
                            <div class="row">
                                <label class="control-label col-xs-12 col-sm-4 col-md-2 form-group"><?php echo $this->lang->line("DATE"); ?></label>
<div class="col-xs-12 col-sm-8 col-md-10 form-group frmgroupdivbtmmrgn">
    <div class="select-editable">
        <select onchange="this.nextElementSibling.value=this.value" class="inp-form form-control">
            <option value="d-m-y"><?php echo $this->lang->line("DEFAULT"); ?></option>
            <option value="d-m-y">dd.MM.yy</option>
            <option value="d-m-Y">dd.MM.yyyy</option>
            <option value="m-d-y">MM.dd.yy</option>
            <option value="m-d-Y">MM.dd.yyyy</option>
            <option value="D, M d, y">EEE, MMM d, yy</option>
            <option value="D, M d, Y">EEE, MMM d, yyyy</option>
            <option value="D, F d, y">EEE, MMMM d, yy</option>
            <option value="D, F d, Y">EEE, MMMM d, yyyy</option>
            <option value="l, F d, y">EEEE, MMMM d, yy</option>
            <option value="l, F d, Y">EEEE, MMMM d, yyyy</option>
        </select>
        <input type="text" class="inp-form form-control" name="FORMATDATE" id="FORMATDATE" value="<?php echo $locale->FORMATDATE; ?>" />
    </div>
</div>
                                
                            </div>
                            <div class="row">
                                <label class="control-label col-xs-12 col-sm-4 col-md-2 form-group"><?php echo $this->lang->line("TIME"); ?></label>

                                
<div class="col-xs-12 col-sm-8 col-md-10 form-group frmgroupdivbtmmrgn">
    <div class="select-editable">
        <select onchange="this.nextElementSibling.value=this.value" class="inp-form form-control">
            <option value="h:i"><?php echo $this->lang->line("DEFAULT"); ?></option>
            <option value="h:i">h:mm</option>
            <option value="h:i:s">h:mm:ss</option>
            <option value="h:i: a">h:mm a</option>
            <option value="h:i:s a">h:mm:ss a</option>
            <option value="H:i">H:mm</option>
            <option value="H:i:s">H:mm:ss</option>
            <option value="H:i a">H:mm a</option>
            <option value="H:i:s a">H:mm:ss a</option>
        </select>
        <input type="text" class="inp-form form-control" name="FORMATTIME" id="FORMATTIME" value="<?php echo $locale->FORMATTIME; ?>" />
    </div>
</div>
                            </div>
                            <div class="row">
                                <label class="control-label col-xs-12 col-sm-4 col-md-2 form-group"><?php echo $this->lang->line("DATETIME"); ?></label>
                                
<div class="col-xs-12 col-sm-8 col-md-10 form-group frmgroupdivbtmmrgn">
    <div class="select-editable">
        <select onchange="this.nextElementSibling.value=this.value" class="inp-form form-control">
            <option value="d-m-y H:i"><?php echo $this->lang->line("DEFAULT"); ?></option>
            <option value="d-m-y H:i">dd.MM.yy, H:mm</option>
            <option value="m-d-y H:i">MM.dd.yy, H:mm</option>
            <option value="d-m-Y H:i">dd.MM.yyyy, H:mm</option>
            <option value="m-d-Y H:i">MM.dd.yyyy, H:mm</option>
            <option value="D, F d, Y H:i">EEE, MMMM d yyyy, H:mm</option>
            <option value="l, F d, Y H:i">EEEE, MMMM d yyyy, H:mm</option>
        </select>
        <input type="text" class="inp-form form-control" name="FORMATDATETIME" id="FORMATDATETIME" value="<?php echo $locale->FORMATDATETIME; ?>" />
    </div>
</div>
                            </div>
                            
                            <div class="row">
                                <label class="control-label col-xs-12 col-sm-4 col-md-2 form-group"><?php echo $this->lang->line("TIMEZONE"); ?></label>
                                <div class="col-xs-12 col-sm-8 col-md-10 form-group">
                                    <select class="inp-form form-control" name="TIMEZONE" id="TIMEZONE">
                                        <option value="Pacific/Midway" <?php if($locale->TIMEZONE=='Pacific/Midway') echo "selected"; ?>>(GMT-11:00) Midway Island, Samoa</option>
                                        <option value="America/Adak" <?php if($locale->TIMEZONE=='America/Adak') echo "selected"; ?>>(GMT-10:00) Hawaii-Aleutian</option>
                                        <option value="Etc/GMT+10" <?php if($locale->TIMEZONE=='Etc/GMT+10') echo "selected"; ?>>(GMT-10:00) Hawaii</option>
                                        <option value="Pacific/Marquesas" <?php if($locale->TIMEZONE=='Pacific/Marquesas') echo "selected"; ?>>(GMT-09:30) Marquesas Islands</option>
                                        <option value="Pacific/Gambier" <?php if($locale->TIMEZONE=='Pacific/Gambier') echo "selected"; ?>>(GMT-09:00) Gambier Islands</option>
                                        <option value="America/Anchorage" <?php if($locale->TIMEZONE=='America/Anchorage') echo "selected"; ?>>(GMT-09:00) Alaska</option>
                                        <option value="America/Ensenada" <?php if($locale->TIMEZONE=='America/Ensenada') echo "selected"; ?>>(GMT-08:00) Tijuana, Baja California</option>
                                        <option value="Etc/GMT+8" <?php if($locale->TIMEZONE=='Etc/GMT+8') echo "selected"; ?>>(GMT-08:00) Pitcairn Islands</option>
                                        <option value="America/Los_Angeles" <?php if($locale->TIMEZONE=='America/Los_Angeles') echo "selected"; ?>>(GMT-08:00) Pacific Time (US & Canada)</option>
                                        <option value="America/Denver" <?php if($locale->TIMEZONE=='America/Denver') echo "selected"; ?>>(GMT-07:00) Mountain Time (US & Canada)</option>
                                        <option value="America/Chihuahua" <?php if($locale->TIMEZONE=='America/Chihuahua') echo "selected"; ?>>(GMT-07:00) Chihuahua, La Paz, Mazatlan</option>
                                        <option value="America/Dawson_Creek" <?php if($locale->TIMEZONE=='America/Dawson_Creek') echo "selected"; ?>>(GMT-07:00) Arizona</option>
                                        <option value="America/Belize" <?php if($locale->TIMEZONE=='America/Belize') echo "selected"; ?>>(GMT-06:00) Saskatchewan, Central America</option>
                                        <option value="America/Cancun" <?php if($locale->TIMEZONE=='America/Cancun') echo "selected"; ?>>(GMT-06:00) Guadalajara, Mexico City, Monterrey</option>
                                        <option value="Chile/EasterIsland" <?php if($locale->TIMEZONE=='Chile/EasterIsland') echo "selected"; ?>>(GMT-06:00) Easter Island</option>
                                        <option value="America/Chicago" <?php if($locale->TIMEZONE=='America/Chicago') echo "selected"; ?>>(GMT-06:00) Central Time (US & Canada)</option>
                                        <option value="America/New_York" <?php if($locale->TIMEZONE=='America/New_York') echo "selected"; ?>>(GMT-05:00) Eastern Time (US & Canada)</option>
                                        <option value="America/Havana" <?php if($locale->TIMEZONE=='America/Havana') echo "selected"; ?>>(GMT-05:00) Cuba</option>
                                        <option value="America/Bogota" <?php if($locale->TIMEZONE=='America/Bogota') echo "selected"; ?>>(GMT-05:00) Bogota, Lima, Quito, Rio Branco</option>
                                        <option value="America/Caracas" <?php if($locale->TIMEZONE=='America/Caracas') echo "selected"; ?>>(GMT-04:30) Caracas</option>
                                        <option value="America/Santiago" <?php if($locale->TIMEZONE=='America/Santiago') echo "selected"; ?>>(GMT-04:00) Santiago</option>
                                        <option value="America/La_Paz" <?php if($locale->TIMEZONE=='America/La_Paz') echo "selected"; ?>>(GMT-04:00) La Paz</option>
                                        <option value="Atlantic/Stanley" <?php if($locale->TIMEZONE=='Atlantic/Stanley') echo "selected"; ?>>(GMT-04:00) Faukland Islands</option>
                                        <option value="America/Campo_Grande" <?php if($locale->TIMEZONE=='America/Campo_Grande') echo "selected"; ?>>(GMT-04:00) Brazil</option>
                                        <option value="America/Goose_Bay" <?php if($locale->TIMEZONE=='America/Goose_Bay') echo "selected"; ?>>(GMT-04:00) Atlantic Time (Goose Bay)</option>
                                        <option value="America/Glace_Bay" <?php if($locale->TIMEZONE=='America/Glace_Bay') echo "selected"; ?>>(GMT-04:00) Atlantic Time (Canada)</option>
                                        <option value="America/St_Johns" <?php if($locale->TIMEZONE=='America/St_Johns') echo "selected"; ?>>(GMT-03:30) Newfoundland</option>
                                        <option value="America/Araguaina" <?php if($locale->TIMEZONE=='America/Araguaina') echo "selected"; ?>>(GMT-03:00) UTC-3</option>
                                        <option value="America/Montevideo" <?php if($locale->TIMEZONE=='America/Montevideo') echo "selected"; ?>>(GMT-03:00) Montevideo</option>
                                        <option value="America/Miquelon" <?php if($locale->TIMEZONE=='America/Miquelon') echo "selected"; ?>>(GMT-03:00) Miquelon, St. Pierre</option>
                                        <option value="America/Godthab" <?php if($locale->TIMEZONE=='America/Godthab') echo "selected"; ?>>(GMT-03:00) Greenland</option>
                                        <option value="America/Argentina/Buenos_Aires" <?php if($locale->TIMEZONE=='America/Argentina/Buenos_Aires') echo "selected"; ?>>(GMT-03:00) Buenos Aires</option>
                                        <option value="America/Sao_Paulo" <?php if($locale->TIMEZONE=='America/Sao_Paulo') echo "selected"; ?>>(GMT-03:00) Brasilia</option>
                                        <option value="America/Noronha" <?php if($locale->TIMEZONE=='America/Noronha') echo "selected"; ?>>(GMT-02:00) Mid-Atlantic</option>
                                        <option value="Atlantic/Cape_Verde" <?php if($locale->TIMEZONE=='Atlantic/Cape_Verde') echo "selected"; ?>>(GMT-01:00) Cape Verde Is.</option>
                                        <option value="Atlantic/Azores" <?php if($locale->TIMEZONE=='Atlantic/Azores') echo "selected"; ?>>(GMT-01:00) Azores</option>
                                        <option value="Europe/Dublin" <?php if($locale->TIMEZONE=='Europe/Dublin') echo "selected"; ?>>(GMT) Greenwich Mean Time : Belfast</option>
                                        <option value="Europe/Dublin" <?php if($locale->TIMEZONE=='Europe/Dublin') echo "selected"; ?>>(GMT) Greenwich Mean Time : Dublin</option>
                                        <option value="Europe/Lisbon" <?php if($locale->TIMEZONE=='Europe/Lisbon') echo "selected"; ?>>(GMT) Greenwich Mean Time : Lisbon</option>
                                        <option value="Europe/London" <?php if($locale->TIMEZONE=='Europe/London') echo "selected"; ?>>(GMT) Greenwich Mean Time : London</option>
                                        <option value="Africa/Abidjan" <?php if($locale->TIMEZONE=='Africa/Abidjan') echo "selected"; ?>>(GMT) Monrovia, Reykjavik</option>
                                        <option value="Europe/Amsterdam" <?php if($locale->TIMEZONE=='Europe/Amsterdam') echo "selected"; ?>>(GMT+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna</option>
                                        <option value="Europe/Belgrade" <?php if($locale->TIMEZONE=='Europe/Belgrade') echo "selected"; ?>>(GMT+01:00) Belgrade, Bratislava, Budapest, Ljubljana, Prague</option>
                                        <option value="Europe/Brussels" <?php if($locale->TIMEZONE=='Europe/Brussels') echo "selected"; ?>>(GMT+01:00) Brussels, Copenhagen, Madrid, Paris</option>
                                        <option value="Africa/Algiers" <?php if($locale->TIMEZONE=='Africa/Algiers') echo "selected"; ?>>(GMT+01:00) West Central Africa</option>
                                        <option value="Africa/Windhoek" <?php if($locale->TIMEZONE=='Africa/Windhoek') echo "selected"; ?>>(GMT+01:00) Windhoek</option>
                                        <option value="Asia/Beirut" <?php if($locale->TIMEZONE=='Asia/Beirut') echo "selected"; ?>>(GMT+02:00) Beirut</option>
                                        <option value="Africa/Cairo" <?php if($locale->TIMEZONE=='Africa/Cairo') echo "selected"; ?>>(GMT+02:00) Cairo</option>
                                        <option value="Asia/Gaza" <?php if($locale->TIMEZONE=='Asia/Gaza') echo "selected"; ?>>(GMT+02:00) Gaza</option>
                                        <option value="Africa/Blantyre" <?php if($locale->TIMEZONE=='Africa/Blantyre') echo "selected"; ?>>(GMT+02:00) Harare, Pretoria</option>
                                        <option value="Asia/Jerusalem" <?php if($locale->TIMEZONE=='Asia/Jerusalem') echo "selected"; ?>>(GMT+02:00) Jerusalem</option>
                                        <option value="Europe/Minsk" <?php if($locale->TIMEZONE=='Europe/Minsk') echo "selected"; ?>>(GMT+02:00) Minsk</option>
                                        <option value="Asia/Damascus" <?php if($locale->TIMEZONE=='Asia/Damascus') echo "selected"; ?>>(GMT+02:00) Syria</option>
                                        <option value="Europe/Moscow" <?php if($locale->TIMEZONE=='Europe/Moscow') echo "selected"; ?>>(GMT+03:00) Moscow, St. Petersburg, Volgograd</option>
                                        <option value="Africa/Addis_Ababa" <?php if($locale->TIMEZONE=='Africa/Addis_Ababa') echo "selected"; ?>>(GMT+03:00) Nairobi</option>
                                        <option value="Asia/Tehran" <?php if($locale->TIMEZONE=='Asia/Tehran') echo "selected"; ?>>(GMT+03:30) Tehran</option>
                                        <option value="Asia/Dubai" <?php if($locale->TIMEZONE=='Asia/Dubai') echo "selected"; ?>>(GMT+04:00) Abu Dhabi, Muscat</option>
                                        <option value="Asia/Yerevan" <?php if($locale->TIMEZONE=='Asia/Yerevan') echo "selected"; ?>>(GMT+04:00) Yerevan</option>
                                        <option value="Asia/Kabul" <?php if($locale->TIMEZONE=='Asia/Kabul') echo "selected"; ?>>(GMT+04:30) Kabul</option>
                                        <option value="Asia/Yekaterinburg" <?php if($locale->TIMEZONE=='Asia/Yekaterinburg') echo "selected"; ?>>(GMT+05:00) Ekaterinburg</option>
                                        <option value="Asia/Tashkent" <?php if($locale->TIMEZONE=='Asia/Tashkent') echo "selected"; ?>>(GMT+05:00) Tashkent</option>
                                        <option value="Asia/Kolkata" <?php if($locale->TIMEZONE=='Asia/Kolkata') echo "selected"; ?>>(GMT+05:30) Chennai, Kolkata, Mumbai, New Delhi</option>
                                        <option value="Asia/Katmandu" <?php if($locale->TIMEZONE=='Asia/Katmandu') echo "selected"; ?>>(GMT+05:45) Kathmandu</option>
                                        <option value="Asia/Dhaka" <?php if($locale->TIMEZONE=='Asia/Dhaka') echo "selected"; ?>>(GMT+06:00) Astana, Dhaka</option>
                                        <option value="Asia/Novosibirsk" <?php if($locale->TIMEZONE=='Asia/Novosibirsk') echo "selected"; ?>>(GMT+06:00) Novosibirsk</option>
                                        <option value="Asia/Rangoon" <?php if($locale->TIMEZONE=='Asia/Rangoon') echo "selected"; ?>>(GMT+06:30) Yangon (Rangoon)</option>
                                        <option value="Asia/Bangkok" <?php if($locale->TIMEZONE=='Asia/Bangkok') echo "selected"; ?>>(GMT+07:00) Bangkok, Hanoi, Jakarta</option>
                                        <option value="Asia/Krasnoyarsk" <?php if($locale->TIMEZONE=='Asia/Krasnoyarsk') echo "selected"; ?>>(GMT+07:00) Krasnoyarsk</option>
                                        <option value="Asia/Hong_Kong" <?php if($locale->TIMEZONE=='Asia/Hong_Kong') echo "selected"; ?>>(GMT+08:00) Beijing, Chongqing, Hong Kong, Urumqi</option>
                                        <option value="Asia/Irkutsk" <?php if($locale->TIMEZONE=='Asia/Irkutsk') echo "selected"; ?>>(GMT+08:00) Irkutsk, Ulaan Bataar</option>
                                        <option value="Australia/Perth" <?php if($locale->TIMEZONE=='Australia/Perth') echo "selected"; ?>>(GMT+08:00) Perth</option>
                                        <option value="Australia/Eucla" <?php if($locale->TIMEZONE=='Australia/Eucla') echo "selected"; ?>>(GMT+08:45) Eucla</option>
                                        <option value="Asia/Tokyo" <?php if($locale->TIMEZONE=='Asia/Tokyo') echo "selected"; ?>>(GMT+09:00) Osaka, Sapporo, Tokyo</option>
                                        <option value="Asia/Seoul" <?php if($locale->TIMEZONE=='Asia/Seoul') echo "selected"; ?>>(GMT+09:00) Seoul</option>
                                        <option value="Asia/Yakutsk" <?php if($locale->TIMEZONE=='Asia/Yakutsk') echo "selected"; ?>>(GMT+09:00) Yakutsk</option>
                                        <option value="Australia/Adelaide" <?php if($locale->TIMEZONE=='Australia/Adelaide') echo "selected"; ?>>(GMT+09:30) Adelaide</option>
                                        <option value="Australia/Darwin" <?php if($locale->TIMEZONE=='Australia/Darwin') echo "selected"; ?>>(GMT+09:30) Darwin</option>
                                        <option value="Australia/Brisbane" <?php if($locale->TIMEZONE=='Australia/Brisbane') echo "selected"; ?>>(GMT+10:00) Brisbane</option>
                                        <option value="Australia/Hobart" <?php if($locale->TIMEZONE=='Australia/Hobart') echo "selected"; ?>>(GMT+10:00) Hobart</option>
                                        <option value="Asia/Vladivostok" <?php if($locale->TIMEZONE=='Asia/Vladivostok') echo "selected"; ?>>(GMT+10:00) Vladivostok</option>
                                        <option value="Australia/Lord_Howe" <?php if($locale->TIMEZONE=='Australia/Lord_Howe') echo "selected"; ?>>(GMT+10:30) Lord Howe Island</option>
                                        <option value="Etc/GMT-11" <?php if($locale->TIMEZONE=='Etc/GMT-11') echo "selected"; ?>>(GMT+11:00) Solomon Is., New Caledonia</option>
                                        <option value="Asia/Magadan" <?php if($locale->TIMEZONE=='Asia/Magadan') echo "selected"; ?>>(GMT+11:00) Magadan</option>
                                        <option value="Pacific/Norfolk" <?php if($locale->TIMEZONE=='Pacific/Norfolk') echo "selected"; ?>>(GMT+11:30) Norfolk Island</option>
                                        <option value="Asia/Anadyr" <?php if($locale->TIMEZONE=='Asia/Anadyr') echo "selected"; ?>>(GMT+12:00) Anadyr, Kamchatka</option>
                                        <option value="Pacific/Auckland" <?php if($locale->TIMEZONE=='Pacific/Auckland') echo "selected"; ?>>(GMT+12:00) Auckland, Wellington</option>
                                        <option value="Etc/GMT-12" <?php if($locale->TIMEZONE=='Etc/GMT-12') echo "selected"; ?>>(GMT+12:00) Fiji, Kamchatka, Marshall Is.</option>
                                        <option value="Pacific/Chatham" <?php if($locale->TIMEZONE=='Pacific/Chatham') echo "selected"; ?>>(GMT+12:45) Chatham Islands</option>
                                        <option value="Pacific/Tongatapu" <?php if($locale->TIMEZONE=='Pacific/Tongatapu') echo "selected"; ?>>(GMT+13:00) Nuku'alofa</option>
                                        <option value="Pacific/Kiritimati" <?php if($locale->TIMEZONE=='Pacific/Kiritimati') echo "selected"; ?>>(GMT+14:00) Kiritimati</option>
                                    </select>
                                </div>
                            </div>
                            
                            <div class="row">
                                <label class="control-label col-xs-12 col-sm-4 col-md-2 form-group"></label>
                                <div class="col-xs-12 col-sm-8 col-md-10 form-group">
                                    <input type="hidden" name="update" value="update" />
                                    <input type="submit"  align="center" value="<?php echo $this->lang->line("SAVE"); ?>" class="btn btn-success">

                                </div>
                            </div>

                        </div>
                    </form>
                </div>
            </div>
            
            <div id="agreementcnt" class="tab-pane">
                <div class="myform">
                    <form action="<?php echo base_url(); ?>settings/companyinfo/updatetermsandconditions" method="post" id="companyinfo">
                        <div class="myform-controls">
                            <div class="row">
                                <label class="control-label col-xs-12 col-sm-4 col-md-2 form-group"><?php echo $this->lang->line("NEXTBARCODE"); ?> </label>
                                <div class="col-xs-12 col-sm-8 col-md-10 form-group">
                                    <input type="text" class="inp-form form-control" name="NEXTBARCODE" id="NEXTBARCODE" value="<?php echo $locale->NEXTBARCODE; ?>" />
                                </div>
                            </div>
                            
                            <div class="row">
                                <label class="control-label col-xs-12 col-sm-4 col-md-2 form-group"> <?php echo $this->lang->line("WAREHOUSE"); ?> </label>
                                <div class="col-xs-12 col-sm-8 col-md-10 form-group">
                                    <select class="inp-form form-control" name="LOCATION" id="LOCATION">
                                        <?php
                                        if($warehouselist){
                                            foreach($warehouselist as $warehouserec){
                                        ?>
                                            <option value="<?php echo $warehouserec->ID; ?>" <?php if($warehouserec->ID==$locale->LOCATION) echo "selected"; ?>><?php echo $warehouserec->NAME; ?></option>
                                        <?php
                                            }
                                        }
                                        ?>
                                    </select>
                                </div>
                            </div>
                            
                            <div class="row">
                                <label class="control-label col-xs-12 col-sm-4 col-md-2 form-group"><?php echo $this->lang->line("TERMSANDCONDITIONS"); ?></label>
                                <div class="col-xs-12 col-sm-8 col-md-10 form-group">
                                    <textarea class="form-control" rows="14" name="POTERMS" id="POTERMS"><?php echo $locale->POTERMS; ?></textarea>
                                </div>
                            </div>
                            
                            <div class="row">
                                <label class="control-label col-xs-12 col-sm-4 col-md-2 form-group"></label>
                                <div class="col-xs-12 col-sm-8 col-md-10 form-group">
                                    <input type="hidden" name="update" value="update" />
                                    <input type="submit" align="center" value="<?php echo $this->lang->line("SAVE"); ?>" class="btn btn-success">
                                </div>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
            
            
            
        </div>
    </div>
                </div>
            </div>
        </div>
    </div>
    <!-- /Page Body -->
</div>
<!-- /Page Content -->
<script type="text/javascript">
    function readURL(input,imgid) {
        if (input.files && input.files[0]) {
          var reader = new FileReader();
          reader.onload = function(e) {
            $('#'+imgid).attr('src', e.target.result);
            $("#displaylogohidden").val(e.target.result);
          }
          reader.readAsDataURL(input.files[0]);
        }
    }

//    $("#printlogo").change(function() {
//        readURL(this,'printlogoimg');
//    });
    
    $("#displaylogo").change(function() {
        readURL(this,'displaylogoimg');
    });
</script>