khanat-opennel-code/code/web/private_php/ams/plugins/Achievements/templates/index.tpl

54 lines
1.9 KiB
Smarty
Raw Normal View History

{block name=content}
{if isset($smarty.get.plugin_action) and $smarty.get.plugin_action eq 'get_achievements'}
<div class="row-fluid">
2014-09-03 10:22:14 +00:00
<div class="box col-md-12">
<div class="box-inner">
<div class="box-header well" data-original-title>
<h2><i class="icon-user"></i> Achievements</h2>
</div>
<div class="box-content">
{if isset($hook_info.Achievements.no_char)}<div class="alert alert-error"><p>{$hook_info.Achievements.no_char}</p></div>{/if}
<div class="row-fluid">
{$hook_info.Achievements.char_achievements}
2014-09-03 10:22:14 +00:00
</div>
</div><!--/span-->
</div><!--/span-->
2014-09-03 10:22:14 +00:00
</div><!--/row-->
</div><!--/row-->
{else}
2014-09-03 10:22:14 +00:00
<div class="row-fluid">
<div class="box col-md-4">
<div class="box-inner">
<div class="box-header well" data-original-title="">
<h2><i class="icon-th"></i> Select your Character</h2>
</div>
2014-09-03 10:22:14 +00:00
<div class="box-content">
<div class="row-fluid">
<form id="generateKey" class="form-vertical" method="post" action="index.php?page=layout_plugin&&name={$arrkey}&&plugin_action=get_achievements">
<div class="control-group">
<div class="control-group">
<label class="control-label">Character:</label>
<div class="controls">
<select name="Character">
{foreach from=$hook_info.Achievements.Character item=element}
<option value="{$element}">{$element}</option>
{/foreach}
2014-09-03 10:22:14 +00:00
</select>
</div>
</div>
<div class="control-group">
<label class="control-label"></label>
<div class="controls">
<button type="submit" name="get_data" value="true" class="btn btn-primary" style="margin-left:5px; margin-top:10px;">Get Achievements</button>
</div>
</div>
</form>
</div>
</div>
2014-09-03 10:22:14 +00:00
</div><!--/span-->
</div><!--/span-->
2014-09-03 10:22:14 +00:00
</div><!--/span-->
</div><!--/row-->
{/if}
{/block}