<div id="content">
    <div class="row contentheader">
        <span class="left"><?php getLanguage(138)?></span>
        <span class="right">
            <a class="toptabs" href="account/points" ><?php getLanguage(838) ?></a>
            <a class="toptabs" href="account/design" ><?php getLanguage(33) ?></a>
            <a class="toptabs" href="account/settings" ><?php getLanguage(30) ?></a>
        </span>
    </div>
    <div id="centercontent">
        <div id="topcontainer">
        <?php
            switch(SESSION_MESSAGE)
            {
                case 1: echo('<p class="message"><i class="fa fa-check-circle-o"></i> <b>'.getLanguage(129, 1).'</b>'.getLanguage(139, 1).'</p>'); break;
                case 2: echo('<p class="error"><i class="fa fa-exclamation-circle"></i> <b>'.getLanguage(40, 1).'</b>'.getLanguage(140, 1).'</p>'); break;
                case 3: echo('<p class="error"><i class="fa fa-exclamation-circle"></i> <b>'.getLanguage(40, 1).'</b>'.getLanguage(41, 1).'</p>'); break;
            }
            unset($_SESSION['msg']);
        ?>

        <form method="post" action="account/profile" id="settingsForm">
        <input type="hidden" name="settingsForm" value="1">
            <div class="row">
                <div class="col-md-5 text-right">
                    <label for="username"><?php getLanguage(52)?></label>
                </div>
                <div class="col-md-7 text-left">
                    <input type="text" name="username" id="username" value="<?php echo SETTINGS_USERNAME; ?>" size="40" class="w40" disabled="true"><br>
                    <span class="supporting"><?php getLanguage(149)?></span>
                </div>
            </div>
            <br>
            <div class="row">
                <div class="col-md-5 text-right">
                    <label for="name"><?php getLanguage(150)?></label>
                </div>
                <div class="col-md-7 text-left">
                    <input type="text" name="name" id="name" value="<?php echo SETTINGS_REALNAME; ?>" size="40" class="w40" maxlength="60" placeholder="<?php getLanguage(150)?>"><br>
                    <span class="supporting"><?php getLanguage(150)?></span>
                </div>
            </div>
            <br>
            <div class="row">
                <div class="col-md-5 text-right">
                    <label for="surname"><?php getLanguage(151)?></label>
                </div>
                <div class="col-md-7 text-left">
                    <input type="text" name="surname" id="name" value="<?php echo SETTINGS_REALSURNAME; ?>" size="40" class="w40" maxlength="60" placeholder="<?php getLanguage(151)?>"><br>
                    <span class="supporting"><?php getLanguage(151)?></span>
                </div>
            </div>
            <br>
            <div class="row">
                <div class="col-md-5 text-right">
                    <label for="email"><?php getLanguage(155)?></label>
                </div>
                <div class="col-md-7 text-left">
                    <input type="text" name="email" id="email" value="<?php echo SETTINGS_EMAIL; ?>" size="40" class="w40" placeholder="<?php getLanguage(155)?>"><br>
                    <span class="supporting"><?php getLanguage(155)?></span><br><br>
                    <span id="emailStatus"></span>
                </div>
            </div>
            <br>
            <div class="row">
                <div class="col-md-5 text-right">
                </div>
                <div class="col-md-7 text-left">
                    <a href="#" onclick="changePassword(); return false;"><?php getLanguage(152)?></a>
                </div>
            </div>
            <br>
            <div id="changePassword" class="row" style="display:none">
                <div class="col-md-5 text-right">
                    <?php if(SETTINGS_PASS==0) { ?>
                        <label for="password"><?php getLanguage(152)?></label>
                    <?php } else { ?>   
                        <label for="password"><?php getLanguage(362)?></label>
                    <?php } ?>
                </div>
                <div class="col-md-7 text-left">
                    <?php if(SETTINGS_PASS==0) { ?>
                        <input type="password" name="password" id="password" size="40" class="w40" autocomplete="off" style="display:none" placeholder="<?php getLanguage(152)?>"><br>
                        <span class="supporting"><?php getLanguage(152)?></span>
                    <?php } else { ?>   
                        <input type="password" name="password" id="password" size="40" class="w40" autocomplete="off" style="display:none" placeholder="<?php getLanguage(362)?>"><br>
                        <span class="supporting"><?php getLanguage(362)?></span>
                    <?php } ?>
                </div>
            </div>
            <br>
            <div id="changePassword2" class="row" style="display:none">
                <div class="col-md-5 text-right">
                    <label for="password2"><?php getLanguage(154)?></label>
                </div>
                <div class="col-md-7 text-left">
                    <input type="password" name="password2" id="password2" size="40" class="w40" autocomplete="off" style="display:none" placeholder="<?php getLanguage(154)?>"><br>
                    <span class="supporting"><?php getLanguage(154)?></span><br>
                    <span id="password2Status"></span>
                </div>
            </div>
            <br>
            <div class="row">
                <div class="col-md-5 text-right">
                    <label for="a_view"><?php getLanguage(156)?></label>
                </div>
                <div class="col-md-7 text-left">
                    <select name="anonymous_view">  
                        <option value="0" <?php if(SETTINGS_AVIEW == false){ echo('selected="selected"'); }?>><?php getLanguage(157)?></option>
                        <option value="1" <?php if(SETTINGS_AVIEW == true) { echo('selected="selected"'); }?>><?php getLanguage(158)?></option>
                    </select><br>
                    <span class="supporting"><?php getLanguage(156)?></span>
                </div>
            </div>
            <br>
            <div class="row">
                <div class="col-md-2 text-left"></div>
                <div class="col-md-6 text-left">
                    <a class="btn btn-primary" href="account/disable" style="color:#fff"><?php getLanguage(100)?></a>
                </div>
                <div class="col-md-2 text-right">
                    <img id="saveSettingsIndicator" src="media/images/indicator.gif" alt="." class="indicator" style="display:none" />
                </div>
                <div class="col-md-2">
                    <input id="saveSettingsButton" type="button" value="<?php getLanguage(137)?>" onclick="saveSettings()" class="btn btn-primary" />
                </div>
            </div>
        </div>
    </form>

        </div>
    </div>
    <div style="padding-bottom:15px"></div>
  </div>
  <div id="footerspace"></div>
</div>