<?php if (!defined('SHUIPF_VERSION')) { exit; } ?> <Admintemplate file="Common/Head"/> <body class="J_scroll_fixed"> <div class="wrap J_check_wrap"> <div class="nav"> <ul class="cc"> <li><a href="{:U('Style/index')}">模板管理</a></li> <?php if (\Libs\System\RBAC::authenticate('add')) { ?> <li><a href="{:U("Template/Style/add",array("dir"=>urlencode(str_replace('/','-',$dir)) ))}">在此目录下添加模板</a></li> <?php } ?> </ul> </div> <div class="h_a">模板编辑</div> <form name="myform" id="myform" action="{:U("Template/Style/edit")}" method="post"> <input type="hidden" name="dir" value="{$dir}"/> <input type="hidden" name="file" value="{$file}"/> <div class="table_full"> <table cellpadding="0" cellspacing="0" class="table_form" width="100%"> <tbody> <tr> <th width="120">文件名称</th> <td><input type="text" class="input" validate="required:true, minlength:2, maxlength:30" value="{$file}" readonly></td>
public function public_delthumbs() { //检查是否有删除附件权限 if (\Libs\System\RBAC::authenticate('Attachment/Atadmin/delete') == false) { exit('您没有附件删除权限!'); } $filepath = urldecode(I('get.filepath', '', '')); $reslut = @unlink($filepath); if ($reslut) { exit('1'); } exit('附件删除失败!'); }
<font color="#FF0000">无限制</font> <else /> 多模型 </if> </td> <td align="center"> <?php $op = array(); if (\Libs\System\RBAC::authenticate('item')) { $op[] = '<a href="' . U('Position/item', array('posid' => $vo['posid'])) . '">信息管理</a>'; } if (\Libs\System\RBAC::authenticate('rebuilding')) { $op[] = '<a href="' . U('Position/rebuilding', array('posid' => $vo['posid'])) . '">数据重建</a>'; } if (\Libs\System\RBAC::authenticate('edit')) { $op[] = '<a href="' . U('Position/edit', array('posid' => $vo['posid'])) . '">修改</a>'; } if (\Libs\System\RBAC::authenticate('delete')) { $op[] = '<a class="J_ajax_del" href="' . U('Position/delete', array('posid' => $vo['posid'])) . '">删除</a>'; } echo implode(" | ", $op); ?> </tr> </volist> </tbody> </table> </div> </div> <script src="{$config_siteurl}statics/js/common.js?v"></script> </body> </html>
</tr> </thead> <tbody> <volist name="data" id="vo"> <tr> <td align="left"><input type="checkbox" name="items[]" value="{$vo.id}-{$vo.modelid}" class="J_check" data-yid="J_check_y" data-xid="J_check_x"></td> <td align="left"><input name='listorders[{$vo.catid}-{$vo.id}]' type='text' size='3' value='{$vo.listorder}' class="input"></td> <td align="left">{$vo.id}</td> <td align="left">{$vo.data.title} </td> <td align="center">{:getCategory($vo['catid'],'catname')}</td> <td align="center">{$vo.data.inputtime|date="Y-m-d H:i:s",###}</td> <td align="center"> <a href="{$vo.data.url}" target="_blank">原文</a> | <a onClick="javascript:openwinx('{:U("Content/edit",array("catid"=>$vo['catid'],"id"=>$vo['id'] ))}','')" href="javascript:;">原文编辑</a> <?php if (\Libs\System\RBAC::authenticate('item_manage')) { ?> | <a href="javascript:item_manage({$vo.id},{$vo.posid}, {$vo.modelid},'{$vo.data.title}')">信息管理</a> <?php } ?> </td> </tr> </volist> </tbody> </table> <div class="p10"> <div class="pages"> {$Page} </div> </div> </div> <div class="">
</table> </div> <script type="text/javascript"> //全局变量 var GV = { DIMAUB: "__ROOT__/", JS_ROOT: "__JS__/" }; </script> <script src="__JS__/wind.js"></script> <script src="__JS__/jquery.min.js"></script> <script src="__JS__/common.js"></script> <literal> <script> <?php if (\Libs\System\RBAC::authenticate('Admins/Index/cache')) { ?> $("#deletecache").on('click',function(e){ e.preventDefault(); e.stopPropagation(); iframeJudge({ elem: $(this), href: "<?php echo U('Index/cache'); ?> ", id: "deletecache" }); }); <?php }
if (\Libs\System\RBAC::authenticate('createhtml')) { $op[] = '<a href="' . U("Custompage/createhtml", array('tempid' => $vo['tempid'])) . '">更新</a>'; } echo implode(' | ', $op); ?> </td> </tr> </volist> </tbody> </table> <div class="p10"> <div class="pages"> {$Page} </div> </div> </div> <div class="btn_wrap"> <div class="btn_wrap_pd"> <label class="mr20"><input type="checkbox" class="J_check_all" data-direction="y" data-checklist="J_check_y">全选</label> <?php if (\Libs\System\RBAC::authenticate('createhtml')) { ?> <button class="btn btn_submit mr10 J_ajax_submit_btn" type="submit">生成自定义页面</button> <?php } ?> </div> </div> </form> </div> <script src="{$config_siteurl}statics/js/common.js"></script> </body> </html>
if (\Libs\System\RBAC::authenticate('generate')) { $op[] = '<a href="' . U("Customlist/generate", array('id' => $vo['id'])) . '">更新</a>'; } echo implode(' | ', $op); ?> </td> </tr> </volist> </tbody> </table> <div class="p10"> <div class="pages"> {$Page} </div> </div> </div> <div class="btn_wrap"> <div class="btn_wrap_pd"> <label class="mr20"><input type="checkbox" class="J_check_all" data-direction="y" data-checklist="J_check_y">全选</label> <?php if (\Libs\System\RBAC::authenticate('generate')) { ?> <button class="btn btn_submit mr10 J_ajax_submit_btn" type="submit">生成列表</button> <?php } ?> </div> </div> </form> </div> <script src="{$config_siteurl}statics/js/common.js"></script> </body> </html>
public function public_step_3() { if (\Libs\System\RBAC::authenticate('install') !== true) { $this->errors('您没有该项权限!'); } $module = I('get.module'); S('Cloud', NULL); if ($this->Module->install($module)) { ShuipFCMS()->Dir->delDir(APP_PATH . "{$module}/Install/"); $this->success('模块安装成功!'); } else { $error = $this->Module->error; //删除目录 ShuipFCMS()->Dir->delDir(APP_PATH . $module); $this->error($error ? $error : '模块安装失败!'); } }
$operate[] = '<a href="' . U("edit", array("modelid" => $vo['modelid'])) . '">修改</a>'; } if (\Libs\System\RBAC::authenticate('Field/index')) { $operate[] = '<a href="' . U("Field/index", array("modelid" => $vo['modelid'])) . '">字段管理</a>'; } if (\Libs\System\RBAC::authenticate('disabled')) { if ($vo['disabled'] == 0) { $operate[] = '<a href="' . U("disabled", array("modelid" => $vo['modelid'], "disabled" => 0)) . '">禁用</a>'; } else { $operate[] = '<a href="' . U("disabled", array("modelid" => $vo['modelid'], "disabled" => 1)) . '"><font color="#FF0000">启用</font></a>'; } } if (\Libs\System\RBAC::authenticate('delete')) { $operate[] = '<a class="J_ajax_del" href="' . U("delete", array("modelid" => $vo['modelid'])) . '">删除</a>'; } if (\Libs\System\RBAC::authenticate('export')) { $operate[] = '<a href="' . U("export", array("modelid" => $vo['modelid'])) . '">导出模型</a>'; } echo implode(' | ', $operate); ?> </td> </tr> </volist> </tbody> </table> </div> </div> <script src="{$config_siteurl}statics/js/common.js?v"></script> <script type="text/javascript"> </script>
public function public_upgrade_3() { if (\Libs\System\RBAC::authenticate('upgrade') !== true) { $this->errors('您没有该项权限!'); } $name = I('get.name'); S('Cloud', NULL); if (D('Addons/Addons')->upgradeAddon($name)) { ShuipFCMS()->Dir->delDir(PROJECT_PATH . "Addon/{$name}/Upgrade/"); $this->success('插件升级成功!'); } else { $error = $this->Module->error; $this->error($error ? $error : '插件升级失败!'); } }