737 lines
31 KiB
PHP
737 lines
31 KiB
PHP
<?php if (!defined("RUNTIME")) exit(); /*a:5:{s:65:"C:\lewis\phpstudy_pro\WWW\foxcms\app\admin\view\article\edit.html";i:1732932220;s:67:"C:\lewis\phpstudy_pro\WWW\foxcms\app\admin\view\foxcms_content.html";i:1732932220;s:56:"C:\lewis\phpstudy_pro\WWW\foxcms\app\admin\view\css.html";i:1732932220;s:64:"C:\lewis\phpstudy_pro\WWW\foxcms\app\admin\view\footed-copy.html";i:1732932220;s:59:"C:\lewis\phpstudy_pro\WWW\foxcms\app\admin\view\script.html";i:1732932220;}*/ ?>
|
||
<!DOCTYPE html>
|
||
<html lang="cn">
|
||
<head>
|
||
<meta charset="UTF-8" />
|
||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||
<title><?php echo xn_cfg('base.sys_name'); ?></title>
|
||
<link rel="stylesheet" href="<?php echo htmlentities($staticPath); ?>css/foxui-1.32.min.css" />
|
||
<link rel="stylesheet" href="<?php echo htmlentities($staticPath); ?>css/common.min.css" />
|
||
<link rel="stylesheet" href="<?php echo htmlentities($staticPath); ?>css/admin_common.css" />
|
||
|
||
|
||
</head>
|
||
<body>
|
||
<div class="foxcms-container company-introduction-page-container">
|
||
<div class="foxcms-header">
|
||
<div class="foxcms-logo">
|
||
<img style="width: 100px;" src="/static/images/foxcms_logo.svg">
|
||
</div>
|
||
<div class="foxcms-modal">
|
||
<?php if($clickName): ?>
|
||
<p class="foxui-ellipsis foxui-padding-right-8"><?php echo htmlentities($clickName); ?></p>
|
||
<?php else: ?>
|
||
<button class="foxui-text" onclick="window.history.go(-1)">
|
||
<i class="foxui-icon-fanhui-o"></i>
|
||
<span>返回</span>
|
||
</button>
|
||
<?php endif; ?>
|
||
</div>
|
||
<div class="foxcms-bar">
|
||
<div class="foxcms-bar-left">
|
||
<ul class="foxui-breadcrumb">
|
||
<?php if(is_array($breadcrumb) || $breadcrumb instanceof \think\Collection || $breadcrumb instanceof \think\Paginator): if( count($breadcrumb)==0 ) : echo "" ;else: foreach($breadcrumb as $key=>$vo): ?>
|
||
<li class="foxui-breadcrumb-item">
|
||
<a href="javascript:void(0)"><?php echo htmlentities($vo['title']); ?></a>
|
||
</li>
|
||
<?php endforeach; endif; else: echo "" ;endif; ?>
|
||
</ul>
|
||
</div>
|
||
|
||
<div class="foxcms-bar-right">
|
||
<div class="foxui-dropdown lang-select">
|
||
<?php if(sizeof($otherLangs) > 0): ?>
|
||
<button class="foxui-dropdown-handle foxui-dropdown-icon lang-btn" data-trigger="hover" data-lang="<?php echo htmlentities($curlang['lang']); ?>"><?php echo htmlentities($curlang['name']); ?></button>
|
||
<div class="foxui-dropdown-menu">
|
||
<ul class="foxui-dropdown-slide">
|
||
<?php foreach($otherLangs as $key=>$vo): ?>
|
||
<li class="foxui-dropdown-item" data-id="<?php echo htmlentities($vo['id']); ?>" data-lang="<?php echo htmlentities($vo['lang']); ?>" onclick="langHandover(this)"><?php echo htmlentities($vo['name']); ?></li>
|
||
<?php endforeach; ?>
|
||
</ul>
|
||
</div>
|
||
<?php else: ?>
|
||
<button class="foxui-dropdown-handle foxui-dropdown-icon lang-btn display-none" data-trigger="hover" data-lang="<?php echo htmlentities($curlang['lang']); ?>"><?php echo htmlentities($curlang['name']); ?></button>
|
||
<?php endif; ?>
|
||
</div>
|
||
|
||
<div class="item icon index">
|
||
<i class="foxui-icon-shouye-o"></i>
|
||
</div>
|
||
<div class="item role">
|
||
<div class="foxui-dropdown">
|
||
<button class="foxui-text foxui-dropdown-handle foxui-dropdown-icon" data-trigger="hover" id="barService">
|
||
<i class="foxui-icon-kefu-o"></i>
|
||
</button>
|
||
</div>
|
||
<div class="foxui-dropdown dropdown">
|
||
<button class="foxui-text foxui-dropdown-handle foxui-dropdown-icon" data-trigger="hover"><?php echo session("admin_auth.nickname"); ?></button>
|
||
<div class="foxui-dropdown-menu">
|
||
<ul class="foxui-dropdown-slide">
|
||
<li class="foxui-dropdown-item" data-id="1">个人中心</li>
|
||
<li class="foxui-dropdown-item" data-id="2">修改密码</li>
|
||
<li class="foxui-dropdown-item" data-id="3">更新缓存</li>
|
||
<li class="foxui-divided" data-id="4"></li>
|
||
<li class="foxui-dropdown-item" data-id="5">退出系统</li>
|
||
</ul>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="item icon logout">
|
||
<a onclick="logout()"><i class="foxui-icon-tuichu-o"></i></a>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="foxcms-main">
|
||
|
||
<!--左侧第一栏菜单-->
|
||
<div class="foxcms-nav">
|
||
<ul>
|
||
<?php if(is_array($menu) || $menu instanceof \think\Collection || $menu instanceof \think\Paginator): if( count($menu)==0 ) : echo "" ;else: foreach($menu as $key=>$vo): ?>
|
||
<li>
|
||
<a class="<?php if($pid == $vo['id']): ?>active<?php endif; ?>" href="<?php echo htmlentities($vo['name']); ?>">
|
||
<i class="foxui-<?php echo htmlentities($vo['icon']); ?>"></i>
|
||
<span><?php echo htmlentities($vo['title']); ?></span>
|
||
</a>
|
||
</li>
|
||
<?php endforeach; endif; else: echo "" ;endif; ?>
|
||
</ul>
|
||
</div>
|
||
|
||
<div class="foxcms-menu-nav" style="<?php echo htmlentities($fox_menu); ?>">
|
||
<div class="foxcms-menu-nav-inner">
|
||
<div class="foxcms-menu-expand-all">
|
||
<i class="foxui-icon-xiazhan-o"></i>
|
||
</div>
|
||
|
||
<ul class="foxui-menu foxui-type-vertical">
|
||
|
||
<?php if(is_array($chileMenus) || $chileMenus instanceof \think\Collection || $chileMenus instanceof \think\Paginator): if( count($chileMenus)==0 ) : echo "" ;else: foreach($chileMenus as $key=>$cm): if(empty($cm['_data']) != true): ?>
|
||
<li class="foxui-menu-submenu">
|
||
<div class="foxui-menu-handle foxui-menu-icon <?php if($clickIdArr[0] == $cm['id']): ?>is-active <?php if($clickId == $cm['id']): ?> bg <?php endif; ?><?php endif; ?>">
|
||
<span><a class="foxui-ellipsis foxui-padding-right-12" href="<?php echo htmlentities($contentPath); ?>?bcid=<?php echo htmlentities($cm['id']); ?>"><?php echo htmlentities($cm['name']); if($cm['reference_model'] == 0): ?>(<?php echo htmlentities($cm['dataCount']); ?>)<?php endif; ?></a></span>
|
||
</div>
|
||
<div class="foxui-menu-menu" style="<?php if($clickIdArr[0] == $cm['id']): ?> display: block<?php endif; ?>">
|
||
<ul class="foxui-menu-slide">
|
||
<?php if(is_array($cm['_data']) || $cm['_data'] instanceof \think\Collection || $cm['_data'] instanceof \think\Paginator): if( count($cm['_data'])==0 ) : echo "" ;else: foreach($cm['_data'] as $key=>$ccm): if(empty($ccm['_data']) != true): ?>
|
||
<li class="foxui-menu-item foxui-menu-child">
|
||
<div class="foxui-menu-handle foxui-menu-icon <?php if($clickIdArr[1] == $ccm['id']): ?> is-active <?php endif; if($clickId == $ccm['id']): ?> bg<?php endif; ?>">
|
||
<span>
|
||
<a class="foxui-ellipsis foxui-padding-right-12" href="<?php echo htmlentities($contentPath); ?>?bcid=<?php echo htmlentities($cm['id']); ?>_<?php echo htmlentities($ccm['id']); ?>">
|
||
<?php echo htmlentities($ccm['name']); if($ccm['reference_model'] == 0): ?>(<?php echo htmlentities($ccm['dataCount']); ?>)<?php endif; ?>
|
||
</a>
|
||
</span>
|
||
</div>
|
||
<div class="foxui-menu-menu" style="<?php if($clickIdArr[1] == $ccm['id']): ?> display: block<?php endif; ?>">
|
||
<ul class="foxui-menu-slide">
|
||
|
||
<?php if(is_array($ccm['_data']) || $ccm['_data'] instanceof \think\Collection || $ccm['_data'] instanceof \think\Paginator): if( count($ccm['_data'])==0 ) : echo "" ;else: foreach($ccm['_data'] as $key=>$cccm): ?>
|
||
<li class="foxui-menu-item <?php if($clickId == $cccm['id']): ?>is-active<?php endif; ?>">
|
||
<a class="foxui-ellipsis foxui-padding-right-12" href="<?php echo htmlentities($contentPath); ?>?bcid=<?php echo htmlentities($cm['id']); ?>_<?php echo htmlentities($ccm['id']); ?>_<?php echo htmlentities($cccm['id']); ?>">
|
||
<?php echo htmlentities($cccm['name']); if($cccm['reference_model'] == 0): ?>(<?php echo htmlentities($cccm['dataCount']); ?>)<?php endif; ?>
|
||
</a>
|
||
</li>
|
||
<?php endforeach; endif; else: echo "" ;endif; ?>
|
||
</ul>
|
||
</div>
|
||
</li>
|
||
<?php else: ?>
|
||
<li class="foxui-menu-item <?php if($clickId == $ccm['id']): ?>is-active<?php endif; ?>">
|
||
<a class="foxui-ellipsis foxui-padding-right-12" href="<?php echo htmlentities($contentPath); ?>?bcid=<?php echo htmlentities($cm['id']); ?>_<?php echo htmlentities($ccm['id']); ?>">
|
||
<?php echo htmlentities($ccm['name']); if($ccm['reference_model'] == 0): ?>(<?php echo htmlentities($ccm['dataCount']); ?>)<?php endif; ?>
|
||
</a>
|
||
</li>
|
||
<?php endif; ?>
|
||
<?php endforeach; endif; else: echo "" ;endif; ?>
|
||
</ul>
|
||
</div>
|
||
</li>
|
||
<?php else: ?>
|
||
<li class="foxui-menu-item <?php if($clickId == $cm['id']): ?>is-active<?php endif; ?>">
|
||
<a class="foxui-ellipsis foxui-padding-right-12" href="<?php echo htmlentities($contentPath); ?>?bcid=<?php echo htmlentities($cm['id']); ?>"><?php echo htmlentities($cm['name']); if($cm['reference_model'] == 0): ?>(<?php echo htmlentities($cm['dataCount']); ?>)<?php endif; ?></a>
|
||
</li>
|
||
<?php endif; ?>
|
||
<?php endforeach; endif; else: echo "" ;endif; ?>
|
||
</ul>
|
||
</div>
|
||
<div class="foxcms-menu-nav-fold">
|
||
<i class="foxui-icon-zuizuo"></i>
|
||
</div>
|
||
</div>
|
||
<div class="foxcms-article foxui-scroll-container">
|
||
<div class="foxcms-content">
|
||
<!-- page content -->
|
||
|
||
<input name="bcid" value="<?php echo htmlentities($bcid); ?>" type="hidden" />
|
||
<input name="id" value="<?php echo htmlentities($id); ?>" type="hidden" />
|
||
<div class="foxcms-content-inner">
|
||
<!-- page content -->
|
||
<div class="company-news-add-content">
|
||
<div class="foxui-tabs foxui-type-line" id="contentTabs">
|
||
<div class="foxui-tabs-header">
|
||
<div class="foxui-tabs-item is-active">基本</div>
|
||
<div class="foxui-tabs-item">详情</div>
|
||
</div>
|
||
<div class="foxui-tabs-content">
|
||
<div class="foxui-tabs-pane">
|
||
<div class="section">
|
||
<div class="section-title">基本信息</div>
|
||
<div class="section-main">
|
||
<div class="display-flex">
|
||
<div class="section-main-item">
|
||
<div class="foxui-input-group foxui-align-items-start">
|
||
<div class="input-label">
|
||
<label class="foxui-required">文章标题:</label>
|
||
</div>
|
||
<div class="input-box">
|
||
<div class="foxui-textarea">
|
||
<textarea autocomplete="off" rows="2" maxlength="120" placeholder="" name="title"><?php echo htmlentities($article['title']); ?></textarea>
|
||
<span class="foxui-textarea-count">0/120</span>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="section-main-item second-item">
|
||
<div class="foxui-input-group foxui-align-items-start">
|
||
<div class="input-label">
|
||
<label>简略标题:</label>
|
||
</div>
|
||
<div class="input-box">
|
||
<div class="foxui-textarea">
|
||
<textarea autocomplete="off" rows="2" maxlength="60" placeholder="" name="brief_title"><?php echo htmlentities($article['brief_title']); ?></textarea>
|
||
<span class="foxui-textarea-count">0/60</span>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="section-main-item">
|
||
<div class="foxui-input-group foxui-align-items-start">
|
||
<div class="input-label">
|
||
<label>文章属性:</label>
|
||
</div>
|
||
<div class="article-field">
|
||
<?php foreach($articleFieldList as $key=>$vo): ?>
|
||
<div class="foxui-checkbox <?php if($vo['state'] == 1): ?> is-checked <?php endif; ?>">
|
||
<span class="foxui-checkbox-input">
|
||
<i class="foxui-checkbox-icon"></i>
|
||
<input type="checkbox" value="<?php echo htmlentities($vo['tag']); ?>"/>
|
||
</span>
|
||
<span class="foxui-checkbox-label"><?php echo htmlentities($vo['text']); ?>(<?php echo htmlentities($vo['tag']); ?>)</span>
|
||
</div>
|
||
<?php endforeach; ?>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="section-main-item">
|
||
<div class="foxui-input-group">
|
||
<div class="input-label">
|
||
<label class="foxui-required">所属栏目:</label>
|
||
</div>
|
||
<div class="input-box">
|
||
<div class="foxui-select">
|
||
<div class="foxui-select-handle foxui-select-icon">
|
||
<input class="foxui-select-input foxui-size-small" readonly="readonly" placeholder="请选择所属栏目" data-id="<?php echo htmlentities($article['column_id']); ?>" value="<?php echo htmlentities($article['column']); ?>" name="column" />
|
||
<i class="foxui-icon-close-circle" style="display: none"></i>
|
||
</div>
|
||
<div class="foxui-select-menu">
|
||
<ul class="foxui-select-slide">
|
||
<?php foreach($columns as $key=>$vo): ?>
|
||
<li class="foxui-select-item" data-id="<?php echo htmlentities($vo['id']); ?>"><?php echo htmlentities($vo['title']); ?></li>
|
||
<?php endforeach; ?>
|
||
</ul>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="section-main-item">
|
||
<div class="foxui-input-group">
|
||
<div class="input-label">
|
||
<label>文档标签:</label>
|
||
</div>
|
||
<div class="input-box">
|
||
<div class="foxui-select foxui-select-settable">
|
||
<div class="foxui-select-handle">
|
||
<input class="foxui-select-input foxui-size-small" placeholder="多个标签之间以逗号隔开" value="<?php echo htmlentities($article['tags']); ?>" name="tags"/>
|
||
</div>
|
||
<div class="foxui-select-menu">
|
||
<ul class="foxui-select-slide member-list">
|
||
<?php foreach($tagList as $key=>$vo): ?>
|
||
<li class="foxui-select-item multiple" data-id="<?php echo htmlentities($vo['name']); ?>"><?php echo htmlentities($vo['name']); ?></li>
|
||
<?php endforeach; ?>
|
||
</ul>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="section-main-item">
|
||
<div class="foxui-input-group foxui-align-items-start">
|
||
<div class="input-label">
|
||
<label>文章缩略图:</label>
|
||
</div>
|
||
<div class="input-box">
|
||
<div class="foxui-images foxui-images-fluid">
|
||
<div class="foxui-images-card breviary_pic">
|
||
<ul class="foxui-images-list">
|
||
<?php if($article->breviary_pic_id != "" && $article['img_url'] != ""): ?>
|
||
<li class="foxui-images-item foxui-animate-fadeInDown">
|
||
<div class="content">
|
||
<img data-id="<?php echo htmlentities($article->breviary_pic_id); ?>" src="<?php echo htmlentities($article['img_url']); ?>"/>
|
||
<span class="replace">替换</span>
|
||
<i class="foxui-icon-cuowu-f delete"></i>
|
||
</div>
|
||
</li>
|
||
<?php endif; ?>
|
||
<div class="foxui-images-handle">
|
||
<div class="foxui-images-handle-inner">
|
||
<i class="foxui-icon-jiahao-o"></i>
|
||
<span class="text">添加图片</span>
|
||
</div>
|
||
</div>
|
||
</ul>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<p class="input-box-info">图片尺寸建议根据前端网站模板的尺寸制作</p>
|
||
</div>
|
||
|
||
<div class="section-main-item">
|
||
<div class="foxui-input-group">
|
||
<div class="input-label">
|
||
<label>SEO关键词:</label>
|
||
</div>
|
||
<div class="input-box">
|
||
<input class="foxui-size-small" placeholder="" value="<?php echo htmlentities($article['keywords']); ?>" name="keywords"/>
|
||
</div>
|
||
</div>
|
||
<p class="input-box-info">一般不超过100个字符,多个关键词请用英文逗号隔开,建议3到5个关键词</p>
|
||
</div>
|
||
<div class="section-main-item">
|
||
<div class="foxui-input-group foxui-align-items-start">
|
||
<div class="input-label">
|
||
<label>SEO描述:</label>
|
||
</div>
|
||
<div class="input-box">
|
||
<div class="foxui-textarea">
|
||
<textarea autocomplete="off" rows="2" maxlength="200" placeholder="" name="description"><?php echo htmlentities($article['description']); ?></textarea>
|
||
<span class="foxui-textarea-count">0/200</span>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<p class="input-box-info">描述一般不超过200个字符,不填写时系统自动提取正文的前200个字符</p>
|
||
</div>
|
||
<div class="display-flex">
|
||
<div class="section-main-item">
|
||
<div class="foxui-input-group">
|
||
<div class="input-label">
|
||
<label>文章来源:</label>
|
||
</div>
|
||
<div class="input-box">
|
||
<div class="foxui-select foxui-select-settable" data-title="文章来源" id="article_source">
|
||
<div class="foxui-select-handle">
|
||
<input class="foxui-select-input foxui-size-small" placeholder="" value="<?php echo htmlentities($article['article_source']); ?>" />
|
||
<button class="foxui-select-set foxui-size-small foxui-plain">设置</button>
|
||
</div>
|
||
<div class="foxui-select-menu">
|
||
<ul class="foxui-select-slide">
|
||
<?php foreach($articleSources as $key=>$vo): ?>
|
||
<li class="foxui-select-item" data-id="<?php echo htmlentities($articleSourceDictCode); ?>"><?php echo htmlentities($vo); ?></li>
|
||
<?php endforeach; ?>
|
||
</ul>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="section-main-item second-item">
|
||
<div class="foxui-input-group">
|
||
<div class="input-label">
|
||
<label>作者:</label>
|
||
</div>
|
||
<div class="input-box">
|
||
<div class="foxui-select foxui-select-settable" data-title="作者" id="author">
|
||
<div class="foxui-select-handle">
|
||
<input class="foxui-select-input foxui-size-small" placeholder="" value="<?php echo htmlentities($article['author']); ?>" />
|
||
<button class="foxui-select-set foxui-size-small foxui-plain">设置</button>
|
||
</div>
|
||
<div class="foxui-select-menu">
|
||
<ul class="foxui-select-slide">
|
||
<?php foreach($authors as $key=>$vo): ?>
|
||
<li class="foxui-select-item" data-id="<?php echo htmlentities($authorDictCode); ?>"><?php echo htmlentities($vo); ?></li>
|
||
<?php endforeach; ?>
|
||
</ul>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="section-main-item">
|
||
<div class="foxui-input-group">
|
||
<div class="input-label">
|
||
<label>发布时间:</label>
|
||
</div>
|
||
<div class="input-box">
|
||
<div class="foxui-picker foxui-datetime-picker">
|
||
<div class="foxui-picker-handle foxui-input-prefix">
|
||
<i class="foxui-icon-gongzuo-o foxui-prefix-icon"></i>
|
||
<input class="foxui-size-small" readonly="readonly" placeholder="请选择时间" value="<?php echo htmlentities(date('Y-m-d H:i',!is_numeric($article['release_time'])? strtotime($article['release_time']) : $article['release_time'])); ?>" name="release_time"/>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="section-main-item">
|
||
<div class="foxui-input-group">
|
||
<div class="input-label">
|
||
<label>浏览量:</label>
|
||
</div>
|
||
<div class="input-box">
|
||
<input class="foxui-size-small" placeholder="" required="" value="<?php echo htmlentities($article['click']); ?>" name="click"/>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<!--动态标签start-->
|
||
<div class="field">
|
||
<?php echo modelFieldTag('article', $article['id']); ?>
|
||
</div>
|
||
<!--动态标签end-->
|
||
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="foxui-tabs-pane">
|
||
<div class="section">
|
||
<div class="section-title">内容详情</div>
|
||
<div class="section-main-item">
|
||
<div class="foxui-input-group foxui-align-items-start">
|
||
<div class="input-label">
|
||
<label>状态:</label>
|
||
</div>
|
||
<div>
|
||
<div class="foxui-checkbox <?php if($article->statusDown): ?>is-checked<?php endif; ?>">
|
||
<span class="foxui-checkbox-input">
|
||
<i class="foxui-checkbox-icon"></i>
|
||
<input type="checkbox" value="" checked="checked" name="statusDown"/>
|
||
</span>
|
||
<span class="foxui-checkbox-label">下载远程图片</span>
|
||
</div>
|
||
<div class="foxui-checkbox <?php if($article->statusDel): ?>is-checked<?php endif; ?>">
|
||
<span class="foxui-checkbox-input">
|
||
<i class="foxui-checkbox-icon"></i>
|
||
<input type="checkbox" value="" name="statusDel"/>
|
||
</span>
|
||
<span class="foxui-checkbox-label">删除非站内链接</span>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="section-main-item">
|
||
<div class="foxui-input-group foxui-align-items-start">
|
||
<div class="input-label">
|
||
<label>内容详情:</label>
|
||
</div>
|
||
<div class="block-box rich-text">
|
||
<!-- 富文本 -->
|
||
<textarea class="richText" id="initRT"><?php echo htmlentities($article['content']); ?></textarea>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="foxcms-content-footer">
|
||
<button class="is-long foxui-size-small foxui-solid-primary next-btn">下一步</button>
|
||
<button class="is-long foxui-size-small foxui-plain-primary save-btn">保存</button>
|
||
</div>
|
||
|
||
<div class="foxcms-content-copy">
|
||
<p>
|
||
<span>Copyright © 2021-<?php echo isset($nowtime) ? htmlentities($nowtime) : '现在'; ?></span>
|
||
<strong>FOXCMS</strong>
|
||
<span>版权所有</span>
|
||
</p>
|
||
</div>
|
||
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</body>
|
||
<script src="<?php echo htmlentities($staticPath); ?>js/jquery-3.6.0.min.js"></script>
|
||
<script src="<?php echo htmlentities($staticPath); ?>js/tinymce/tinymce.min.js"></script>
|
||
<script src="<?php echo htmlentities($staticPath); ?>js/echarts.min.js"></script>
|
||
<script src="<?php echo htmlentities($staticPath); ?>js/foxui-1.32.min.js"></script>
|
||
<script>
|
||
//全局上传文件端口
|
||
var UPLOAD_FILE_URL = "<?php echo url('upload_files/upload'); ?>";
|
||
//图片粘贴下载
|
||
var UPIMG_URL = "<?php echo url('upload_files/upimg'); ?>";
|
||
var SERVER_URL = "/";
|
||
//配置的后台路径
|
||
var ADMIN_PATH = "/" + "<?php echo config('adminconfig.admin_path'); ?>";
|
||
//静态文件路径
|
||
var STATIC_PATH ="<?php echo config('adminconfig.static_path'); ?>";
|
||
//退出地址
|
||
var LOGOUT_PATH = "<?php echo logout_url(); ?>";
|
||
//栏目模型地址
|
||
var GETCOLUMMODELS_PATH = "<?php echo getColumModels_url(); ?>";
|
||
//个人中心
|
||
var ADMINEDIT_PATH = "<?php echo adminEdit_url(); ?>";
|
||
//更新缓存
|
||
var LOGINCLEARCACHE_PATH = "<?php echo loginClearCache_url(); ?>";
|
||
//修改密码
|
||
var ADMINUPDATEPASSWORD_PATH = "<?php echo adminUpdatePassword_url(); ?>";
|
||
//循环生成静态html
|
||
var SEOALLSITE_PATH = "<?php echo seoAllSite_url(); ?>";
|
||
//单独静态生成
|
||
var SEOADDDATABUILDDETAIL_PATH = "<?php echo seoAddDataBuildDetail_url(); ?>";
|
||
//单独静态栏目生成
|
||
var SINGLEALLSITE_PATH = "<?php echo singleAllSite_url(); ?>";
|
||
//删除幻灯片
|
||
var SLIDEDELETE_PATH = "<?php echo slideDelete_url(); ?>";
|
||
//编辑幻灯片
|
||
var SLIDEEDIT_PATH = "<?php echo slideEdit_url(); ?>";
|
||
//后台首页地址
|
||
var HOME_PATH = "<?php echo url('Index/index'); ?>";
|
||
//切换语言
|
||
var HANDOVER_LANG_PATH = "<?php echo url('handoverLang'); ?>";
|
||
</script>
|
||
<script src="<?php echo htmlentities($staticPath); ?>js/rich_text.js"></script>
|
||
<script>
|
||
|
||
foxui.imagesManager.init({
|
||
paginationOption: {
|
||
type: 'solid',
|
||
size: 'small',
|
||
pageSize: 10,
|
||
pageNum: 7,
|
||
pageSizeList: [10, 20, 30, 50],
|
||
isShowJump: true,
|
||
isShowTotal: true,
|
||
isShowSize: true
|
||
},
|
||
url: "<?php echo url('PicManager/picManager'); ?>",
|
||
});
|
||
|
||
foxui.videoManager.init({
|
||
paginationOption: {
|
||
type: 'solid',
|
||
size: 'small',
|
||
pageSize: 10,
|
||
pageNum: 7,
|
||
pageSizeList: [10, 20, 30, 50],
|
||
isShowJump: true,
|
||
isShowTotal: true,
|
||
isShowSize: true,
|
||
},
|
||
url: "<?php echo url('VideoManager/videoManager'); ?>",
|
||
});
|
||
</script>
|
||
<script src="<?php echo htmlentities($staticPath); ?>js/common.js"></script>
|
||
<script src="<?php echo htmlentities($staticPath); ?>js/admin_common.js"></script>
|
||
|
||
|
||
<script>
|
||
let $nextBtn = $('.foxcms-content-footer .next-btn'),
|
||
$tabsItem = $('#contentTabs .foxui-tabs-item'),
|
||
tabsLen = $tabsItem.length;
|
||
|
||
foxui.tabs.$on(getIndex);
|
||
function getIndex(data) {
|
||
const { index, id } = data;
|
||
if(id === 'contentTabs'){
|
||
if (index === tabsLen - 1) {
|
||
$nextBtn.hide();
|
||
} else {
|
||
$nextBtn.show();
|
||
}
|
||
}
|
||
}
|
||
|
||
$nextBtn.click(function () {
|
||
let index = $('#contentTabs .foxui-tabs-item.is-active').index();
|
||
$tabsItem.eq(index + 1).click();
|
||
});
|
||
|
||
//设置回调
|
||
foxui.select.$off();
|
||
foxui.select.$on(getSetData);
|
||
function getSetData(data) {
|
||
foxui.loading();
|
||
$.ajax({
|
||
type: "POST",
|
||
url: "<?php echo url('saveDict'); ?>",
|
||
dataType: "json",
|
||
async:false,
|
||
data:data,
|
||
success: (res)=> {
|
||
if (res.code == 1 && res.data) {
|
||
let id = data.id;
|
||
let liHtml = [];
|
||
let dataList = res.data.dataList;
|
||
if(dataList.length > 0){
|
||
dataList.forEach(item => {
|
||
liHtml.push(`<li class="foxui-select-item" data-id="${res.data.id}">${item}</li>`);
|
||
});
|
||
}
|
||
$('#' + id).find(".foxui-select-slide").empty().append(liHtml.join(""));
|
||
}else{
|
||
foxui.message({
|
||
type:"danger",
|
||
text:res.msg
|
||
})
|
||
}
|
||
foxui.closeLoading();
|
||
},
|
||
error: function(res) {
|
||
foxui.message({
|
||
type:"danger",
|
||
text:res.msg
|
||
})
|
||
foxui.closeLoading();
|
||
}
|
||
});
|
||
}
|
||
</script>
|
||
|
||
<script>
|
||
|
||
//保存
|
||
$('.save-btn').click(function() {
|
||
|
||
let bcid = $("input[name='bcid']").val();
|
||
let id = $("input[name='id']").val();
|
||
//文章标题
|
||
let title = $('textarea[name="title"]').val();
|
||
//简略标题
|
||
let brief_title = $('textarea[name="brief_title"]').val();
|
||
|
||
//文章属性
|
||
let articleField = "";
|
||
$('.article-field .foxui-checkbox').each(function (){
|
||
let isCheck = $(this).is('.is-checked');
|
||
if(isCheck){
|
||
let af = $(this).find('input[type="checkbox"]').val();
|
||
articleField += af + ",";
|
||
}
|
||
});
|
||
if(articleField.length> 0){
|
||
articleField = articleField.substr(0, articleField.length -1);
|
||
}
|
||
|
||
//所属栏目
|
||
let columnId = $('input[name="column"]').attr('data-id');
|
||
//栏目名称
|
||
let column = $('input[name="column"]').val();
|
||
//文章缩率图
|
||
let breviary_pic_id = $('.breviary_pic img').attr('data-id');
|
||
//SEO关键词
|
||
let keywords = $('input[name="keywords"]').val();
|
||
//SEO描述
|
||
let description = $('textarea[name="description"]').val();
|
||
//文章来源
|
||
let article_source = $('#article_source input').val();
|
||
//作者
|
||
let author = $('#author input').val();
|
||
//发布时间
|
||
let release_time = $('input[name="release_time"]').val();
|
||
//预览量
|
||
let click = $('input[name="click"]').val();
|
||
//下载远程图片
|
||
let statusDown = $('input[name="statusDown"]').closest('.foxui-checkbox').is('.is-checked') ? 'down' : '';
|
||
//删除非站内链接
|
||
let statusDel = $('input[name="statusDel"]').closest('.foxui-checkbox').is('.is-checked') ? 'del' : '';
|
||
//内容
|
||
let content = getRTtContent("initRT");
|
||
//文档标签
|
||
let tags = $('input[name="tags"]').val();
|
||
let datas = {
|
||
'id':id,
|
||
'title': title,
|
||
"brief_title": brief_title,
|
||
"article_field": articleField,
|
||
"column_id": columnId,
|
||
"column": column,
|
||
"breviary_pic_id": breviary_pic_id||"",
|
||
"keywords": keywords,
|
||
"description": description,
|
||
"article_source": article_source,
|
||
"author": author,
|
||
"team_status": statusDown + "," + statusDel,
|
||
"content": content,
|
||
"release_time":release_time,
|
||
"click":click,
|
||
tags
|
||
};
|
||
|
||
//拉取模型属性
|
||
// let feildUrl = ADMIN_PATH + '/article/getField?model=article';
|
||
let feildUrl = "<?php echo url('Article/getField'); ?>?model=article";
|
||
let saveData = getField($(".field"), feildUrl);
|
||
let curData = Object.assign(datas, saveData);
|
||
foxui.dialog({
|
||
title: '保存',
|
||
content: '您确定要保存吗',
|
||
cancelText: '取消',
|
||
confirmText: '保存',
|
||
confirm: function(callback) {
|
||
foxui.loading({text:"发布中"});
|
||
ajaxR("<?php echo url('edit'); ?>","post",curData,{},function(res) {
|
||
if (res.code == 1) {
|
||
foxui.message({
|
||
type: 'success',
|
||
text: res.msg
|
||
})
|
||
|
||
if(res.data != ""){
|
||
let params = res.data;
|
||
if(params.oneId && params.oneId == "key3"){
|
||
addDataBuildDetail(params);
|
||
singleAllSite(params);
|
||
}
|
||
foxui.closeLoading();
|
||
}
|
||
window.location.href=document.referrer;//返回并且刷新
|
||
} else {
|
||
foxui.message({
|
||
type: 'warning',
|
||
text: res.msg
|
||
})
|
||
}
|
||
foxui.closeLoading();
|
||
},
|
||
function(res) {
|
||
foxui.message({
|
||
type: 'warning',
|
||
text: res.responseJSON.msg
|
||
})
|
||
foxui.closeLoading();
|
||
})
|
||
callback();
|
||
},
|
||
cancel: function() {
|
||
foxui.message({
|
||
type: 'warning',
|
||
text: res.msg
|
||
})
|
||
},
|
||
});
|
||
|
||
})
|
||
</script>
|
||
|
||
|
||
</html>
|