mirror of
https://github.com/Lost-MSth/Arcaea-server.git
synced 2026-02-07 16:27:26 +08:00
51
latest version/templates/web/allitem.html
Normal file
51
latest version/templates/web/allitem.html
Normal file
@@ -0,0 +1,51 @@
|
||||
{% extends 'base.html' %}
|
||||
{% block header %}
|
||||
<h1>{% block title %}All items{% endblock %}</h1>
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
{% if posts %}<br />
|
||||
{% for item in posts %}
|
||||
|
||||
<div class="char-item">
|
||||
<span>Id: </span>
|
||||
<span class="name">{{item['item_id']}}</span>
|
||||
<br />
|
||||
|
||||
<span>Type: </span>
|
||||
<span class="char-num">{{item['type']}}</span>
|
||||
<br />
|
||||
|
||||
<span>Is available: </span>
|
||||
<span class="char-num">{{item['is_available']}}</span>
|
||||
<br />
|
||||
|
||||
<span>Price: </span>
|
||||
<span class="char-num">{{item['price']}}</span>
|
||||
<br />
|
||||
|
||||
<span>Original price: </span>
|
||||
<span class="char-num">{{item['orig_price']}}</span>
|
||||
<br />
|
||||
|
||||
<span>Discount from: </span>
|
||||
<span class="char-num">{{item['discount_from']}}</span>
|
||||
<br />
|
||||
|
||||
<span>Discount to: </span>
|
||||
<span class="char-num">{{item['discount_to']}}</span>
|
||||
<br />
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
{% if not loop.last %}
|
||||
<br />
|
||||
<hr />
|
||||
<br />
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
@@ -13,7 +13,7 @@
|
||||
<span class="rank">User code: {{user['user_code']}}</span>
|
||||
</div>
|
||||
<div class="join-date">注册于 Registered in: {{user['join_date']}}</div>
|
||||
<div class="ptt">PTT: {{user['rating_ptt']//100 ~ '.' ~ user['rating_ptt']%100}}</div>
|
||||
<div class="ptt">PTT: {{'%0.2f'|format(user['rating_ptt']/100|float)}}</div>
|
||||
<div class="ptt">Memories: {{user['ticket']}}</div>
|
||||
<div>
|
||||
<div>Recent plays: </div>
|
||||
|
||||
41
latest version/templates/web/changeitem.html
Normal file
41
latest version/templates/web/changeitem.html
Normal file
@@ -0,0 +1,41 @@
|
||||
{% extends 'base.html' %}
|
||||
{% block header %}
|
||||
<h1>{% block title %}Change the items{% endblock %}</h1>
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<form action="/web/changeitem" method="post">
|
||||
<div class="title">Change the item</div>
|
||||
<label for="item_id">ID of the item</label>
|
||||
<input name="item_id" id="item_id" required>
|
||||
<label for="type">Type</label>
|
||||
<div>
|
||||
<select name="type">
|
||||
<option value='single'>Single</option>
|
||||
<option value='pack'>Pack</option>
|
||||
</select>
|
||||
</div>
|
||||
<br />
|
||||
<div class="content">可修改项 Modifiable items:</div>
|
||||
<div><label for="is_available">是否可用 Is available:</label>
|
||||
<br />
|
||||
<br />
|
||||
<label><input type="radio" name="is_available" value=1>True</label>
|
||||
<br />
|
||||
<label><input type="radio" name="is_available" value=0>False</label>
|
||||
</div>
|
||||
<label for="price">Price</label>
|
||||
<input name="price" id="price">
|
||||
<label for="orig_price">Original price</label>
|
||||
<input name="orig_price" id="orig_price">
|
||||
<label for="discount_from">Discount from</label>
|
||||
<input type="datetime-local" name="discount_from" id="discount_from">
|
||||
<label for="discount_to">Discount to</label>
|
||||
<input type="datetime-local" name="discount_to" id="discount_to">
|
||||
<div class="content">如果某些不需要修改,留空即可</div>
|
||||
<div class="content">If some things do not need to be modified, leave it blank.</div>
|
||||
<div class="content">时间填写是一个HTML5控件</div>
|
||||
<div class="content">Time filling is an HTML5 control.</div>
|
||||
<input type="submit" value="Edit">
|
||||
</form>
|
||||
{% endblock %}
|
||||
@@ -25,4 +25,13 @@
|
||||
<div class="content">At present, only memories can be modified.</div>
|
||||
<input type="submit" value="Edit">
|
||||
</form>
|
||||
<br />
|
||||
<hr />
|
||||
<form action="/web/changeuser/edituser" method="post">
|
||||
<div class="title">Edit all the users</div>
|
||||
<label for="ticket">Memories</label>
|
||||
<input name="ticket" id="ticket">
|
||||
|
||||
<input type="submit" value="Edit all">
|
||||
</form>
|
||||
{% endblock %}
|
||||
44
latest version/templates/web/changeuserpurchase.html
Normal file
44
latest version/templates/web/changeuserpurchase.html
Normal file
@@ -0,0 +1,44 @@
|
||||
{% extends 'base.html' %}
|
||||
{% block header %}
|
||||
<h1>{% block title %}Change user purchase information{% endblock %}</h1>
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<form action="/web/changeuserpurchase/edituser" method="post">
|
||||
<div class="title">Edit the user</div>
|
||||
<label for="name">Arcaea Username</label>
|
||||
<input name="name" id="name">
|
||||
or<br />
|
||||
<label for="user_code">Arcaea User Code</label>
|
||||
<input name="user_code" id="user_code">
|
||||
<br />
|
||||
<br />
|
||||
|
||||
<div>对所有单曲和曲包的操作 Operation to all singles and packs:
|
||||
<br />
|
||||
<br />
|
||||
<label><input type="radio" name="method" value="0">解锁 Unlock</label>
|
||||
<br />
|
||||
<label><input type="radio" name="method" value="1">封绝 Lock</label>
|
||||
</div>
|
||||
|
||||
|
||||
<br />
|
||||
<input type="submit" value="Execute">
|
||||
</form>
|
||||
<br />
|
||||
<hr />
|
||||
<form action="/web/changeuserpurchase/" method="post">
|
||||
<div class="title">Edit all the users</div>
|
||||
<br />
|
||||
<div>对所有单曲和曲包的操作 Operation to all singles and packs:
|
||||
<br />
|
||||
<br />
|
||||
<label><input type="radio" name="method" value="0">解锁 Unlock</label>
|
||||
<br />
|
||||
<label><input type="radio" name="method" value="1">封绝 Lock</label>
|
||||
</div>
|
||||
<br />
|
||||
<input type="submit" value="Execute">
|
||||
</form>
|
||||
{% endblock %}
|
||||
@@ -15,13 +15,16 @@
|
||||
<a href="{{ url_for('index.all_player') }}">所有玩家信息查询 All players</a></br></br>
|
||||
<a href="{{ url_for('index.all_song') }}">铺面信息查询 All songs</a></br></br>
|
||||
<a href="{{ url_for('index.all_character') }}">角色信息查询 All characters</a></br></br>
|
||||
<a href="{{ url_for('index.all_item') }}">购买信息查询 All items</a></br></br>
|
||||
<a href="{{ url_for('index.single_chart_top') }}">单个铺面排行榜查询 Single song chart tops</a>
|
||||
<hr>
|
||||
<h1>系统方面 System</h1>
|
||||
<a href="{{ url_for('index.update_database') }}">数据库更新 Update databases</a></br></br>
|
||||
<a href="{{ url_for('index.change_song') }}">歌曲修改 Change the songs</a></br></br>
|
||||
<a href="{{ url_for('index.change_character') }}">角色修改 Change the characters</a></br></br>
|
||||
<a href="{{ url_for('index.change_user') }}">用户信息修改 Change user information</a>
|
||||
<a href="{{ url_for('index.change_item') }}">购买信息修改 Change the items</a></br></br>
|
||||
<a href="{{ url_for('index.change_user') }}">用户信息修改 Change user information</a></br></br>
|
||||
<a href="{{ url_for('index.change_user_purchase') }}">用户购买信息修改 Change user purchase information</a>
|
||||
|
||||
|
||||
{% endblock %}
|
||||
@@ -25,7 +25,7 @@
|
||||
</div>
|
||||
<div class="join-date">注册于 Registered in: {{user['join_date']}}</div>
|
||||
<div class="ptt">Memories: {{user['ticket']}}</div>
|
||||
<div class="ptt">PTT: {{user['rating_ptt']//100 ~ '.' ~ user['rating_ptt']%100}}</div>
|
||||
<div class="ptt">PTT: {{'%0.2f'|format(user['rating_ptt']/100|float)}}</div>
|
||||
<div class="ptt">Best 30 PTT: {{bestptt}}</div>
|
||||
<div class="ptt">Recent 10 PTT: {{recentptt}}</div>
|
||||
<div>
|
||||
|
||||
Reference in New Issue
Block a user