Features Send all email SLiMS Cendana
The addition of send all email feature may be very useful for users of the open source SLIMS Cendana application where in the previous application the list of previous book delays is sent by email one by one for members who have a delay in which this condition is a waste of time for users SLiMS Cendana
New Features
- Send All Emaill Overdue List
Purpose created this feature aims to facilitate the user in sending email to each member of the delays simultaneously.
Location of Feature Additions Display
How to Add Source Code Program Send All Email
- Open file /admin/circulation/submenu.php add source code :
$menu[] = array(__('Kirim Email Ke Semua'), MODULES_WEB_ROOT_DIR.'reporting/customs/sendmailall.php', __('Kirim Email ke Semua Anggota Terlambat'));
- create a named file sendmailall.php
- Copy the source code below to sendmailall.php
- Save
/* Reporting section */
// key to authentication
define('INDEX_AUTH', '1');
if (!defined('SENAYAN_BASE_DIR')) {
// main system configuration
require '../../../../sysconfig.inc.php';
// start the session
require SENAYAN_BASE_DIR.'admin/default/session.inc.php';
}
// IP based access limitation
require LIB_DIR.'ip_based_access.inc.php';
do_checkIP('smc');
do_checkIP('smc-circulation');
// start the session
require SENAYAN_BASE_DIR.'admin/default/session_check.inc.php';
require SIMBIO_BASE_DIR.'simbio_GUI/table/simbio_table.inc.php';
// privileges checking
$can_read = utility::havePrivilege('circulation', 'r') || utility::havePrivilege('reporting', 'r');
$can_write = utility::havePrivilege('circulation', 'w') || utility::havePrivilege('reporting', 'w');
if (!$can_read) {
die('
}
/* collection statistic */
$table = new simbio_table();
$table->table_attr = 'align="center" class="border" cellpadding="5" cellspacing="0"';
// Send mail to all member overdues
$memb = true;
$stat_data ='
$collection_stat[('Send Mail Overdue')] = $stat_data;
// table header
$table->setHeader(array(__('Collection Statistic Summary')));
$table->table_header_attr = 'class="dataListHeader"';
$table->setCellAttr(0, 0, 'colspan="3"');
// initial row count
$row = 1;
foreach ($collection_stat as $headings=>$stat_data) {
$table->appendTableRow(array($headings, ':', $stat_data));
// set cell attribute
$table->setCellAttr($row, 0, 'class="alterCell" valign="top" style="width: 170px;"');
$table->setCellAttr($row, 1, 'class="alterCell" valign="top" style="width: 1%;"');
$table->setCellAttr($row, 2, 'class="alterCell2" valign="top" style="width: auto;"');
// add row count
$row++;
}
?>
<?php echo $table->printTable(); /* collection statistic end */
Please support me the Curator and my Witnesser.
AiQa BRAGO
sndbox
good-karma
blocktrades
utopian-io
isnochys
busy.witness
busy.org
Posted on Utopian.io - Rewarding Open Source Contributors
Your contribution cannot be approved because it does not follow the Utopian Rules.
You can contact us on Discord.
[utopian-moderator]