Вход Регистрация
Файл: content/themes/admin/templates/index.tpl
Строк: 714
{include file='_head.tpl'} {include file='header.tpl'} <div
class="container" style="padding-top: 80px;">
<div class="row"> <div
class="span3"> <div class="well"
style="max-width: 340px; padding: 8px 0;">
<ul class="nav nav-list"> <li
class="nav-header">{$translate->__("System")}</li>
<li><a
href="{$SITE_URL}/admin/index.php?tab=dashboard">{$translate->__("Insights")}</a></li>
<li><a
href="{$SITE_URL}/admin/index.php?tab=settings">{$translate->__("Settings")}</a></li>
</ul> </div>
</div> <div class="span9">
<section> <ul
class="breadcrumb"> {if $view ==
"dashboard"} <li
class="active"><i class="icon-home"></i>
{$translate->__("Dashboard")}</li>
{elseif $view == "settings"}
<li><a
href="{$SITE_URL}/admin/index.php?tab=dashboard"><i
class="icon-home"></i>
{$translate->__("Dashboard")}</a> <span
class="divider">/</span></li>
<li
class="active">{$translate->__("Settings")}</li>
{/if} </ul>
{if $view == "dashboard"}
<div class="row-fluid">
<div class="span8">
<div class="portlet box blue">
<div class="portlet-title"
style=""> <div
class="caption"><i
class="icon-bar-chart"></i>{$translate->__("Stats")}</div>
</div>
<div class="portlet-body">
<div class="row-fluid">
<div class="span3">
<div class="easy-pie-chart">
<div class="chart"
data-percent="{$insights.activeUsersPercent}">{$insights.activeUsersPercent}%</div>
<a
class="title">{$translate->__("Active Users")}
<br /><span
class="badge">{$insights.activeUsers}</span></a>
</div>
</div>
<div class="margin-bottom-10 visible-phone"></div>
<div class="span3">
<div
class="easy-pie-chart">
<div class="chart"
data-percent="{$insights.notVerifiedUsersPercent}">{$insights.notVerifiedUsersPercent}%</div>
<a
class="title">{$translate->__("Not Verrified")}
<br /><span
class="badge">{$insights.notVerifiedUsers|number_format:0:".":","}</span></a>
</div>
</div>
<div class="margin-bottom-10 visible-phone"></div>
<div class="span3">
<div
class="easy-pie-chart">
<div class="chart"
data-percent="{$insights.malePercent}">{$insights.malePercent}%</div>
<a
class="title">{$translate->__("Males")} <br
/><span
class="badge">{$insights.maleUsers|number_format:0:".":","}</span></a>
</div>
</div>
<div class="margin-bottom-10 visible-phone"></div>
<div class="span3">
<div
class="easy-pie-chart">
<div class="chart"
data-percent="{$insights.femalePercent}">{$insights.femalePercent}%</div>
<a
class="title">{$translate->__("Females")} <br
/><span
class="badge">{$insights.femaleUsers|number_format:0:".":","}</span></a>
</div>
</div>
</div> </div>
</div> </div>
<div class="span4">
<div class="portlet
sale-summary"> <div
class="portlet-title">
<div
class="caption">{$translate->__("Insights")}</div>
</div>
<ul class="unstyled">
<li> <span
class="sale-info">{$translate->__("Users")}</span>
<span
class="sale-num">{$insights.totalUsers|number_format:0:".":","}</span>
</li>
<li> <span
class="sale-info">{$translate->__("Online
Now")}</span> <span
class="sale-num">{$insights.onlines|number_format:0:".":","}</span>
</li>
<li> <span
class="sale-info">{$translate->__("Blocked
Users")}</span>
<span
class="sale-num">{$insights.blockedUsers|number_format:0:".":","}</span>
</li>
<li> <span
class="sale-info">{$translate->__("Users
Connections")}</span>
<span
class="sale-num">{$insights.usersConnections|number_format:0:".":","}</span>
</li>
<li> <span
class="sale-info">{$translate->__("Messages")}</span>
<span
class="sale-num">{$insights.messages|number_format:0:".":","}</span>
</li>
<li> <span
class="sale-info">{$translate->__("Notifications")}</span>
<span
class="sale-num">{$insights.notifications|number_format:0:".":","}</span>
</li>
<li> <span
class="sale-info">{$translate->__("Posts")}</span>
<span
class="sale-num">{$insights.posts|number_format:0:".":","}</span>
</li>
<li> <span
class="sale-info">{$translate->__("Comments")}</span>
<span
class="sale-num">{$insights.comments|number_format:0:".":","}</span>
</li>
<li> <span
class="sale-info">{$translate->__("Posts
Favorites")}</span>
<span
class="sale-num">{$insights.favorites|number_format:0:".":","}</span>
</li>
<li> <span
class="sale-info">{$translate->__("Posts
Likes")}</span>
<span
class="sale-num">{$insights.postsLikes|number_format:0:".":","}</span>
</li>
<li> <span
class="sale-info">{$translate->__("Comments
Likes")}</span>
<span
class="sale-num">{$insights.commentsLikes|number_format:0:".":","}</span>
</li>
<li> <span
class="sale-info">{$translate->__("Total
Likes")}</span>
<span
class="sale-num">{$insights.totLikes|number_format:0:".":","}</span>
</li>
</ul> </div>
</div>
</div> {elseif $view ==
"settings"} {if
$highlight != ""}<div class="alert
alert-success">{$highlight}</div>{/if}
<form class="form-horizontal" method="post"
action="{$SITE_URL}/admin/index.php?tab=settings">
<fieldset>
<div id="legend" class="">
<legend
class="">{$translate->__("Edit
System")}</legend> </div>
<div
class="control-group">
<label
class="control-label">{$translate->__("System
Live")}</label> <div
class="controls">
<label class="radio inline">
<input type="radio" name="site_active" {if
$systemSetting.SystemLive == "Y"}checked="checked"{/if}
value="Y">{$translate->__("Yes")}
</label>
<label class="radio inline">
<input type="radio" name="site_active" {if
$systemSetting.SystemLive == "N"}checked="checked"{/if}
value="N">{$translate->__("No")}
</label>
<p class="muted">{$translate->__("Turn the entire
site On and Off")}</p>
</div> </div>
<div
class="control-group">
<label
class="control-label">{$translate->__("Shutdown
Message")}</label> <div
class="controls"> <div
class="textarea">
<textarea
name="shutdown_message">{$systemSetting.SystemMessage}</textarea>
<p
class="muted">{$translate->__("The text that is
presented when the site is closed")}</p>
</div> </div>
</div>
<div class="control-group">
<label
class="control-label">{$translate->__("Registration
Active")}</label> <div
class="controls">
<label class="radio inline">
<input type="radio"
name="registration_active" {if $systemSetting.RegistrationLive ==
"Y"}checked="checked"{/if}
value="Y">{$translate->__("Yes")}
</label>
<label class="radio inline">
<input type="radio"
name="registration_active" {if $systemSetting.RegistrationLive ==
"N"}checked="checked"{/if}
value="N">{$translate->__("No")}
</label>
<p class="muted">{$translate->__("Turn registration
On and Off")}</p>
</div> </div>
<div
class="control-group">
<label
class="control-label">{$translate->__("System
Title")}</label> <div
class="controls">
<input type="text" name="SystemTitle"
value="{$systemSetting.SystemTitle}" />
<p
class="muted">{$translate->__("Title of your
system")}</p> </div>
</div>
<div class="control-group">
<label
class="control-label">{$translate->__("System
Description")}</label> <div
class="controls">
<textarea
name="SystemDescription">{$systemSetting.SystemDescription}</textarea>
<p
class="muted">{$translate->__("Description of your
system")}</p> </div>
</div>
<div class="control-group">
<label
class="control-label">{$translate->__("System
Domain")}</label> <div
class="controls">
<input type="text" name="SystemDomain"
value="{$systemSetting.SystemDomain}" />
<p
class="muted">{$translate->__("Like: sngine.com
(without 'www')")}</p>
</div> </div>
<div
class="control-group">
<label
class="control-label">{$translate->__("System
URL")}</label> <div
class="controls">
<input type="text" name="SystemURL"
value="{$systemSetting.SystemURL}" />
<p class="muted">{$translate->__("The
path of your system")}</p>
</div> </div>
<div
class="control-group">
<label
class="control-label">{$translate->__("RECAPTCHA
PUBLICKEY")}</label> <div
class="controls">
<textarea
name="RECAPTCHA_PUBLICKEY">{$systemSetting.RECAPTCHA_PUBLICKEY}</textarea>
</div>
</div>
<div class="control-group">
<label
class="control-label">{$translate->__("RECAPTCHA
PRIVATEKEY")}</label> <div
class="controls">
<textarea
name="RECAPTCHA_PRIVATEKEY">{$systemSetting.RECAPTCHA_PRIVATEKEY}</textarea>
</div>
</div>
<div class="control-group">
<label
class="control-label">{$translate->__("Twitter
APPID")}</label> <div
class="controls">
<textarea
name="TW_APPID">{$systemSetting.TW_APPID}</textarea>
</div>
</div>
<div class="control-group">
<label
class="control-label">{$translate->__("Twitter
SECRET")}</label> <div
class="controls">
<textarea
name="TW_SECRET">{$systemSetting.TW_SECRET}</textarea>
</div>
</div>
<div class="control-group">
<label
class="control-label">{$translate->__("Facebook
APPID")}</label> <div
class="controls">
<textarea
name="FB_APPID">{$systemSetting.FB_APPID}</textarea>
</div>
</div>
<div class="control-group">
<label
class="control-label">{$translate->__("Facebook
SECRET")}</label> <div
class="controls">
<textarea
name="FB_SECRET">{$systemSetting.FB_SECRET}</textarea>
</div>
</div>
<div class="control-group">
<label
class="control-label">{$translate->__("Results/Request")}</label>
<div class="controls">
<select name="MaxResults">
<option {if
$systemSetting.MaxResults == 10}selected="selected"{/if}
value="10">10</option>
<option {if $systemSetting.MaxResults ==
15}selected="selected"{/if}
value="15">15</option>
<option {if $systemSetting.MaxResults ==
20}selected="selected"{/if}
value="20">20</option>
<option {if $systemSetting.MaxResults ==
25}selected="selected"{/if}
value="25">25</option>
<option {if $systemSetting.MaxResults ==
30}selected="selected"{/if}
value="30">30</option>
<option {if $systemSetting.MaxResults ==
35}selected="selected"{/if}
value="35">35</option>
<option {if $systemSetting.MaxResults ==
40}selected="selected"{/if}
value="40">40</option>
<option {if $systemSetting.MaxResults ==
45}selected="selected"{/if}
value="45">45</option>
<option {if $systemSetting.MaxResults ==
50}selected="selected"{/if}
value="50">50</option>
</select> <p
class="muted">{$translate->__("The max number of
search results per request")}</p>
</div> </div>
<div
class="control-group">
<label
class="control-label">{$translate->__("Posts/Request")}</label>
<div class="controls">
<select name="MaxFeeds">
<option {if $systemSetting.MaxFeeds
== 10}selected="selected"{/if}
value="10">10</option>
<option {if $systemSetting.MaxFeeds ==
15}selected="selected"{/if}
value="15">15</option>
<option {if $systemSetting.MaxFeeds ==
20}selected="selected"{/if}
value="20">20</option>
<option {if $systemSetting.MaxFeeds ==
25}selected="selected"{/if}
value="25">25</option>
<option {if $systemSetting.MaxFeeds ==
30}selected="selected"{/if}
value="30">30</option>
<option {if $systemSetting.MaxFeeds ==
35}selected="selected"{/if}
value="35">35</option>
<option {if $systemSetting.MaxFeeds ==
40}selected="selected"{/if}
value="40">40</option>
<option {if $systemSetting.MaxFeeds ==
45}selected="selected"{/if}
value="45">45</option>
<option {if $systemSetting.MaxFeeds ==
50}selected="selected"{/if}
value="50">50</option>
</select> <p
class="muted">{$translate->__("The max number of posts
per request")}</p>
</div> </div>
<div
class="control-group">
<label
class="control-label">{$translate->__("Media/Request")}</label>
<div class="controls">
<select
name="MaxMediaFeeds">
<option {if $systemSetting.MaxMediaFeeds ==
12}selected="selected"{/if}
value="12">12</option>
<option {if $systemSetting.MaxMediaFeeds ==
15}selected="selected"{/if}
value="15">15</option>
<option {if $systemSetting.MaxMediaFeeds ==
18}selected="selected"{/if}
value="18">18</option>
<option {if $systemSetting.MaxMediaFeeds ==
21}selected="selected"{/if}
value="21">21</option>
<option {if $systemSetting.MaxMediaFeeds ==
24}selected="selected"{/if}
value="24">24</option>
<option {if $systemSetting.MaxMediaFeeds ==
27}selected="selected"{/if}
value="27">27</option>
<option {if $systemSetting.MaxMediaFeeds ==
30}selected="selected"{/if}
value="30">30</option>
<option {if $systemSetting.MaxMediaFeeds ==
33}selected="selected"{/if}
value="33">33</option>
<option {if $systemSetting.MaxMediaFeeds ==
36}selected="selected"{/if}
value="36">36</option>
</select> <p
class="muted">{$translate->__("The max number of media
posts (photos &amp; videos) per request")}</p>
</div> </div>
<div
class="control-group">
<label class="control-label">{$translate->__("Quick
Comments")}</label> <div
class="controls">
<select name="MaxQComments">
<option {if $systemSetting.MaxQComments ==
10}selected="selected"{/if}
value="10">10</option>
<option {if $systemSetting.MaxQComments ==
15}selected="selected"{/if}
value="15">15</option>
<option {if $systemSetting.MaxQComments ==
20}selected="selected"{/if}
value="20">20</option>
</select> <p
class="muted">{$translate->__("The max number of quick
comments")}</p> </div>
</div>
<div class="control-group">
<label
class="control-label">{$translate->__("Featured
Comments")}</label> <div
class="controls">
<select name="MaxQCommentsViewed">
<option {if $systemSetting.MaxQCommentsViewed ==
3}selected="selected"{/if}
value="3">3</option>
</select> <p
class="muted">{$translate->__("The max number of
featured comments")}</p>
</div> </div>
<div
class="control-group">
<label
class="control-label">{$translate->__("Comments/Request")}</label>
<div class="controls">
<select
name="MaxComments">
<option {if $systemSetting.MaxComments ==
5}selected="selected"{/if}
value="5">5</option>
<option {if $systemSetting.MaxComments ==
10}selected="selected"{/if}
value="10">10</option>
<option {if $systemSetting.MaxComments ==
15}selected="selected"{/if}
value="15">15</option>
<option {if $systemSetting.MaxComments ==
20}selected="selected"{/if}
value="20">20</option>
<option {if $systemSetting.MaxComments ==
25}selected="selected"{/if}
value="25">25</option>
<option {if $systemSetting.MaxComments ==
30}selected="selected"{/if}
value="30">30</option>
</select> <p
class="muted">{$translate->__("The max number of
comments per request")}</p>
</div> </div>
<div
class="control-group">
<label
class="control-label">{$translate->__("Replies/Request")}</label>
<div class="controls">
<select name="MaxReplies">
<option {if
$systemSetting.MaxReplies == 5}selected="selected"{/if}
value="5">5</option>
<option {if $systemSetting.MaxReplies ==
10}selected="selected"{/if}
value="10">10</option>
<option {if $systemSetting.MaxReplies ==
15}selected="selected"{/if}
value="15">15</option>
<option {if $systemSetting.MaxReplies ==
20}selected="selected"{/if}
value="20">20</option>
<option {if $systemSetting.MaxReplies ==
25}selected="selected"{/if}
value="25">25</option>
<option {if $systemSetting.MaxReplies ==
30}selected="selected"{/if}
value="30">30</option>
</select> <p
class="muted">{$translate->__("The max number of
replies per request")}</p>
</div> </div>
<div
class="control-group">
<label
class="control-label">{$translate->__("Answers/Request")}</label>
<div class="controls">
<select name="MaxAnswers">
<option {if
$systemSetting.MaxAnswers == 5}selected="selected"{/if}
value="5">5</option>
<option {if $systemSetting.MaxAnswers ==
10}selected="selected"{/if}
value="10">10</option>
<option {if $systemSetting.MaxAnswers ==
15}selected="selected"{/if}
value="15">15</option>
<option {if $systemSetting.MaxAnswers ==
20}selected="selected"{/if}
value="20">20</option>
<option {if $systemSetting.MaxAnswers ==
25}selected="selected"{/if}
value="25">25</option>
<option {if $systemSetting.MaxAnswers ==
30}selected="selected"{/if}
value="30">30</option>
</select> <p
class="muted">{$translate->__("The max number of
answers per request")}</p>
</div> </div>
<div
class="control-group">
<label
class="control-label">{$translate->__("Notes/Request")}</label>
<div class="controls">
<select name="MaxNotes">
<option {if $systemSetting.MaxNotes
== 5}selected="selected"{/if}
value="5">5</option>
<option {if $systemSetting.MaxNotes ==
10}selected="selected"{/if}
value="10">10</option>
<option {if $systemSetting.MaxNotes ==
15}selected="selected"{/if}
value="15">15</option>
<option {if $systemSetting.MaxNotes ==
20}selected="selected"{/if}
value="20">20</option>
<option {if $systemSetting.MaxNotes ==
25}selected="selected"{/if}
value="25">25</option>
<option {if $systemSetting.MaxNotes ==
30}selected="selected"{/if}
value="30">30</option>
</select> <p
class="muted">{$translate->__("The max number of notes
per request")}</p>
</div> </div>
<div
class="control-group">
<label
class="control-label">{$translate->__("Who/Request")}</label>
<div class="controls">
<select name="MaxWho">
<option {if $systemSetting.MaxWho ==
50}selected="selected"{/if}
value="50">50</option>
<option {if $systemSetting.MaxWho ==
100}selected="selected"{/if}
value="100">100</option>
<option {if $systemSetting.MaxWho ==
150}selected="selected"{/if}
value="150">150</option>
<option {if $systemSetting.MaxWho ==
200}selected="selected"{/if}
value="200">200</option>
</select> <p
class="muted">{$translate->__("The max number of who
results (like &amp; dislike &amp; favorite) per
request")}</p> </div>
</div>
<div class="control-group">
<label
class="control-label">{$translate->__("Users/Request")}</label>
<div class="controls">
<select name="MaxPeople">
<option {if
$systemSetting.MaxPeople == 10}selected="selected"{/if}
value="10">10</option>
<option {if $systemSetting.MaxPeople ==
15}selected="selected"{/if}
value="15">15</option>
<option {if $systemSetting.MaxPeople ==
20}selected="selected"{/if}
value="20">20</option>
<option {if $systemSetting.MaxPeople ==
25}selected="selected"{/if}
value="25">25</option>
<option {if $systemSetting.MaxPeople ==
30}selected="selected"{/if}
value="30">30</option>
<option {if $systemSetting.MaxPeople ==
35}selected="selected"{/if}
value="35">35</option>
<option {if $systemSetting.MaxPeople ==
40}selected="selected"{/if}
value="40">40</option>
<option {if $systemSetting.MaxPeople ==
45}selected="selected"{/if}
value="45">45</option>
<option {if $systemSetting.MaxPeople ==
50}selected="selected"{/if}
value="50">50</option>
</select> <p
class="muted">{$translate->__("The max number of users
per request")}</p>
</div> </div>
<div
class="control-group">
<label
class="control-label">{$translate->__("Messages/Request")}</label>
<div class="controls">
<select
name="MaxConversations">
<option {if $systemSetting.MaxConversations ==
10}selected="selected"{/if}
value="10">10</option>
<option {if $systemSetting.MaxConversations ==
15}selected="selected"{/if}
value="15">15</option>
<option {if $systemSetting.MaxConversations ==
20}selected="selected"{/if}
value="20">20</option>
</select> <p
class="muted">{$translate->__("The max number of
messages per request")}</p>
</div> </div>
<div
class="control-group">
<div class="form-actions">
<button type="submit" class="btn btn-primary"
name="submit">{$translate->__("Save
changes")}</button>
</div> </div>
</fieldset>
</form> {/if}
</section> </div>
</div> </div> {literal} <script
type="text/javascript"> $(function() {
//create instance $('.chart').easyPieChart({
animate: 2000 }); });
</script> {/literal} {include file='footer.tpl'}
Онлайн: 0
Реклама