Views/Site/Create.cshtml

(开头部分) 4KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

@model Mr.Model.Site

@{
    ViewBag.Title = "Create";
    Layout = "~/Views/Shared/_LayoutAdmin.cshtml";
}
<link rel="stylesheet" href="@Url.Content("/Content/editor/themes/default/default.css")" />


<script src="@Url.Content("/Content/editor/kindeditor.js")"></script>
<script src="@Url.Content("/Content/editor/lang/zh_CN.js")"></script>

<script>        
    

        var editor2;
        KindEditor.ready(function(K) {
            var editor = K.editor({
                allowFileManager: true,
                uploadJson: '/FileManager/Upload',
                fileManagerJson: '/FileManager/FileManagerAction'
            });
            K('#logoFile').click(function () {
                editor.loadPlugin('image', function() {
                    editor.plugin.imageDialog({
                        imageUrl: K('#SiteBigLogo').val(),
                        clickFn : function(url, title, width, height, border, align) {
                            K('#SiteBigLogo').val(url);
                            editor.hideDialog();
                        }
                    });
                });
            });
                

            editor2 = K.create('textarea[name="SiteCopyright"]', {
                resizeType: 1,
                allowPreviewEmoticons: false,
                allowImageUpload: false,
                items: [
                    'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline',
                    'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
                    'insertunorderedlist', '|', 'emoticons', 'image', 'link']
            });
        });
		</script>

<style type="text/css">
    .editor-label {
        float:left;
        width:120px;
        text-align:left;
        margin:7px 0px;
        margin-right:5px;
        clear:both;
    }
    .editor-field {
        margin:7px 0;
    }
        .editor-field > input[type='text'],.editor-field > textarea {
后面还有 68 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。