Server : nginx/1.22.1 System : Linux iZwz9daxib3w3i063fw434Z 3.10.0-1127.19.1.el7.x86_64 #1 SMP Tue Aug 25 17:23:54 UTC 2020 x86_64 User : www ( 1000) PHP Version : 5.6.40 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv Directory : /www/wwwroot/www.jkmold.com/phpcms/modules/banner/templates/ |
<?php defined('IN_ADMIN') or exit('No permission resources.'); include $this->admin_tpl('header','admin');?> <style type="text/css"> .table_form thead tr th,.table_form tbody tr td{ text-align:center; border:1px solid #ddd; } .table_form thead tr th{ font-size:15px; } .w1 { width:2%; } .w2 { width:7%; } .w3 { width:7%; } .w4 { width:20%; } .w5 { width:20%; } .w6 { width:28%; } .w7 { width:7%; } .w8 { width:9%; } .w1 input{ text-align:center; } </style> <div class="pad-10"> <div class="col-tab"> <ul class="tabBut cu-li"> <?php $i=1; foreach($banner_cates as $r){ $on = ($i == 1) ? "on" : ""; echo "<li id='tab_setting_{$i}' class='$on' onclick=\"SwapTab('setting','on','',{$count},{$i})\">{$r['title']}</li>"; $i++; } ?> </ul> <?php $i = 1; $j = 0; foreach($banner_cates as $k => $r){ ?> <form action="?m=banner&c=banner&a=banner_index&pc_hash=<?php echo $_SESSION['pc_hash']?>" method="post" id="myform"> <div id="div_setting_<?php echo $i ?>" class="contentList pad-10 <?php if($i > 1) echo "hidden"?>"> <table class="table_form" style="width:100%" id="listtable<?php echo $r['id'] ?>" > <thead> <tr> <th>排序</th> <th>id</th> <th>分类id</th> <th>标题</th> <th>图片</th> <th>链接地址</th> <th>状态</th> <th>操作</th> </tr> </thead> <tbody> <?php if(!empty($banner_list[$r['bannerid']])){ foreach($banner_list[$r['bannerid']] as $f){ ?> <input type="hidden" name="bannerid" value="<?php echo $f['bannerid']?>" /> <input type="hidden" name="info[<?php echo $j;?>][id]" value="<?php echo $f['id']?>" /> <tr id="tr<?php echo $j ?>"> <td class="w1"><input type="text" name="info[<?php echo $j;?>][listorder]" value="<?php echo $f['listorder']==0?$f['id']:$f['listorder'];?>" size="2" maxlength="3"/></td> <td class="w2"><?php echo $f['id']?></td> <td class="w3"><?php echo $f['bannerid']?></td> <td class="w4"><?php echo $f['title']?></td> <td class="w5"><img src="<?php echo $f['thum']?>" alt="" style="width:100%;height:51px;"/></td> <td class="w6"><?php echo $f['url']?></td> <td class="w7"> <?php if($f['status']==1){?> <a style="color:green" href="javascript:tab_status(0,<?php echo $f['id']?>);">关闭</a> <?php }else {?> <a style="color:red" href="javascript:tab_status(1,<?php echo $f['id']?>);">开启</a> <?php }?> </td> <td class="w8"> <a href="javascript:banner_del(<?php echo $f['id']?>,0);">删除</a> |  <a href="?m=banner&c=banner&a=banner_edit&pc_hash=<?php echo $_SESSION['pc_hash']?>&id=<?php echo $f['id']?>">编辑</a> </td> </tr> <?php $j++;} ?> <?php }else{?> <tr> <td colspan="8">暂无内容</td> </tr> <?php }?> </tbody> </table> <div class="bk15"></div> <input name="dosubmit" type="submit" value="排序" class="button" /> </form> </div> <?php $i++;} ?> </div> </div> </body> <script type="text/javascript"> function SwapTab(name,cls_show,cls_hide,cnt,cur){ for(i=1;i<=cnt;i++){ if(i==cur){ $('#div_'+name+'_'+i).show(); $('#tab_'+name+'_'+i).attr('class',cls_show); }else{ $('#div_'+name+'_'+i).hide(); $('#tab_'+name+'_'+i).attr('class',cls_hide); } } } function tab_status(status_val,id){ var url='?m=banner&c=banner&a=init&pc_hash='+pc_hash; $.post(url, {status:status_val,id:id},function(data){ layer.msg(data.title, {time: data.times, icon:data.icon},function(){ window.location.reload() }); }, "json"); } function banner_del(id,mid){ layer.confirm('您确定要删除吗,删除不可恢复?', { btn: ['确定','取消'] //按钮 }, function(){ var url='?m=banner&c=banner&a=banner_delete&pc_hash='+pc_hash; $.post(url, {id:id,mid:mid},function(data){ layer.msg(data.title, {time: data.times, icon:data.icon},function(){ window.location.reload() }); }, "json"); }); } </script> </html>