This commit is contained in:
Bob 2020-09-26 12:07:48 +08:00
parent f20318af67
commit 3820e367a9
10 changed files with 919 additions and 982 deletions

View File

@ -6,562 +6,371 @@
<!-- OTHER SCRIPTS INCLUDED ON THIS PAGE - END -->
{% endblock %}
{% block content %}
<body class=" "><!-- START TOPBAR -->
<!-- START TOPBAR -->
<!-- END TOPBAR -->
<!-- START CONTAINER -->
<div class="page-container row-fluid">
<!-- SIDEBAR - START -->
<div class="page-sidebar ">
<!-- SIDEBAR - START -->
<div class="page-sidebar ">
<!-- MAIN MENU - START -->
{% include 'dashboard/base/left.html' %}
<!-- MAIN MENU - END -->
<!-- MAIN MENU - START -->
{% include 'dashboard/base/left.html' %}
<!-- MAIN MENU - END -->
<div class="project-info">
<div class="project-info">
<div class="block1">
<div class="data">
<span class='title'>New&nbsp;Orders</span>
<span class='total'>2,345</span>
</div>
<div class="graph">
<span class="sidebar_orders">...</span>
</div>
<div class="block1">
<div class="data">
<span class='title'>New&nbsp;Orders</span>
<span class='total'>2,345</span>
</div>
<div class="block2">
<div class="data">
<span class='title'>Visitors</span>
<span class='total'>345</span>
</div>
<div class="graph">
<span class="sidebar_visitors">...</span>
</div>
<div class="graph">
<span class="sidebar_orders">...</span>
</div>
</div>
<div class="block2">
<div class="data">
<span class='title'>Visitors</span>
<span class='total'>345</span>
</div>
<div class="graph">
<span class="sidebar_visitors">...</span>
</div>
</div>
</div>
</div>
<!-- SIDEBAR - END -->
<!-- START CONTENT -->
<section id="main-content" class=" ">
{% if messages %}
<div class="alert alert-success alert-dismissible" role="alert">
<button type="button" class="close" data-dismiss="alert">
<span aria-hidden="true">&times;</span>
<span class="sr-only">Close</span>
</button>
{% for message in messages %}
{{ message }}.<br/>
{% endfor %}
</div>
{% endif %}
<div class='col-lg-12 col-md-12 col-sm-12 col-xs-12'>
<div class="page-title">
<div class="pull-left">
<h1 class="title">政务新媒体监测系统</h1></div>
</div>
<!-- SIDEBAR - END -->
<!-- START CONTENT -->
<section id="main-content" class=" ">
<section class="wrapper" style='margin-top:60px;display:inline-block;width:100%;padding:15px 0 0 15px;'>
{% if messages %}
<div class="alert alert-success alert-dismissible" role="alert">
<button type="button" class="close" data-dismiss="alert">
<span aria-hidden="true">&times;</span>
<span class="sr-only">Close</span>
</button>
{% for message in messages %}
{{ message }}.<br/>
{% endfor %}
</div>
{% endif %}
<div class='col-lg-12 col-md-12 col-sm-12 col-xs-12'>
<div class="page-title">
<div class="pull-left">
<h1 class="title">政务新媒体监测系统</h1></div>
</div>
<div class="clearfix"></div>
<div class="col-lg-12">
<section class="box nobox">
<div class="content-body">
<div class="row">
<div class="col-md-2 col-sm-6 col-xs-6">
<div class="r4_counter db_box">
{# <i class='pull-left fa fa-thumbs-up icon-md icon-rounded icon-primary'></i>#}
<img src="{% static 'dashboard/image/weixin.png' %}"
class='pull-left fa fa-thumbs-up '>
<div class="stats">
<h4><strong>{{ weixin_count }}</strong></h4>
<span>微信</span>
</div>
</div>
</div>
<div class="clearfix"></div>
<div class="col-md-2 col-sm-6 col-xs-6">
<div class="r4_counter db_box">
{# <i class='pull-left fa fa-shopping-cart icon-md icon-rounded icon-orange'></i>#}
<img src="{% static 'dashboard/image/weibo.png' %}"
class='pull-left fa fa-thumbs-up '>
<div class="stats">
<h4><strong>{{ weibo_count }}</strong></h4>
<span>微博</span>
</div>
</div>
</div>
<div class="col-md-2 col-sm-6 col-xs-6">
<div class="r4_counter db_box">
{# <i class='pull-left fa fa-dollar icon-md icon-rounded icon-purple'></i>#}
<img src="{% static 'dashboard/image/toutiao.png' %}"
class='pull-left fa fa-thumbs-up '>
<div class="stats">
<h4><strong>{{ toutiao_count }}</strong></h4>
<span>今日头条</span>
</div>
</div>
</div>
<div class="col-md-2 col-sm-6 col-xs-6">
<div class="r4_counter db_box">
{# <i class='pull-left fa fa-dollar icon-md icon-rounded icon-purple'></i>#}
<img src="{% static 'dashboard/image/douyin.jpg' %}"
class='pull-left fa fa-thumbs-up '>
<div class="stats">
<h4><strong>{{ douyin_count }}</strong></h4>
<span>抖音</span>
</div>
</div>
</div>
<div class="col-md-2 col-sm-6 col-xs-6">
<div class="r4_counter db_box">
{# <i class='pull-left fa fa-users icon-md icon-rounded icon-warning'></i>#}
<img src="{% static 'dashboard/image/qita.png' %}"
class='pull-left fa fa-thumbs-up '>
<div class="stats">
<h4><strong>{{ qita_count }}</strong></h4>
<span>其他新媒体</span>
</div>
</div>
</div>
<div class="col-md-2 col-sm-6 col-xs-6">
<div class="r4_counter db_box">
{# <i class='pull-left fa fa-users icon-md icon-rounded icon-warning'></i>#}
<img src="{% static 'dashboard/image/shuliang.jpg' %}"
class='pull-left fa fa-thumbs-up '>
<div class="stats">
<h4><strong>{{ organization_count }}</strong></h4>
<span>注册单位</span>
</div>
</div>
</div>
</div> <!-- End .row -->
<div class="col-lg-12">
<section class="box nobox">
<div class="content-body">
<div class="row">
<div class="col-md-3 col-sm-5 col-xs-12">
<div class="col-lg-12">
<section class="box nobox">
<div class="content-body">
<div class="row">
<div class="col-md-2 col-sm-6 col-xs-6">
<div class="r4_counter db_box">
{# <i class='pull-left fa fa-thumbs-up icon-md icon-rounded icon-primary'></i>#}
<img src="{% static 'dashboard/image/weixin.png' %}"
class='pull-left fa fa-thumbs-up '>
<div class="stats">
<h4><strong>{{ weixin_count }}</strong></h4>
<span>微信</span>
</div>
</div>
</div>
<div class="col-md-2 col-sm-6 col-xs-6">
<div class="r4_counter db_box">
{# <i class='pull-left fa fa-shopping-cart icon-md icon-rounded icon-orange'></i>#}
<img src="{% static 'dashboard/image/weibo.png' %}"
class='pull-left fa fa-thumbs-up '>
<div class="stats">
<h4><strong>{{ weibo_count }}</strong></h4>
<span>微博</span>
</div>
</div>
</div>
<div class="col-md-2 col-sm-6 col-xs-6">
<div class="r4_counter db_box">
{# <i class='pull-left fa fa-dollar icon-md icon-rounded icon-purple'></i>#}
<img src="{% static 'dashboard/image/toutiao.png' %}"
class='pull-left fa fa-thumbs-up '>
<div class="stats">
<h4><strong>{{ toutiao_count }}</strong></h4>
<span>今日头条</span>
</div>
</div>
</div>
<div class="col-md-2 col-sm-6 col-xs-6">
<div class="r4_counter db_box">
{# <i class='pull-left fa fa-dollar icon-md icon-rounded icon-purple'></i>#}
<img src="{% static 'dashboard/image/douyin.jpg' %}"
class='pull-left fa fa-thumbs-up '>
<div class="stats">
<h4><strong>{{ douyin_count }}</strong></h4>
<span>抖音</span>
</div>
</div>
</div>
<div class="col-md-2 col-sm-6 col-xs-6">
<div class="r4_counter db_box">
{# <i class='pull-left fa fa-users icon-md icon-rounded icon-warning'></i>#}
<img src="{% static 'dashboard/image/qita.png' %}"
class='pull-left fa fa-thumbs-up '>
<div class="stats">
<h4><strong>{{ qita_count }}</strong></h4>
<span>其他新媒体</span>
</div>
</div>
</div>
<div class="col-md-2 col-sm-6 col-xs-6">
<div class="r4_counter db_box">
{# <i class='pull-left fa fa-users icon-md icon-rounded icon-warning'></i>#}
<img src="{% static 'dashboard/image/shuliang.jpg' %}"
class='pull-left fa fa-thumbs-up '>
<div class="stats">
<h4><strong>{{ organization_count }}</strong></h4>
<span>注册单位</span>
</div>
</div>
</div>
</div> <!-- End .row -->
<div class="row">
<div class="col-md-6 col-sm-7 col-xs-12">
<div class="r1_graph1 db_box">
<span class='bold'>98.95%</span>
<span class='pull-right'><small>SERVER UP</small></span>
<div class="clearfix"></div>
<span id="date-count" style="width: 150%;height: 60px;">Loading...</span>
</div>
<div class="r1_graph2 db_box">
<span class='bold'>2332</span>
<span class='pull-right'><small>USERS ONLINE</small></span>
<div class="clearfix"></div>
<span class="db_linesparkline">Loading...</span>
</div>
<div class="r1_graph3 db_box">
<span class='bold'>342/0</span>
<span class='pull-right'><small>ORDERS / SALES</small></span>
<div class="clearfix"></div>
<span class="db_compositebar">Loading...</span>
</div>
<div class="r1_graph1 db_box">
<span class='bold'>98.95%</span>
<span class='pull-right'><small>SERVER UP</small></span>
<div class="clearfix"></div>
<span class="db_dynamicbar">Loading...</span>
</div>
<div class="col-md-6 col-sm-7 col-xs-12">
<div class="r1_maingraph db_box">
<div class="r1_graph2 db_box">
<span class='bold'>2332</span>
<span class='pull-right'><small>USERS ONLINE</small></span>
<div class="clearfix"></div>
<span class="db_linesparkline">Loading...</span>
</div>
<div class="r1_graph3 db_box">
<span class='bold'>342/123</span>
<span class='pull-right'><small>ORDERS / SALES</small></span>
<div class="clearfix"></div>
<span class="db_compositebar">Loading...</span>
</div>
</div>
<div class="col-md-6 col-sm-7 col-xs-12">
<div class="r1_maingraph db_box">
<span class='pull-left'>
<i class='icon-purple fa fa-square icon-xs'></i>&nbsp;<small>PAGE VIEWS</small>&nbsp; &nbsp;<i
class='fa fa-square icon-xs icon-primary'></i>&nbsp;<small>UNIQUE VISITORS</small>
</span>
<span class='pull-right switch'>
<span class='pull-right switch'>
<i class='icon-default fa fa-line-chart icon-xs'></i>&nbsp; &nbsp;<i
class='icon-secondary fa fa-bar-chart icon-xs'></i>&nbsp; &nbsp;<i
class='icon-secondary fa fa-area-chart icon-xs'></i>
class='icon-secondary fa fa-bar-chart icon-xs'></i>&nbsp; &nbsp;<i
class='icon-secondary fa fa-area-chart icon-xs'></i>
</span>
<div id="db_morris_line_graph" style="height:272px;width:95%;"></div>
<div id="db_morris_area_graph"
style="height:272px;width:90%;display:none;"></div>
<div id="db_morris_bar_graph"
style="height:272px;width:90%;display:none;"></div>
<div id="db_morris_line_graph"
style="height:272px;width:95%;"></div>
<div id="db_morris_area_graph"
style="height:272px;width:90%;display:none;"></div>
<div id="db_morris_bar_graph"
style="height:272px;width:90%;display:none;"></div>
</div>
</div>
<div class="col-md-3 col-sm-12 col-xs-12">
<div class="r1_graph4 db_box">
<span class=''>
<i class='icon-purple fa fa-square icon-xs icon-1'></i>&nbsp;<small>CPU USAGE</small>
</span>
<canvas width='180' height='90' id="gauge-meter"></canvas>
<h4 id='gauge-meter-text'></h4>
</div>
<div class="r1_graph5 db_box col-xs-6">
<span class=''><i
class='icon-purple fa fa-square icon-xs icon-1'></i>&nbsp;<small>LONDON</small>&nbsp; &nbsp;<i
class='fa fa-square icon-xs icon-2'></i>&nbsp;<small>PARIS</small></span>
<div style="width:120px;height:120px;margin: 0 auto;">
<span class="db_easypiechart1 easypiechart"
data-percent="66"><span class="percent"
style='line-height:120px;'></span></span>
</div>
</div>
{# <div class="col-md-3 col-sm-12 col-xs-12">#}
{# <div class="r1_graph4 db_box">#}
{# <span class=''>#}
{# <i class='icon-purple fa fa-square icon-xs icon-1'></i>&nbsp;<small>CPU USAGE</small>#}
{# </span>#}
{# <canvas width='180' height='90' id="gauge-meter"></canvas>#}
{# <h4 id='gauge-meter-text'></h4>#}
{# </div>#}
{# <div class="r1_graph5 db_box col-xs-6">#}
{# <span class=''><i class='icon-purple fa fa-square icon-xs icon-1'></i>&nbsp;<small>LONDON</small>&nbsp; &nbsp;<i#}
{# class='fa fa-square icon-xs icon-2'></i>&nbsp;<small>PARIS</small></span>#}
{# <div style="width:120px;height:120px;margin: 0 auto;">#}
{# <span class="db_easypiechart1 easypiechart" data-percent="66"><span#}
{# class="percent" style='line-height:120px;'></span></span>#}
{# </div>#}
{# </div>#}
{##}
{# </div>#}
</div>
</div> <!-- End .row -->
</div> <!-- End .row -->
<div class="row">
<div class="col-md-12 col-sm-12 col-xs-12">
<div class="wid-vectormap">
<h4>Visitor's Statistics</h4>
<div class="row">
<div class="col-md-9 col-sm-9 col-xs-12">
<figure>
<div id="db-world-map-markers"
style="width: 100%; height: 300px"></div>
</figure>
<div class="row">
<div class="col-md-8 col-sm-12 col-xs-12">
<div class="wid-vectormap">
<h4>Visitor's Statistics</h4>
<div class="row">
<div class="col-md-9 col-sm-9 col-xs-12">
<figure>
<div id="db-world-map-markers"
style="width: 100%; height: 300px"></div>
</figure>
</div>
<div class="col-md-3 col-sm-3 col-xs-12 map_progress">
<h4>Unique Visitors</h4>
<span class='text-muted'><small>Last Week Rise by 62%</small></span>
<div class="progress">
<div class="progress-bar progress-bar-primary"
role="progressbar" aria-valuenow="62"
aria-valuemin="0" aria-valuemax="100"
style="width: 62%"></div>
</div>
<div class="col-md-3 col-sm-3 col-xs-12 map_progress">
<h4>Unique Visitors</h4>
<span class='text-muted'><small>Last Week Rise by 62%</small></span>
<div class="progress">
<div class="progress-bar progress-bar-primary" role="progressbar"
aria-valuenow="62" aria-valuemin="0" aria-valuemax="100"
style="width: 62%"></div>
</div>
<br>
<h4>Registrations</h4>
<span class='text-muted'><small>Up by 57% last 7 days</small></span>
<div class="progress">
<div class="progress-bar progress-bar-primary" role="progressbar"
aria-valuenow="57" aria-valuemin="0" aria-valuemax="100"
style="width: 57%"></div>
</div>
<br>
<h4>Direct Sales</h4>
<span class='text-muted'><small>Last Month Rise by 22%</small></span>
<div class="progress">
<div class="progress-bar progress-bar-primary" role="progressbar"
aria-valuenow="22" aria-valuemin="0" aria-valuemax="100"
style="width: 22%"></div>
</div>
<br>
<h4>Registrations</h4>
<span class='text-muted'><small>Up by 57% last 7 days</small></span>
<div class="progress">
<div class="progress-bar progress-bar-primary"
role="progressbar" aria-valuenow="57"
aria-valuemin="0" aria-valuemax="100"
style="width: 57%"></div>
</div>
<br>
<h4>Direct Sales</h4>
<span class='text-muted'><small>Last Month Rise by 22%</small></span>
<div class="progress">
<div class="progress-bar progress-bar-primary"
role="progressbar" aria-valuenow="22"
aria-valuemin="0" aria-valuemax="100"
style="width: 22%"></div>
</div>
</div>
</div>
</div>
</div>
{# <div class="col-md-4 col-sm-12 col-xs-12">#}
{# <div class="r2_graph1 db_box">#}
{##}
{##}
{# <form id="rickshaw_side_panel">#}
{# <section>#}
{# <div id="legend"></div>#}
{# </section>#}
{# <section>#}
{# <div id="renderer_form" class="toggler">#}
{# <select name="renderer">#}
{# <option value="area" selected>Area</option>#}
{# <option value="bar">Bar</option>#}
{# <option value="line">Line</option>#}
{# <option value="scatterplot">Scatter</option>#}
{# </select>#}
{# </div>#}
{# </section>#}
{# <section>#}
{# <div id="offset_form">#}
{# <label for="stack">#}
{# <input type="radio" name="offset" id="stack" value="zero"#}
{# checked>#}
{# <span>stack</span>#}
{# </label>#}
{# <label for="stream">#}
{# <input type="radio" name="offset" id="stream" value="wiggle">#}
{# <span>stream</span>#}
{# </label>#}
{# <label for="pct">#}
{# <input type="radio" name="offset" id="pct" value="expand">#}
{# <span>pct</span>#}
{# </label>#}
{# <label for="value">#}
{# <input type="radio" name="offset" id="value" value="value">#}
{# <span>value</span>#}
{# </label>#}
{# </div>#}
{# <div id="interpolation_form">#}
{# <label for="cardinal">#}
{# <input type="radio" name="interpolation" id="cardinal"#}
{# value="cardinal" checked>#}
{# <span>cardinal</span>#}
{# </label>#}
{# <label for="linear">#}
{# <input type="radio" name="interpolation" id="linear"#}
{# value="linear">#}
{# <span>linear</span>#}
{# </label>#}
{# <label for="step">#}
{# <input type="radio" name="interpolation" id="step"#}
{# value="step-after">#}
{# <span>step</span>#}
{# </label>#}
{# </div>#}
{# </section>#}
{# </form>#}
{##}
{# <div id="chart_container" class="rickshaw_ext">#}
{# <div id="chart"></div>#}
{# <div id="timeline"></div>#}
{# </div>#}
{##}
{# <div id='rickshaw_side_panel' class="rickshaw_sliders">#}
{# <section>#}
{# <h5>Smoothing</h5>#}
{# <div id="smoother"></div>#}
{# </section>#}
{# <section>#}
{# <h5>Preview Range</h5>#}
{# <div id="preview" class="rickshaw_ext_preview"></div>#}
{# </section>#}
{# </div>#}
{##}
{# </div>#}
{# </div>#}
</div> <!-- End .row -->
</div>
</section>
</div>
<div class="col-md-4 col-sm-12 col-xs-12">
<div class="r2_graph1 db_box">
</section>
</section>
<!-- END CONTENT -->
<div class="page-chatapi hideit">
<form id="rickshaw_side_panel">
<section>
<div id="legend"></div>
</section>
<section>
<div id="renderer_form" class="toggler">
<select name="renderer">
<option value="area" selected>Area</option>
<option value="bar">Bar</option>
<option value="line">Line</option>
<option value="scatterplot">Scatter</option>
</select>
</div>
</section>
<section>
<div id="offset_form">
<label for="stack">
<input type="radio" name="offset" id="stack"
value="zero" checked>
<span>stack</span>
</label>
<label for="stream">
<input type="radio" name="offset" id="stream"
value="wiggle">
<span>stream</span>
</label>
<label for="pct">
<input type="radio" name="offset" id="pct"
value="expand">
<span>pct</span>
</label>
<label for="value">
<input type="radio" name="offset" id="value"
value="value">
<span>value</span>
</label>
</div>
<div id="interpolation_form">
<label for="cardinal">
<input type="radio" name="interpolation"
id="cardinal" value="cardinal" checked>
<span>cardinal</span>
</label>
<label for="linear">
<input type="radio" name="interpolation" id="linear"
value="linear">
<span>linear</span>
</label>
<label for="step">
<input type="radio" name="interpolation" id="step"
value="step-after">
<span>step</span>
</label>
</div>
</section>
</form>
<div class="search-bar">
<input type="text" placeholder="Search" class="form-control">
<div id="chart_container" class="rickshaw_ext">
<div id="chart"></div>
<div id="timeline"></div>
</div>
<div id='rickshaw_side_panel' class="rickshaw_sliders">
<section>
<h5>Smoothing</h5>
<div id="smoother"></div>
</section>
<section>
<h5>Preview Range</h5>
<div id="preview" class="rickshaw_ext_preview"></div>
</section>
</div>
</div>
<!--
<div class="r2_counter1 db_box">
counter 1
</div>
<div class="r2_counter2 db_box">
counter 2
</div> -->
</div>
</div> <!-- End .row -->
</div>
</section>
</div>
<div class="chat-wrapper">
<h4 class="group-head">Groups</h4>
<ul class="group-list list-unstyled">
<li class="group-row">
<div class="group-status available">
<i class="fa fa-circle"></i>
</div>
<div class="group-info">
<h4><a href="#">Work</a></h4>
</div>
</li>
<li class="group-row">
<div class="group-status away">
<i class="fa fa-circle"></i>
</div>
<div class="group-info">
<h4><a href="#">Friends</a></h4>
</div>
</li>
</ul>
<!-- END CONTENT -->
<h4 class="group-head">Favourites</h4>
<ul class="contact-list">
<li class="user-row" id='chat_user_1' data-user-id='1'>
<div class="user-img">
<a href="#"><img src="{% static 'dashboard/image/avatar-1.png' %}" alt=""></a>
</div>
<div class="user-info">
<h4><a href="#">Clarine Vassar</a></h4>
<span class="status available" data-status="available"> Available</span>
</div>
<div class="user-status available">
<i class="fa fa-circle"></i>
</div>
</li>
<li class="user-row" id='chat_user_2' data-user-id='2'>
<div class="user-img">
<a href="#"><img src="{% static 'dashboard/image/avatar-2.png' %}" alt=""></a>
</div>
<div class="user-info">
<h4><a href="#">Brooks Latshaw</a></h4>
<span class="status away" data-status="away"> Away</span>
</div>
<div class="user-status away">
<i class="fa fa-circle"></i>
</div>
</li>
<li class="user-row" id='chat_user_3' data-user-id='3'>
<div class="user-img">
<a href="#"><img src="{% static 'dashboard/image/avatar-3.png' %}" alt=""></a>
</div>
<div class="user-info">
<h4><a href="#">Clementina Brodeur</a></h4>
<span class="status busy" data-status="busy"> Busy</span>
</div>
<div class="user-status busy">
<i class="fa fa-circle"></i>
</div>
</li>
</ul>
<div class="chatapi-windows ">
<h4 class="group-head">More Contacts</h4>
<ul class="contact-list">
<li class="user-row" id='chat_user_4' data-user-id='4'>
<div class="user-img">
<a href="#"><img src="{% static 'dashboard/image/avatar-4.png' %}" alt=""></a>
</div>
<div class="user-info">
<h4><a href="#">Carri Busey</a></h4>
<span class="status offline" data-status="offline"> Offline</span>
</div>
<div class="user-status offline">
<i class="fa fa-circle"></i>
</div>
</li>
<li class="user-row" id='chat_user_5' data-user-id='5'>
<div class="user-img">
<a href="#"><img src="{% static 'dashboard/image/avatar-5.png' %}" alt=""></a>
</div>
<div class="user-info">
<h4><a href="#">Melissa Dock</a></h4>
<span class="status offline" data-status="offline"> Offline</span>
</div>
<div class="user-status offline">
<i class="fa fa-circle"></i>
</div>
</li>
<li class="user-row" id='chat_user_6' data-user-id='6'>
<div class="user-img">
<a href="#"><img src="{% static 'dashboard/image/avatar-1.png' %}" alt=""></a>
</div>
<div class="user-info">
<h4><a href="#">Verdell Rea</a></h4>
<span class="status available" data-status="available"> Available</span>
</div>
<div class="user-status available">
<i class="fa fa-circle"></i>
</div>
</li>
<li class="user-row" id='chat_user_7' data-user-id='7'>
<div class="user-img">
<a href="#"><img src="{% static 'dashboard/image/avatar-2.png' %}" alt=""></a>
</div>
<div class="user-info">
<h4><a href="#">Linette Lheureux</a></h4>
<span class="status busy" data-status="busy"> Busy</span>
</div>
<div class="user-status busy">
<i class="fa fa-circle"></i>
</div>
</li>
<li class="user-row" id='chat_user_8' data-user-id='8'>
<div class="user-img">
<a href="#"><img src="{% static 'dashboard/image/avatar-3.png' %}" alt=""></a>
</div>
<div class="user-info">
<h4><a href="#">Araceli Boatright</a></h4>
<span class="status away" data-status="away"> Away</span>
</div>
<div class="user-status away">
<i class="fa fa-circle"></i>
</div>
</li>
<li class="user-row" id='chat_user_9' data-user-id='9'>
<div class="user-img">
<a href="#"><img src="{% static 'dashboard/image/avatar-4.png' %}" alt=""></a>
</div>
<div class="user-info">
<h4><a href="#">Clay Peskin</a></h4>
<span class="status busy" data-status="busy"> Busy</span>
</div>
<div class="user-status busy">
<i class="fa fa-circle"></i>
</div>
</li>
<li class="user-row" id='chat_user_10' data-user-id='10'>
<div class="user-img">
<a href="#"><img src="{% static 'dashboard/image/avatar-5.png' %}" alt=""></a>
</div>
<div class="user-info">
<h4><a href="#">Loni Tindall</a></h4>
<span class="status away" data-status="away"> Away</span>
</div>
<div class="user-status away">
<i class="fa fa-circle"></i>
</div>
</li>
<li class="user-row" id='chat_user_11' data-user-id='11'>
<div class="user-img">
<a href="#"><img src="{% static 'dashboard/image/avatar-1.png' %}" alt=""></a>
</div>
<div class="user-info">
<h4><a href="#">Tanisha Kimbro</a></h4>
<span class="status idle" data-status="idle"> Idle</span>
</div>
<div class="user-status idle">
<i class="fa fa-circle"></i>
</div>
</li>
<li class="user-row" id='chat_user_12' data-user-id='12'>
<div class="user-img">
<a href="#"><img src="{% static 'dashboard/image/avatar-2.png' %}" alt=""></a>
</div>
<div class="user-info">
<h4><a href="#">Jovita Tisdale</a></h4>
<span class="status idle" data-status="idle"> Idle</span>
</div>
<div class="user-status idle">
<i class="fa fa-circle"></i>
</div>
</li>
</ul>
</div>
</div>
<div class="chatapi-windows ">
</div>
</div>
</section>
<!-- General section box modal start -->
<div class="modal" id="section-settings" tabindex="-1" role="dialog" aria-labelledby="ultraModal-Label"
aria-hidden="true">
<div class="modal-dialog animated bounceInDown">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
<h4 class="modal-title">Section Settings</h4>
</div>
<div class="modal-body">
Body goes here...
</div>
<div class="modal-footer">
<button data-dismiss="modal" class="btn btn-default" type="button">Close</button>
<button class="btn btn-success" type="button">Save changes</button>
</div>
</div>
</div>
</div>
<!-- modal end -->
</body>
{% endblock %}
{% block add_js %}
@ -577,8 +386,8 @@
<script src="{% static 'js/gauge.min.js' %}" type="text/javascript"></script>
<script src="{% static 'js/icheck.min.js' %}" type="text/javascript"></script>
<script src="{% static 'js/dashboard.js' %}" type="text/javascript"></script>
<script src="{% static 'graph/js/echarts.min.js' %}" type="text/javascript"></script>
<script src="{% static 'graph/js/data-count.js' %}" type="text/javascript"></script>
{# <script src="{% static 'graph/js/echarts.min.js' %}" type="text/javascript"></script>#}
{# <script src="{% static 'graph/js/data-count.js' %}" type="text/javascript"></script>#}
<script>
{#$(function () {#}
{# var year = '{{ year }}';#}

View File

@ -9,7 +9,7 @@
<span class="current">
第{{ douyin.number }}页 共{{ douyin.paginator.num_pages }}页</span>
{% if toutiao.has_next %}
{% if douyin.has_next %}
<a class='active' href="?page={{ douyin.next_page_number }}">下一页</a>
{% endif %}
</li>

View File

@ -0,0 +1,18 @@
<div id="pages" class="text-center">
<nav>
<ul class="pagination">
<li class="step-links">
{% if new.has_previous %}
<a class='active' href="?page={{ new.previous_page_number }}">上一页</a>
{% endif %}
<span class="current">
第{{ new.number }}页 共{{ new.paginator.num_pages }}页</span>
{% if new.has_next %}
<a class='active' href="?page={{ new.next_page_number }}">下一页</a>
{% endif %}
</li>
</ul>
</nav>
</div>

View File

@ -46,7 +46,7 @@
<td><img src="{{ w.image.url }}" style="width: 60px;height: 60px;margin: auto"
class="img-circle"></td>
<td style="vertical-align: middle;text-align: center">{{ w.code }}</td>
<td style="vertical-align: middle;text-align: center">{{ w.toutiaoid }}</td>
<td style="vertical-align: middle;text-align: center">{{ w.douyinid }}</td>
<td style="vertical-align: middle;text-align: center">{{ w.organization }}</td>
<td style="vertical-align: middle;text-align: center">{{ w.organization_type }}</td>
<td style="vertical-align: middle;text-align: center">{{ w.administrativedivision }}</td>

View File

@ -81,7 +81,7 @@
</tbody>
</table>
<div class="metadata-pagination">
{% include 'dashboard/paginator/organization-management-paginate.html' %}
{% include 'dashboard/paginator/news-management-paginate.html' %}
</div>
</div>
</div>

View File

@ -194,10 +194,9 @@ def group_management_user(request):
def group_update(request, pk):
group = Group.objects.get(id=pk)
GROUP_STATUS_CHOICES = Group.GROUP_STATUS_CHOICES
group_status_choices_list = []
for g in GROUP_STATUS_CHOICES:
group_status_choices_list.append(list(g)[1])
for g in range(2):
group_status_choices_list.append(g)
group_type = Group_type.objects.all()
group_admin = Group_admin.objects.filter(group_id=pk)
print(pk)
@ -278,10 +277,9 @@ def group_update(request, pk):
def group_create(request):
user = request.user
GROUP_STATUS_CHOICES = Group.GROUP_STATUS_CHOICES
group_status_choices_list = []
for g in GROUP_STATUS_CHOICES:
group_status_choices_list.append(list(g)[1])
for g in range(2):
group_status_choices_list.append(g)
group_type = Group_type.objects.all()
if request.method == 'POST':
name = request.POST.get('name')
@ -541,10 +539,9 @@ def newmedia_management_create_menu(request):
def newmedia_management_create_weixin(request):
WEIXIN_STATUS_CHOICES = Weixin.NEWMEDIA_STATUS_CHOICES
weixin_status_choices_list = []
for w in WEIXIN_STATUS_CHOICES:
weixin_status_choices_list.append(list(w)[1])
for w in range(2):
weixin_status_choices_list.append(w)
organization = Organization.objects.all().order_by('-name')
if request.method == 'POST':
code = request.POST.get('code')
@ -580,10 +577,9 @@ def newmedia_management_create_weixin(request):
def newmedia_management_create_weibo(request):
WEIBO_STATUS_CHOICES = Weibo.NEWMEDIA_STATUS_CHOICES
weibo_status_choices_list = []
for w in WEIBO_STATUS_CHOICES:
weibo_status_choices_list.append(list(w)[1])
for w in range(2):
weibo_status_choices_list.append(w)
organization = Organization.objects.all().order_by('-name')
if request.method == 'POST':
code = request.POST.get('code')
@ -620,10 +616,9 @@ def newmedia_management_create_weibo(request):
def newmedia_management_create_toutiao(request):
TOUTIAO_STATUS_CHOICES = Toutiao.NEWMEDIA_STATUS_CHOICES
toutiao_status_choices_list = []
for w in TOUTIAO_STATUS_CHOICES:
toutiao_status_choices_list.append(list(w)[1])
for w in range(2):
toutiao_status_choices_list.append(w)
organization = Organization.objects.all().order_by('-name')
if request.method == 'POST':
code = request.POST.get('code')
@ -659,10 +654,9 @@ def newmedia_management_create_toutiao(request):
{'toutiao_status_choices_list': toutiao_status_choices_list, "organization": organization})
def newmedia_management_create_douyin(request):
DOUYIN_STATUS_CHOICES = Douyin.NEWMEDIA_STATUS_CHOICES
douyin_status_choices_list = []
for w in DOUYIN_STATUS_CHOICES:
douyin_status_choices_list.append(list(w)[1])
for w in range(2):
douyin_status_choices_list.append(w)
print(douyin_status_choices_list)
organization = Organization.objects.all().order_by('-name')
if request.method == 'POST':
@ -699,10 +693,9 @@ def newmedia_management_create_douyin(request):
{'douyin_status_choices_list': douyin_status_choices_list, "organization": organization})
def newmedia_management_create_qita(request):
QITA_STATUS_CHOICES = Qita.NEWMEDIA_STATUS_CHOICES
qita_status_choices_list = []
for w in QITA_STATUS_CHOICES:
qita_status_choices_list.append(list(w)[1])
for w in range(2):
qita_status_choices_list.append(w)
organization = Organization.objects.all().order_by('-name')
if request.method == 'POST':
type = request.POST.get('type')
@ -774,8 +767,32 @@ def newmedia_management_edit_weixin(request):
o['weixinid'] = w.weixinid
o['organization'] = w.organization.name
o['organization_type'] = w.organization.organizationtype.organizationtype
o['administrativedivision'] = str(w.organization.province) + '-' + str(w.organization.cities) + '-' + str(
w.organization.district) + '-' + str(w.organization.town) + '-' + str(w.organization.village)
if len(w.organization.province) > 0 and len(w.organization.cities) > 0 and len(
w.organization.district) > 0 and len(w.organization.town) > 0 and len(w.organization.village) > 0:
o['administrativedivision'] = str(
Area_code_2020.objects.get(code=w.organization.province).name) + '-' + str(
Area_code_2020.objects.get(code=w.organization.cities).name) + '-' + str(
Area_code_2020.objects.get(code=w.organization.district).name) + '-' + str(
Area_code_2020.objects.get(code=w.organization.town).name) + '-' + str(
Area_code_2020.objects.get(code=w.organization.village).name)
elif len(w.organization.province) > 0 and len(w.organization.cities) > 0 and len(
w.organization.district) > 0 and len(w.organization.town) > 0:
o['administrativedivision'] = str(
Area_code_2020.objects.get(code=w.organization.province).name) + '-' + str(
Area_code_2020.objects.get(code=w.organization.cities).name) + '-' + str(
Area_code_2020.objects.get(code=w.organization.district).name) + '-' + str(
Area_code_2020.objects.get(code=w.organization.town).name)
elif len(w.organization.province) > 0 and len(w.organization.cities) > 0 and len(w.organization.district) > 0:
o['administrativedivision'] = str(
Area_code_2020.objects.get(code=w.organization.province).name) + '-' + str(
Area_code_2020.objects.get(code=w.organization.cities).name) + '-' + str(
Area_code_2020.objects.get(code=w.organization.district).name)
elif len(w.organization.province) > 0 and len(w.organization.cities) > 0:
o['administrativedivision'] = str(
Area_code_2020.objects.get(code=w.organization.province).name) + '-' + str(
Area_code_2020.objects.get(code=w.organization.cities).name)
elif len(w.organization.province) > 0:
o['administrativedivision'] = str(Area_code_2020.objects.get(code=w.organization.province).name)
o['status'] = w.status
res.append(o)
return render(request, 'management/newmedia-management-edit-weixin.html', {'weixin': weixin, 'res': res})
@ -812,8 +829,32 @@ def newmedia_management_edit_weibo(request):
o['weiboid'] = w.weiboid
o['organization'] = w.organization.name
o['organization_type'] = w.organization.organizationtype.organizationtype
o['administrativedivision'] = str(w.organization.province) + '-' + str(w.organization.cities) + '-' + str(
w.organization.district) + '-' + str(w.organization.town) + '-' + str(w.organization.village)
if len(w.organization.province) > 0 and len(w.organization.cities) > 0 and len(
w.organization.district) > 0 and len(w.organization.town) > 0 and len(w.organization.village) > 0:
o['administrativedivision'] = str(
Area_code_2020.objects.get(code=w.organization.province).name) + '-' + str(
Area_code_2020.objects.get(code=w.organization.cities).name) + '-' + str(
Area_code_2020.objects.get(code=w.organization.district).name) + '-' + str(
Area_code_2020.objects.get(code=w.organization.town).name) + '-' + str(
Area_code_2020.objects.get(code=w.organization.village).name)
elif len(w.organization.province) > 0 and len(w.organization.cities) > 0 and len(
w.organization.district) > 0 and len(w.organization.town) > 0:
o['administrativedivision'] = str(
Area_code_2020.objects.get(code=w.organization.province).name) + '-' + str(
Area_code_2020.objects.get(code=w.organization.cities).name) + '-' + str(
Area_code_2020.objects.get(code=w.organization.district).name) + '-' + str(
Area_code_2020.objects.get(code=w.organization.town).name)
elif len(w.organization.province) > 0 and len(w.organization.cities) > 0 and len(w.organization.district) > 0:
o['administrativedivision'] = str(
Area_code_2020.objects.get(code=w.organization.province).name) + '-' + str(
Area_code_2020.objects.get(code=w.organization.cities).name) + '-' + str(
Area_code_2020.objects.get(code=w.organization.district).name)
elif len(w.organization.province) > 0 and len(w.organization.cities) > 0:
o['administrativedivision'] = str(
Area_code_2020.objects.get(code=w.organization.province).name) + '-' + str(
Area_code_2020.objects.get(code=w.organization.cities).name)
elif len(w.organization.province) > 0:
o['administrativedivision'] = str(Area_code_2020.objects.get(code=w.organization.province).name)
o['status'] = w.status
res.append(o)
return render(request, 'management/newmedia-management-edit-weibo.html', {'weibo': weibo, 'res': res})
@ -851,8 +892,32 @@ def newmedia_management_edit_toutiao(request):
o['toutiaoid'] = w.toutiaoid
o['organization'] = w.organization.name
o['organization_type'] = w.organization.organizationtype.organizationtype
o['administrativedivision'] = str(w.organization.province) + '-' + str(w.organization.cities) + '-' + str(
w.organization.district) + '-' + str(w.organization.town) + '-' + str(w.organization.village)
if len(w.organization.province) > 0 and len(w.organization.cities) > 0 and len(
w.organization.district) > 0 and len(w.organization.town) > 0 and len(w.organization.village) > 0:
o['administrativedivision'] = str(
Area_code_2020.objects.get(code=w.organization.province).name) + '-' + str(
Area_code_2020.objects.get(code=w.organization.cities).name) + '-' + str(
Area_code_2020.objects.get(code=w.organization.district).name) + '-' + str(
Area_code_2020.objects.get(code=w.organization.town).name) + '-' + str(
Area_code_2020.objects.get(code=w.organization.village).name)
elif len(w.organization.province) > 0 and len(w.organization.cities) > 0 and len(
w.organization.district) > 0 and len(w.organization.town) > 0:
o['administrativedivision'] = str(
Area_code_2020.objects.get(code=w.organization.province).name) + '-' + str(
Area_code_2020.objects.get(code=w.organization.cities).name) + '-' + str(
Area_code_2020.objects.get(code=w.organization.district).name) + '-' + str(
Area_code_2020.objects.get(code=w.organization.town).name)
elif len(w.organization.province) > 0 and len(w.organization.cities) > 0 and len(w.organization.district) > 0:
o['administrativedivision'] = str(
Area_code_2020.objects.get(code=w.organization.province).name) + '-' + str(
Area_code_2020.objects.get(code=w.organization.cities).name) + '-' + str(
Area_code_2020.objects.get(code=w.organization.district).name)
elif len(w.organization.province) > 0 and len(w.organization.cities) > 0:
o['administrativedivision'] = str(
Area_code_2020.objects.get(code=w.organization.province).name) + '-' + str(
Area_code_2020.objects.get(code=w.organization.cities).name)
elif len(w.organization.province) > 0:
o['administrativedivision'] = str(Area_code_2020.objects.get(code=w.organization.province).name)
o['status'] = w.status
res.append(o)
return render(request, 'management/newmedia-management-edit-toutiao.html', {'toutiao': toutiao, 'res': res})
@ -889,8 +954,26 @@ def newmedia_management_edit_douyin(request):
o['douyinid'] = w.douyinid
o['organization'] = w.organization.name
o['organization_type'] = w.organization.organizationtype.organizationtype
o['administrativedivision'] = str(w.organization.province) + '-' + str(w.organization.cities) + '-' + str(
w.organization.district) + '-' + str(w.organization.town) + '-' + str(w.organization.village)
if len(w.organization.province) > 0 and len(w.organization.cities) > 0 and len(w.organization.district) > 0 and len(w.organization.town) > 0 and len(w.organization.village) > 0:
o['administrativedivision'] = str(Area_code_2020.objects.get(code=w.organization.province).name) + '-' + str(
Area_code_2020.objects.get(code=w.organization.cities).name) + '-' + str(
Area_code_2020.objects.get(code=w.organization.district).name) + '-' + str(
Area_code_2020.objects.get(code=w.organization.town).name) + '-' + str(
Area_code_2020.objects.get(code=w.organization.village).name)
elif len(w.organization.province) > 0 and len(w.organization.cities) > 0 and len(w.organization.district) > 0 and len(w.organization.town) > 0:
o['administrativedivision'] = str(Area_code_2020.objects.get(code=w.organization.province).name) + '-' + str(
Area_code_2020.objects.get(code=w.organization.cities).name) + '-' + str(
Area_code_2020.objects.get(code=w.organization.district).name) + '-' + str(
Area_code_2020.objects.get(code=w.organization.town).name)
elif len(w.organization.province) > 0 and len(w.organization.cities) > 0 and len(w.organization.district) > 0:
o['administrativedivision'] = str(Area_code_2020.objects.get(code=w.organization.province).name) + '-' + str(
Area_code_2020.objects.get(code=w.organization.cities).name) + '-' + str(
Area_code_2020.objects.get(code=w.organization.district).name)
elif len(w.organization.province) > 0 and len(w.organization.cities) > 0 :
o['administrativedivision'] = str(Area_code_2020.objects.get(code=w.organization.province).name) + '-' + str(
Area_code_2020.objects.get(code=w.organization.cities).name)
elif len(w.organization.province) > 0:
o['administrativedivision'] = str(Area_code_2020.objects.get(code=w.organization.province).name)
o['status'] = w.status
res.append(o)
return render(request, 'management/newmedia-management-edit-douyin.html', {'douyin': douyin, 'res': res})
@ -926,18 +1009,41 @@ def newmedia_management_edit_qita(request):
o['qitaid'] = w.qitaid
o['organization'] = w.organization.name
o['organization_type'] = w.organization.organizationtype.organizationtype
o['administrativedivision'] = str(w.organization.province) + '-' + str(w.organization.cities) + '-' + str(
w.organization.district) + '-' + str(w.organization.town) + '-' + str(w.organization.village)
if len(w.organization.province) > 0 and len(w.organization.cities) > 0 and len(
w.organization.district) > 0 and len(w.organization.town) > 0 and len(w.organization.village) > 0:
o['administrativedivision'] = str(
Area_code_2020.objects.get(code=w.organization.province).name) + '-' + str(
Area_code_2020.objects.get(code=w.organization.cities).name) + '-' + str(
Area_code_2020.objects.get(code=w.organization.district).name) + '-' + str(
Area_code_2020.objects.get(code=w.organization.town).name) + '-' + str(
Area_code_2020.objects.get(code=w.organization.village).name)
elif len(w.organization.province) > 0 and len(w.organization.cities) > 0 and len(
w.organization.district) > 0 and len(w.organization.town) > 0:
o['administrativedivision'] = str(
Area_code_2020.objects.get(code=w.organization.province).name) + '-' + str(
Area_code_2020.objects.get(code=w.organization.cities).name) + '-' + str(
Area_code_2020.objects.get(code=w.organization.district).name) + '-' + str(
Area_code_2020.objects.get(code=w.organization.town).name)
elif len(w.organization.province) > 0 and len(w.organization.cities) > 0 and len(w.organization.district) > 0:
o['administrativedivision'] = str(
Area_code_2020.objects.get(code=w.organization.province).name) + '-' + str(
Area_code_2020.objects.get(code=w.organization.cities).name) + '-' + str(
Area_code_2020.objects.get(code=w.organization.district).name)
elif len(w.organization.province) > 0 and len(w.organization.cities) > 0:
o['administrativedivision'] = str(
Area_code_2020.objects.get(code=w.organization.province).name) + '-' + str(
Area_code_2020.objects.get(code=w.organization.cities).name)
elif len(w.organization.province) > 0:
o['administrativedivision'] = str(Area_code_2020.objects.get(code=w.organization.province).name)
o['status'] = w.status
res.append(o)
return render(request, 'management/newmedia-management-edit-qita.html', {'qita': qita, 'res': res})
def newmedia_management_update_weixin(request, pk):
WEIXIN_STATUS_CHOICES = Weixin.NEWMEDIA_STATUS_CHOICES
weixin_status_choices_list = []
for w in WEIXIN_STATUS_CHOICES:
weixin_status_choices_list.append(list(w)[1])
for w in range(2):
weixin_status_choices_list.append(w)
weixin = Weixin.objects.get(id=pk)
organization = Organization.objects.all()
if request.method == 'POST':
@ -977,10 +1083,9 @@ def newmedia_management_update_weixin(request, pk):
def newmedia_management_update_weibo(request, pk):
WEIBO_STATUS_CHOICES = Weibo.NEWMEDIA_STATUS_CHOICES
weibo_status_choices_list = []
for w in WEIBO_STATUS_CHOICES:
weibo_status_choices_list.append(list(w)[1])
for w in range(2):
weibo_status_choices_list.append(w)
weibo = Weibo.objects.get(id=pk)
organization = Organization.objects.all()
if request.method == 'POST':
@ -1020,10 +1125,9 @@ def newmedia_management_update_weibo(request, pk):
def newmedia_management_update_toutiao(request, pk):
TOUTIAO_STATUS_CHOICES = Toutiao.NEWMEDIA_STATUS_CHOICES
toutiao_status_choices_list = []
for w in TOUTIAO_STATUS_CHOICES:
toutiao_status_choices_list.append(list(w)[1])
for w in range(2):
toutiao_status_choices_list.append(w)
toutiao = Toutiao.objects.get(id=pk)
organization = Organization.objects.all()
if request.method == 'POST':
@ -1062,10 +1166,9 @@ def newmedia_management_update_toutiao(request, pk):
'toutiao_status_choices_list': toutiao_status_choices_list})
def newmedia_management_update_douyin(request, pk):
DOUYIN_STATUS_CHOICES = Douyin.NEWMEDIA_STATUS_CHOICES
douyin_status_choices_list = []
for w in DOUYIN_STATUS_CHOICES:
douyin_status_choices_list.append(list(w)[1])
for w in range(2):
douyin_status_choices_list.append(w)
douyin = Douyin.objects.get(id=pk)
organization = Organization.objects.all()
if request.method == 'POST':
@ -1103,10 +1206,9 @@ def newmedia_management_update_douyin(request, pk):
{'douyin': douyin, 'organization': organization,
'douyin_status_choices_list': douyin_status_choices_list})
def newmedia_management_update_qita(request, pk):
QITA_STATUS_CHOICES = Qita.NEWMEDIA_STATUS_CHOICES
qita_status_choices_list = []
for w in QITA_STATUS_CHOICES:
qita_status_choices_list.append(list(w)[1])
for w in range(2):
qita_status_choices_list.append(w)
organization = Organization.objects.all()
qita = Qita.objects.get(id=pk)
if request.method == 'POST':
@ -1180,6 +1282,14 @@ def newmedia_management_delete_qita(request, pk):
def new_management(request):
news = News.objects.all()
paginator = Paginator(news, 6)
page = int(request.GET.get('page', 1))
try:
news = paginator.page(page)
except PageNotAnInteger:
news = paginator.page(1)
except EmptyPage:
news = paginator.page(paginator.num_pages)
news_list = []
for n in news:
o = dict()
@ -1202,7 +1312,7 @@ def new_management(request):
elif n.type == '6':
o['type'] = '重点新闻'
news_list.append(o)
return render(request,'management/news-management.html',{'news':news_list})
return render(request,'management/news-management.html',{'news':news_list,'new':news})
def news_management_create(request):
if request.method == 'POST':
type = request.POST.get('type')

View File

@ -1,111 +1,111 @@
{% extends 'dashboard/base/base.html' %}
{% load static %}
{% block content %}
<body class=" ">
<!-- START TOPBAR -->
<!-- START CONTAINER -->
<div class="page-container row-fluid">
<div class="page-sidebar ">
{% include 'dashboard/base/left.html' %}
</div>
<section id="main-content" class=" ">
<section class="wrapper" style='margin-top:60px;display:inline-block;width:100%;padding:15px 0 0 15px;'>
{% if messages %}
<div class="alert alert-success alert-dismissible" role="alert">
<button type="button" class="close" data-dismiss="alert">
<span aria-hidden="true">&times;</span>
<span class="sr-only">Close</span>
</button>
{% for message in messages %}
{{ message }}.<br/>
{% endfor %}
</div>
{% endif %}
</section>
<div class="chatapi-windows "></div>
<div class="panel panel-default">
<div class="panel-heading">
<ul class="nav nav-pills">
<li role="presentation"><a href="{% url 'monitor-new-media-public-opinion-weixin' %}">微信</a>
</li>
<li role="presentation"><a href="{% url 'monitor-new-media-public-opinion-toutiao' %}">头条</a>
</li>
<li role="presentation"><a href="{% url 'monitor-new-media-public-opinion-weibo' %}">微博</a></li>
<li role="presentation" class="active"><a
href="{% url 'monitor-new-media-public-opinion-qita' %}">其他</a></li>
</ul>
</div>
<div class="panel-body">
<div class="panel panel-default">
<div class="panel-heading">微信热点</div>
<div class="panel-body">
<div class="col-lg-6" style="margin-top: 10px">
<div class="col-lg-3">
公众号
<select id="basicSelect">
<option value="qita_all">全部</option>
{% for q in qita %}
<option value="{{ q.id }}">{{ q.name }}</option>
{% endfor %}
</select>
</div>
<div class="col-lg-3">
分组
<select id="basicSelect">
<option value="group_all">全部</option>
{% for g in group %}
<option value="{{ g.id }}">{{ g.name }}</option>
{% endfor %}
</select>
</div>
</div>
<div class="col-lg-6">
<div class="input-group">
<input type="text" class="form-control" placeholder="Search for...">
<span class="input-group-btn">
<button class="btn btn-default" type="button">Go!</button>
</span>
</div><!-- /input-group -->
</div>
</div>
<div class="panel panel-default">
<!-- Default panel contents -->
<table class="table table-hover" style="font-size: 14px">
<thead>
<tr>
<th style="text-align: center">公众号</th>
<th style="text-align: center">封面</th>
<th style="text-align: center">标题</th>
<th style="text-align: center">评论数</th>
<th style="text-align: center">回复数</th>
<th style="text-align: center">发布时间</th>
</tr>
</thead>
<tbody>
{% for r in res %}
<tr>
<td style="vertical-align: middle;text-align: center">{{ r.code }}</td>
<td style="vertical-align: middle;text-align: center"><img
src="{{ r.image.url }}" style="width: 40px;height: 40px;"
class="img-circle"></td>
<td style="vertical-align: middle;text-align: center">{{ r.title }}</td>
<td style="vertical-align: middle;text-align: center">{{ r.comment }}</td>
<td style="vertical-align: middle;text-align: center">{{ r.reply }}</td>
<td style="vertical-align: middle;text-align: center">{{ r.date }}</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
</div>
</div>
</section>
</div>
</body>
{% endblock %}
{% extends 'dashboard/base/base.html' %}
{% load static %}
{% block content %}
<body class=" ">
<!-- START TOPBAR -->
<!-- START CONTAINER -->
<div class="page-container row-fluid">
<div class="page-sidebar ">
{% include 'dashboard/base/left.html' %}
</div>
<section id="main-content" class=" ">
<section class="wrapper" style='margin-top:60px;display:inline-block;width:100%;padding:15px 0 0 15px;'>
{% if messages %}
<div class="alert alert-success alert-dismissible" role="alert">
<button type="button" class="close" data-dismiss="alert">
<span aria-hidden="true">&times;</span>
<span class="sr-only">Close</span>
</button>
{% for message in messages %}
{{ message }}.<br/>
{% endfor %}
</div>
{% endif %}
</section>
<div class="chatapi-windows "></div>
<div class="panel panel-default">
<div class="panel-heading">
<ul class="nav nav-pills">
<li role="presentation"><a href="{% url 'monitor-new-media-public-opinion-weixin' %}">微信</a>
</li>
<li role="presentation"><a href="{% url 'monitor-new-media-public-opinion-toutiao' %}">头条</a>
</li>
<li role="presentation"><a href="{% url 'monitor-new-media-public-opinion-weibo' %}">微博</a></li>
<li role="presentation" class="active"><a
href="{% url 'monitor-new-media-public-opinion-qita' %}">其他</a></li>
</ul>
</div>
<div class="panel-body">
<div class="panel panel-default">
<div class="panel-heading">微信热点</div>
<div class="panel-body">
<div class="col-md-8" style="margin-top: 10px">
<div class="col-md-8">
公众号
<select id="basicSelect">
<option value="qita_all">全部</option>
{% for q in qita %}
<option value="{{ q.id }}">{{ q.name }}</option>
{% endfor %}
</select>
</div>
<div class="col-md-4">
分组
<select id="basicSelect">
<option value="group_all">全部</option>
{% for g in group %}
<option value="{{ g.id }}">{{ g.name }}</option>
{% endfor %}
</select>
</div>
</div>
<div class="col-md-4">
<div class="input-group">
<input type="text" class="form-control" placeholder="Search for...">
<span class="input-group-btn">
<button class="btn btn-default" type="button">Go!</button>
</span>
</div><!-- /input-group -->
</div>
</div>
<div class="panel panel-default">
<!-- Default panel contents -->
<table class="table table-hover" style="font-size: 14px">
<thead>
<tr>
<th style="text-align: center">公众号</th>
<th style="text-align: center">封面</th>
<th style="text-align: center">标题</th>
<th style="text-align: center">评论数</th>
<th style="text-align: center">回复数</th>
<th style="text-align: center">发布时间</th>
</tr>
</thead>
<tbody>
{% for r in res %}
<tr>
<td style="vertical-align: middle;text-align: center">{{ r.code }}</td>
<td style="vertical-align: middle;text-align: center"><img
src="{{ r.image.url }}" style="width: 40px;height: 40px;"
class="img-circle"></td>
<td style="vertical-align: middle;text-align: center">{{ r.title }}</td>
<td style="vertical-align: middle;text-align: center">{{ r.comment }}</td>
<td style="vertical-align: middle;text-align: center">{{ r.reply }}</td>
<td style="vertical-align: middle;text-align: center">{{ r.date }}</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
</div>
</div>
</section>
</div>
</body>
{% endblock %}

View File

@ -1,107 +1,107 @@
{% extends 'dashboard/base/base.html' %}
{% load static %}
{% block content %}
<body class=" ">
<!-- START TOPBAR -->
<!-- START CONTAINER -->
<div class="page-container row-fluid">
<div class="page-sidebar ">
{% include 'dashboard/base/left.html' %}
</div>
<section id="main-content" class=" ">
<section class="wrapper" style='margin-top:60px;display:inline-block;width:100%;padding:15px 0 0 15px;'>
{% if messages %}
<div class="alert alert-success alert-dismissible" role="alert">
<button type="button" class="close" data-dismiss="alert">
<span aria-hidden="true">&times;</span>
<span class="sr-only">Close</span>
</button>
{% for message in messages %}
{{ message }}.<br/>
{% endfor %}
</div>
{% endif %}
</section>
<div class="chatapi-windows "></div>
<div class="panel panel-default">
<div class="panel-heading">
<ul class="nav nav-pills">
<li role="presentation"><a href="{% url 'monitor-new-media-public-opinion-weixin' %}">微信</a></li>
<li role="presentation" class="active"><a href="{% url 'monitor-new-media-public-opinion-toutiao' %}">头条</a></li>
<li role="presentation"><a href="{% url 'monitor-new-media-public-opinion-weibo' %}">微博</a></li>
<li role="presentation"><a href="{% url 'monitor-new-media-public-opinion-qita' %}">其他</a></li>
</ul>
</div>
<div class="panel-body">
<div class="panel panel-default">
<div class="panel-heading">微信热点</div>
<div class="panel-body">
<div class="col-lg-6" style="margin-top: 10px">
<div class="col-lg-3">
公众号
<select id="basicSelect">
<option value="toutiao_all">全部</option>
{% for t in toutiao %}
<option value="{{ t.id }}">{{ t.code }}</option>
{% endfor %}
</select>
</div>
<div class="col-lg-3">
分组
<select id="basicSelect">
<option value="group_all">全部</option>
{% for g in group %}
<option value="{{ g.id }}">{{ g.name }}</option>
{% endfor %}
</select>
</div>
</div>
<div class="col-lg-6">
<div class="input-group">
<input type="text" class="form-control" placeholder="Search for...">
<span class="input-group-btn">
<button class="btn btn-default" type="button">Go!</button>
</span>
</div><!-- /input-group -->
</div>
</div>
<div class="panel panel-default">
<!-- Default panel contents -->
<table class="table table-hover" style="font-size: 14px">
<thead>
<tr>
<th style="text-align: center">公众号</th>
<th style="text-align: center">封面</th>
<th style="text-align: center">标题</th>
<th style="text-align: center">评论数</th>
<th style="text-align: center">回复数</th>
<th style="text-align: center">发布时间</th>
</tr>
</thead>
<tbody>
{% for r in res %}
<tr>
<td style="vertical-align: middle;text-align: center">{{ r.code }}</td>
<td style="vertical-align: middle;text-align: center"><img src="{{ r.image.url }}" style="width: 40px;height: 40px;"
class="img-circle"></td>
<td style="vertical-align: middle;text-align: center">{{ r.title }}</td>
<td style="vertical-align: middle;text-align: center">{{ r.comment }}</td>
<td style="vertical-align: middle;text-align: center">{{ r.reply }}</td>
<td style="vertical-align: middle;text-align: center">{{ r.date }}</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
</div>
</div>
</section>
</div>
</body>
{% endblock %}
{% extends 'dashboard/base/base.html' %}
{% load static %}
{% block content %}
<body class=" ">
<!-- START TOPBAR -->
<!-- START CONTAINER -->
<div class="page-container row-fluid">
<div class="page-sidebar ">
{% include 'dashboard/base/left.html' %}
</div>
<section id="main-content" class=" ">
<section class="wrapper" style='margin-top:60px;display:inline-block;width:100%;padding:15px 0 0 15px;'>
{% if messages %}
<div class="alert alert-success alert-dismissible" role="alert">
<button type="button" class="close" data-dismiss="alert">
<span aria-hidden="true">&times;</span>
<span class="sr-only">Close</span>
</button>
{% for message in messages %}
{{ message }}.<br/>
{% endfor %}
</div>
{% endif %}
</section>
<div class="chatapi-windows "></div>
<div class="panel panel-default">
<div class="panel-heading">
<ul class="nav nav-pills">
<li role="presentation"><a href="{% url 'monitor-new-media-public-opinion-weixin' %}">微信</a></li>
<li role="presentation" class="active"><a href="{% url 'monitor-new-media-public-opinion-toutiao' %}">头条</a></li>
<li role="presentation"><a href="{% url 'monitor-new-media-public-opinion-weibo' %}">微博</a></li>
<li role="presentation"><a href="{% url 'monitor-new-media-public-opinion-qita' %}">其他</a></li>
</ul>
</div>
<div class="panel-body">
<div class="panel panel-default">
<div class="panel-heading">微信热点</div>
<div class="panel-body">
<div class="col-md-8" style="margin-top: 10px">
<div class="col-md-8">
公众号
<select id="basicSelect">
<option value="toutiao_all">全部</option>
{% for t in toutiao %}
<option value="{{ t.id }}">{{ t.code }}</option>
{% endfor %}
</select>
</div>
<div class="col-md-4">
分组
<select id="basicSelect">
<option value="group_all">全部</option>
{% for g in group %}
<option value="{{ g.id }}">{{ g.name }}</option>
{% endfor %}
</select>
</div>
</div>
<div class="col-md-4">
<div class="input-group">
<input type="text" class="form-control" placeholder="Search for...">
<span class="input-group-btn">
<button class="btn btn-default" type="button">Go!</button>
</span>
</div><!-- /input-group -->
</div>
</div>
<div class="panel panel-default">
<!-- Default panel contents -->
<table class="table table-hover" style="font-size: 14px">
<thead>
<tr>
<th style="text-align: center">公众号</th>
<th style="text-align: center">封面</th>
<th style="text-align: center">标题</th>
<th style="text-align: center">评论数</th>
<th style="text-align: center">回复数</th>
<th style="text-align: center">发布时间</th>
</tr>
</thead>
<tbody>
{% for r in res %}
<tr>
<td style="vertical-align: middle;text-align: center">{{ r.code }}</td>
<td style="vertical-align: middle;text-align: center"><img src="{{ r.image.url }}" style="width: 40px;height: 40px;"
class="img-circle"></td>
<td style="vertical-align: middle;text-align: center">{{ r.title }}</td>
<td style="vertical-align: middle;text-align: center">{{ r.comment }}</td>
<td style="vertical-align: middle;text-align: center">{{ r.reply }}</td>
<td style="vertical-align: middle;text-align: center">{{ r.date }}</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
</div>
</div>
</section>
</div>
</body>
{% endblock %}

View File

@ -1,107 +1,107 @@
{% extends 'dashboard/base/base.html' %}
{% load static %}
{% block content %}
<body class=" ">
<!-- START TOPBAR -->
<!-- START CONTAINER -->
<div class="page-container row-fluid">
<div class="page-sidebar ">
{% include 'dashboard/base/left.html' %}
</div>
<section id="main-content" class=" ">
<section class="wrapper" style='margin-top:60px;display:inline-block;width:100%;padding:15px 0 0 15px;'>
{% if messages %}
<div class="alert alert-success alert-dismissible" role="alert">
<button type="button" class="close" data-dismiss="alert">
<span aria-hidden="true">&times;</span>
<span class="sr-only">Close</span>
</button>
{% for message in messages %}
{{ message }}.<br/>
{% endfor %}
</div>
{% endif %}
</section>
<div class="chatapi-windows "></div>
<div class="panel panel-default">
<div class="panel-heading">
<ul class="nav nav-pills">
<li role="presentation" ><a href="{% url 'monitor-new-media-public-opinion-weixin' %}">微信</a></li>
<li role="presentation"><a href="{% url 'monitor-new-media-public-opinion-toutiao' %}">头条</a></li>
<li role="presentation" class="active"><a href="{% url 'monitor-new-media-public-opinion-weibo' %}">微博</a></li>
<li role="presentation"><a href="{% url 'monitor-new-media-public-opinion-qita' %}">其他</a></li>
</ul>
</div>
<div class="panel-body">
<div class="panel panel-default">
<div class="panel-heading">微信热点</div>
<div class="panel-body">
<div class="col-lg-6" style="margin-top: 10px">
<div class="col-lg-3">
公众号
<select id="basicSelect">
<option value="weibo_all">全部</option>
{% for w in weibo %}
<option value="{{ w.id }}">{{ w.code }}</option>
{% endfor %}
</select>
</div>
<div class="col-lg-3">
分组
<select id="basicSelect">
<option value="group_all">全部</option>
{% for g in group %}
<option value="{{ g.id }}">{{ g.name }}</option>
{% endfor %}
</select>
</div>
</div>
<div class="col-lg-6">
<div class="input-group">
<input type="text" class="form-control" placeholder="Search for...">
<span class="input-group-btn">
<button class="btn btn-default" type="button">Go!</button>
</span>
</div><!-- /input-group -->
</div>
</div>
<div class="panel panel-default">
<!-- Default panel contents -->
<table class="table table-hover" style="font-size: 14px">
<thead>
<tr>
<th style="text-align: center">公众号</th>
<th style="text-align: center">封面</th>
<th style="text-align: center">标题</th>
<th style="text-align: center">评论数</th>
<th style="text-align: center">回复数</th>
<th style="text-align: center">发布时间</th>
</tr>
</thead>
<tbody>
{% for r in res %}
<tr>
<td style="vertical-align: middle;text-align: center">{{ r.code }}</td>
<td style="vertical-align: middle;text-align: center"><img src="{{ r.image.url }}" style="width: 40px;height: 40px;"
class="img-circle"></td>
<td style="vertical-align: middle;text-align: center">{{ r.title }}</td>
<td style="vertical-align: middle;text-align: center">{{ r.comment }}</td>
<td style="vertical-align: middle;text-align: center">{{ r.reply }}</td>
<td style="vertical-align: middle;text-align: center">{{ r.date }}</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
</div>
</div>
</section>
</div>
</body>
{% endblock %}
{% extends 'dashboard/base/base.html' %}
{% load static %}
{% block content %}
<body class=" ">
<!-- START TOPBAR -->
<!-- START CONTAINER -->
<div class="page-container row-fluid">
<div class="page-sidebar ">
{% include 'dashboard/base/left.html' %}
</div>
<section id="main-content" class=" ">
<section class="wrapper" style='margin-top:60px;display:inline-block;width:100%;padding:15px 0 0 15px;'>
{% if messages %}
<div class="alert alert-success alert-dismissible" role="alert">
<button type="button" class="close" data-dismiss="alert">
<span aria-hidden="true">&times;</span>
<span class="sr-only">Close</span>
</button>
{% for message in messages %}
{{ message }}.<br/>
{% endfor %}
</div>
{% endif %}
</section>
<div class="chatapi-windows "></div>
<div class="panel panel-default">
<div class="panel-heading">
<ul class="nav nav-pills">
<li role="presentation" ><a href="{% url 'monitor-new-media-public-opinion-weixin' %}">微信</a></li>
<li role="presentation"><a href="{% url 'monitor-new-media-public-opinion-toutiao' %}">头条</a></li>
<li role="presentation" class="active"><a href="{% url 'monitor-new-media-public-opinion-weibo' %}">微博</a></li>
<li role="presentation"><a href="{% url 'monitor-new-media-public-opinion-qita' %}">其他</a></li>
</ul>
</div>
<div class="panel-body">
<div class="panel panel-default">
<div class="panel-heading">微信热点</div>
<div class="panel-body">
<div class="col-md-8" style="margin-top: 10px">
<div class="col-md-8">
公众号
<select id="basicSelect">
<option value="weibo_all">全部</option>
{% for w in weibo %}
<option value="{{ w.id }}">{{ w.code }}</option>
{% endfor %}
</select>
</div>
<div class="col-md-4">
分组
<select id="basicSelect">
<option value="group_all">全部</option>
{% for g in group %}
<option value="{{ g.id }}">{{ g.name }}</option>
{% endfor %}
</select>
</div>
</div>
<div class="col-md-4">
<div class="input-group">
<input type="text" class="form-control" placeholder="Search for...">
<span class="input-group-btn">
<button class="btn btn-default" type="button">Go!</button>
</span>
</div><!-- /input-group -->
</div>
</div>
<div class="panel panel-default">
<!-- Default panel contents -->
<table class="table table-hover" style="font-size: 14px">
<thead>
<tr>
<th style="text-align: center">公众号</th>
<th style="text-align: center">封面</th>
<th style="text-align: center">标题</th>
<th style="text-align: center">评论数</th>
<th style="text-align: center">回复数</th>
<th style="text-align: center">发布时间</th>
</tr>
</thead>
<tbody>
{% for r in res %}
<tr>
<td style="vertical-align: middle;text-align: center">{{ r.code }}</td>
<td style="vertical-align: middle;text-align: center"><img src="{{ r.image.url }}" style="width: 40px;height: 40px;"
class="img-circle"></td>
<td style="vertical-align: middle;text-align: center">{{ r.title }}</td>
<td style="vertical-align: middle;text-align: center">{{ r.comment }}</td>
<td style="vertical-align: middle;text-align: center">{{ r.reply }}</td>
<td style="vertical-align: middle;text-align: center">{{ r.date }}</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
</div>
</div>
</section>
</div>
</body>
{% endblock %}

View File

@ -1,107 +1,107 @@
{% extends 'dashboard/base/base.html' %}
{% load static %}
{% block content %}
<body class=" ">
<!-- START TOPBAR -->
<!-- START CONTAINER -->
<div class="page-container row-fluid">
<div class="page-sidebar ">
{% include 'dashboard/base/left.html' %}
</div>
<section id="main-content" class=" ">
<section class="wrapper" style='margin-top:60px;display:inline-block;width:100%;padding:15px 0 0 15px;'>
{% if messages %}
<div class="alert alert-success alert-dismissible" role="alert">
<button type="button" class="close" data-dismiss="alert">
<span aria-hidden="true">&times;</span>
<span class="sr-only">Close</span>
</button>
{% for message in messages %}
{{ message }}.<br/>
{% endfor %}
</div>
{% endif %}
</section>
<div class="chatapi-windows "></div>
<div class="panel panel-default">
<div class="panel-heading">
<ul class="nav nav-pills">
<li role="presentation" class="active"><a href="{% url 'monitor-new-media-public-opinion-weixin' %}">微信</a></li>
<li role="presentation"><a href="{% url 'monitor-new-media-public-opinion-toutiao' %}">头条</a></li>
<li role="presentation"><a href="{% url 'monitor-new-media-public-opinion-weibo' %}">微博</a></li>
<li role="presentation"><a href="{% url 'monitor-new-media-public-opinion-qita' %}">其他</a></li>
</ul>
</div>
<div class="panel-body">
<div class="panel panel-default">
<div class="panel-heading">微信热点</div>
<div class="panel-body">
<div class="col-lg-6" style="margin-top: 10px">
<div class="col-lg-3">
公众号
<select id="basicSelect">
<option value="weixin_all">全部</option>
{% for w in weixin %}
<option value="{{ w.id }}">{{ w.code }}</option>
{% endfor %}
</select>
</div>
<div class="col-lg-3">
分组
<select id="basicSelect">
<option value="group_all">全部</option>
{% for g in group %}
<option value="{{ g.id }}">{{ g.name }}</option>
{% endfor %}
</select>
</div>
</div>
<div class="col-lg-6">
<div class="input-group">
<input type="text" class="form-control" placeholder="Search for...">
<span class="input-group-btn">
<button class="btn btn-default" type="button">Go!</button>
</span>
</div><!-- /input-group -->
</div>
</div>
<div class="panel panel-default">
<!-- Default panel contents -->
<table class="table table-hover" style="font-size: 14px">
<thead>
<tr>
<th style="text-align: center">公众号</th>
<th style="text-align: center">封面</th>
<th style="text-align: center">标题</th>
<th style="text-align: center">评论数</th>
<th style="text-align: center">回复数</th>
<th style="text-align: center">发布时间</th>
</tr>
</thead>
<tbody>
{% for r in res %}
<tr>
<td style="vertical-align: middle;text-align: center">{{ r.code }}</td>
<td style="vertical-align: middle;text-align: center"><img src="{{ r.image.url }}" style="width: 40px;height: 40px;"
class="img-circle"></td>
<td style="vertical-align: middle;text-align: center">{{ r.title }}</td>
<td style="vertical-align: middle;text-align: center">{{ r.comment }}</td>
<td style="vertical-align: middle;text-align: center">{{ r.reply }}</td>
<td style="vertical-align: middle;text-align: center">{{ r.date }}</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
</div>
</div>
</section>
</div>
</body>
{% endblock %}
{% extends 'dashboard/base/base.html' %}
{% load static %}
{% block content %}
<body class=" ">
<!-- START TOPBAR -->
<!-- START CONTAINER -->
<div class="page-container row-fluid">
<div class="page-sidebar ">
{% include 'dashboard/base/left.html' %}
</div>
<section id="main-content" class=" ">
<section class="wrapper" style='margin-top:60px;display:inline-block;width:100%;padding:15px 0 0 15px;'>
{% if messages %}
<div class="alert alert-success alert-dismissible" role="alert">
<button type="button" class="close" data-dismiss="alert">
<span aria-hidden="true">&times;</span>
<span class="sr-only">Close</span>
</button>
{% for message in messages %}
{{ message }}.<br/>
{% endfor %}
</div>
{% endif %}
</section>
<div class="chatapi-windows "></div>
<div class="panel panel-default">
<div class="panel-heading">
<ul class="nav nav-pills">
<li role="presentation" class="active"><a href="{% url 'monitor-new-media-public-opinion-weixin' %}">微信</a></li>
<li role="presentation"><a href="{% url 'monitor-new-media-public-opinion-toutiao' %}">头条</a></li>
<li role="presentation"><a href="{% url 'monitor-new-media-public-opinion-weibo' %}">微博</a></li>
<li role="presentation"><a href="{% url 'monitor-new-media-public-opinion-qita' %}">其他</a></li>
</ul>
</div>
<div class="panel-body">
<div class="panel panel-default">
<div class="panel-heading">微信热点</div>
<div class="panel-body">
<div class="col-md-8" style="margin-top: 10px">
<div class="col-md-8">
公众号
<select id="basicSelect">
<option value="weixin_all">全部</option>
{% for w in weixin %}
<option value="{{ w.id }}">{{ w.code }}</option>
{% endfor %}
</select>
</div>
<div class="col-md-4">
分组
<select id="basicSelect">
<option value="group_all">全部</option>
{% for g in group %}
<option value="{{ g.id }}">{{ g.name }}</option>
{% endfor %}
</select>
</div>
</div>
<div class="col-md-4">
<div class="input-group">
<input type="text" class="form-control" placeholder="Search for...">
<span class="input-group-btn">
<button class="btn btn-default" type="button">Go!</button>
</span>
</div><!-- /input-group -->
</div>
</div>
<div class="panel panel-default">
<!-- Default panel contents -->
<table class="table table-hover" style="font-size: 14px">
<thead>
<tr>
<th style="text-align: center">公众号</th>
<th style="text-align: center">封面</th>
<th style="text-align: center">标题</th>
<th style="text-align: center">评论数</th>
<th style="text-align: center">回复数</th>
<th style="text-align: center">发布时间</th>
</tr>
</thead>
<tbody>
{% for r in res %}
<tr>
<td style="vertical-align: middle;text-align: center">{{ r.code }}</td>
<td style="vertical-align: middle;text-align: center"><img src="{{ r.image.url }}" style="width: 40px;height: 40px;"
class="img-circle"></td>
<td style="vertical-align: middle;text-align: center">{{ r.title }}</td>
<td style="vertical-align: middle;text-align: center">{{ r.comment }}</td>
<td style="vertical-align: middle;text-align: center">{{ r.reply }}</td>
<td style="vertical-align: middle;text-align: center">{{ r.date }}</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
</div>
</div>
</section>
</div>
</body>
{% endblock %}