Features Send all email SLiMS Cendana

in #utopian-io7 years ago (edited)

U5du44Ys2qKX4k1FVdqmAtVSEGkJWRc_1680x8400.png

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
Functionality The feature I create is a feature to send emails at once to any book delays list to members,

Purpose created this feature aims to facilitate the user in sending email to each member of the delays simultaneously.

Location of Feature Additions Display
U5duGJ7sDvQ8mVKd48NbQaRmksZfZx5_1680x8400.jpg

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('

'.__('You don't have enough privileges to access this area!').'
');
}

/* 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


Follow2.jpg





Posted on Utopian.io - Rewarding Open Source Contributors

Sort:  

Your contribution cannot be approved because it does not follow the Utopian Rules.

  • Code must be merged into the repo.
  • Use markdown to handle the code properly.
  • Do not solicit other actions in your posts.

You can contact us on Discord.
[utopian-moderator]

Coin Marketplace

STEEM 0.16
TRX 0.13
JST 0.027
BTC 59273.25
ETH 2758.24
USDT 1.00
SBD 2.28