コード例 #1
0
ファイル: DetailView.php プロジェクト: hardikk/HNH
    $smarty->assign("EDIT_DUPLICATE", "permitted");
}
$smarty->assign("CREATEPDF", "permitted");
if (isPermitted("SalesOrder", "EditView", $_REQUEST['record']) == 'yes') {
    $smarty->assign("CONVERTSALESORDER", "permitted");
}
if (isPermitted("Invoice", "EditView", $_REQUEST['record']) == 'yes') {
    $smarty->assign("CONVERTINVOICE", "permitted");
}
if (isPermitted("Quotes", "Delete", $_REQUEST['record']) == 'yes') {
    $smarty->assign("DELETE", "permitted");
}
$smarty->assign("CONVERTMODE", 'quotetoinvoice');
$smarty->assign("MODULE", $currentModule);
//Get the associated Products and then display above Terms and Conditions
$smarty->assign("ASSOCIATED_PRODUCTS", getDetailAssociatedProducts('Quotes', $focus));
$check_button = Button_Check($module);
$smarty->assign("CHECK", $check_button);
$tabid = getTabid("Quotes");
$validationData = getDBValidationData($focus->tab_name, $tabid);
$data = split_validationdataArray($validationData);
$smarty->assign("VALIDATION_DATA_FIELDNAME", $data['fieldname']);
$smarty->assign("VALIDATION_DATA_FIELDDATATYPE", $data['datatype']);
$smarty->assign("VALIDATION_DATA_FIELDLABEL", $data['fieldlabel']);
$smarty->assign("EDIT_PERMISSION", isPermitted($currentModule, 'EditView', $_REQUEST['record']));
$smarty->assign("IS_REL_LIST", isPresentRelatedLists($currentModule));
if ($singlepane_view == 'true') {
    $related_array = getRelatedLists($currentModule, $focus);
    $smarty->assign("RELATEDLISTS", $related_array);
    require_once 'include/ListView/RelatedListViewSession.php';
    if (!empty($_REQUEST['selected_header']) && !empty($_REQUEST['relation_id'])) {
コード例 #2
0
$category = getParentTab();
$smarty->assign("CATEGORY", $category);
if (isPermitted("SalesOrder", "EditView", $_REQUEST['record']) == 'yes') {
    $smarty->assign("EDIT_DUPLICATE", "permitted");
}
$smarty->assign("CREATEPDF", "permitted");
if (isPermitted("Invoice", "EditView", $_REQUEST['record']) == 'yes') {
    $smarty->assign("CONVERTINVOICE", "permitted");
}
if (isPermitted("SalesOrder", "Delete", $_REQUEST['record']) == 'yes') {
    $smarty->assign("DELETE", "permitted");
}
$smarty->assign("MODULE", $currentModule);
$smarty->assign("CONVERTMODE", 'sotoinvoice');
//Get the associated Products and then display above Terms and Conditions
$smarty->assign("ASSOCIATED_PRODUCTS", getDetailAssociatedProducts('SalesOrder', $focus));
$tabid = getTabid("SalesOrder");
$validationData = getDBValidationData($focus->tab_name, $tabid);
$data = split_validationdataArray($validationData);
$smarty->assign("VALIDATION_DATA_FIELDNAME", $data['fieldname']);
$smarty->assign("VALIDATION_DATA_FIELDDATATYPE", $data['datatype']);
$smarty->assign("VALIDATION_DATA_FIELDLABEL", $data['fieldlabel']);
$smarty->assign("TODO_PERMISSION", CheckFieldPermission('parent_id', 'Calendar'));
$smarty->assign("EVENT_PERMISSION", CheckFieldPermission('parent_id', 'Events'));
$check_button = Button_Check($module);
$smarty->assign("CHECK", $check_button);
$smarty->assign("EDIT_PERMISSION", isPermitted($currentModule, 'EditView', $_REQUEST['record']));
$smarty->assign("IS_REL_LIST", isPresentRelatedLists($currentModule));
if ($singlepane_view == 'true') {
    $related_array = getRelatedLists($currentModule, $focus);
    $smarty->assign("RELATEDLISTS", $related_array);
コード例 #3
0
$validationArray = split_validationdataArray(getDBValidationData($focus->tab_name, $tabid));
$smarty->assign('VALIDATION_DATA_FIELDNAME', $validationArray['fieldname']);
$smarty->assign('VALIDATION_DATA_FIELDDATATYPE', $validationArray['datatype']);
$smarty->assign('VALIDATION_DATA_FIELDLABEL', $validationArray['fieldlabel']);
$smarty->assign('EDIT_PERMISSION', isPermitted($currentModule, 'EditView', $record));
$smarty->assign('CHECK', $tool_buttons);
if (PerformancePrefs::getBoolean('DETAILVIEW_RECORD_NAVIGATION', true) && isset($_SESSION[$currentModule . '_listquery'])) {
    $recordNavigationInfo = ListViewSession::getListViewNavigation($focus->id);
    VT_detailViewNavigation($smarty, $recordNavigationInfo, $focus->id);
}
if (isPermitted('Invoice', 'EditView', $record) == 'yes') {
    $smarty->assign('CONVERTINVOICE', 'permitted');
}
$smarty->assign('CONVERTMODE', 'sotoinvoice');
//Get the associated Products and then display above Terms and Conditions
$smarty->assign('ASSOCIATED_PRODUCTS', getDetailAssociatedProducts($currentModule, $focus));
$smarty->assign('TODO_PERMISSION', CheckFieldPermission('parent_id', 'Calendar'));
$smarty->assign('EVENT_PERMISSION', CheckFieldPermission('parent_id', 'Events'));
$smarty->assign('CREATEPDF', 'permitted');
$salesorder_no = getModuleSequenceNumber($currentModule, $record);
$smarty->assign('SO_NO', $salesorder_no);
$smarty->assign('IS_REL_LIST', isPresentRelatedLists($currentModule));
$smarty->assign('SinglePane_View', $singlepane_view);
if ($singlepane_view == 'true') {
    $related_array = getRelatedLists($currentModule, $focus);
    $smarty->assign("RELATEDLISTS", $related_array);
    require_once 'include/ListView/RelatedListViewSession.php';
    if (!empty($_REQUEST['selected_header']) && !empty($_REQUEST['relation_id'])) {
        RelatedListViewSession::addRelatedModuleToSession(vtlib_purify($_REQUEST['relation_id']), vtlib_purify($_REQUEST['selected_header']));
    }
    $open_related_modules = RelatedListViewSession::getRelatedModulesFromSession();