EMDOC文档管理系统

PHP代码

<?php
//为数据表添加字段
function mysql_add_imags(){
    $DB = MySql::getInstance();
    // 查询表结构信息
    $sql = "DESC ".DB_PREFIX."sort `image`;";
    $res = $DB->query($sql);
    $row_commNum = $DB->num_rows($res);
    if($row_commNum == 0){
        $sql = "ALTER TABLE ".DB_PREFIX."sort ADD `image` VARCHAR( 255 ) NOT NULL DEFAULT 'content/templates/czwDoc/images/default.jpg' COMMENT 'EMDOC模板扩展字段-封面';";
        $res = $DB->query($sql);
    }
}
?>

CSS代码

/*头部导航*/
.nav {height: 50px;border-top: 1px solid #009a61;border-bottom: 1px solid #ddd;position: fixed;width: 100%;z-index: 100;background: #fff;}
.nav a {color: #563d7c;}
.nav-list {display: flex;margin: 0;height: 50px;align-items: center;}
.list-item {list-style: none;}
.navactive {background: #009a61;}
.navactive a {color: #fff;}

javascript代码

<script type="text/javascript"> 
$(document).ready(function(){
    $(".nav-sort").click(function(){
        var x = $(this).find(".bi");
        if(x.attr("class") == "bi bi-chevron-down"){
            x.removeClass("bi-chevron-down");
            x.addClass("bi-chevron-up");
        }else if(x.attr("class") == "bi bi-chevron-up"){
            x.removeClass("bi-chevron-up");
            x.addClass("bi-chevron-down");
        }
        $(this).find('.nav-sort-children').slideToggle(500,function(){

        });
    });
});
</script>

--end--

湘ICP备2022024566号-1