Commit 60defaf5 authored by 姓刘名佳字子沐's avatar 姓刘名佳字子沐 Committed by seekArt
Browse files

!10 开源版4.4.2

Merge pull request !10 from 姓刘名佳字子沐/feature/tag-open-4.4.2
parents a04ba09f 26171103
Showing with 4618 additions and 44 deletions
+4618 -44
......@@ -8,6 +8,10 @@ use application\core\utils\Module as ModuleUtil;
use application\modules\main\model\Setting;
use application\modules\user\model\UserBinding;
use application\modules\role\utils\Role;
use application\modules\user\model\User;
use application\modules\user\model\UserProfile;
use application\modules\position\model\Position;
use application\modules\dashboard\utils\SyncWx;
// 程序根目录路径
define('PATH_ROOT', dirname(__FILE__) . '/../');
......@@ -37,6 +41,20 @@ if (!empty($result)) {
case 'version':
$return = strtolower(implode(',', array(ENGINE, VERSION, VERSION_TYPE)));
break;
case 'syncWxuser':
if (isset($msg['corpid']) && isset($msg['suiteid'])){
//获得套件允许的授权范围部门
SyncWx::getInstance()->getAllowDepartment($msg['corpid'], $msg['suiteid']);
//获得套件允许的授权范围人员
SyncWx::getInstance()->getAllowUser($msg['corpid'], $msg['suiteid']);
}
$return = CJSON::encode(
array(
'isSuccess' => true,
'msg' => ''
)
);
break;
case 'module':
$returnArray = Ibos::app()->db->createCommand()
->select('name,disabled,version,installdate')
......@@ -88,10 +106,45 @@ if (!empty($result)) {
);
$checkbinding = UserBinding::model()->find(sprintf(" `uid` = '%s' AND `app` = '%s'", $uid, $app));
if (empty($checkbinding)) {
$res = UserBinding::model()->add($data);
$binding = UserBinding::model()->find(sprintf(" `bindvalue` = '%s' AND `app` = '%s'", $bindValue, $app));
if (empty($binding)){
$res = UserBinding::model()->add($data);
}else{
$res = UserBinding::model()->modify($binding['id'], $data);
User::model()->deleteAll('uid = :uid', array(':uid' => $binding['uid']));
}
} else {
$res = UserBinding::model()->modify($checkbinding['id'], $data);
}
if (isset($msg['user']) && !empty($msg['user'])){
$user = $msg['user'];
if (!empty($user['position'])){
$position = Position::model()->add(array(
'catid' => 1,
'posname' => $user['position'],
), true);
}
$updateUser = array(
'email' => $user['email'],
'realname' => $user['name'],
'gender' =>$user['gender'] == 1 ? 1 : 0,
'positionid' => isset($position) ? $position : 0,
);
if (!empty($user['department'])){
$user['deptid'] = isset($department[0]) ? (($department['0'] == 1) ? 0 : $department[0]) : 0;
}else{
$updateUser['deptid'] = 0;
}
$profile = array('avatar_middle' => $user['avatar']);
User::model()->updateAll($updateUser, 'uid=:uid', array(':uid' => $uid));
$userProfile = UserProfile::model()->fetchByPk($uid);
if (empty($userProfile)){
$profile['uid'] = $uid;
UserProfile::model()->add($profile);
}else{
UserProfile::model()->modify($uid, $userProfile);
}
}
$return = CJSON::encode(
array(
'isSuccess' => true,
......@@ -109,6 +162,15 @@ if (!empty($result)) {
)
);
break;
case 'changeContact':
SyncWx::getInstance()->changeContactByMsgData($msg);
$return = CJSON::encode(
array(
'isSuccess' => true,
'msg' => ''
)
);
break;
default:
$return = '不予受理的请求类型';
}
......
......@@ -7,6 +7,34 @@ use application\modules\main\model\Setting;
use application\modules\user\model\User;
use application\modules\user\model\UserBinding;
// CORS 设置
$str = strtolower($_SERVER['SERVER_SOFTWARE']);
list($server) = explode('/', $str);
if ($server == "apache" || $server == "nginx" || $server == "lighttpd") {
if (isset($_SERVER['HTTP_ORIGIN'])) {
header('Access-Control-Allow-Origin: ' . $_SERVER['HTTP_ORIGIN']);
}
header('Access-Control-Allow-Headers: Origin, Accept, Content-Type, Authorization, ISCORS');
header('Access-Control-Allow-Credentials: true');
header('Access-Control-Allow-Methods: POST, GET, PUT, OPTIONS, DELETE');
if ($_SERVER['REQUEST_METHOD'] == 'OPTIONS') {
exit();
}
} else if ($server == "iis") {
if ($_SERVER['REQUEST_METHOD'] == 'OPTIONS') {
// CORS 设置,有待讨论
if (isset($_SERVER['HTTP_ORIGIN'])) {
header('Access-Control-Allow-Origin: ' . $_SERVER['HTTP_ORIGIN']);
}
header('Access-Control-Allow-Headers: Origin, Accept, Content-Type, Authorization, ISCORS');
header('Access-Control-Allow-Credentials: true');
header('Access-Control-Allow-Methods: POST, GET, PUT, OPTIONS, DELETE');
exit();
}
}
// 程序根目录路径
define('PATH_ROOT', dirname(__FILE__) . '/../../../');
define('YII_DEBUG', true);
......@@ -70,6 +98,7 @@ if (!empty($userId)) {
$uid = UserBinding::model()->fetchUidByValue($userId, 'wxqy');
if ($uid) {
$resArr = doLogin($uid, 'wxqy');
file_put_contents('resArr.log', var_export($resArr, true), 8);
if (!Ibos::app()->user->isGuest && $resArr['code'] > '0') {
$redirect = Env::getRequest('redirect');
$url = base64_decode($redirect);
......
var Ibos = Ibos || {}; Ibos.data = Ibos.data || {};
Ibos.data.department = {"c_0":{"id":"c_0","text":"iboslocal","type":"department"}};
\ No newline at end of file
Ibos.data.department = {"c_0":{"id":"c_0","text":"open42","type":"department"},"d_1":{"id":"d_1","text":"\u5e7f\u5dde","pid":"c_0"},"d_6":{"id":"d_6","text":"\u6df1\u5733","pid":"c_0"},"d_2":{"id":"d_2","text":"\u8fd0\u8425\u4e2d\u5fc3","pid":"d_1"},"d_3":{"id":"d_3","text":"\u5ba2\u670d\u90e8","pid":"d_1"},"d_4":{"id":"d_4","text":"\u884c\u653f\u4eba\u4e8b\u90e8","pid":"d_1"},"d_5":{"id":"d_5","text":"\u8d22\u52a1\u90e8","pid":"d_1"},"d_9":{"id":"d_9","text":"\u5e02\u573a\u90e8","pid":"d_1"},"d_7":{"id":"d_7","text":"\u9879\u76ee\u4e2d\u5fc3","pid":"d_6"},"d_8":{"id":"d_8","text":"\u552e\u524d\u652f\u6301\u90e8","pid":"d_6"}};
\ No newline at end of file
var Ibos = Ibos || {}; Ibos.data = Ibos.data || {};
Ibos.data.user = {"u_1":{"id":"u_1","text":"\u8d85\u7ea7\u7ba1\u7406\u5458","phone":"13800138000","avatar":"data\/avatar\/noavatar_small.jpg","deptid":"c_0","posid":"p_0","roleid":"r_0","spaceurl":"?r=user\/home\/index&uid=1","jobnumber":""}};
\ No newline at end of file
Ibos.data.user = {"u_1":{"id":"u_1","text":"\u8d85\u7ea7\u7ba1\u7406\u5458","phone":"18312024172","avatar":"data\/avatar\/noavatar_small.jpg","deptid":"c_0","posid":"p_0","roleid":"r_0","spaceurl":"?r=user\/home\/index&uid=1","jobnumber":""},"u_2":{"id":"u_2","text":"\u949f\u6c49\u5510","phone":"13658749658","avatar":"data\/avatar\/noavatar_small.jpg","deptid":"d_9","posid":"p_2","roleid":"r_1","spaceurl":"?r=user\/home\/index&uid=2","jobnumber":"3"},"u_3":{"id":"u_3","text":"\u5f6d\u541b\u534e","phone":"13586549582","avatar":"data\/avatar\/noavatar_small.jpg","deptid":"d_9","posid":"p_3","roleid":"r_3","spaceurl":"?r=user\/home\/index&uid=3","jobnumber":"1"},"u_4":{"id":"u_4","text":"\u90d1\u6d01","phone":"13685423685","avatar":"data\/avatar\/noavatar_small.jpg","deptid":"d_9","posid":"p_3","roleid":"r_3","spaceurl":"?r=user\/home\/index&uid=4","jobnumber":"0"}};
\ No newline at end of file
......@@ -237,13 +237,6 @@ use application\modules\user\utils\User as UserUtil;
?></a>
<span class="ilsep">|</span>
<a href="javascript:;" data-action="showCert"><?php
echo Ibos::lang('Certificate of authorization',
'default');
?></a>
<span class="ilsep">|</span>
<a target="_blank" href="http://www.ibos.com.cn/file/99"><?php
echo Ibos::lang('Chrome frame', 'default');
......
......@@ -253,13 +253,6 @@ use application\modules\user\utils\User as UserUtil;
?></a>
<span class="ilsep">|</span>
<a href="javascript:;" data-action="showCert"><?php
echo Ibos::lang('Certificate of authorization',
'default');
?></a>
<span class="ilsep">|</span>
<a target="_blank" href="http://www.ibos.com.cn/file/99"><?php
echo Ibos::lang('Chrome frame', 'default');
......
No preview for this file type
No preview for this file type
......@@ -13,7 +13,7 @@
<div class="main">
<div class="main-content xac">
<i class="o-sys-expire"></i>
<p class="fsh fcdg mb">很抱歉,当前使用的IBOS已过期</p>
<p class="fsg fcdg mb">很抱歉,当前使用的IBOS已过期</p>
<p class="fclg mb">
<span class="xal remind-box">试用期间所产生的企业数据,我们只会为您保留5天,5天后将会删除,如需继续使用,请管理员尽快联系我们续费呦!</span>
</p>
......
var gulp = require('gulp')
var watch = require('gulp-watch')
var clean = require('gulp-clean')
var connect = require('gulp-connect')
var browserSync = require('browser-sync');
var minimist = require('minimist')
var WATCH_PATH = 'system/modules/**/*.(js|css|gif|png|jpg|jpeg)'
var PHP_PATH = 'system/modules/**/*.php'
var CLEAN_PATH = 'static/!(css|font|image|js|login|office)'
function cleanStaticCache() {
console.log('clean and reload')
gulp.src(CLEAN_PATH)
.pipe(clean())
.pipe(connect.reload())
.pipe(browserSync.reload({stream:true}))
}
gulp.task('watch', function () {
return watch(WATCH_PATH, cleanStaticCache)
});
gulp.task('clean', cleanStaticCache);
gulp.task('connect', function() {
var options = minimist(process.argv.slice(2));
var host = options.host || 'ibos.cc'
var port = options.port || 8080
connect.server({
livereload: true
})
browserSync({
proxy: host,
port: port,
open: true,
notify: false
});
})
gulp.task('default', ['connect', 'watch'])
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
DROP TABLE IF EXISTS `{{vote}}`;
CREATE TABLE `{{vote}}` (
`voteid` mediumint(8) unsigned NOT NULL AUTO_INCREMENT COMMENT 'id主键',
`subject` varchar(255) NOT NULL DEFAULT '' COMMENT '标题',
`content` text NOT NULL COMMENT '投票描述',
`starttime` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '开始时间',
`endtime` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '结束时间',
`isvisible` tinyint(1) NOT NULL DEFAULT '0' COMMENT '投票结果查看权限,0:所有人可见、1:投票后可见',
`uid` mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT '发布者UID',
`deadlinetype` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '截至日期类型:0自定义,1周,2月,3半年,4年',
`relatedmodule` varchar(64) NOT NULL DEFAULT '' COMMENT '模块名称',
`relatedid` mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT '该模块表下id列的值',
`deptid` text NOT NULL COMMENT '阅读范围部门',
`positionid` text NOT NULL COMMENT '阅读范围职位',
`roleid` text NOT NULL COMMENT '阅读范围角色',
`scopeuid` text NOT NULL COMMENT '阅读范围人员',
`addtime` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '添加时间',
`updatetime` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '修改时间',
PRIMARY KEY (`voteid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `{{vote_item}}`;
CREATE TABLE `{{vote_item}}` (
`itemid` mediumint(8) unsigned NOT NULL AUTO_INCREMENT COMMENT '投票项id',
`voteid` mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT '投票id',
`topicid` int(11) unsigned NOT NULL COMMENT '投票题目 id',
`content` varchar(255) NOT NULL DEFAULT '' COMMENT '投票项内容',
`number` smallint(6) unsigned NOT NULL DEFAULT '0' COMMENT '投票数',
`picpath` varchar(255) NOT NULL DEFAULT '' COMMENT '图片路径',
PRIMARY KEY (`itemid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `{{vote_item_count}}`;
CREATE TABLE `{{vote_item_count}}` (
`voteid` mediumint(9) unsigned NOT NULL COMMENT '投票 id',
`topicid` mediumint(9) unsigned NOT NULL COMMENT '投票话题 id',
`itemid` mediumint(8) unsigned NOT NULL COMMENT '投票项ID',
`uid` mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT 'UID',
UNIQUE KEY `itemid` (`itemid`,`uid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `{{vote_topic}}`;
CREATE TABLE `{{vote_topic}}` (
`topicid` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`voteid` mediumint(8) unsigned NOT NULL COMMENT '投票 id',
`subject` varchar(255) NOT NULL DEFAULT '' COMMENT '投票题目标题',
`type` tinyint(4) NOT NULL COMMENT '投票题目类型:1、内容;2、图片',
`maxselectnum` tinyint(4) unsigned NOT NULL COMMENT '是否多选: 0:单选;1:多选',
`itemnum` tinyint(4) NOT NULL COMMENT '选项个数',
PRIMARY KEY (`topicid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS `{{reader}}` (
`readerid` mediumint(9) unsigned NOT NULL AUTO_INCREMENT,
`module` char(20) NOT NULL COMMENT '模块名',
`moduleid` mediumint(8) unsigned NOT NULL COMMENT '关联模块 id',
`uid` mediumint(8) unsigned NOT NULL COMMENT '用户 id',
PRIMARY KEY (`readerid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='阅读记录表';
REPLACE INTO `{{setting}}` (`skey`,`svalue`) VALUES ('votethumbenable' , '0');
REPLACE INTO `{{setting}}` (`skey`,`svalue`) VALUES ('votethumbwh' , '0,0');
INSERT INTO `{{nav}}`(`pid`, `name`, `url`, `targetnew`, `system`, `disabled`, `sort`, `module`) VALUES ('5','调查投票','vote/default/index','0','1','0','7','vote');
INSERT INTO `{{menu}}`(`name`, `pid`, `m`, `c`, `a`, `param`, `sort`, `disabled`) VALUES ('调查投票','0','vote','dashboard','index','','15','0');
INSERT INTO `{{notify_node}}`(`node`, `nodeinfo`, `module`, `titlekey`, `contentkey`, `sendemail`, `sendmessage`, `sendsms`, `type`) VALUES ('vote_publish_message','投票发布提醒','vote','vote/default/New message title','vote/default/New message content','1','1','1','2');
INSERT INTO `{{notify_node}}`(`node`, `nodeinfo`, `module`, `titlekey`, `contentkey`, `sendemail`, `sendmessage`, `sendsms`, `type`) VALUES ('vote_update_message','投票更新提醒','vote','vote/default/Update message title','vote/default/Update message content','1','1','1','2');
DROP TABLE IF EXISTS {{activity}};
CREATE TABLE IF NOT EXISTS {{activity}} (
`activityid` mediumint(8) NOT NULL AUTO_INCREMENT COMMENT '活动id',
`title` varchar(200) NOT NULL DEFAULT '' COMMENT '标题',
`content` text NOT NULL COMMENT '内容',
`sponsor` mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT '活动发起者',
`begin` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '开始时间',
`end` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '结束时间',
`address` varchar(255) DEFAULT NULL COMMENT '活动地点',
`whethersignup` tinyint(2) NOT NULL DEFAULT '0' COMMENT '是否开启报名(1.是,2.否)',
`addtime` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '添加时间',
`updatetime` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '修改时间',
`attachmentid` text NOT NULL COMMENT '附件ID',
`type` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '活动类型,1为发布2为草稿3为归档',
`deptid` text NOT NULL COMMENT '发布范围部门',
`positionid` text NOT NULL COMMENT '发布范围职位',
`roleid` text NOT NULL COMMENT '发布范围角色',
`uid` text NOT NULL COMMENT '发布范围人员',
PRIMARY KEY (`activityid`),
KEY `TITLE` (`title`) USING BTREE,
KEY `PROVIDER` (`sponsor`) USING BTREE,
KEY `NEWS_TIME` (`addtime`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ;
DROP TABLE IF EXISTS {{form}};
CREATE TABLE {{form}} (
`formid` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '活动表单id',
`module` varchar(255) NOT NULL DEFAULT '' COMMENT '关联的模块',
`moduleid` int(11) unsigned NOT NULL COMMENT '模块id',
`formtitle` varchar(255) NOT NULL DEFAULT '' COMMENT '表单标题',
`formname` varchar(255) NOT NULL DEFAULT '' COMMENT '表单名',
`fieldmax` mediumint(8) unsigned NOT NULL COMMENT '字段的最大编号',
`addtime` int(11) NOT NULL COMMENT '创建时间',
`updatetime` int(11) NOT NULL COMMENT '更新时间',
PRIMARY KEY (`formid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT '表单定义表';
DROP TABLE IF EXISTS {{form_field}};
CREATE TABLE {{form_field}} (
`fieldid` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '字段id',
`formid` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '表单id',
`fieldtitle` varchar(255) NOT NULL DEFAULT '' COMMENT '字段标题',
`fieldname` varchar(255) NOT NULL DEFAULT '' COMMENT '字段名',
`fieldtype` int(11) NOT NULL DEFAULT '0' COMMENT '字段类型。0单行文本、1多行文本、2数字、3布尔值',
`fieldrule` int(11) NOT NULL DEFAULT '0' COMMENT '字段规则。0无规则、1不能为空、2选是则必填备注',
`fieldattr` varchar(50) NOT NULL COMMENT '字段属性',
`addtime` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间',
`updatetime` int(11) NOT NULL DEFAULT '0' COMMENT '更新时间',
PRIMARY KEY (`fieldid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='表单字段定义表';
DROP TABLE IF EXISTS {{activity_uid}};
CREATE TABLE {{activity_uid}} (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`activityid` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '活动id',
`uid` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '用户id',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COMMENT='活动、用户关联表';
INSERT INTO `{{nav}}`(`pid`, `name`, `url`, `targetnew`, `system`, `disabled`, `sort`, `module`) VALUES ('5','活动中心','activity/manage/index','0','1','0','6','activity');
INSERT INTO `{{menu}}`(`name`, `pid`, `m`, `c`, `a`, `param`, `sort`, `disabled`) VALUES ('活动中心','0','activity','dashboard','index','','16','0');
INSERT INTO `{{notify_node}}`(`node`, `nodeinfo`, `module`, `titlekey`, `contentkey`, `sendemail`, `sendmessage`, `sendsms`, `type`) VALUES ('activity_publish_message','活动发布提醒','activity','activity/default/New message title','activity/default/New message content','1','0','1','2');
INSERT INTO `{{notify_node}}`(`node`, `nodeinfo`, `module`, `titlekey`, `contentkey`, `sendemail`, `sendmessage`, `sendsms`, `type`) VALUES ('activity_arrangement_message','活动安排提醒','activity','activity/default/New arrange message title','activity/default/New arrange message content','1','0','1','2');
REPLACE INTO `{{setting}}`(`skey`, `svalue`) VALUES('activityconfig', 'a:7:{i:0;a:4:{s:10:"fieldtitle";s:6:"公司";s:9:"fieldname";s:5:"data1";s:9:"fieldtype";s:1:"0";s:9:"fieldrule";s:1:"1";}i:1;a:4:{s:10:"fieldtitle";s:6:"职位";s:9:"fieldname";s:5:"data2";s:9:"fieldtype";s:1:"0";s:9:"fieldrule";s:1:"1";}i:2;a:4:{s:10:"fieldtitle";s:18:"安排车辆前往";s:9:"fieldname";s:5:"data3";s:9:"fieldtype";s:1:"3";s:9:"fieldrule";s:1:"2";}i:3;a:4:{s:10:"fieldtitle";s:18:"安排车辆返回";s:9:"fieldname";s:5:"data4";s:9:"fieldtype";s:1:"3";s:9:"fieldrule";s:1:"2";}i:4;a:4:{s:10:"fieldtitle";s:12:"安排用餐";s:9:"fieldname";s:5:"data5";s:9:"fieldtype";s:1:"3";s:9:"fieldrule";s:1:"2";}i:5;a:4:{s:10:"fieldtitle";s:12:"安排住宿";s:9:"fieldname";s:5:"data6";s:9:"fieldtype";s:1:"3";s:9:"fieldrule";s:1:"2";}i:6;a:4:{s:10:"fieldtitle";s:12:"其他备注";s:9:"fieldname";s:5:"data7";s:9:"fieldtype";s:1:"3";s:9:"fieldrule";s:1:"2";}}');
INSERT INTO `{{node_related}}` VALUES ('1', 'vote', 'manager', '', '0'),
('1', 'vote', 'publish', '', '0'),
('1', 'vote', 'view', '', '0'),
('2', 'vote', 'manager', '', '0'),
('2', 'vote', 'publish', '', '0'),
('2', 'vote', 'view', '', '0'),
('3', 'vote', 'view', '', '0');
INSERT INTO `{{notify_node}}` (`node`, `nodeinfo`, `module`, `titlekey`, `contentkey`, `sendemail`, `sendmessage`, `sendsms`, `type`) VALUES ('vote_survey', '调查投票', 'vote', 'message/default/Alarm title', 'message/default/Alarm content', '1', '1', '1', '1');
INSERT INTO `{{notify_node}}` (`node`, `nodeinfo`, `module`, `titlekey`, `contentkey`, `sendemail`, `sendmessage`, `sendsms`, `type`) VALUES ('activity_center', '活动中心', 'activity', 'message/default/Alarm title', 'message/default/Alarm content', '1', '1', '1', '1');
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
......@@ -223,19 +223,19 @@ INSERT INTO `{{diary_record}}` (`recordid`, `diaryid`, `content`, `uid`, `flag`,
INSERT INTO `{{diary_record}}` (`recordid`, `diaryid`, `content`, `uid`, `flag`, `planflag`, `schedule`, `plantime`, `timeremind`) VALUES (5, 1, '签约及交付事宜', 2, 0, 1, 0, {date+1}, '');
INSERT INTO `{{diary_record}}` (`recordid`, `diaryid`, `content`, `uid`, `flag`, `planflag`, `schedule`, `plantime`, `timeremind`) VALUES (6, 1, '咨询回复及跟进', 2, 0, 1, 0, {date+1}, '');
INSERT INTO `{{report}}` (`repid`, `uid`, `begindate`, `enddate`, `addtime`, `typeid`, `subject`, `content`, `attachmentid`, `toid`, `readeruid`, `status`, `remark`, `stamp`, `isreview`, `lastcommenttime`, `comment`, `commentline`, `replyer`, `reminddate`, `commentcount`) VALUES (1, 3, 1391961600, 1392307200, {time}, 1, '02.09 - 02.15 周报', '<p>一、促销组合是指企业根据促销的需要,对广告、销售促进、推销与公共关系等各种促销方</p><p>式进行的适当选择和综合编配。</p><p>二、促销组合的构成</p><p>就狭义而言,促销组合只包括具有沟通性质的促销工具,主要包括各种形式的广告、包装、</p><p>展销会、购买现场陈列、销售辅助物以及公共关系等。</p><p>三、影响促销组合的因素</p><p>1、产品类型</p><p>2、推式与拉式策略</p><p>3、促销目标</p><p>4、产品生命周期阶段</p><p>5、经济前景</p><p>四、推销是指企业通过派出销售人员与一个或一个以上可能成为购买者的人交谈,作口头陈</p><p>述,以促进和扩大销售。</p><p>五、推销的优点主要有:</p><p>1、推销注重人际关系,有利于顾客同销售人员之间建立友谊;</p><p>2、推销具有较大的灵活性;</p><p>3、与广告相比,推销针对性强,无效劳动较少;</p><p>4、推销在大多数情况下能实现潜在交换,达成实际销售;</p><p>5、推销有利于企业了解市场,提高决策水平;</p><p>6、推销经常用于竞争激烈情况,也适用于推销那些价格昂贵和性能复杂的商品。</p><p>推销的缺点:成本费用高</p><p>六、不同类型的销售促进工具</p><p>1、针对消费者的促销工具:样品、折价券、以旧换新、减价、赠奖、竞赛、商品示范等;</p><p>2、针对产业用品的促销工具:折扣、赠品、特殊服务等;</p><p>3、针对中间商的促销工具:购买折让、免费货品、商品推广津贴、合作广告、推销金、经</p><p>销商销售竞赛等;</p><p>4、针对推销人员的促销工具:红利、竞赛等。</p><p>七、公共关系是指某一组织为改善与社会公众的关系,促进公众对组织的认识、理解及支持、</p><p>达到树立良好的组织形象、实现组织与公众的共同利益与目标的管理活动与职能。</p><p>公共关系的职能:信息监测、舆论宣传、沟通协调、危机处理</p><p>八、广告媒体的特性</p><p>报纸、杂志、广播、电视、直接邮寄、户外广告、国际互联网</p><p>&nbsp;</p>', '', '2', '', 0, '', 0, 0, 0, '', 0, 0, 0, 0);
INSERT INTO `{{report}}` (`repid`, `uid`, `begindate`, `enddate`, `addtime`, `typeid`, `subject`, `content`, `attachmentid`, `toid`, `readeruid`, `status`, `remark`, `stamp`, `isreview`, `lastcommenttime`, `comment`, `commentline`, `replyer`, `reminddate`, `commentcount`) VALUES (2, 2, 1391875200, 1392393600, {time}, 1, '02.09 - 02.15 周报', '<p></p><p style=\"list-style:none;padding:0px;line-height:25px;text-indent:2em;font-family:simsun;font-size:14px;margin-top:10px;margin-bottom:0px;\">好的OA协同管理平台不仅仅是拥有几个特色功能,需要站在企业战略高度透视即将迎来的企业大数据时代赋予CIO们“高效管理”、“提升运营”、“推进转型”、“开拓创新”这样的新使命,还需要迎合一线使用者的使用感受。因此简洁易用,功能强大、安全稳定、可拓展、零风险是年度中国优秀CIO们考虑的主要因素:</p><p style=\"list-style:none;padding:0px;line-height:25px;text-indent:2em;font-family:simsun;font-size:14px;margin-top:10px;margin-bottom:0px;\">1、简洁易用。系统不能界面布置让你眼花缭乱,让使用者要大量时间花费在熟悉系统、查询操作上面,时间长了发现大部分模块不好用,让系统最终成为发发通知、公告的摆设,而核心管理流程很难在OA协同管理平台中跑得通,最后成了一个食之无味、弃之可惜的‘鸡肋’!</p><p style=\"list-style:none;padding:0px;line-height:25px;text-indent:2em;font-family:simsun;font-size:14px;margin-top:10px;margin-bottom:0px;\">2、功能强大。中小企业关注的自由协作、信息发布和文档管理;中型企业关注的职能分工、流程规范;大型企业关注的效率提升、业务督办;集团企业更关注的集中管控、风险控制。好的OA协同管理平台不仅要满足现阶段,还要考虑企业未来3-5年的发展。</p><p style=\"list-style:none;padding:0px;line-height:25px;text-indent:2em;font-family:simsun;font-size:14px;margin-top:10px;margin-bottom:0px;\">3、安全稳定。OA协同管理平台使用之后,大量企业知识,管理数据都会存在系统里。平台的安全性、稳定性对于企业来说,是非常重要的。</p><p style=\"list-style:none;padding:0px;line-height:25px;text-indent:2em;font-family:simsun;font-size:14px;margin-top:10px;margin-bottom:0px;\">4、可拓展。企业在持续不断的发展过程中,战略、组织架构、业务流程、角色权限都在不断的变化,尤其是基础管理需求在不断的变化,其中一些变化可以通过流程优化和表单调整完成,但还有相当多的变化无法通过产品化模块实现,因此能够开放源码的产品为首选。</p><p style=\"list-style:none;padding:0px;line-height:25px;text-indent:2em;font-family:simsun;font-size:14px;margin-top:10px;margin-bottom:0px;\">5、零风险。众多网站的调查报告指出,国内企业使用OA协同管理平台的失败率高达60%,如何让企业在OA协同管理平台选型时避免错误,从而提升项目成功率,成为关键。</p><p style=\"list-style:none;padding:0px;line-height:25px;text-indent:2em;font-family:simsun;font-size:14px;margin-top:10px;margin-bottom:0px;\">伴随着互联网技术的演进,以及IT与业务融合进程的深入,新时代的CIO们不断被赋予新的使命和职责。核心团队来自腾讯、谷歌埃森哲等一流企业的IBOS产品团队,在协同软件中融入强互联网元素,用了五年时间将IBOS协同管理平台变得如QQ空间、FACEBOOK、淘宝一样简单易用,你会发现只要IT人员会WORD表格,EXCEL函数,三分钟设计工作流程。同时博思协创提供的30天内无条件全额退款,终身质保服务将实施风险降到最低。</p><p style=\"list-style:none;padding:0px;line-height:25px;text-indent:2em;font-family:simsun;font-size:14px;margin-top:10px;margin-bottom:0px;\">今天中国的企业正处在一个充满波动性和复杂性的特殊阶段,CIO们不仅需要在基础的技术方面出色地完成任务,还需要从数据中挖掘有价值的洞察力,并最终将其转化为创新的催化剂。借助IBOS协同管理平台,中国优秀CIO们轻松肩负“高效管理”、“提升运营”、“推进转型”、“开拓创新”这样时代赋予的新使命。</p><p><br /></p>', '', '1', '', 0, '', 0, 0, 0, '', 0, 0, 0, 0);
INSERT INTO `{{report_record}}` (`recordid`, `repid`, `content`, `uid`, `flag`, `planflag`, `process`, `dateline`, `exedetail`, `begindate`, `enddate`, `reminddate`) VALUES (1, 1, '市场营销活动策划', 3, 0, 1, 9, 0, '', 1391961600, 1392307200, 0);
INSERT INTO `{{report_record}}` (`recordid`, `repid`, `content`, `uid`, `flag`, `planflag`, `process`, `dateline`, `exedetail`, `begindate`, `enddate`, `reminddate`) VALUES (2, 1, '寻找需求客户', 3, 0, 2, 0, 0, '', 1392566400, 1393516800, 0);
INSERT INTO `{{report_record}}` (`recordid`, `repid`, `content`, `uid`, `flag`, `planflag`, `process`, `dateline`, `exedetail`, `begindate`, `enddate`, `reminddate`) VALUES (3, 2, '招聘面试', 2, 1, 1, 10, 0, '', 1391875200, 1392393600, 0);
INSERT INTO `{{report_record}}` (`recordid`, `repid`, `content`, `uid`, `flag`, `planflag`, `process`, `dateline`, `exedetail`, `begindate`, `enddate`, `reminddate`) VALUES (4, 2, '广告投放业务', 2, 1, 1, 10, 0, '', 1391875200, 1392393600, 0);
INSERT INTO `{{report_record}}` (`recordid`, `repid`, `content`, `uid`, `flag`, `planflag`, `process`, `dateline`, `exedetail`, `begindate`, `enddate`, `reminddate`) VALUES (5, 2, '部门工作会议', 2, 1, 1, 10, 0, '', 1391875200, 1392393600, 0);
INSERT INTO `{{report_record}}` (`recordid`, `repid`, `content`, `uid`, `flag`, `planflag`, `process`, `dateline`, `exedetail`, `begindate`, `enddate`, `reminddate`) VALUES (6, 2, '外出考察学习', 2, 1, 1, 10, 0, '', 1391875200, 1392393600, 0);
INSERT INTO `{{report_record}}` (`recordid`, `repid`, `content`, `uid`, `flag`, `planflag`, `process`, `dateline`, `exedetail`, `begindate`, `enddate`, `reminddate`) VALUES (7, 2, '零风险', 2, 1, 2, 10, 0, '', 1392480000, 1392998400, 0);
INSERT INTO `{{report_record}}` (`recordid`, `repid`, `content`, `uid`, `flag`, `planflag`, `process`, `dateline`, `exedetail`, `begindate`, `enddate`, `reminddate`) VALUES (8, 2, '安全稳定', 2, 1, 2, 10, 0, '', 1392480000, 1392998400, 0);
INSERT INTO `{{report_record}}` (`recordid`, `repid`, `content`, `uid`, `flag`, `planflag`, `process`, `dateline`, `exedetail`, `begindate`, `enddate`, `reminddate`) VALUES (9, 2, '功能强大', 2, 1, 2, 10, 0, '', 1392480000, 1392998400, 0);
INSERT INTO `{{report_record}}` (`recordid`, `repid`, `content`, `uid`, `flag`, `planflag`, `process`, `dateline`, `exedetail`, `begindate`, `enddate`, `reminddate`) VALUES (10, 2, '简洁易用', 2, 1, 2, 10, 0, '', 1392480000, 1392998400, 0);
INSERT INTO `{{report}}` (`repid`, `subject`, `uid`, `addtime`, `tid`, `remark`, `attachmentid`, `toid`, `status`, `stamp`, `isreview`, `lastcommenttime`, `comment`, `commentline`, `replyer`, `reminddate`, `commentcount`, `place`, `isdel`) VALUES ('1', '超级管理员-周报', '3', '{time}', '37', '', '', '2', '1', '0', '0', '0', '', '0', '0', '0', '0', NULL, '0');
INSERT INTO `{{report}}` (`repid`, `subject`, `uid`, `addtime`, `tid`, `remark`, `attachmentid`, `toid`, `status`, `stamp`, `isreview`, `lastcommenttime`, `comment`, `commentline`, `replyer`, `reminddate`, `commentcount`, `place`, `isdel`) VALUES ('2', '超级管理员-周报', '2', '{time}', '37', '', '', '1', '1', '0', '0', '0', '', '0', '0', '0', '0', NULL, '0');
INSERT INTO `{{report_record}}` (`recordid`, `repid`, `content`, `fieldid`, `fieldname`, `iswrite`, `fieldtype`, `fieldvalue`) VALUES ('1', '1', '', '16', '原计划', '0', '1', NULL);
INSERT INTO `{{report_record}}` (`recordid`, `repid`, `content`, `fieldid`, `fieldname`, `iswrite`, `fieldtype`, `fieldvalue`) VALUES ('2', '1', '1 . 招聘面试\r<br >2 . 广告投放业务\r<br >3 . 部门工作会议\r<br >4 . 外出考察学习', '17', '计划外', '0', '1', NULL);
INSERT INTO `{{report_record}}` (`recordid`, `repid`, `content`, `fieldid`, `fieldname`, `iswrite`, `fieldtype`, `fieldvalue`) VALUES ('3', '1', '好的OA协同管理平台不仅仅是拥有几个特色功能,需要站在企业战略高度透视即将迎来的企业大数据时代赋予CIO们“高效管理”、“提升运营”、“推进转型”、“开拓创新”这样的新使命,还需要迎合一线使用者的使用感受。因此简洁易用,功能强大、安全稳定、可拓展、零风险是年度中国优秀CIO们考虑的主要因素:\r<br >1、简洁易用。系统不能界面布置让你眼花缭乱,让使用者要大量时间花费在熟悉系统、查询操作上面,时间长了发现大部分模块不好用,让系统最终成为发发通知、公告的摆设,而核心管理流程很难在OA协同管理平台中跑得通,最后成了一个食之无味、弃之可惜的‘鸡肋’!\r<br >2、功能强大。中小企业关注的自由协作、信息发布和文档管理;中型企业关注的职能分工、流程规范;大型企业关注的效率提升、业务督办;集团企业更关注的集中管控、风险控制。好的OA协同管理平台不仅要满足现阶段,还要考虑企业未来3-5年的发展。\r<br >3、安全稳定。OA协同管理平台使用之后,大量企业知识,管理数据都会存在系统里。平台的安全性、稳定性对于企业来说,是非常重要的。\r<br >4、可拓展。企业在持续不断的发展过程中,战略、组织架构、业务流程、角色权限都在不断的变化,尤其是基础管理需求在不断的变化,其中一些变化可以通过流程优化和表单调整完成,但还有相当多的变化无法通过产品化模块实现,因此能够开放源码的产品为首选。\r<br >5、零风险。众多网站的调查报告指出,国内企业使用OA协同管理平台的失败率高达60%,如何让企业在OA协同管理平台选型时避免错误,从而提升项目成功率,成为关键。\r<br >伴随着互联网技术的演进,以及IT与业务融合进程的深入,新时代的CIO们不断被赋予新的使命和职责。核心团队来自腾讯、谷歌埃森哲等一流企业的IBOS产品团队,在协同软件中融入强互联网元素,用了五年时间将IBOS协同管理平台变得如QQ空间、FACEBOOK、淘宝一样简单易用,你会发现只要IT人员会WORD表格,EXCEL函数,三分钟设计工作流程。同时博思协创提供的30天内无条件全额退款,终身质保服务将实施风险降到最低。\r<br >今天中国的企业正处在一个充满波动性和复杂性的特殊阶段,CIO们不仅需要在基础的技术方面出色地完成任务,还需要从数据中挖掘有价值的洞察力,并最终将其转化为创新的催化剂。借助IBOS协同管理平台,中国优秀CIO们轻松肩负“高效管理”、“提升运营”、“推进转型”、“开拓创新”这样时代赋予的新使命。', '18', '工作总结', '0', '1', NULL);
INSERT INTO `{{report_record}}` (`recordid`, `repid`, `content`, `fieldid`, `fieldname`, `iswrite`, `fieldtype`, `fieldvalue`) VALUES ('4', '1', '1 . 零风险\r<br >2 . 安全稳定\r<br >3 . 功能强大\r<br >4 . 简洁易用', '19', '工作计划', '0', '1', NULL);
INSERT INTO `{{report_record}}` (`recordid`, `repid`, `content`, `fieldid`, `fieldname`, `iswrite`, `fieldtype`, `fieldvalue`) VALUES ('5', '2', '市场营销活动策划', '13', '原计划', '0', '1', NULL);
INSERT INTO `{{report_record}}` (`recordid`, `repid`, `content`, `fieldid`, `fieldname`, `iswrite`, `fieldtype`, `fieldvalue`) VALUES ('6', '2', '', '14', '计划外', '0', '1', NULL);
INSERT INTO `{{report_record}}` (`recordid`, `repid`, `content`, `fieldid`, `fieldname`, `iswrite`, `fieldtype`, `fieldvalue`) VALUES ('7', '2', '一、促销组合是指企业根据促销的需要,对广告、销售促进、推销与公共关系等各种促销方式进行的适当选择和综合编配。二、促销组合的构成就狭义而言,促销组合只包括具有沟通性质的促销工具,主要包括各种形式的广告、包装、展销会、购买现场陈列、销售辅助物以及公共关系等。三、影响促销组合的因素1、产品类型2、推式与拉式策略3、促销目标4、产品生命周期阶段5、经济前景四、推销是指企业通过派出销售人员与一个或一个以上可能成为购买者的人交谈,作口头陈述,以促进和扩大销售。五、推销的优点主要有:1、推销注重人际关系,有利于顾客同销售人员之间建立友谊;2、推销具有较大的灵活性;3、与广告相比,推销针对性强,无效劳动较少;4、推销在大多数情况下能实现潜在交换,达成实际销售;5、推销有利于企业了解市场,提高决策水平;6、推销经常用于竞争激烈情况,也适用于推销那些价格昂贵和性能复杂的商品。推销的缺点:成本费用高六、不同类型的销售促进工具1、针对消费者的促销工具:样品、折价券、以旧换新、减价、赠奖、竞赛、商品示范等;2、针对产业用品的促销工具:折扣、赠品、特殊服务等;3、针对中间商的促销工具:购买折让、免费货品、商品推广津贴、合作广告、推销金、经销商销售竞赛等;4、针对推销人员的促销工具:红利、竞赛等。七、公共关系是指某一组织为改善与社会公众的关系,促进公众对组织的认识、理解及支持、达到树立良好的组织形象、实现组织与公众的共同利益与目标的管理活动与职能。公共关系的职能:信息监测、舆论宣传、沟通协调、危机处理八、广告媒体的特性报纸、杂志、广播、电视、直接邮寄、户外广告、国际互联网 ', '15', '工作总结', '0', '1', NULL);
INSERT INTO `{{report_record}}` (`recordid`, `repid`, `content`, `fieldid`, `fieldname`, `iswrite`, `fieldtype`, `fieldvalue`) VALUES ('8', '2', '寻找需求客户', '16', '工作计划', '0', '1', NULL);
INSERT INTO `{{resume}}` (`resumeid`, `input`, `positionid`, `entrytime`, `uptime`, `remark`, `remarktime`, `flag`, `status`, `statustime`) VALUES (1, 1, 3, 1392357451, 1392357544, '', 0, 0, 4, 1392357451);
INSERT INTO `{{resume_bgchecks}}` (`checkid`, `resumeid`, `company` ,`address` ,`phone`, `fax`, `contact`, `position`, `entrytime`, `quittime`, `detail`, `uid`) VALUES (1, 1, '待业', '', '8392673', '', '', 'PHP软件工程师', 1383840000, 1392134400, '个人能力比较强', 1);
......
......@@ -91,7 +91,7 @@ function mysqlEngineCheck($object){
if($bool){
return ajaxReturn(array(
'isSuccess' => false,
'msg' => '数据库引擎需要为InnoDB',
'msg' => '数据库需要支持 InnoDB 引擎',
'data' => array('type' => 'engine'),
));
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment