根节点添加功能
parent
600f49c7f7
commit
96b1c2a4aa
@ -1,62 +1,55 @@
|
||||
<link rel="stylesheet" type="text/css" href="/js/jqcloud/jqcloud.css" />
|
||||
<script type="text/javascript" src="/js/jqcloud/jqcloud-1.0.4.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
|
||||
var word_array = [
|
||||
{text: "Lorem", weight: 15},
|
||||
{text: "Ipsum", weight: 9, link: "http://jquery.com/"},
|
||||
{text: "Dolor", weight: 6},
|
||||
{text: "Sit", weight: 7},
|
||||
{text: "Amet", weight: 5}
|
||||
];
|
||||
|
||||
$(function() {
|
||||
$(".inspiration").jQCloud(word_array, {width: 600,height:300});
|
||||
});
|
||||
</script>
|
||||
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<?php if (isset($lastEditList)){ ?>
|
||||
<table class="table table-striped">
|
||||
<caption>最新编辑</caption>
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="col-md-4">#</th>
|
||||
<th class="col-md-16">标题</th>
|
||||
<th class="col-md-4">时间</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php foreach ($lastEditList as $key => $item){ ?>
|
||||
<tr>
|
||||
<td><?php echo $key+1; ?></td>
|
||||
<td><a href="<?php echo site_url('information/edit/' . $item->is_id); ?>" ><?php echo $item->ic_url_title; ?></a></td>
|
||||
<td><?php echo date('m/d/Y',strtotime($item->ic_datetime)); ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</tbody>
|
||||
</table>
|
||||
<?php } ?>
|
||||
</div>
|
||||
<div class="col-md-16">
|
||||
<?php foreach($groupList as $item){ if($item->is_level==0){?>
|
||||
<div class="row"><div class="col-md-24">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading"><?php echo $item->ic_title; ?></div>
|
||||
<div class="panel-body">
|
||||
<ul class="list-inline">
|
||||
<?php if($item->is_level==0){
|
||||
foreach($groupList as $item_child){
|
||||
if($item_child->is_parent_id==$item->is_id){
|
||||
echo ' <li><a href="'.site_url('information/edit/' . $item_child->is_id).'">'.$item_child->ic_title.'</a></li> ';
|
||||
}
|
||||
}
|
||||
} ?>
|
||||
</ul></div></div> </div></div>
|
||||
<?php }} ?>
|
||||
</div>
|
||||
<div class="col-md-2">.col-xs-6 .col-md-4</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<?php if (isset($lastEditList)) { ?>
|
||||
<table class="table table-striped">
|
||||
<caption>最新编辑</caption>
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="col-md-4">#</th>
|
||||
<th class="col-md-16">标题</th>
|
||||
<th class="col-md-4">时间</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php foreach ($lastEditList as $key => $item) { ?>
|
||||
<tr>
|
||||
<td><?php echo $key + 1; ?></td>
|
||||
<td>
|
||||
<a href="<?php echo site_url('information/edit/' . $item->is_id); ?>"><?php echo $item->ic_url_title; ?></a>
|
||||
</td>
|
||||
<td><?php echo date('m/d/Y', strtotime($item->ic_datetime)); ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</tbody>
|
||||
</table>
|
||||
<?php } ?>
|
||||
</div>
|
||||
<div class="col-md-16">
|
||||
<?php foreach ($groupList as $item) {
|
||||
if ($item->is_level == 0) { ?>
|
||||
<div class="row">
|
||||
<div class="col-md-24">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading"><?php echo $item->ic_title; ?> <span class="pull-right" title="添加节点"><a href="<?php echo site_url('city/addnode/'.$item->is_id) ?>">+</a></span>
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<ul class="list-inline">
|
||||
<?php if ($item->is_level == 0) {
|
||||
foreach ($groupList as $item_child) {
|
||||
if ($item_child->is_parent_id == $item->is_id) {
|
||||
echo ' <li><a href="' . site_url('information/edit/' . $item_child->is_id) . '">' . $item_child->ic_title . '</a></li> ';
|
||||
}
|
||||
}
|
||||
} ?>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php }
|
||||
} ?>
|
||||
</div>
|
||||
<div class="col-md-2">.col-xs-6 .col-md-4</div>
|
||||
</div>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue