123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128 |
- <?php /* Smarty version 2.6.17, created on 2018-05-26 12:09:19
- compiled from admin/activity/activity_list.html */ ?>
- <?php $_smarty_tpl_vars = $this->_tpl_vars;
- $this->_smarty_include(array('smarty_include_tpl_file' => "./admin/header.html", 'smarty_include_vars' => array()));
- $this->_tpl_vars = $_smarty_tpl_vars;
- unset($_smarty_tpl_vars);
- ?>
- <?php $_smarty_tpl_vars = $this->_tpl_vars;
- $this->_smarty_include(array('smarty_include_tpl_file' => "./admin/left.html", 'smarty_include_vars' => array()));
- $this->_tpl_vars = $_smarty_tpl_vars;
- unset($_smarty_tpl_vars);
- ?>
- <?php $_smarty_tpl_vars = $this->_tpl_vars;
- $this->_smarty_include(array('smarty_include_tpl_file' => "./admin/nav.html", 'smarty_include_vars' => array()));
- $this->_tpl_vars = $_smarty_tpl_vars;
- unset($_smarty_tpl_vars);
- ?>
- <?php $_smarty_tpl_vars = $this->_tpl_vars;
- $this->_smarty_include(array('smarty_include_tpl_file' => "get_kindeditor.html", 'smarty_include_vars' => array()));
- $this->_tpl_vars = $_smarty_tpl_vars;
- unset($_smarty_tpl_vars);
- ?>
- <script type="text/javascript" src="<?php echo $this->_tpl_vars['web_cfg']['cdn']; ?>
- /public/static/js/jquery-1.7.2.min.js"></script>
- <link rel="stylesheet" href="<?php echo $this->_tpl_vars['web_cfg']['cdn']; ?>
- /public/static/js/jquery.minicolors.css" />
- <script type="text/javascript" src="<?php echo $this->_tpl_vars['web_cfg']['cdn']; ?>
- /public/static/js/jquery.minicolors.js"></script>
- <style>
- .set-nav {
- margin: 0 auto;
- }
- .set-nav-hr {
- background-color: #ddd;
- height: 1px;
- position: relative;
- }
- .form-group label {
- font-weight: 600;
- }
- .checkbox-inline, .radio-inline {
- font-weight: 400!important;
- }
- .rowlabel {
- font-weight: 300!important;
- }
- .music_play_hide {
- display:none;
- }
- </style>
- <div class="panel panel-default">
- <div class="panel-body">
- <div class="row">
- <?php if ($this->_tpl_vars['eventsData']): ?>
- <div class="col-md-2">暂无信息</div>
- <?php endif; ?>
-
- <?php $_from = $this->_tpl_vars['allEventsData']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
- foreach ($_from as $this->_tpl_vars['index'] => $this->_tpl_vars['item']):
- ?>
- <div class="col-md-2">
- <div class="thumbnail">
- <div style="height: 20px;width:100%;background-color:#666; text-align: right;"><a id="<?php echo $this->_tpl_vars['item']['id']; ?>
- " class="menu-list memberinfo del" href="javascript:;" style="margin-right: 10px;">删除</a></div>
- <img src="<?php echo $this->_tpl_vars['item']['img_url']; ?>
- " alt="<?php echo $this->_tpl_vars['item']['events_name']; ?>
- " >
- <div class="caption">
- <a class="ks-overflow" title="<?php echo $this->_tpl_vars['item']['events_name']; ?>
- " href="<?php echo $this->_tpl_vars['web_cfg']['domain']; ?>
- ?c=Admin_Activity_SetBasics&a=PageShow&events_id=<?php echo $this->_tpl_vars['index']; ?>
- " >[<?php echo $this->_tpl_vars['allTypeData'][$this->_tpl_vars['item']['type']]['desc']; ?>
- ] <?php echo $this->_tpl_vars['item']['events_name']; ?>
- </a>
- </div>
- </div>
- </div>
- <?php endforeach; endif; unset($_from); ?>
- </div>
- <div class="page"><?php echo $this->_tpl_vars['page_html']; ?>
- </div>
- </div>
- </div>
- <script>
- KISSY.use('node, io', function (S, Node, IO) {
- var $ = S.all;
-
- // 删除活动
- $(".del").on('click', function() {
- var id = $(this).attr('id');
- var ck = window.confirm("您确定删除吗?");
- if(ck){
- new IO({
- type: "post"
- , url: VG.conf.root_domain + '/?c=Admin_Activity_ActivityList&a=ReqDel'//删除操作
- , data: {'id':id}
- , success: function (data) {
- alert('删除成功');
- location.reload();
- }
- , error: function (NULL, textStatus) {
- alert("请求服务器失败,原因:"+textStatus);
- }
- , dataType: "json"
- });
- }
- });
-
- var width = $(".col-md-2 img").width();
- $(".col-md-2 img").height(width/2);
-
- });
- </script>
- <?php $_smarty_tpl_vars = $this->_tpl_vars;
- $this->_smarty_include(array('smarty_include_tpl_file' => "./admin/bottom.html", 'smarty_include_vars' => array()));
- $this->_tpl_vars = $_smarty_tpl_vars;
- unset($_smarty_tpl_vars);
- ?>
|