avatar dynamic, solve issue 115 related to the case tracker
This commit is contained in:
63
workflow/engine/bin/plugins/cronSendNotification.php
Normal file
63
workflow/engine/bin/plugins/cronSendNotification.php
Normal file
@@ -0,0 +1,63 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
/****************************************************************************************************
|
||||||
|
* cronUserNotification.php
|
||||||
|
* Class for execute the cron of "UserNotification"
|
||||||
|
*
|
||||||
|
* Created by Ronald Nina
|
||||||
|
* ronald.nina@processmaker.com
|
||||||
|
****************************************************************************************************/
|
||||||
|
|
||||||
|
class cronSendNotificationClassCron
|
||||||
|
{
|
||||||
|
public function executeCron()
|
||||||
|
{
|
||||||
|
try {
|
||||||
|
G::loadClass('pmFunctions');
|
||||||
|
|
||||||
|
if (SYS_SYS == 'workflow' || SYS_SYS == 'fassil') {
|
||||||
|
require_once PATH_PLUGINS . 'psFassilManagement/classes/class.cronSendNotification.php';
|
||||||
|
$initTime = date('Y-m-d H:i:s');
|
||||||
|
$pathCron = PATH_CORE . 'bin' . PATH_SEP . 'plugins' . PATH_SEP . 'cronSendNotification.php';
|
||||||
|
echo "\n";
|
||||||
|
eprintln("--- Initiating cron 'Task 5 Fassil' " . $initTime, 'green');
|
||||||
|
|
||||||
|
$sqlScontrol = "SELECT *
|
||||||
|
FROM PLUGINS_REGISTRY
|
||||||
|
WHERE PLUGIN_CLASS_NAME = 'psFassilManagementPlugin'
|
||||||
|
";
|
||||||
|
$resScontrol = executeQuery($sqlScontrol);
|
||||||
|
$resScontrol = array_shift($resScontrol);
|
||||||
|
if ($resScontrol['PLUGIN_ENABLE'] == 1) {
|
||||||
|
$cCronSendNotification = new cronSendNotification();
|
||||||
|
$cCronSendNotification->searchCases();
|
||||||
|
// g::pr($this->searchSificonParameter('Url'));
|
||||||
|
|
||||||
|
$endTime = date('Y-m-d H:i:s');
|
||||||
|
eprintln('--- The cron file: ' . $pathCron . ' has been executed succesfully ' . $endTime, 'green');
|
||||||
|
} else {
|
||||||
|
eprintln('--- The plugin psFassilManagementPlugin is disabled', 'red');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} catch (Exception $e) {
|
||||||
|
return $e->getMessage();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public function searchSificonParameter($key)
|
||||||
|
{
|
||||||
|
$sQselectSSP = "SELECT *
|
||||||
|
FROM PMT_SOL_SIFICON_PARAMETERS
|
||||||
|
WHERE SSP_KEY='$key'";
|
||||||
|
$sSelectSSP = executeQuery($sQselectSSP);
|
||||||
|
$return = '';
|
||||||
|
if (count($sSelectSSP) > 0) {
|
||||||
|
$sSelectSSP = array_shift($sSelectSSP);
|
||||||
|
$return = $sSelectSSP['SSP_VALUE'];
|
||||||
|
}
|
||||||
|
return $return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// $cronSendNotification = new cronSendNotificationClassCron();
|
||||||
|
// $cronSendNotification->executeCron();
|
||||||
@@ -0,0 +1,46 @@
|
|||||||
|
<?php
|
||||||
|
/****************************************************************************************************
|
||||||
|
* cronUserNotificationDerivation.php
|
||||||
|
* Class for execute the cron of "UserNotificationDerivation"
|
||||||
|
*
|
||||||
|
* Created by Ronald Nina
|
||||||
|
* ronald.nina@processmaker.com
|
||||||
|
****************************************************************************************************/
|
||||||
|
|
||||||
|
class cronSendNotificationDerivationClassCron
|
||||||
|
{
|
||||||
|
public function executeCron()
|
||||||
|
{
|
||||||
|
try {
|
||||||
|
G::loadClass('pmFunctions');
|
||||||
|
if (SYS_SYS == 'workflow' || SYS_SYS == 'fassil') {
|
||||||
|
require_once PATH_PLUGINS . 'psFassilManagement/classes/class.cronSendNotificationDerivation.php';
|
||||||
|
$initTime = date('Y-m-d H:i:s');
|
||||||
|
$pathCron = PATH_CORE . 'bin' . PATH_SEP . 'plugins' . PATH_SEP . 'cronSendNotificationDerivation.php';
|
||||||
|
echo "\n";
|
||||||
|
eprintln("--- Initiating cron 'Task 5 Fassil' " . $initTime, 'green');
|
||||||
|
|
||||||
|
$sqlScontrol = "SELECT *
|
||||||
|
FROM PLUGINS_REGISTRY
|
||||||
|
WHERE PLUGIN_CLASS_NAME = 'psFassilManagementPlugin'
|
||||||
|
";
|
||||||
|
$resScontrol = executeQuery($sqlScontrol);
|
||||||
|
$resScontrol = array_shift($resScontrol);
|
||||||
|
if ($resScontrol['PLUGIN_ENABLE'] == 1) {
|
||||||
|
$cCronSendNotificationDerivation = new cronSendNotificationDerivation();
|
||||||
|
$cCronSendNotificationDerivation->searchCases();
|
||||||
|
|
||||||
|
$endTime = date('Y-m-d H:i:s');
|
||||||
|
eprintln('--- The cron file: ' . $pathCron . ' has been executed succesfully ' . $endTime, 'green');
|
||||||
|
} else {
|
||||||
|
eprintln('--- The plugin psFassilManagementPlugin is disabled', 'red');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} catch (Exception $e) {
|
||||||
|
return $e->getMessage();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// $cronSendNotification = new cronSendNotificationDerivationClassCron();
|
||||||
|
// $cronSendNotification->executeCron();
|
||||||
@@ -31,13 +31,15 @@
|
|||||||
|
|
||||||
<div id="user-section" class="log-box">
|
<div id="user-section" class="log-box">
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
{if $user_logged}
|
||||||
<img style="border-radius: 50px;" src="../users/users_ViewPhotoGrid?pUID={$user_logged}&h=0.21118583713816252" border="0" width="40" height="46"/></b></a> <i class=""></i>
|
<li>
|
||||||
|
<img style="border-radius: 50px;" src="../users/users_ViewPhotoGrid?pUID={$user_logged}&h=0.21118583713816252" border="0" width="40" height="46"/></b></a> <i class=""></i>
|
||||||
<ul>
|
|
||||||
<a href="../users/myInfo"><li>{$user}</li></a>
|
<ul>
|
||||||
</ul>
|
<a href="../users/myInfo"><li>{$user}</li></a>
|
||||||
</li>
|
</ul>
|
||||||
|
</li>
|
||||||
|
{/if}
|
||||||
<li class="logout-button"><a href="{$linklogout}"><div class="button_logout"><img src="/images/logout.png" border="0" width="22" height="26"></div></a></li>
|
<li class="logout-button"><a href="{$linklogout}"><div class="button_logout"><img src="/images/logout.png" border="0" width="22" height="26"></div></a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user