You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
82 lines
2.8 KiB
PHTML
82 lines
2.8 KiB
PHTML
4 years ago
|
<script type="text/javascript" src="/wysiwyg/ckeditor.js"></script>
|
||
|
<script language="javascript">
|
||
|
var editor;
|
||
|
window.onload = function () {
|
||
|
editor = CKEDITOR.replace("it_content", {
|
||
|
width: '100%',
|
||
|
height: '560px',
|
||
|
readOnly: false,
|
||
|
filebrowserBrowseUrl: '/wysiwyg/ckfinder/ckfinder.php?sitecode=ch',
|
||
|
filebrowserUploadUrl: '/wysiwyg/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=image',
|
||
|
contentsCss: 'https://proxy-data.chinahighlights.com/css/mobile-first.css'
|
||
|
});
|
||
|
};
|
||
|
|
||
|
$(function () {
|
||
|
|
||
|
$("#it_expires").datepicker({
|
||
|
showButtonPanel: true
|
||
|
});
|
||
|
|
||
|
})
|
||
|
|
||
|
</script>
|
||
|
|
||
|
|
||
|
<div class="container-fluid">
|
||
|
<div class="row">
|
||
|
<div class="col-md-4">
|
||
|
|
||
|
</div>
|
||
|
<div class="col-md-16">
|
||
|
|
||
|
<form action="<?php echo site_url('thirdparty/recommend/tips/save') ?>"
|
||
|
method="post" id="tips_info_form" name="tips_info_form">
|
||
|
<div class="row">
|
||
|
<div class="col-md-16">
|
||
|
<div class="form-group">
|
||
|
<label for="it_title" ">广告标题</label>
|
||
|
<input type="text" class="form-control" id="it_title" name="it_title"
|
||
|
value="<?php echo $infoTip->it_title; ?>">
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="col-md-4">
|
||
|
<div class="form-group">
|
||
|
<label for="it_expires">过期时间</label>
|
||
|
<input type="text" class="form-control flatpickrEnable" id="it_expires" name="it_expires"
|
||
|
value="<?php echo date('m/d/Y', $infoTip->it_expires); ?>">
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<div class="col-md-20">
|
||
|
<textarea class="form-control" rows="6" id="it_content" name="it_content"
|
||
|
placeholder="广告内容"><?php echo $infoTip->it_content; ?></textarea>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
<div class="col-md-20">
|
||
|
|
||
|
<br/>
|
||
|
<a href="<?php echo site_url('thirdparty/recommend/tips/delete/' . $infoTip->it_id) ?>"
|
||
|
class="btn btn-danger pull-left">删除</a>
|
||
|
<button type="button" class="btn btn-primary pull-right"
|
||
|
onclick="editor.updateElement();submitForm('tips_info_form');">保存
|
||
|
</button>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
<input type="hidden" name="it_id" id="it_id" value="<?php echo $infoTip->it_id; ?>"/>
|
||
|
</form>
|
||
|
|
||
|
|
||
|
</div>
|
||
|
|
||
|
<div class="col-md-4">
|
||
|
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<br/>
|