コード例 #1
0
 public function getListSearchTemplateName()
 {
     $fieldModel = $this->get('field');
     $fieldName = $fieldModel->getName();
     if ($fieldName == 'modifiedby') {
         return 'uitypes/OwnerFieldSearchView.tpl';
     }
     return parent::getListSearchTemplateName();
 }
コード例 #2
0
ファイル: Field.php プロジェクト: noclav/UpdatePackages
 /**
  * Function to get the UI Type model for the uitype of the current field
  * @return Vtiger_Base_UIType or UI Type specific model instance
  */
 public function getUITypeModel()
 {
     if (!$this->get('uitypeModel')) {
         $this->set('uitypeModel', Vtiger_Base_UIType::getInstanceFromField($this));
     }
     return $this->get('uitypeModel');
 }
コード例 #3
0
ファイル: Field.php プロジェクト: cannking/vtigercrm-debug
 /**
  * Function whcih will get the databse insert value format from user format
  * @param type $value in user format
  * @return type
  */
 public function getDBInsertValue($value)
 {
     if (!$this->uitype_instance) {
         $this->uitype_instance = Vtiger_Base_UIType::getInstanceFromField($this);
     }
     $uiTypeInstance = $this->uitype_instance;
     return $uiTypeInstance->getDBInsertValue($value);
 }
