init
This commit is contained in:
71
modules/EcmProductCategories/EditView.php
Normal file
71
modules/EcmProductCategories/EditView.php
Normal file
@@ -0,0 +1,71 @@
|
||||
<?
|
||||
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
|
||||
|
||||
global $sugar_version, $sugar_config, $current_user, $app_strings, $mod_strings, $current_user, $app_list_strings;
|
||||
|
||||
|
||||
require_once('modules/EcmProductCategories/EcmProductCategory.php');
|
||||
require_once('modules/EcmProductCategories/Forms.php');
|
||||
require_once ('include/time.php');
|
||||
require_once('include/json_config.php');
|
||||
|
||||
$json_config = new json_config();
|
||||
|
||||
$focus = new EcmProductCategory();
|
||||
|
||||
if(isset($_REQUEST['record']))$focus->retrieve($_REQUEST['record']);
|
||||
|
||||
|
||||
require_once('include/MVC/View/SugarView.php');
|
||||
|
||||
|
||||
|
||||
|
||||
if(file_exists('modules/EcmProductCategories/views/view.edit.php')) {
|
||||
require_once('modules/EcmProductCategories/views/view.edit.php');
|
||||
$edit = new EcmProductCategory();
|
||||
}
|
||||
else{
|
||||
require_once('include/MVC/View/views/view.edit.php');
|
||||
$edit = new Viewedit();
|
||||
}
|
||||
|
||||
global $app_list_strings;
|
||||
|
||||
$file = 'modules/EcmGroupSales/EcmGroupSale.php';
|
||||
if(file_exists($file)) {
|
||||
$cc = array();
|
||||
require_once($file);
|
||||
$cc = EcmGroupSale::loadSettings();
|
||||
}
|
||||
$OPT = array();
|
||||
$OPT['row_item_height'] = $cc['row_item_height'];
|
||||
$OPT['row_item_height_selected'] = $cc['row_item_height_selected'];
|
||||
$OPT['rows_on_item_list'] = $cc['rows_on_item_list'];
|
||||
$OPT['position_table_height'] = $OPT['row_item_height']*$OPT['rows_on_item_list']+40+$OPT['rows_on_item_list']*4;
|
||||
$OPT['quick_product_item_adding'] = $cc['quick_product_item_adding'];
|
||||
$scriptOpt = '
|
||||
<script language="javascript">
|
||||
var VAT = '.str_replace('"','\"',$json->encode($VAT)).';
|
||||
var OPT = '.str_replace('"','\"',$json->encode($OPT)).';
|
||||
var MOD = '.str_replace('"','\"',$json->encode($mod_strings)).';
|
||||
var N;
|
||||
</script>';
|
||||
echo $scriptOpt;
|
||||
|
||||
$edit->bean = $focus;
|
||||
$edit->module = 'EcmProductCategories';
|
||||
$edit->ss = new Sugar_Smarty();
|
||||
$edit->ss->assign("OPT", $OPT);
|
||||
|
||||
|
||||
//features
|
||||
//$json = getJSONobj();
|
||||
//$features = $json->decode(htmlspecialchars_decode($focus->features));
|
||||
|
||||
|
||||
$edit->ss->assign('POSITION_LIST', htmlspecialchars_decode($focus->features));
|
||||
|
||||
$edit->preDisplay();
|
||||
|
||||
echo $edit->display();
|
||||
Reference in New Issue
Block a user