Merge branch 'zentaopms_12.0.1' of github.com:easysoft/zentaopms into zentaopms_12.0.1
This commit is contained in:
@@ -64,6 +64,7 @@ zentaoxx:
|
||||
cp -r xuan/xxb/module/im zentaoxx/module/
|
||||
cp -r xuan/xxb/module/client zentaoxx/module/
|
||||
cp -r xuan/xxb/module/common/ext/model/hook zentaoxx/module/common/ext/model/
|
||||
cp -r xuan/xxb/module/license zentaoxx/module/
|
||||
mkdir -p zentaoxx/module/common/view
|
||||
cp -r xuan/xxb/module/common/view/header.modal.html.php zentaoxx/module/common/view
|
||||
cp -r xuan/xxb/module/common/view/marked.html.php zentaoxx/module/common/view
|
||||
@@ -115,9 +116,7 @@ zentaoxx:
|
||||
sed -i '/var currentVersion/d' zentaoxx/module/client/js/checkupgrade.js
|
||||
sed -i '/setRequiredFields(/d' zentaoxx/module/common/view/header.modal.html.php
|
||||
sed -i 's/header.html.php/header.lite.html.php/g' zentaoxx/module/common/view/header.modal.html.php
|
||||
sed -i 's/getAppRoot/getModuleRoot/g' zentaoxx/module/common/view/header.modal.html.php
|
||||
sed -i 's/footer.html.php/footer.lite.html.php/g' zentaoxx/module/common/view/footer.modal.html.php
|
||||
sed -i 's/getAppRoot/getModuleRoot/g' zentaoxx/module/common/view/footer.modal.html.php
|
||||
sed -i 's/v\.//g' zentaoxx/module/im/js/debug.js
|
||||
sed -i 's/helper::jsonEncode(/json_encode(/g' zentaoxx/framework/xuanxuan.class.php
|
||||
sed -i "s/lang->goback,/lang->goback, '',/g" zentaoxx/module/im/view/debug.html.php
|
||||
|
||||
@@ -561,6 +561,7 @@ if(!defined('DT_DATE1')) define('DT_DATE1', 'Y-m-d');
|
||||
if(!defined('DT_DATE2')) define('DT_DATE2', 'Ymd');
|
||||
if(!defined('DT_DATE3')) define('DT_DATE3', 'Y/m/d');
|
||||
if(!defined('DT_DATE4')) define('DT_DATE4', 'M d');
|
||||
if(!defined('DT_DATE5')) define('DT_DATE5', 'j/n');
|
||||
if(!defined('DT_TIME1')) define('DT_TIME1', 'H:i:s');
|
||||
if(!defined('DT_TIME2')) define('DT_TIME2', 'H:i');
|
||||
|
||||
|
||||
@@ -561,6 +561,7 @@ if(!defined('DT_DATE1')) define('DT_DATE1', 'Y-m-d');
|
||||
if(!defined('DT_DATE2')) define('DT_DATE2', 'Ymd');
|
||||
if(!defined('DT_DATE3')) define('DT_DATE3', 'Y/m/d');
|
||||
if(!defined('DT_DATE4')) define('DT_DATE4', 'M d');
|
||||
if(!defined('DT_DATE5')) define('DT_DATE5', 'j/n');
|
||||
if(!defined('DT_TIME1')) define('DT_TIME1', 'H:i:s');
|
||||
if(!defined('DT_TIME2')) define('DT_TIME2', 'H:i');
|
||||
|
||||
|
||||
@@ -561,6 +561,7 @@ if(!defined('DT_DATE1')) define('DT_DATE1', 'Y-m-d');
|
||||
if(!defined('DT_DATE2')) define('DT_DATE2', 'Ymd');
|
||||
if(!defined('DT_DATE3')) define('DT_DATE3', 'Y/m/d');
|
||||
if(!defined('DT_DATE4')) define('DT_DATE4', 'n/j');
|
||||
if(!defined('DT_DATE5')) define('DT_DATE5', 'j/n');
|
||||
if(!defined('DT_TIME1')) define('DT_TIME1', 'H:i:s');
|
||||
if(!defined('DT_TIME2')) define('DT_TIME2', 'H:i');
|
||||
|
||||
|
||||
@@ -561,6 +561,7 @@ if(!defined('DT_DATE1')) define('DT_DATE1', 'Y-m-d');
|
||||
if(!defined('DT_DATE2')) define('DT_DATE2', 'Ymd');
|
||||
if(!defined('DT_DATE3')) define('DT_DATE3', 'Y年m月d日');
|
||||
if(!defined('DT_DATE4')) define('DT_DATE4', 'n月j日');
|
||||
if(!defined('DT_DATE5')) define('DT_DATE5', 'j/n');
|
||||
if(!defined('DT_TIME1')) define('DT_TIME1', 'H:i:s');
|
||||
if(!defined('DT_TIME2')) define('DT_TIME2', 'H:i');
|
||||
|
||||
|
||||
@@ -304,11 +304,9 @@ class mailModel extends model
|
||||
$this->clear();
|
||||
|
||||
/* Replace full webPath image for mail. */
|
||||
$isonlybody = isonlybody();
|
||||
unset($_GET['onlybody']);
|
||||
$sysURL = zget($this->config->mail, 'domain', common::getSysURL());
|
||||
$readLinkReg = str_replace(array('%fileID%', '/', '.', '?'), array('[0-9]+', '\/', '\.', '\?'), helper::createLink('file', 'read', 'fileID=(%fileID%)', '\w+'));
|
||||
if($isonlybody) $_GET['onlybody'] = 'yes';
|
||||
if(isonlybody()) $readLinkReg = str_replace(array('\?onlybody=yes', '&onlybody=yes'), '', $readLinkReg);
|
||||
|
||||
$body = preg_replace('/ src="(' . $readLinkReg . ')" /', ' src="' . $sysURL . '$1" ', $body);
|
||||
$body = preg_replace('/ src="{([0-9]+)(\.(\w+))?}" /', ' src="' . $sysURL . helper::createLink('file', 'read', "fileID=$1", "$3") . '" ', $body);
|
||||
|
||||
@@ -84,13 +84,6 @@ class messageModel extends model
|
||||
if(isset($messageSetting['webhook']))
|
||||
{
|
||||
$actions = $messageSetting['webhook']['setting'];
|
||||
if($this->app->isFlow)
|
||||
{
|
||||
$rawModule = $this->app->rawModule;
|
||||
$rawMethod = $this->app->rawMethod;
|
||||
$actions[$rawModule][] = $rawMethod;
|
||||
}
|
||||
|
||||
if(isset($actions[$objectType]) and in_array($actionType, $actions[$objectType]))
|
||||
{
|
||||
$this->loadModel('webhook')->send($objectType, $objectID, $actionType, $actionID, $actor);
|
||||
|
||||
@@ -112,7 +112,7 @@
|
||||
<td class='text-center'><?php echo $plan->hour;?></td>
|
||||
<td class='text-center'><?php if(!empty($plan->projectID)) echo html::a(helper::createLink('project', 'task', 'projectID=' . $plan->projectID), '<i class="icon-search"></i>');?></td>
|
||||
<td class='text-left content'>
|
||||
<?php $desc = rtrim(strip_tags(str_replace(array('</p>', '<br />', '<br>', '<br/>'), "\n", str_replace(array("\n", "\r"), '', $plan->desc)), '<img>'));?>
|
||||
<?php $desc = trim(strip_tags(str_replace(array('</p>', '<br />', '<br>', '<br/>'), "\n", str_replace(array("\n", "\r"), '', $plan->desc)), '<img>'));?>
|
||||
<div title='<?php echo $desc;?>'><?php echo nl2br($desc);?></div>
|
||||
</td>
|
||||
<td class='c-actions'>
|
||||
|
||||
@@ -2698,7 +2698,7 @@ class projectModel extends model
|
||||
foreach($dateList as $i => $date) $baselineJSON .= round(($days - $i) * $rate, 1) . ',';
|
||||
$baselineJSON = rtrim($baselineJSON, ',') . ']';
|
||||
|
||||
$chartData['labels'] = $this->report->convertFormat($dateList, 'n/j');
|
||||
$chartData['labels'] = $this->report->convertFormat($dateList, DT_DATE5);
|
||||
$chartData['burnLine'] = $this->report->createSingleJSON($sets, $dateList);
|
||||
$chartData['baseLine'] = $baselineJSON;
|
||||
|
||||
|
||||
@@ -625,5 +625,7 @@ class repo extends control
|
||||
$commits = $this->repo->updateLatestCommit($repo);
|
||||
if($commits > 0) die('finished');
|
||||
}
|
||||
|
||||
die('norecords');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -14,4 +14,5 @@ html[lang="en"] #todoBatchAddForm .col-pending {width: 90px;}
|
||||
.main-header > .input-group {width: 240px;}
|
||||
html[lang="en"] .main-header > .input-group {width: 250px;}
|
||||
|
||||
#formSettingBtn {position: absolute; top: 14px; right: 53px; z-index: 1000;}
|
||||
#formSettingBtn {position: absolute; top: 14px; right: 20px; z-index: 1000;}
|
||||
#formSettingBtn .dropdown{margin-right:0px;}
|
||||
|
||||
@@ -13,9 +13,11 @@
|
||||
<?php include '../../common/view/header.html.php';?>
|
||||
<?php include '../../common/view/datepicker.html.php';?>
|
||||
|
||||
<div id='formSettingBtn'>
|
||||
<div id='formSettingBtn' class='pull-right btn-toolbar'>
|
||||
<?php $customLink = $this->createLink('custom', 'ajaxSaveCustomFields', 'module=todo§ion=custom&key=batchCreateFields')?>
|
||||
<?php include '../../common/view/customfield.html.php';?>
|
||||
<div class="divider"></div>
|
||||
<button id="closeModal" type="button" class="btn btn-link" data-dismiss="modal"><i class="icon icon-close"></i></button>
|
||||
</div>
|
||||
<form id='todoBatchAddForm' method='post' target='hiddenwin' action='<?php echo $this->createLink('todo', 'batchCreate');?>'>
|
||||
<div id="mainContent">
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
<?php
|
||||
if($module == 'entry' and $method == 'visit') return true;
|
||||
Reference in New Issue
Block a user