<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
<meta name="author" content="HANCHAO"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
<?php $csscommon="/Public/bootstrap/css/bootstrap.min.css" ?>
<?php $csscommon.="|/Public/HanChaoUI/css/hanchaoui.css" ?>
<?php $CSSARR[]=THEME_PATH."/common/css/main.css" ?>
<?php $CSSARR[]="/Public/HanChaoUI/css/weebox.css" ?>
<link rel="stylesheet" href="<?php echo min_css($CSSARR,$csscommon);?>" media="all"/>
<?php $jscommon="/Public/script/jquery.min.js" ?>
<?php $jscommon.="|/Public/bootstrap/js/bootstrap.min.js" ?>
<?php $JSARR['min2']=THEME_PATH."/common/js/common.js" ?>
<?php $JSARR['min3']="/Public/HanChaoUI/js/weebox.js" ?>
<script language="javascript">var URL = '/admin.php?s=/contract/';var THEME_COLOR = '';var ROOT_PATH = '/';var APP   =   '/admin.php?s=/';var CONTROLLER_NAME   =   '<?php echo (CONTROLLER_NAME); ?>';var THEME_PATH   =   '<?php echo (TPL_PATH); ?>/';</script>
<script type="text/javascript" src="<?php echo min_js($JSARR,$jscommon);?>"></script><!--[if IE]>
<link href="/Public/bootstrap/css/bootstrap.ie.css" rel="stylesheet" type="text/css"/>
 <script src="/Public/bootstrap/js/html5shiv.js"></script>
<![endif]-->
<script language="javascript">
$(function($){
    $(window.parent.document).find('#loading').hide();
    var topid='<?php echo ($_GET['topid']); ?>';
    var leftid='<?php echo ($_GET['leftid']); ?>';
    changemenu(topid,leftid);
});
function changemenu(topid,leftid){
    if(!topid && !leftid)return false;
    if(topid)parent._OPENleft(topid);
    if(leftid){
        $(window.parent.document).find('#_OPENright'+leftid).parent().prev().click();
        $(window.parent.document).find('#_OPENright'+leftid+' a').click();
    }
}
</script>
<title><?php echo (L("website_manage")); ?>Powered by hanchao</title>
</head>
<body><?php if(!empty($big_menu)): ?><div class="pad-lr-10 col-sm-12">
    <div class="btn-handle mt15">
   <?php if(is_array($big_menu)): foreach($big_menu as $k=>$vo): ?><a class="btn <?php if(!empty($menu_hover)): if(in_array(($k), is_array($menu_hover)?$menu_hover:explode(',',$menu_hover))): ?>btn-primary<?php else: ?>btn-default<?php endif; ?>                
   <?php else: ?>btn-primary<?php endif; ?>" href="<?php echo (isset($vo)?$vo:''); ?>"><?php echo (isset($k)?$k:''); ?></a>&nbsp;&nbsp;<?php endforeach; endif; ?>
    </div>
</div><?php endif; ?>
<div class="pad-lr-10 w_auto col-sm-12">
    <div>
        <div class="mt15">
            <ul class="nav nav-tabs" role="tablist">
              <!--   <li role="presentation"><a href="<?php echo geturl('applylist');?>">服务加入申请</a></li>
                <li role="presentation"><a href="<?php echo geturl('quitlist');?>">服务退出申请</a></li>
                <li role="presentation"><a href="<?php echo geturl('contractlist');?>">店铺保障服务</a></li> -->

                <!-- <li role="presentation" class="active"><a href="<?php echo geturl('citemlist');?>">保障服务管理</a></li> -->
                <li role="presentation" class="active"><a href="<?php echo geturl('citemlist');?>">消费者保障服务</a></li>
            </ul>
            <div class="cont_hanchao pd15 tab-content" id="myTabContent">
                <div class="prompt_div bg-info" id="explanation">
                    <p class="text-primary" id="checkZoom" ><i class="glyphicon glyphicon-bell mr5"></i>温馨提示<span id="explanationZoom" title="收起提示"></span></p>
                    <ul>
                        <li><i>·</i>列表为平台消费者保障服务项目</li>
                        <li><i>·</i>在列表页上双击排序可快速修改.</li>
                        <li><i>·</i>点击编辑可进入编辑，内可设置服务保障的简介链接、名称、图片、保证金等.</li>
                        <li><i>·</i>点击“删除”将彻底删除所选保障服务，该功能请谨慎使用！</li>
                    </ul>
                </div>
                <div class="toolbars-hanchao mt15 clearfix">
                    <div><a href="<?php echo geturl('ProjectLabel/add',array('type'=>$type));?>" class="btn btn-primary">添加保障服务</a></div>
                </div>
                <form id="myform" name="myform" action="<?php echo geturl('delete');?>" method="post">
                    <table class="table table-hover table-striped table-hanchao mt15 table-bordered">
                        <thead>
                        <tr>
                            <th width="35"><input type="checkbox" class="check_box_c" value="" id="check_box" onclick="selectall('id[]');" /></th>
                            <th width="80"><?php echo orderurl('LAN_ID','id');;?></th>
                            <th width="200"><?php echo orderurl('LAN_NAME','label_name');;?></th>
                            <th width="100"><?php echo orderurl('保证金','price');;?></th>
                            <th width="200"><?php echo orderurl('简介链接','brief_url');;?></th>
                            <th width="80"><?php echo orderurl('LAN_SORT','sort');;?></th>
                            <th width="80"><?php echo orderurl('LAN_STATUS','status');;?></th>
                            <th width="200"><?php echo (L("MANAGE")); ?></th>
                        </tr>
                        </thead>
                        <tbody>
                        <?php if(is_array($list)): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$val): $mod = ($i % 2 );++$i;?><tr>
                                <td><input type="checkbox" value="<?php echo (isset($val["id"])?$val["id"]:''); ?>" name="id[]" /></td>
                                <td><?php echo (isset($val["id"])?$val["id"]:''); ?></td>
                                <td><?php echo (isset($val["label_name"])?$val["label_name"]:''); ?></td>
                                <td><?php echo (isset($val["price"])?$val["price"]:''); ?></td>
                                <td><?php echo (isset($val["brief_url"])?$val["brief_url"]:''); ?></td>
                                <td ondblclick="editeTable(this,'sort','<?php echo (isset($val["id"])?$val["id"]:''); ?>','sort','ProjectLabel')"><?php echo (isset($val["sort"])?$val["sort"]:''); ?></td>
                                <td><img src="/Public/images/status_<?php echo (isset($val["status"])?$val["status"]:''); ?>.gif" /></td>
                                <td >
                                    <a href="<?php echo geturl('ProjectLabel/edit', array('id'=>$val['id'],'type'=>$val['type']));?>"><?php echo (L("EDIT")); ?></a> <a href="javascript:;" onclick="$.showConfirm('<?php echo (L("SURE_DELETE")); ?>',function(){window.location.href='<?php echo geturl('delete',array('id'=>$val['id']));?>'},'hc')"><?php echo (L("DELETE")); ?></a>
                                </td>
                            </tr><?php endforeach; endif; else: echo "" ;endif; ?>
                        </tbody>
                    </table>
                    <div class="btn_party mt15">
                        <label for="check_box" class="btn btn-default"><?php echo (L("SELECT_ALL")); ?>/<?php echo (L("CANCEL")); ?></label>
                        <button type="button" class="btn btn-danger" onclick="$.showConfirm('<?php echo (L("SURE_DELETE")); ?>',function(){$('#myform').submit();},'hc')"><?php echo (L("ALL_DEL")); ?></button>
                    </div>
                    <nav class="pages_hanchao" id="pages"><?php echo (isset($_page)?$_page:''); ?></nav>
                </form>
            </div>
        </div>
    </div>
</div>
</body>
</html>