コード例 #4
0
ファイル: FieldSetter.php プロジェクト: cin-system/cinrepo
 public function apply(VTEntity &$toContext, $setterMap, VTEntity $fromContext = null, \Workflow\Task $task = null)
 {
     $jtxdecfn = "field";
     $ykkkyupx = "objectCache";
     ${"GLOBALS"}["rtzxyhiqfivb"] = "value";
     $yevtiaci = "fromContext";
     ${"GLOBALS"}["woebhgb"] = "fieldValue";
     ${$ykkkyupx} = array();
     if (null == ${${"GLOBALS"}["bitjixxcg"]}) {
         ${"GLOBALS"}["vbnpbte"] = "fromContext";
         ${${"GLOBALS"}["vbnpbte"]} = ${${"GLOBALS"}["hnnwbzkhy"]};
     }
     ${${"GLOBALS"}["woebhgb"]} = $this->getFieldValueArray(${$yevtiaci}, ${${"GLOBALS"}["erpiwopypy"]});
     ${"GLOBALS"}["bieyrqqmbgvl"] = "fieldValue";
     ${"GLOBALS"}["khengqklknf"] = "objectCache";
     foreach (${${"GLOBALS"}["bieyrqqmbgvl"]} as ${$jtxdecfn} => ${${"GLOBALS"}["rtzxyhiqfivb"]}) {
         $vkovhqulq = "field";
         preg_match("/(\\[([a-zA-Z0-9]*)((,(.*))?)\\])|({(.*?)}}>)|\\((\\w+) ?: \\(([_\\w]+)\\) (\\w+)\\)/", ${$vkovhqulq}, ${${"GLOBALS"}["sgynshy"]});
         if (count(${${"GLOBALS"}["sgynshy"]}) > 2) {
             ${"GLOBALS"}["oeccmsx"] = "matches";
             $vpjfklp = "matches";
             ${"GLOBALS"}["pppntlshhk"] = "field";
             if (!isset(${${"GLOBALS"}["huqbgqdhhin"]}[${${"GLOBALS"}["oeccmsx"]}[8]])) {
                 ${"GLOBALS"}["bqorwtm"] = "matches";
                 $egfjzrecy = "objectCache";
                 ${"GLOBALS"}["fomihhfjixg"] = "matches";
                 ${$egfjzrecy}[${${"GLOBALS"}["bqorwtm"]}[8]] = $toContext->getReference(${${"GLOBALS"}["sgynshy"]}[9], ${${"GLOBALS"}["fomihhfjixg"]}[8]);
             }
             ${${"GLOBALS"}["xwtnxwytql"]} = ${${"GLOBALS"}["huqbgqdhhin"]}[${$vpjfklp}[8]];
             ${${"GLOBALS"}["pppntlshhk"]} = ${${"GLOBALS"}["sgynshy"]}[10];
         } else {
             ${"GLOBALS"}["phomncnribd"] = "targetContext";
             ${${"GLOBALS"}["phomncnribd"]} = ${${"GLOBALS"}["hnnwbzkhy"]};
         }
         if (!is_string(${${"GLOBALS"}["bxxvxz"]})) {
             ${${"GLOBALS"}["lgepqtgft"]} = \Vtiger_Module_Model::getInstance($targetContext->getModuleName());
             ${${"GLOBALS"}["slngmufkq"]} = \Vtiger_Field_Model::getInstance(${${"GLOBALS"}["vzpkdui"]}, ${${"GLOBALS"}["lgepqtgft"]});
             ${"GLOBALS"}["qjjkwlung"] = "fieldObj";
             ${"GLOBALS"}["vrdpiiaxnht"] = "fieldObj";
             if (!empty(${${"GLOBALS"}["vrdpiiaxnht"]}) && ${${"GLOBALS"}["qjjkwlung"]} instanceof \Vtiger_Field_Model) {
                 ${${"GLOBALS"}["jhxstevtqz"]} = \Vtiger_Base_UIType::getInstanceFromField(${${"GLOBALS"}["slngmufkq"]});
                 ${${"GLOBALS"}["bxxvxz"]} = $editObj->getDBInsertValue(${${"GLOBALS"}["bxxvxz"]});
             } else {
                 continue;
             }
         }
         $targetContext->set(${${"GLOBALS"}["vzpkdui"]}, ${${"GLOBALS"}["bxxvxz"]});
     }
     foreach (${${"GLOBALS"}["khengqklknf"]} as ${${"GLOBALS"}["tnpznbep"]}) {
         $object->save();
     }
     return ${${"GLOBALS"}["hnnwbzkhy"]};
 }
    function content_56970bf26f937($_smarty_tpl)
    {
        ?>
<div class="relatedContainer"><input type="hidden" name="currentPageNum" value="<?php 
        echo $_smarty_tpl->tpl_vars['PAGING']->value->getCurrentPage();
        ?>
" /><?php 
        $_smarty_tpl->tpl_vars["RELATED_MODULE_NAME"] = new Smarty_variable($_smarty_tpl->tpl_vars['RELATED_MODULE']->value->get('name'), null, 0);
        ?>
<input type="hidden" name="relatedModuleName" class="relatedModuleName" value="<?php 
        echo $_smarty_tpl->tpl_vars['RELATED_MODULE_NAME']->value;
        ?>
" /><input type="hidden" value="<?php 
        echo $_smarty_tpl->tpl_vars['ORDER_BY']->value;
        ?>
" id="orderBy"><input type="hidden" value="<?php 
        echo $_smarty_tpl->tpl_vars['SORT_ORDER']->value;
        ?>
" id="sortOrder"><input type="hidden" value="<?php 
        echo $_smarty_tpl->tpl_vars['RELATED_ENTIRES_COUNT']->value;
        ?>
" id="noOfEntries"><input type='hidden' value="<?php 
        echo $_smarty_tpl->tpl_vars['PAGING']->value->getPageLimit();
        ?>
" id='pageLimit'><input type='hidden' value="<?php 
        echo $_smarty_tpl->tpl_vars['TOTAL_ENTRIES']->value;
        ?>
" id='totalCount'><div class="relatedHeader "><div class="btn-toolbar row-fluid"><div class="span6"><?php 
        $_smarty_tpl->tpl_vars['RELATED_LINK'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['RELATED_LINK']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['RELATED_LIST_LINKS']->value['LISTVIEWBASIC'];
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['RELATED_LINK']->key => $_smarty_tpl->tpl_vars['RELATED_LINK']->value) {
            $_smarty_tpl->tpl_vars['RELATED_LINK']->_loop = true;
            if ($_smarty_tpl->tpl_vars['RELATED_LINK']->value != null) {
                ?>
<div class="btn-group"><?php 
                ob_start();
                echo $_smarty_tpl->tpl_vars['RELATED_LINK']->value->get('_selectRelation');
                $_tmp1 = ob_get_clean();
                $_smarty_tpl->tpl_vars['IS_SELECT_BUTTON'] = new Smarty_variable($_tmp1, null, 0);
                ?>
<button type="button" class="btn [addButton<?php 
                if ($_smarty_tpl->tpl_vars['IS_SELECT_BUTTON']->value == true) {
                    ?>
 selectRelation <?php 
                }
                ?>
 "<?php 
                if ($_smarty_tpl->tpl_vars['IS_SELECT_BUTTON']->value == true) {
                    ?>
 data-moduleName=<?php 
                    echo $_smarty_tpl->tpl_vars['RELATED_LINK']->value->get('_module')->get('name');
                    ?>
 <?php 
                }
                if ($_smarty_tpl->tpl_vars['RELATED_LINK']->value->isPageLoadLink()) {
                    if ($_smarty_tpl->tpl_vars['RELATION_FIELD']->value) {
                        ?>
 data-name="<?php 
                        echo $_smarty_tpl->tpl_vars['RELATION_FIELD']->value->getName();
                        ?>
" <?php 
                    }
                }
                if ($_smarty_tpl->tpl_vars['IS_SELECT_BUTTON']->value != true) {
                    ?>
name="composeEmail"<?php 
                }
                ?>
><?php 
                if ($_smarty_tpl->tpl_vars['IS_SELECT_BUTTON']->value == false) {
                    ?>
<i class="icon-plus icon-white"></i><?php 
                }
                ?>
&nbsp;<strong><?php 
                echo $_smarty_tpl->tpl_vars['RELATED_LINK']->value->getLabel();
                ?>
</strong></button></div><?php 
            }
        }
        ?>
&nbsp;</div><div class="span6"><div class="pull-right"><span class="pageNumbers"><span class="pageNumbersText"><?php 
        if (!empty($_smarty_tpl->tpl_vars['RELATED_RECORDS']->value)) {
            echo $_smarty_tpl->tpl_vars['PAGING']->value->getRecordStartRange();
            echo vtranslate('LBL_to', $_smarty_tpl->tpl_vars['RELATED_MODULE_NAME']->value);
            echo $_smarty_tpl->tpl_vars['PAGING']->value->getRecordEndRange();
        } else {
            ?>
<span>&nbsp;</span><?php 
        }
        ?>
</span><span class="icon-refresh pull-right totalNumberOfRecords cursorPointer<?php 
        if (empty($_smarty_tpl->tpl_vars['RELATED_RECORDS']->value)) {
            ?>
 hide<?php 
        }
        ?>
"></span></span><span class="btn-group"><button class="btn" id="relatedListPreviousPageButton" <?php 
        if (!$_smarty_tpl->tpl_vars['PAGING']->value->isPrevPageExists()) {
            ?>
 disabled <?php 
        }
        ?>
 type="button"><span class="icon-chevron-left"></span></button><button class="btn dropdown-toggle" type="button" id="relatedListPageJump" data-toggle="dropdown" <?php 
        if ($_smarty_tpl->tpl_vars['PAGE_COUNT']->value == 1) {
            ?>
 disabled <?php 
        }
        ?>
><i class="vtGlyph vticon-pageJump" title="<?php 
        echo vtranslate('LBL_LISTVIEW_PAGE_JUMP', $_smarty_tpl->tpl_vars['moduleName']->value);
        ?>
"></i></button><ul class="listViewBasicAction dropdown-menu" id="relatedListPageJumpDropDown"><li><span class="row-fluid"><span class="span3"><span class="pull-right"><?php 
        echo vtranslate('LBL_PAGE', $_smarty_tpl->tpl_vars['moduleName']->value);
        ?>
</span></span><span class="span4"><input type="text" id="pageToJump" class="listViewPagingInput" value="<?php 
        echo $_smarty_tpl->tpl_vars['PAGING']->value->getCurrentPage();
        ?>
"/></span><span class="span2 textAlignCenter"><?php 
        echo vtranslate('LBL_OF', $_smarty_tpl->tpl_vars['moduleName']->value);
        ?>
</span><span class="span3" id="totalPageCount"><?php 
        echo $_smarty_tpl->tpl_vars['PAGE_COUNT']->value;
        ?>
</span></span></li></ul><button class="btn" id="relatedListNextPageButton" <?php 
        if (!$_smarty_tpl->tpl_vars['PAGING']->value->isNextPageExists() || $_smarty_tpl->tpl_vars['PAGE_COUNT']->value == 1) {
            ?>
 disabled <?php 
        }
        ?>
 type="button"><span class="icon-chevron-right"></span></button></span></div></div></div></div><div class="contents-topscroll"><div class="topscroll-div">&nbsp;</div></div><div class="relatedContents contents-bottomscroll"><div class="bottomscroll-div"><?php 
        $_smarty_tpl->tpl_vars['WIDTHTYPE'] = new Smarty_variable($_smarty_tpl->tpl_vars['USER_MODEL']->value->get('rowheight'), null, 0);
        ?>
<table class="table table-bordered listViewEntriesTable"><thead><tr class="listViewHeaders"><?php 
        $_smarty_tpl->tpl_vars['HEADER_FIELD'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['HEADER_FIELD']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['RELATED_HEADERS']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        $_smarty_tpl->tpl_vars['HEADER_FIELD']->total = $_smarty_tpl->_count($_from);
        $_smarty_tpl->tpl_vars['HEADER_FIELD']->iteration = 0;
        foreach ($_from as $_smarty_tpl->tpl_vars['HEADER_FIELD']->key => $_smarty_tpl->tpl_vars['HEADER_FIELD']->value) {
            $_smarty_tpl->tpl_vars['HEADER_FIELD']->_loop = true;
            $_smarty_tpl->tpl_vars['HEADER_FIELD']->iteration++;
            $_smarty_tpl->tpl_vars['HEADER_FIELD']->last = $_smarty_tpl->tpl_vars['HEADER_FIELD']->iteration === $_smarty_tpl->tpl_vars['HEADER_FIELD']->total;
            if ($_smarty_tpl->tpl_vars['HEADER_FIELD']->value != null) {
                ?>
<th class="<?php 
                echo $_smarty_tpl->tpl_vars['WIDTHTYPE']->value;
                ?>
"><?php 
                if ($_smarty_tpl->tpl_vars['HEADER_FIELD']->value->get('column') == 'access_count' || $_smarty_tpl->tpl_vars['HEADER_FIELD']->value->get('column') == 'idlists') {
                    ?>
<a href="javascript:void(0);" class="noSorting"><?php 
                    echo vtranslate($_smarty_tpl->tpl_vars['HEADER_FIELD']->value->get('label'), $_smarty_tpl->tpl_vars['RELATED_MODULE_NAME']->value);
                    ?>
</a><?php 
                } else {
                    ?>
<a href="javascript:void(0);" class="relatedListHeaderValues" data-nextsortorderval="<?php 
                    if ($_smarty_tpl->tpl_vars['COLUMN_NAME']->value == $_smarty_tpl->tpl_vars['HEADER_FIELD']->value->get('column')) {
                        echo $_smarty_tpl->tpl_vars['NEXT_SORT_ORDER']->value;
                    } else {
                        ?>
ASC<?php 
                    }
                    ?>
" data-fieldname="<?php 
                    echo $_smarty_tpl->tpl_vars['HEADER_FIELD']->value->get('column');
                    ?>
"><?php 
                    echo vtranslate(html_entity_decode($_smarty_tpl->tpl_vars['HEADER_FIELD']->value->get('label')), $_smarty_tpl->tpl_vars['RELATED_MODULE_NAME']->value);
                    ?>
&nbsp;&nbsp;<?php 
                    if ($_smarty_tpl->tpl_vars['COLUMN_NAME']->value == $_smarty_tpl->tpl_vars['HEADER_FIELD']->value->get('column')) {
                        ?>
<img class="<?php 
                        echo $_smarty_tpl->tpl_vars['SORT_IMAGE']->value;
                        ?>
"><?php 
                    }
                    ?>
</a><?php 
                }
                ?>
</th><?php 
            }
        }
        ?>
</tr></thead><?php 
        $_smarty_tpl->tpl_vars['RELATED_RECORD'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['RELATED_RECORD']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['RELATED_RECORDS']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['RELATED_RECORD']->key => $_smarty_tpl->tpl_vars['RELATED_RECORD']->value) {
            $_smarty_tpl->tpl_vars['RELATED_RECORD']->_loop = true;
            if ($_smarty_tpl->tpl_vars['RELATED_RECORD']->value != null) {
                ?>
<tr class="listViewEntries" data-id='<?php 
                echo $_smarty_tpl->tpl_vars['RELATED_RECORD']->value->getId();
                ?>
' name="emailsRelatedRecord"><?php 
                $_smarty_tpl->tpl_vars['HEADER_FIELD'] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars['HEADER_FIELD']->_loop = false;
                $_from = $_smarty_tpl->tpl_vars['RELATED_HEADERS']->value;
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                $_smarty_tpl->tpl_vars['HEADER_FIELD']->total = $_smarty_tpl->_count($_from);
                $_smarty_tpl->tpl_vars['HEADER_FIELD']->iteration = 0;
                foreach ($_from as $_smarty_tpl->tpl_vars['HEADER_FIELD']->key => $_smarty_tpl->tpl_vars['HEADER_FIELD']->value) {
                    $_smarty_tpl->tpl_vars['HEADER_FIELD']->_loop = true;
                    $_smarty_tpl->tpl_vars['HEADER_FIELD']->iteration++;
                    $_smarty_tpl->tpl_vars['HEADER_FIELD']->last = $_smarty_tpl->tpl_vars['HEADER_FIELD']->iteration === $_smarty_tpl->tpl_vars['HEADER_FIELD']->total;
                    if ($_smarty_tpl->tpl_vars['HEADER_FIELD']->value != null) {
                        $_smarty_tpl->tpl_vars['RELATED_HEADERNAME'] = new Smarty_variable($_smarty_tpl->tpl_vars['HEADER_FIELD']->value->get('name'), null, 0);
                        ?>
<td class="<?php 
                        echo $_smarty_tpl->tpl_vars['WIDTHTYPE']->value;
                        ?>
"><?php 
                        if ($_smarty_tpl->tpl_vars['HEADER_FIELD']->value->isNameField() == true || $_smarty_tpl->tpl_vars['HEADER_FIELD']->value->get('uitype') == '4') {
                            ?>
<a><?php 
                            echo $_smarty_tpl->tpl_vars['RELATED_RECORD']->value->getDisplayValue($_smarty_tpl->tpl_vars['RELATED_HEADERNAME']->value);
                            ?>
</a><?php 
                        } elseif ($_smarty_tpl->tpl_vars['RELATED_HEADERNAME']->value == 'access_count') {
                            echo $_smarty_tpl->tpl_vars['RELATED_RECORD']->value->getAccessCountValue($_smarty_tpl->tpl_vars['PARENT_RECORD']->value->getId());
                        } elseif ($_smarty_tpl->tpl_vars['RELATED_HEADERNAME']->value == 'date_start') {
                            if ($_smarty_tpl->tpl_vars['EMAIL_FLAG']->value != 'SAVED') {
                                echo $_smarty_tpl->tpl_vars['RELATED_RECORD']->value->getDisplayValue($_smarty_tpl->tpl_vars['RELATED_HEADERNAME']->value);
                            } elseif ($_smarty_tpl->tpl_vars['RELATED_RECORD']->value->isFromMailManager()) {
                                ?>
<span class="label label-warning"><?php 
                                echo vtranslate('LBL_ATTACHED', $_smarty_tpl->tpl_vars['RELATED_MODULE_NAME']->value);
                                ?>
</span><?php 
                            }
                        } elseif ($_smarty_tpl->tpl_vars['RELATED_HEADERNAME']->value == 'time_start') {
                            if ($_smarty_tpl->tpl_vars['EMAIL_FLAG']->value != 'SAVED') {
                                echo $_smarty_tpl->tpl_vars['RELATED_RECORD']->value->getDisplayValue($_smarty_tpl->tpl_vars['RELATED_HEADERNAME']->value);
                            } elseif ($_smarty_tpl->tpl_vars['RELATED_RECORD']->value->isFromMailManager()) {
                                ?>
<span class="label label-warning"><?php 
                                echo vtranslate('LBL_ATTACHED', $_smarty_tpl->tpl_vars['RELATED_MODULE_NAME']->value);
                                ?>
</span><?php 
                            }
                        } elseif ($_smarty_tpl->tpl_vars['RELATED_HEADERNAME']->value == 'parent_id') {
                            $_smarty_tpl->tpl_vars['REFERENCE_RECORD'] = new Smarty_variable($_smarty_tpl->tpl_vars['RELATED_RECORD']->value->get($_smarty_tpl->tpl_vars['RELATED_HEADERNAME']->value), null, 0);
                            $_smarty_tpl->tpl_vars['RECORD_MODULE_MODEL'] = new Smarty_variable($_smarty_tpl->tpl_vars['RELATED_RECORD']->value->getModule(), null, 0);
                            $_smarty_tpl->tpl_vars['RECORD_FIELD_MODEL'] = new Smarty_variable($_smarty_tpl->tpl_vars['RECORD_MODULE_MODEL']->value->getField($_smarty_tpl->tpl_vars['RELATED_HEADERNAME']->value), null, 0);
                            $_smarty_tpl->tpl_vars['UI_TYPE_MODEL'] = new Smarty_variable(Vtiger_Base_UIType::getInstanceFromField($_smarty_tpl->tpl_vars['RECORD_FIELD_MODEL']->value), null, 0);
                            $_smarty_tpl->tpl_vars['REFERENCE_MODULE_MODEL'] = new Smarty_variable($_smarty_tpl->tpl_vars['UI_TYPE_MODEL']->value->getReferenceModule($_smarty_tpl->tpl_vars['REFERENCE_RECORD']->value), null, 0);
                            $_smarty_tpl->tpl_vars['REFERENCE_MODULE_NAME'] = new Smarty_variable($_smarty_tpl->tpl_vars['REFERENCE_MODULE_MODEL']->value->get('name'), null, 0);
                            $_smarty_tpl->tpl_vars['REFERENCE_RECORD_ENTIYNAME_LIST'] = new Smarty_variable(getEntityName($_smarty_tpl->tpl_vars['REFERENCE_MODULE_NAME']->value, $_smarty_tpl->tpl_vars['REFERENCE_RECORD']->value), null, 0);
                            ?>
<a href="index.php?module=<?php 
                            echo $_smarty_tpl->tpl_vars['REFERENCE_MODULE_NAME']->value;
                            ?>
&view=<?php 
                            echo $_smarty_tpl->tpl_vars['REFERENCE_MODULE_MODEL']->value->getDetailViewName();
                            ?>
&record=<?php 
                            echo $_smarty_tpl->tpl_vars['REFERENCE_RECORD']->value;
                            ?>
"title="<?php 
                            echo vtranslate($_smarty_tpl->tpl_vars['REFERENCE_MODULE_NAME']->value, $_smarty_tpl->tpl_vars['REFERENCE_MODULE_NAME']->value);
                            ?>
"onclick="if(event.stopPropagation){event.stopPropagation();}else{event.cancelBubble=true;}"><?php 
                            echo $_smarty_tpl->tpl_vars['REFERENCE_RECORD_ENTIYNAME_LIST']->value[$_smarty_tpl->tpl_vars['REFERENCE_RECORD']->value];
                            ?>
</a><?php 
                        } elseif ($_smarty_tpl->tpl_vars['HEADER_FIELD']->value->getFieldDataType() == 'owner') {
                            echo getOwnerName($_smarty_tpl->tpl_vars['RELATED_RECORD']->value->get($_smarty_tpl->tpl_vars['RELATED_HEADERNAME']->value));
                        } else {
                            echo $_smarty_tpl->tpl_vars['RELATED_RECORD']->value->getDisplayValue($_smarty_tpl->tpl_vars['RELATED_HEADERNAME']->value);
                        }
                        if ($_smarty_tpl->tpl_vars['HEADER_FIELD']->last) {
                            ?>
<div class="pull-right actions"><span class="actionImages"><a name="emailsDetailView"><i title="<?php 
                            echo vtranslate('LBL_SHOW_COMPLETE_DETAILS', $_smarty_tpl->tpl_vars['MODULE']->value);
                            ?>
" class="icon-th-list alignMiddle"></i></a>&nbsp;<?php 
                            if (!$_smarty_tpl->tpl_vars['RELATED_RECORD']->value->isSentMail()) {
                                ?>
<a name="emailsEditView"><i title="<?php 
                                echo vtranslate('LBL_EDIT', $_smarty_tpl->tpl_vars['MODULE']->value);
                                ?>
" class="icon-pencil alignMiddle"></i></a><?php 
                            }
                            if ($_smarty_tpl->tpl_vars['IS_DELETABLE']->value) {
                                ?>
<a class="relationDelete"><i title="<?php 
                                echo vtranslate('LBL_DELETE', $_smarty_tpl->tpl_vars['MODULE']->value);
                                ?>
" class="icon-trash alignMiddle"></i></a><?php 
                            }
                            ?>
</span></div><?php 
                        }
                        ?>
</td><?php 
                    }
                }
                ?>
</tr><?php 
            }
        }
        ?>
</table></div></div></div>
<?php 
    }
コード例 #6
0
ファイル: Reference.php プロジェクト: cin-system/cinrepo
 public function getListSearchTemplateName()
 {
     global $log;
     $log->debug("Entering ./uitypes/Reference.php::getListSearchTemplateName");
     $fieldModel = $this->get('field');
     $fieldName = $fieldModel->getName();
     if ($fieldName == 'modifiedby') {
         return 'uitypes/OwnerFieldSearchView.tpl';
     }
     return parent::getListSearchTemplateName();
 }
コード例 #7
0
ファイル: ReferenceLink.php プロジェクト: reeid/YetiForceCRM
 public function getListSearchTemplateName()
 {
     return Vtiger_Base_UIType::getListSearchTemplateName();
 }