[UPDATE] userinfo styled

This commit is contained in:
iAmShorty 2014-02-28 11:54:51 +01:00
parent 5bc1ad761d
commit 7ebb6bf30d
2 changed files with 130 additions and 111 deletions

View File

@ -1,4 +1,4 @@
<form action="{$smarty.server.SCRIPT_NAME}" method="post"> <form action="{$smarty.server.SCRIPT_NAME}" method="post" role="form">
<input type="hidden" name="page" value="{$smarty.request.page|escape|escape}"> <input type="hidden" name="page" value="{$smarty.request.page|escape|escape}">
<input type="hidden" name="action" value="{$smarty.request.action|escape|escape}"> <input type="hidden" name="action" value="{$smarty.request.action|escape|escape}">
<div class="row"> <div class="row">

239
public/templates/bootstrap/admin/user/default.tpl Executable file → Normal file
View File

@ -22,126 +22,145 @@
} }
</script> </script>
<article class="module width_full"> <div class="row">
<header><h3>User Search</h3></header> <div class="col-lg-12">
<div class="module_content"> <div class="panel panel-info">
<form action="{$smarty.server.SCRIPT_NAME}"> <div class="panel-heading">
<input type="hidden" name="page" value="{$smarty.request.page|escape}" /> User Search
<input type="hidden" name="action" value="{$smarty.request.action|escape}" /> </div>
<input type="hidden" name="do" value="query" /> <form action="{$smarty.server.SCRIPT_NAME}" role="form">
<table cellspacing="0" class="tablesorter"> <input type="hidden" name="page" value="{$smarty.request.page|escape}" />
<tbody> <input type="hidden" name="action" value="{$smarty.request.action|escape}" />
<tr> <input type="hidden" name="do" value="query" />
<td> <div class="panel-body">
{if $smarty.request.start|default:"0" > 0} <div class="table-responsive">
<a href="{$smarty.server.SCRIPT_NAME}?page={$smarty.request.page|escape}&action={$smarty.request.action|escape}&start={$smarty.request.start|escape|default:"0" - $LIMIT}{if $FILTERS|default:""}{$FILTERS}{/if}"><i class="icon-left-open"></i> Previous 30</a> <table class="table table-striped table-bordered table-hover">
{else} <thead>
<i class="icon-left-open"></i> <tr>
{/if} <td>
</td> {if $smarty.request.start|default:"0" > 0}
<td> <a href="{$smarty.server.SCRIPT_NAME}?page={$smarty.request.page|escape}&action={$smarty.request.action|escape}&start={$smarty.request.start|escape|default:"0" - $LIMIT}{if $FILTERS|default:""}{$FILTERS}{/if}"><i class="icon-left-open"></i> Previous 30</a>
<a href="{$smarty.server.SCRIPT_NAME}?page={$smarty.request.page|escape}&action={$smarty.request.action|escape}&start={$smarty.request.start|escape|default:"0" + $LIMIT}{if $FILTERS|default:""}{$FILTERS}{/if}">Next 30 <i class="icon-right-open"></i></a> {else}
</td> <i class="icon-left-open"></i>
</tbody> {/if}
</table> </td>
<fieldset> <td>
<label>Account</label> <a href="{$smarty.server.SCRIPT_NAME}?page={$smarty.request.page|escape}&action={$smarty.request.action|escape}&start={$smarty.request.start|escape|default:"0" + $LIMIT}{if $FILTERS|default:""}{$FILTERS}{/if}">Next 30 <i class="icon-right-open"></i></a>
<input size="20" type="text" name="filter[account]" value="{$smarty.request.filter.account|default:""}" /> </td>
</fieldset> </tr>
<fieldset> </thead>
<label>E-Mail</label> </table>
<input size="20" type="text" name="filter[email]" value="{$smarty.request.filter.email|default:""}" /> </div>
</fieldset> <div class="table-responsive">
<fieldset> <table class="table table-striped table-bordered table-hover">
<label>Is Admin</label> <tbody>
{html_options name="filter[is_admin]" options=$ADMIN selected=$smarty.request.filter.is_admin|default:""} <div class="form-group">
</fieldset> <label>Account</label>
<fieldset> <input size="20" class="form-control" type="text" name="filter[account]" value="{$smarty.request.filter.account|default:""}" />
<label>Is Locked</label> </div>
{html_options name="filter[is_locked]" options=$LOCKED selected=$smarty.request.filter.is_locked|default:""} <div class="form-group">
</fieldset> <label>E-Mail</label>
<fieldset> <input size="20" class="form-control" type="text" name="filter[email]" value="{$smarty.request.filter.email|default:""}" />
<label>No Fees</label> </div>
{html_options name="filter[no_fees]" options=$NOFEE selected=$smarty.request.filter.no_fees|default:""} <div class="form-group">
</fieldset> <label>Is Admin</label>
<ul> {html_options class="form-control" name="filter[is_admin]" options=$ADMIN selected=$smarty.request.filter.is_admin|default:""}
<li>Note: Text search fields support '%' as wildcard.</li> </div>
</ul> <div class="form-group">
</div> <label>Is Locked</label>
<footer> {html_options class="form-control" name="filter[is_locked]" options=$LOCKED selected=$smarty.request.filter.is_locked|default:""}
<div class="submit_link"> </div>
<input type="submit" value="Search" class="alt_btn"> <div class="form-group">
<label>No Fees</label>
{html_options class="form-control" name="filter[no_fees]" options=$NOFEE selected=$smarty.request.filter.no_fees|default:""}
</div>
<ul>
<li>Note: Text search fields support '%' as wildcard.</li>
</ul>
</tbody>
</table>
<input type="submit" value="Search" class="btn btn-outline btn-success btn-lg btn-block">
</div>
</form>
</div> </div>
</footer> </div>
</form> </div>
</article>
<article class="module width_full">
<header> <div class="row">
<h3>User Information</h3> <div class="col-lg-12">
</header> <div class="panel panel-info">
<table cellspacing="0" width="100%" class="tablesorter"> <div class="panel-heading">
<thead> User Information
<tr> </div>
<th>ID</th> <div class="panel-body">
<th>Username</th> <div class="table-responsive">
<th>E-Mail</th> <table class="table table-striped table-bordered table-hover">
<th style="padding-right:10px">Shares</th> <thead>
<th style="padding-right:10px">Hashrate</th> <tr>
<th>ID</th>
<th>Username</th>
<th>E-Mail</th>
<th style="padding-right:10px">Shares</th>
<th style="padding-right:10px">Hashrate</th>
{if $GLOBAL.config.payout_system != 'pps'} {if $GLOBAL.config.payout_system != 'pps'}
<th style="padding-right:10px">Est. Donation</th> <th style="padding-right:10px">Est. Donation</th>
<th style="padding-right:10px">Est. Payout</th> <th style="padding-right:10px">Est. Payout</th>
{else} {else}
<th colspan="2" style="padding-right:10px">Est. 24 Hours</th> <th colspan="2" style="padding-right:10px">Est. 24 Hours</th>
{/if} {/if}
<th style="padding-right:10px">Balance</th> <th style="padding-right:10px">Balance</th>
<th style="padding-right:10px">Reg. Date</th> <th style="padding-right:10px">Reg. Date</th>
<th style="padding-right:10px">Last Login</th> <th style="padding-right:10px">Last Login</th>
<th>Admin</th> <th>Admin</th>
<th>Locked</th> <th>Locked</th>
<th>No Fees</th> <th>No Fees</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
{nocache} {nocache}
{section name=user loop=$USERS|default} {section name=user loop=$USERS|default}
<tr> <tr>
<td>{$USERS[user].id}</td> <td>{$USERS[user].id}</td>
<td>{$USERS[user].username|escape}</td> <td>{$USERS[user].username|escape}</td>
<td>{$USERS[user].email|escape}</td> <td>{$USERS[user].email|escape}</td>
<td>{$USERS[user].shares.valid}</td> <td>{$USERS[user].shares.valid}</td>
<td>{$USERS[user].hashrate}</td> <td>{$USERS[user].hashrate}</td>
{if $GLOBAL.config.payout_system != 'pps'} {if $GLOBAL.config.payout_system != 'pps'}
<td>{$USERS[user].estimates.donation|number_format:"8"}</td> <td>{$USERS[user].estimates.donation|number_format:"8"}</td>
<td>{$USERS[user].estimates.payout|number_format:"8"}</td> <td>{$USERS[user].estimates.payout|number_format:"8"}</td>
{else} {else}
<td colspan="2">{$USERS[user].estimates.hours24|number_format:"8"}</td> <td colspan="2">{$USERS[user].estimates.hours24|number_format:"8"}</td>
{/if} {/if}
<td>{$USERS[user].balance|number_format:"8"}</td> <td>{$USERS[user].balance|number_format:"8"}</td>
<td>{$USERS[user].signup_timestamp|date_format:"%d/%m %H:%M:%S"}</td> <td>{$USERS[user].signup_timestamp|date_format:"%d/%m %H:%M:%S"}</td>
<td>{$USERS[user].last_login|date_format:"%d/%m %H:%M:%S"}</td> <td>{$USERS[user].last_login|date_format:"%d/%m %H:%M:%S"}</td>
<td> <td>
<input type="hidden" name="admin[{$USERS[user].id}]" value="0"/> <input type="hidden" name="admin[{$USERS[user].id}]" value="0"/>
<input type="checkbox" onclick="storeAdmin({$USERS[user].id})" name="admin[{$USERS[user].id}]" value="1" id="admin[{$USERS[user].id}]" {if $USERS[user].is_admin}checked{/if} /> <input type="checkbox" onclick="storeAdmin({$USERS[user].id})" name="admin[{$USERS[user].id}]" value="1" id="admin[{$USERS[user].id}]" {if $USERS[user].is_admin}checked{/if} />
<label for="admin[{$USERS[user].id}]"></label> <label for="admin[{$USERS[user].id}]"></label>
</td> </td>
<td> <td>
<input type="hidden" name="locked[{$USERS[user].id}]" value="0"/> <input type="hidden" name="locked[{$USERS[user].id}]" value="0"/>
<input type="checkbox" onclick="storeLock({$USERS[user].id})" name="locked[{$USERS[user].id}]" value="1" id="locked[{$USERS[user].id}]" {if $USERS[user].is_locked}checked{/if} /> <input type="checkbox" onclick="storeLock({$USERS[user].id})" name="locked[{$USERS[user].id}]" value="1" id="locked[{$USERS[user].id}]" {if $USERS[user].is_locked}checked{/if} />
<label for="locked[{$USERS[user].id}]"></label> <label for="locked[{$USERS[user].id}]"></label>
</td> </td>
<td> <td>
<input type="hidden" name="nofee[{$USERS[user].id}]" value="0"/> <input type="hidden" name="nofee[{$USERS[user].id}]" value="0"/>
<input type="checkbox" onclick="storeFee({$USERS[user].id})" name="nofee[{$USERS[user].id}]" value="1" id="nofee[{$USERS[user].id}]" {if $USERS[user].no_fees}checked{/if} /> <input type="checkbox" onclick="storeFee({$USERS[user].id})" name="nofee[{$USERS[user].id}]" value="1" id="nofee[{$USERS[user].id}]" {if $USERS[user].no_fees}checked{/if} />
<label for="nofee[{$USERS[user].id}]"></label> <label for="nofee[{$USERS[user].id}]"></label>
</td> </td>
</tr> </tr>
{sectionelse} {sectionelse}
<tr> <tr>
<td colspan="10"></td> <td colspan="13"></td>
</tr> </tr>
{/section} {/section}
{/nocache} {/nocache}
</tbody> </tbody>
</table> </table>
</article> </div>
</div>
</div>
</div>
</div>