Browse Source

get_cat_path

master
林一峰 7 years ago
parent
commit
c3f8b8e471
  1. 4
      app/Common/function.php
  2. 2
      resources/views/admin/searchword/add.blade.php
  3. 4
      resources/views/admin/userrole/index.blade.php
  4. 1
      resources/views/home/index/category.blade.php
  5. 4
      resources/views/home/index/productcat.blade.php

4
app/Common/function.php

@ -92,7 +92,7 @@ function get_front_url($param='')
}
else if($param['type'] == 'search')
{
//tags页面
//搜索关键词页面
$url .= '/s'.$param['searchid'];
}
else if($param['type'] == 'productlist')
@ -707,7 +707,7 @@ function get_cat_path($cat,$table='arctype',$type='list')
if($row->pid<>0)
{
get_cat_path($row->pid);
get_cat_path($row->pid, $table, $type);
}
return $temp;

2
resources/views/admin/searchword/add.blade.php

@ -21,7 +21,7 @@
</tr>
<tr>
<td align="right">模板名称:</td>
<td><input name="template" type="text" id="template" value="tag" size="20"></td>
<td><input name="template" type="text" id="template" value="searchword" size="20"></td>
</tr>
<tr>
<td align="right" style="vertical-align:middle;">缩略图:</td>

4
resources/views/admin/userrole/index.blade.php

@ -13,13 +13,13 @@
<th>管理</th>
</tr></thead>
<tbody>
<?php foreach($posts as $row){ ?><tr>
<?php if($posts){foreach($posts as $row){ ?><tr>
<td><?php echo $row->id; ?></td>
<td><?php echo $row->name; ?></td>
<td><?php echo $row->des; ?></td>
<td><?php if($row->status==0){echo '启用';}else{echo '禁用';} ?></td>
<td><?php if($row->id<>1){ ?><a href="/fladmin/userrole/permissions?id=<?php echo $row->id; ?>">权限设置</a> | <?php } ?><a href="/fladmin/userrole/edit?id=<?php echo $row->id; ?>">修改</a><?php if($row->id<>1){ ?> | <a onclick="delconfirm('/fladmin/userrole/del?id=<?php echo $row->id; ?>')" href="javascript:;">删除</a><?php } ?></td>
</tr><?php } ?>
</tr><?php }} ?>
</tbody></table></div><!-- 表格结束 --></form><!-- 表单结束 -->
<nav aria-label="Page navigation">{{ $posts->links() }}</nav>

1
resources/views/home/index/category.blade.php

@ -19,7 +19,6 @@
</div><!--/.col-xs-12.col-sm-9-->
<div class="col-xs-12 col-sm-3 sidebar-offcanvas" id="sidebar">
<div class="panel panel-info">
<div class="panel-heading">热门推荐</div>
<div class="list-group"><?php $posts=arclist(array("row"=>5,"typeid"=>$post['id'],"orderby"=>'rand()'));if($posts){foreach($posts as $row){ ?>

4
resources/views/home/index/productcat.blade.php

@ -11,9 +11,7 @@
<a href="<?php echo get_front_url(array("id"=>$row['id'],"type"=>'productdetail')); ?>" target="_blank">
<img src="<?php echo $row['litpic']; ?>" alt="<?php echo $row['title']; ?>" class="imgzsy">
<p style="padding-top:10px;"><?php echo $row['title']; ?></p>
</a>
</div>
<?php }} ?>
</a></div><?php }} ?>
<br class="cl">
<div class="pages"><ul><?php echo $pagenav; ?></ul><div class="cl"></div></div>
</div></div><!-- /.container -->

Loading…
Cancel
Save