当前位置: 首页>>代码示例>>PHP>>正文


PHP get_logadd函数代码示例

本文整理汇总了PHP中get_logadd函数的典型用法代码示例。如果您正苦于以下问题:PHP get_logadd函数的具体用法?PHP get_logadd怎么用?PHP get_logadd使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了get_logadd函数的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: exit

<?php

(!defined('IN_TOA') || !defined('IN_ADMIN')) && exit('Access Denied!');
get_key("file_Increase");
empty($do) && ($do = 'list');
if ($do == 'list') {
    include_once 'template/add.php';
} elseif ($do == 'save') {
    $savetype = getGP('savetype', 'P');
    $filetype = getGP('filetype', 'P');
    $filenumber = getGP('filenumber', 'P');
    $filename = getGP('filename', 'P');
    $enddate = getGP('enddate', 'P');
    $position = getGP('position', 'P');
    $page = getGP('page', 'P');
    $appendix = getGP('file1', 'P') . "," . getGP('file2', 'P') . "," . getGP('file3', 'P');
    $content = getGP('content', 'P');
    $file = array('filetype' => $filetype, 'filenumber' => $filenumber, 'filename' => $filename, 'enddate' => $enddate, 'position' => $position, 'page' => $page, 'appendix' => $appendix, 'content' => $content, 'type' => '0', 'date' => get_date('Y-m-d H:i:s', PHP_TIME), 'uid' => $_USER->id);
    insert_db('file', $file);
    $id = $db->insert_id();
    $content = serialize($file);
    $title = '新增档案信息';
    get_logadd($id, $content, $title, 20, $_USER->id);
    show_msg('新增档案信息成功!', 'admin.php?ac=index&fileurl=file');
}
开发者ID:haogm123,项目名称:ydoa,代码行数:25,代码来源:mod_add.php

示例2: substr

                    $inputvalues .= $arrsave . ',';
                }
                $inputvalue = substr($inputvalues, 0, -1);
            } elseif ($row['inputtype'] == '2') {
                $inputvalue = trim(getGP('' . $row["inputname"] . '', 'P'));
            } else {
                $inputvalue = check_str(getGP('' . $row["inputname"] . '', 'P'));
            }
            $crm_db = array('content' => $inputvalue);
            //insert_db('crm_db',$crm_db);
            update_db('crm_db', $crm_db, array('viewid' => $vid, 'type' => 'crm_care', 'inputname' => $row["inputname"], 'formid' => $row["fid"]));
            $crm_log .= serialize($crm_db) . '|515158.com|';
        }
        $content = serialize($crm_care);
        $title = get_realname($_USER->id) . '于' . get_date('Y-m-d H:i:s', PHP_TIME) . '编辑客户关怀信息';
        get_logadd($vid, $content, $title, 36, $_USER->id);
        crm_log($title, $vid, $content, substr($crm_log, 0, -12), 1, 'crm_care');
        show_msg('编辑客户关怀信息成功!', 'admin.php?ac=' . $ac . '&fileurl=' . $fileurl . '&type=' . getGP('type', 'P'));
    } else {
        $view = $db->fetch_one_array("SELECT * FROM " . DB_TABLEPRE . "crm_care  WHERE id = '" . getGP('id', 'G', 'int') . "' ");
        if ($_GET['type'] == '2') {
            get_key("crm_care_edit_2");
        } else {
            get_key("crm_care_edit_1");
        }
        include_once 'company/care_edit.php';
    }
} elseif ($do == 'view') {
    $view = $db->fetch_one_array("SELECT * FROM " . DB_TABLEPRE . "crm_care  WHERE id = '" . getGP('id', 'G', 'int') . "' ");
    include_once 'company/care_view.php';
}
开发者ID:haogm123,项目名称:ydoa,代码行数:31,代码来源:mod_care.php

示例3: array

                $wage_basis = array('username' => $username[$id], 'name' => $name[$id], 'content' => $content[$id]);
                update_db('wage_basis', $wage_basis, array('bid' => $id));
            }
            //$sqlu = "SELECT tid,name FROM ".DB_TABLEPRE."wage_type order by tnumber asc";
            //$results = $db->query($sqlu);
            //while ($type = $db->fetch_array($results)) {
            foreach ($_CACHE['wage_type'] as $type) {
                $contentdb = getGP('type_' . $type['tid'], 'P', 'array');
                $wdb = $db->fetch_one_array("SELECT did FROM " . DB_TABLEPRE . "wage_data  WHERE type=1 and viewid='" . $id . "' and tid='" . $type['tid'] . "'");
                if ($wdb['did'] != '') {
                    $wage_data = array('content' => $contentdb[$id]);
                    update_db('wage_data', $wage_data, array('viewid' => $id, 'tid' => $type['tid'], 'type' => 1));
                } else {
                    $wage_data = array('viewid' => $id, 'tid' => $type['tid'], 'name' => $type['name'], 'content' => $contentdb[$id], 'type' => 1);
                    insert_db('wage_data', $wage_data);
                }
            }
        }
        show_msg('薪资基础信息操作成功!', 'admin.php?ac=' . $ac . '&fileurl=' . $fileurl . '');
    } elseif (getGP('id', 'G') != '') {
        $db->query("DELETE FROM " . DB_TABLEPRE . "wage_type WHERE tid = '" . getGP('id', 'G') . "'  ");
        $content = getGP('id', 'G');
        $title = '删除薪资项目';
        get_logadd(getGP('id', 'G'), $content, $title, 36, $_USER->id);
        show_msg('薪资项目删除成功!', 'admin.php?ac=' . $ac . '&fileurl=' . $fileurl . '');
    } else {
        $sql = "SELECT a.*,b.name FROM " . DB_TABLEPRE . "user a," . DB_TABLEPRE . "user_view b where  a.ischeck!=0 and a.id!=1 and a.id=b.uid ORDER BY a.numbers asc";
        $result = $db->fetch_all($sql);
        include_once 'template/basis.php';
    }
}
开发者ID:haogm123,项目名称:ydoa,代码行数:31,代码来源:mod_basis.php

示例4: exit

<?php

/*
	[Office 515158] (C) 2009-2012 天生创想 Inc.
	$Id: config_index.php 1209087 2012-01-08 08:58:28Z baiwei.jiang $
*/
(!defined('IN_TOA') || !defined('IN_ADMIN')) && exit('Access Denied!');
get_key("config_inc");
empty($do) && ($do = 'list');
if ($do == 'list') {
    include_once 'template/config.php';
} elseif ($do == 'save') {
    get_key("config_inc");
    $namearr = getGP('name', 'P', 'array');
    $valuearr = getGP('value', 'P', 'array');
    foreach ($namearr as $name) {
        if ($result = $db->fetch_one_array("SELECT * FROM " . DB_TABLEPRE . "config WHERE name = '" . $name . "' ")) {
            $config = array('value' => $valuearr[$name]);
            update_db('config', $config, array('name' => $name));
        } else {
            $config = array('name' => $name, 'value' => $valuearr[$name]);
            insert_db('config', $config);
        }
    }
    $content = serialize($config);
    $title = '系统设置';
    get_logadd(1, $content, $title, 1, $_USER->id);
    oa_mana_recache('config', 'name', 'id');
    show_msg('配置信息更新成功!', 'admin.php?ac=' . $ac . '&fileurl=' . $fileurl . '');
}
开发者ID:haogm123,项目名称:ydoa,代码行数:30,代码来源:mod_config.php


注:本文中的get_logadd函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。