<img src="/web/templates/Freyamu/images/raskid.png">

<script src="/web/templates/default/js/ajax.js"></script>
<div id="content">
    <div id="box1">
        </div>
        <div id="content_center">
            <div class="box-style1" style="margin-bottom:25px;">
                <div class="entry">
                    <div>
                        <form action="/user/addstats" method="post" name="stats_start">
                            <div align="center" class="user-content">
                                <table>

                                    <tr align="left">
                                        <td>{$Lang.AddStatsName}</td>
                                        <td ><b style="color:#FECF75;">
                                                <select name="selected_char" id="add_stats_selected_char">
                                                    {foreach $Chars as $char}
                                                        {if $char != ''}
                                                            {if $char == $Character.Name}
                                                                <option value="{$char}" selected>{$char}</option>
                                                            {else}
                                                                <option value="{$char}">{$char}</option>
                                                            {/if}
                                                        {/if}
                                                    {/foreach}
                                                </select>
                                        </td>
                                    </tr>
                                    </table>
                                <table id="add_stats_rows">
                                    <tr align="left">
                                        <td>{$Lang.AddStatsFreePoints}</td>
                                        <td id="freest"><b>{$Character.LevelUpPoint}</b></td>
                                    </tr>
                                    <tr align="left">
                                        <td>{$Lang.AddStatsMaxStats}</td>
                                        <td style="font-weight: bold" id="max-stats">{$AddStatsConfig.MaxStats}</td>
                                    </tr>
                                    <tr align="left">
                                        <td>{$Lang.AddStatsDistr}</td>
                                        <td id="distr"><b>0</b></td>
                                    </tr>
                                </table>
                                <p style="font-size: 14px;text-transform: uppercase;color: #FECF65;">{$Lang.AddStatsCalculator}</p>
                                <table class="cells">
                                    <input type="hidden" id="freest2" name="freest" value="{$Character.LevelUpPoint}">

                                   
                                    <tr align="left">
                                        <td id="standart_str"><b>{$Lang.AddStatsStrength}</b></td>
                                        <td class="add-stat"><span class="adding-stat adding-stat-str" style="color:yellow;">{$Character.Strength} </span> + </td>
                                        <td><input type="text" id="str" class="raspred-stats" name="str" size="8" maxlength="5" value="0" style="width:60%"/> = <span class="result-point" style="font-weight: bold;color:#9ADC00;">{$Character.Strength}</span></td>
                                    </tr>
                                    <tr align="left">
                                        <td id="standart_agi"><b>{$Lang.AddStatsAgility}</b></td>
                                        <td class="add-stat"><span class="adding-stat adding-stat-agi" style="color:yellow;">{$Character.Dexterity} </span> + </td>
                                        <td><input type="text" id="agi" class="raspred-stats" name="agi" size="8" maxlength="5" value="0" style="width:60%"/> = <span class="result-point" style="font-weight: bold;color:#9ADC00;">{$Character.Dexterity}</span></td>
                                    </tr>
                                    <tr align="left">
                                        <td id="standart_vit"><b>{$Lang.AddStatsVitality}</b></td>
                                        <td class="add-stat"><span class="adding-stat adding-stat-vit" style="color:yellow;">{$Character.Vitality} </span> + </td>
                                        <td><input type="text" id="vit" class="raspred-stats" name="vit" size="8" maxlength="5" value="0" style="width:60%"/> = <span class="result-point" style="font-weight: bold;color:#9ADC00;">{$Character.Vitality}</span></td>
                                    </tr>
                                    <tr align="left">
                                        <td id="standart_ene"><b>{$Lang.AddStatsEnergy}</b></td>
                                        <td class="add-stat"><span class="adding-stat adding-stat-ene" style="color:yellow;">{$Character.Energy} </span> + </td>
                                        <td><input type="text" id="ene" class="raspred-stats" name="ene" size="8" maxlength="5" value="0" style="width:60%"/> = <span class="result-point" style="font-weight: bold;color:#9ADC00;">{$Character.Energy}</span></td>
                                    </tr>
                                    {if isdl == 1}
                                        <tr align="left">
                                            <td id="standart_cmd"><b>{$Lang.AddStatsLeadership}</b></td>
                                            <td class="add-stat"><span class="adding-stat adding-stat-cmd" style="color:yellow;">{$Character.Leadership} </span> + </td>
                                            <td><input type="text" id="com" class="raspred-stats" name="com" size="8" maxlength="5" value="0" style="width:60%"/> = <span class="result-point" style="font-weight: bold;color:#9ADC00;">{$Character.Leadership}</span></td>
                                        </tr>
                                    {/if}

                                </table>
                                <p><input type="hidden" name="stats" value="1"><input type="submit" class="newButton" value="{$Lang.AddStatsButton}" name="btn_add_stats" style="width:25%"></p>
                            </div>
                        </form>
                        <script src="/web/templates/default/js/addstats.js"></script>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>




