20201112
This commit is contained in:
@@ -483,7 +483,7 @@ class Reviewer extends Controller {
|
||||
|
||||
//发送email提醒审稿员
|
||||
$tt = $article_info['accept_sn'] . '<br>';
|
||||
$tt .= 'Dear ' . ( $reviewer_info['technical'] == "Others" || $reviewer_info['technical'] == "" ? "Dr." : $reviewer_info['technical']) . ($reviewer_info['realname'] == '' ? $reviewer_info["account"] : $reviewer_info['realname']) . '<br><br>';
|
||||
$tt .= 'Dear Dr. ' . ($reviewer_info['realname'] == '' ? $reviewer_info["account"] : $reviewer_info['realname']) . '<br><br>';
|
||||
|
||||
$tt .= 'The manuscript entitled “'.$article_info['title'].'” has'
|
||||
. ' been submitted to the journal '.$journal_info['title'].'. The Editor-in-Chief would'
|
||||
@@ -658,7 +658,8 @@ class Reviewer extends Controller {
|
||||
|
||||
//记录log
|
||||
//生成pdf文件
|
||||
$reviewer_pdf = self::pdftest($journal_info['title']);
|
||||
// $reviewer_pdf = self::pdftest($journal_info['title']);
|
||||
$reviewer_ZS = self::createReviewerZS($data['art_rev_id']);
|
||||
|
||||
//发送email->编辑
|
||||
$tt = 'Dear editor,<br>';
|
||||
@@ -671,7 +672,7 @@ class Reviewer extends Controller {
|
||||
$tt1 = 'You have reviewed 1 submission in the journal ' . $journal_info['title'] . ' during ' . date('Y') . '.Thank you for your support to our journal. This contribution is greatly appreciated.<br><br>';
|
||||
$tt1 .= 'Regards<br>Editorial Office<br>' . $journal_info['title'] . '<br><br>';
|
||||
$tt1 .= 'Contact us<br>TMR Publishing Group Address: 11 Cockle Bay Rd, Cockle Bay, Auckland 2014, New Zealand<br>Telephone: +64 02108293806<br>E-mail: publisher@tmrjournals.com';
|
||||
sendEmail($reviewer_info['email'], 'Your contribution is greatly appreciated', $journal_info['title'], $tt1, $journal_info['email'], $journal_info['epassword'], $reviewer_pdf);
|
||||
sendEmail($reviewer_info['email'], 'Your contribution is greatly appreciated', $journal_info['title'], $tt1, $journal_info['email'], $journal_info['epassword'], $reviewer_ZS);
|
||||
//记录usermsg
|
||||
add_usermsg($journal_info['editor_id'], 'Feedback questionnaire be unloaded.', '/articleReviewerDetail?id=' . $data['art_rev_id']);
|
||||
|
||||
@@ -875,7 +876,7 @@ class Reviewer extends Controller {
|
||||
$res = $this->article_reviewer_obj->insertGetId($insert_data);
|
||||
//发送email提醒审稿员
|
||||
$tt = $article_info['accept_sn'] . '<br>';
|
||||
$tt .= 'Dear ' . ($user_rev_info == null || $user_rev_info['technical'] == "Others" || $user_rev_info['technical'] == "" ? "Dr." : $user_rev_info['technical']) . ($user_info['realname'] == '' ? $user_info['account'] : $user_info['realname']) . '<br><br>';
|
||||
$tt .= 'Dear Dr. ' . ($user_info['realname'] == '' ? $user_info['account'] : $user_info['realname']) . '<br><br>';
|
||||
$tt .= 'The manuscript entitled “' . $article_info['title'] . '” has'
|
||||
. ' been submitted to the journal ' . $journal_info['title'] . '. The Editor-in-Chief would'
|
||||
. ' be most grateful if you could offer an opinion regarding its suitability for publication'
|
||||
@@ -1485,48 +1486,56 @@ class Reviewer extends Controller {
|
||||
public function pdft() {
|
||||
$this->pdftest('I am wjl');
|
||||
}
|
||||
|
||||
|
||||
private function createReviewerZS($art_rev_id){
|
||||
if (!file_exists(ROOT_PATH . 'public' . DS . 'reviewerZS' . DS . $art_rev_id . '.jpg')) {
|
||||
$this->createZS($art_rev_id);
|
||||
}
|
||||
return ROOT_PATH.'public' . DS . 'reviewerZS' . DS . $art_rev_id . '.jpg';
|
||||
}
|
||||
|
||||
/**
|
||||
* 生成pdf感谢reviewer
|
||||
*/
|
||||
private function pdftest($title) {
|
||||
$pdf = new TCPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false);
|
||||
$pdf->SetHeaderData('logo.png', 25, '', '', array(0, 64, 255), array(0, 64, 128));
|
||||
$pdf->setFooterData(array(0, 64, 0), array(0, 64, 128));
|
||||
$pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN));
|
||||
$pdf->setFooterFont(Array(PDF_FONT_NAME_DATA, '', PDF_FONT_SIZE_DATA));
|
||||
$pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED);
|
||||
$pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT);
|
||||
$pdf->SetHeaderMargin(PDF_MARGIN_HEADER);
|
||||
$pdf->SetFooterMargin(PDF_MARGIN_FOOTER);
|
||||
$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);
|
||||
$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
|
||||
if (@file_exists(dirname(__FILE__) . '/lang/eng.php')) {
|
||||
require_once(dirname(__FILE__) . '/lang/eng.php');
|
||||
$pdf->setLanguageArray($l);
|
||||
}
|
||||
$pdf->setFontSubsetting(true);
|
||||
$pdf->SetFont('times', '', 14, '', true);
|
||||
$pdf->AddPage();
|
||||
$pdf->setTextShadow(array('enabled' => true, 'depth_w' => 0.2, 'depth_h' => 0.2, 'color' => array(196, 196, 196), 'opacity' => 1, 'blend_mode' => 'Normal'));
|
||||
$html = '<div style="margin-top:300px;font-size:16px;"><h3>To whom it may concern</h3>'
|
||||
. 'You have reviewed 1 submission in the journal ' . $title . ' during ' . date('Y') . '
|
||||
Thank you for your support to our journal. This contribution is greatly appreciated.'
|
||||
. '<p>Regards<br>
|
||||
Editorial Office<br>
|
||||
' . $title . '</p>'
|
||||
. '<p><h3>Contact us</h3>
|
||||
TMR Publishing Group Address: 11 Cockle Bay Rd, Cockle Bay, Auckland 2014, New Zealand<br>
|
||||
Telephone: +64 02108293806<br>
|
||||
E-mail: publisher@tmrjournals.com</p></div>';
|
||||
|
||||
$pdf->writeHTMLCell(0, 0, '', '', $html, 0, 1, 0, true, '', true);
|
||||
// $pdf->Output('example_001.pdf', 'D');
|
||||
// $pdf_wj = 'd:/example_001.pdf';
|
||||
$pdf_wj = $_SERVER['DOCUMENT_ROOT'] . 'public/pdf/' . date('YmdHis') . 'thanks.pdf';
|
||||
// $pdf_wj = '/public/pdf/'.date('YMD').'/'.date('His').'thanks.pdf';
|
||||
$pdf->Output($pdf_wj, 'F');
|
||||
return $pdf_wj;
|
||||
}
|
||||
// private function pdftest($title) {
|
||||
// $pdf = new TCPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false);
|
||||
// $pdf->SetHeaderData('logo.png', 25, '', '', array(0, 64, 255), array(0, 64, 128));
|
||||
// $pdf->setFooterData(array(0, 64, 0), array(0, 64, 128));
|
||||
// $pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN));
|
||||
// $pdf->setFooterFont(Array(PDF_FONT_NAME_DATA, '', PDF_FONT_SIZE_DATA));
|
||||
// $pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED);
|
||||
// $pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT);
|
||||
// $pdf->SetHeaderMargin(PDF_MARGIN_HEADER);
|
||||
// $pdf->SetFooterMargin(PDF_MARGIN_FOOTER);
|
||||
// $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);
|
||||
// $pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
|
||||
// if (@file_exists(dirname(__FILE__) . '/lang/eng.php')) {
|
||||
// require_once(dirname(__FILE__) . '/lang/eng.php');
|
||||
// $pdf->setLanguageArray($l);
|
||||
// }
|
||||
// $pdf->setFontSubsetting(true);
|
||||
// $pdf->SetFont('times', '', 14, '', true);
|
||||
// $pdf->AddPage();
|
||||
// $pdf->setTextShadow(array('enabled' => true, 'depth_w' => 0.2, 'depth_h' => 0.2, 'color' => array(196, 196, 196), 'opacity' => 1, 'blend_mode' => 'Normal'));
|
||||
// $html = '<div style="margin-top:300px;font-size:16px;"><h3>To whom it may concern</h3>'
|
||||
// . 'You have reviewed 1 submission in the journal ' . $title . ' during ' . date('Y') . '
|
||||
//Thank you for your support to our journal. This contribution is greatly appreciated.'
|
||||
// . '<p>Regards<br>
|
||||
//Editorial Office<br>
|
||||
//' . $title . '</p>'
|
||||
// . '<p><h3>Contact us</h3>
|
||||
//TMR Publishing Group Address: 11 Cockle Bay Rd, Cockle Bay, Auckland 2014, New Zealand<br>
|
||||
//Telephone: +64 02108293806<br>
|
||||
//E-mail: publisher@tmrjournals.com</p></div>';
|
||||
//
|
||||
// $pdf->writeHTMLCell(0, 0, '', '', $html, 0, 1, 0, true, '', true);
|
||||
//// $pdf->Output('example_001.pdf', 'D');
|
||||
//// $pdf_wj = 'd:/example_001.pdf';
|
||||
// $pdf_wj = $_SERVER['DOCUMENT_ROOT'] . 'public/pdf/' . date('YmdHis') . 'thanks.pdf';
|
||||
//// $pdf_wj = '/public/pdf/'.date('YMD').'/'.date('His').'thanks.pdf';
|
||||
// $pdf->Output($pdf_wj, 'F');
|
||||
// return $pdf_wj;
|
||||
// }
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user