本文整理汇总了PHP中getTranslatedString函数的典型用法代码示例。如果您正苦于以下问题:PHP getTranslatedString函数的具体用法?PHP getTranslatedString怎么用?PHP getTranslatedString使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了getTranslatedString函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: process
public function process(Vtiger_Request $request)
{
PDFMaker_Debugger_Model::GetInstance()->Init();
$PDFMaker = new PDFMaker_PDFMaker_Model();
if ($PDFMaker->CheckPermissions("DETAIL") == false) {
$PDFMaker->DieDuePermission();
}
$viewer = $this->getViewer($request);
if ($request->has('templateid') && !$request->isEmpty('templateid')) {
$pdftemplateResult = $PDFMaker->GetDetailViewData($_REQUEST['templateid']);
$viewer->assign("TEMPLATEID", $pdftemplateResult["templateid"]);
$viewer->assign("MODULENAME", getTranslatedString($pdftemplateResult["module"]));
$viewer->assign("BODY", decode_html($pdftemplateResult["body"]));
$viewer->assign("HEADER", decode_html($pdftemplateResult["header"]));
$viewer->assign("FOOTER", decode_html($pdftemplateResult["footer"]));
}
$version_type = $PDFMaker->GetVersionType();
$viewer->assign("VERSION", $version_type . " " . PDFMaker_Version_Helper::$version);
if ($PDFMaker->CheckPermissions("EDIT") && $PDFMaker->GetVersionType() != "deactivate") {
$viewer->assign("EDIT", "permitted");
}
$category = getParentTab();
$viewer->assign("CATEGORY", $category);
$viewer->view('Detail.tpl', 'PDFMaker');
}
示例2: process
public function process(Vtiger_Request $request)
{
${"GLOBALS"}["xnxyxvsvrf"] = "moduleName";
$jilpvudc = "qualifiedModuleName";
${${"GLOBALS"}["muyhebdebu"]} = PearDatabase::getInstance();
${${"GLOBALS"}["xnxyxvsvrf"]} = $request->getModule();
${$jilpvudc} = $request->getModule(false);
$fbqyempw = "request";
${${"GLOBALS"}["lftszpiucg"]} = $this->getViewer(${$fbqyempw});
${${"GLOBALS"}["hzvjzgp"]} = $request->get("configuration");
if (!empty(${${"GLOBALS"}["hzvjzgp"]})) {
${${"GLOBALS"}["hzvjzgp"]} = Zend_Json::decode(base64_decode($request->get("configuration")), true);
} else {
${${"GLOBALS"}["lqniwaxp"]} = $request->get("toModule");
${"GLOBALS"}["pvobwqmjqbh"] = "toModule";
${${"GLOBALS"}["hzvjzgp"]} = array("module" => ${${"GLOBALS"}["pvobwqmjqbh"]}, "condition" => array());
}
$fjfifovud = "configuration";
${${"GLOBALS"}["jupnbyhuc"]} = new \Workflow\Preset\Condition("condition", null, array("fromModule" => $request->get("fromModule"), "toModule" => ${${"GLOBALS"}["hzvjzgp"]}["module"], "enableHasChanged" => false, "container" => "conditionalPopupContainer"));
$preset->beforeGetTaskform(array(array("condition" => ${$fjfifovud}["condition"]), ${${"GLOBALS"}["lftszpiucg"]}));
$vxwvlrwj = "qualifiedModuleName";
$viewer->assign("toModule", ${${"GLOBALS"}["hzvjzgp"]}["module"]);
$viewer->assign("javascript", $preset->getInlineJS());
$viewer->assign("title", getTranslatedString($request->get("title"), "Settings:Workflow2"));
$viewer->view("ConditionPopup.tpl", ${$vxwvlrwj});
}
示例3: GetForgotPasswordUI
function GetForgotPasswordUI($mail_send_message = '')
{
$list .= '<html class="bg-gray"><head>';
$list .= '<link rel="stylesheet" type="text/css" href="css/style.css">';
$list .= '<meta name="viewport" content="width=device-width,initial-scale=1" />';
$list .= '<link href="css/bootstrap.min.css" rel="stylesheet" type="text/css" />';
$list .= '<link href="css/font-awesome.min.css" rel="stylesheet" type="text/css" />';
$list .= '<link href="css/ionicons.min.css" rel="stylesheet" type="text/css" />';
$list .= '<link href="css/morris/morris.css" rel="stylesheet" type="text/css" />';
$list .= '<link href="css/jvectormap/jquery-jvectormap-1.2.2.css" rel="stylesheet" type="text/css" />';
$list .= '<link href="css/datepicker/datepicker3.css" rel="stylesheet" type="text/css" />';
$list .= '<link href="css/daterangepicker/daterangepicker-bs3.css" rel="stylesheet" type="text/css" />';
$list .= '<link href="css/bootstrap-wysihtml5/bootstrap3-wysihtml5.min.css" rel="stylesheet" type="text/css" />';
$list .= '<link href="css/AdminLTE.css" rel="stylesheet" type="text/css" /></head>';
$list .= '<body class="bg-gray">';
$list .= '<div class="form-box" id="login-box">';
$list .= '<div class="header" style="font-weight: 400;">' . getTranslatedString('LBL_FORGOT_LOGIN') . '</div>';
$list .= '<form name="forgot_password" action="index.php" method="post">';
$list .= '<input type="hidden" name="email_id">';
$list .= '<input type="hidden" name="param" value="forgot_password">';
$list .= '<div class="body bg-gray">';
$list .= '<div class="form-group">';
if ($mail_send_message != '') {
$list .= "<span style = 'color:red;'>" . $mail_send_message . "</span>";
}
$list .= '<input class="form-control" type="text" PLACEHOLDER="' . getTranslatedString('LBL_YOUR_EMAIL') . '" name="email_id" VALUE=""/></div>';
$list .= '</div>';
$list .= '<div class="footer"><button class="btn bg-light-blue btn-block" type="submit" value="" style="font-size:16px;font=weight:500;">' . getTranslatedString('LBL_SEND_PASSWORD') . '</button><br/><a href = "login.php">' . getTranslatedString('LBL_BACK_TO_LOGIN') . '</a>';
$list .= '</div></form></div></body></html>';
return $list;
}
示例4: process
/**
* Process the request for Folder opertions
* @global <type> $list_max_entries_per_page
* @param MailManager_Request $request
* @return MailManager_Response
*/
function process(MailManager_Request $request)
{
global $list_max_entries_per_page, $current_user;
$response = new Vtiger_Response();
if ('open' == $request->getOperationArg()) {
$q = $request->get('q');
$foldername = $request->get('_folder');
$type = $request->get('type');
$connector = $this->getConnector($foldername);
$folder = $connector->folderInstance($foldername);
if (empty($q)) {
$connector->folderMails($folder, intval($request->get('_page', 0)), $list_max_entries_per_page);
} else {
if (empty($type)) {
$type = 'ALL';
}
if ($type == 'ON') {
$dateFormat = $current_user->date_format;
if ($dateFormat == 'mm-dd-yyyy') {
$dateArray = explode('-', $q);
$temp = $dateArray[0];
$dateArray[0] = $dateArray[1];
$dateArray[1] = $temp;
$q = implode('-', $dateArray);
}
$query = date('d M Y', strtotime($q));
$q = '' . $type . ' "' . vtlib_purify($query) . '"';
} else {
$q = '' . $type . ' "' . vtlib_purify($q) . '"';
}
$connector->searchMails($q, $folder, intval($request->get('_page', 0)), $list_max_entries_per_page);
}
$folderList = $connector->getFolderList();
$viewer = $this->getViewer();
$viewer->assign('TYPE', $type);
$viewer->assign('QUERY', $request->get('q'));
$viewer->assign('FOLDER', $folder);
$viewer->assign('FOLDERLIST', $folderList);
$viewer->assign('SEARCHOPTIONS', self::getSearchOptions());
$viewer->assign("JS_DATEFORMAT", parse_calendardate(getTranslatedString('NTC_DATE_FORMAT')));
$response->setResult($viewer->fetch($this->getModuleTpl('FolderOpen.tpl')));
} elseif ('drafts' == $request->getOperationArg()) {
$q = $request->get('q');
$type = $request->get('type');
$page = intval($request->get('_page', 0));
$connector = $this->getConnector('__vt_drafts');
$folder = $connector->folderInstance();
if (empty($q)) {
$draftMails = $connector->getDrafts($page, $list_max_entries_per_page, $folder);
} else {
$draftMails = $connector->searchDraftMails($q, $type, $page, $list_max_entries_per_page, $folder);
}
$viewer = $this->getViewer();
$viewer->assign('MAILS', $draftMails);
$viewer->assign('FOLDER', $folder);
$viewer->assign('SEARCHOPTIONS', MailManager_DraftController::getSearchOptions());
$response->setResult($viewer->fetch($this->getModuleTpl('FolderDrafts.tpl')));
}
return $response;
}
示例5: getDetailViewLinks
/**
* Overrided to remove Edit button, Duplicate button
* To remove related links
*/
public function getDetailViewLinks($linkParams)
{
$linkTypes = array('DETAILVIEWBASIC', 'DETAILVIEW');
$moduleModel = $this->getModule();
$recordModel = $this->getRecord();
$moduleName = $moduleModel->getName();
$recordId = $recordModel->getId();
$detailViewLink = array();
$linkModelListDetails = Vtiger_Link_Model::getAllByType($moduleModel->getId(), $linkTypes, $linkParams);
//Mark all detail view basic links as detail view links.
//Since ui will be look ugly if you need many basic links
$detailViewBasiclinks = $linkModelListDetails['DETAILVIEWBASIC'];
unset($linkModelListDetails['DETAILVIEWBASIC']);
if (Users_Privileges_Model::isPermitted($moduleName, 'Delete', $recordId)) {
$deletelinkModel = array('linktype' => 'DETAILVIEW', 'linklabel' => sprintf("%s %s", getTranslatedString('LBL_DELETE', $moduleName), vtranslate('SINGLE_' . $moduleName, $moduleName)), 'linkurl' => 'javascript:Vtiger_Detail_Js.deleteRecord("' . $recordModel->getDeleteUrl() . '")', 'linkicon' => '');
$linkModelList['DETAILVIEW'][] = Vtiger_Link_Model::getInstanceFromValues($deletelinkModel);
}
if (!empty($detailViewBasiclinks)) {
foreach ($detailViewBasiclinks as $linkModel) {
// Remove view history, needed in vtiger5 to see history but not in vtiger6
if ($linkModel->linklabel == 'View History') {
continue;
}
$linkModelList['DETAILVIEW'][] = $linkModel;
}
}
$widgets = $this->getWidgets();
foreach ($widgets as $widgetLinkModel) {
$linkModelList['DETAILVIEWWIDGET'][] = $widgetLinkModel;
}
return $linkModelList;
}
示例6: getDisplayName
function getDisplayName()
{
if ($this->_fieldLabel === false) {
$this->_fieldLabel = $this->fieldInstance->getFieldLabel();
}
return getTranslatedString($this->_fieldLabel, $this->parent->module);
}
示例7: getTypes
public static function getTypes($moduleName = '')
{
${"GLOBALS"}["rsyforj"] = "items";
$yhghycrv = "item";
${"GLOBALS"}["jjpaouxrl"] = "items";
${${"GLOBALS"}["rsyforj"]} = self::getItems();
${"GLOBALS"}["mlipujvkt"] = "return";
${${"GLOBALS"}["qpuxdgoupyck"]} = array();
foreach (${${"GLOBALS"}["jjpaouxrl"]} as ${$yhghycrv}) {
$cjmtnrv = "moduleName";
$ofeidrpfdz = "configs";
${"GLOBALS"}["cnnjcfbylpp"] = "configs";
${${"GLOBALS"}["cnnjcfbylpp"]} = $item->getFieldTypes(${$cjmtnrv});
${"GLOBALS"}["rmvovczyrx"] = "field";
foreach (${$ofeidrpfdz} as ${${"GLOBALS"}["rmvovczyrx"]}) {
${"GLOBALS"}["dueprqjk"] = "ItemCache";
$tkjitre = "field";
${${"GLOBALS"}["qrbgenphlby"]}["file"] = $item->getExtendableKey();
${"GLOBALS"}["xkxphut"] = "field";
$gbyjpxfwu = "field";
${$gbyjpxfwu}["title"] = getTranslatedString(${${"GLOBALS"}["xkxphut"]}["title"], "Settings:Workflow2");
${"GLOBALS"}["nfnyiwbb"] = "field";
self::${${"GLOBALS"}["dueprqjk"]}[${${"GLOBALS"}["qrbgenphlby"]}["id"]] = ${$tkjitre};
${${"GLOBALS"}["qpuxdgoupyck"]}[] = ${${"GLOBALS"}["nfnyiwbb"]};
}
}
return ${${"GLOBALS"}["mlipujvkt"]};
}
示例8: assignMessages
public static function assignMessages($crmid, $viewer)
{
$chwmfkvuq = "current_user";
$dpddjpchus = "row";
${"GLOBALS"}["pvcpgoobkx"] = "sql";
${"GLOBALS"}["dbjyloqr"] = "cu_model";
${$chwmfkvuq} = ${${"GLOBALS"}["dbjyloqr"]} = \Users_Record_Model::getCurrentUserModel();
${${"GLOBALS"}["gmbukkbbs"]} = \PearDatabase::getInstance();
$twasrbuxi = "result";
${${"GLOBALS"}["uxfpyp"]} = "SELECT * FROM vtiger_wf_messages WHERE\n (\n (crmid = " . ${${"GLOBALS"}["podklxc"]} . " AND target = \"record\") OR\n (crmid = " . $current_user->id . " AND target = \"user\")\n )\n AND (show_until = \"0000-00-00 00:00:00\" OR show_until >= NOW())";
${${"GLOBALS"}["ciokylfx"]} = $adb->query(${${"GLOBALS"}["pvcpgoobkx"]});
${"GLOBALS"}["esusgmf"] = "sql";
${${"GLOBALS"}["hbelbc"]} = array();
while (${$dpddjpchus} = $adb->fetchByAssoc(${$twasrbuxi})) {
$wyoevilr = "row";
${"GLOBALS"}["wtiuxgl"] = "messages";
${"GLOBALS"}["txeedjxevu"] = "row";
if (${$wyoevilr}["show_until"] != "0000-00-00 00:00:00") {
$ticepvccqsn = "row";
${"GLOBALS"}["kemkeniiqmz"] = "row";
${${"GLOBALS"}["kemkeniiqmz"]}["show_until"] = getTranslatedString("LBL_VISIBLE_UNTIL", "Workflow2") . ": " . \DateTimeField::convertToUserFormat(${$ticepvccqsn}["show_until"]);
} else {
${${"GLOBALS"}["wiurqquqjut"]}["show_until"] = "";
}
${${"GLOBALS"}["wtiuxgl"]}[] = ${${"GLOBALS"}["txeedjxevu"]};
}
$viewer->assign("messages", ${${"GLOBALS"}["hbelbc"]});
${${"GLOBALS"}["esusgmf"]} = "DELETE FROM vtiger_wf_messages WHERE\n (\n (crmid = " . intval($_REQUEST["record"]) . " AND target = 'record') OR\n (crmid = " . intval($current_user->id) . " AND target = 'user')\n ) AND\n (show_once = '1' OR (show_until != '0000-00-00 00:00:00' AND show_until < NOW()))";
$adb->query(${${"GLOBALS"}["uxfpyp"]});
}
示例9: pageInfo
function pageInfo()
{
$s = max(1, $this->mPageCurrent * $this->mPageLimit + 1);
$e = min($s + $this->mPageLimit - 1, $this->mCount);
$t = $this->mCount;
return sprintf("%s - %s " . getTranslatedString('LBL_LIST_OF') . " %s", $s, $e, $t);
}
示例10: process
public function process(Vtiger_Request $request)
{
$error_code = '';
$error_message = '';
$success = true;
if (!$request->get('mod') && !$request->get('path')) {
$error_code = 'error-param';
$error_message = getTranslatedString("LBL_ERROR_PARAM", $moduleName);
$success = false;
}
//Get module's structure from manifest file
if ($request->get("mod")) {
$o_module = $this->getStructureFromExistantModule($request->get("mod"));
} elseif ($request->get("path")) {
$o_module = $this->getStructureFromZipPackage($request->get("path"));
}
//Make JSON response
$response = new Vtiger_Response();
if (!$success) {
$response->setError($error_code, $error_message);
} else {
$response->setResult(array('module' => $o_module, 'basedir' => $this->moduleBaseDir));
}
$response->emit();
}
示例11: process
public function process(Vtiger_Request $request)
{
${"GLOBALS"}["psbjpvo"] = "result";
${"GLOBALS"}["uswgngzmuwcw"] = "row";
${"GLOBALS"}["nzxhurjvkxw"] = "adb";
${${"GLOBALS"}["nzxhurjvkxw"]} = PearDatabase::getInstance();
${${"GLOBALS"}["yoromzzx"]} = (int) $request->get("objectID");
echo " <div class=\"modelContainer\" style=\"width:550px;\">\n <form method=\"POST\" id=\"WorkflowImportForm\" action=\"index.php?module=Workflow2&parent=Settings&action=WorkflowImport\" enctype=\"multipart/form-data\">\n <div class=\"modal-header contentsBackground\">\n \t<button class=\"close\" aria-hidden=\"true\" data-dismiss=\"modal\" type=\"button\" title=\"{vtranslate('LBL_CLOSE')}\">x</button>\n <h3>Workflow Import</h3>\n </div>\n <input type=\"hidden\" name=\"workflowObjectId\"id=\"workflowObjectId\" value=\"";
${"GLOBALS"}["fxqlcmyx"] = "sql";
echo ${${"GLOBALS"}["yoromzzx"]};
$icmyyhunnhjw = "sql";
echo "\" />\n <div style=\"padding: 10px;\">\n\n ";
echo "<select id='recordSelector'>";
${${"GLOBALS"}["fxqlcmyx"]} = "SELECT user_name, id, first_name, last_name FROM vtiger_users WHERE deleted = 0 AND status = 'Active'";
${${"GLOBALS"}["iesrbgkyl"]} = $adb->query(${$icmyyhunnhjw}, ${${"GLOBALS"}["emsdxnpocl"]});
${${"GLOBALS"}["qrzksvmls"]} = array();
while (${${"GLOBALS"}["uswgngzmuwcw"]} = $adb->fetch_array(${${"GLOBALS"}["psbjpvo"]})) {
$ggrdmeqlbp = "row";
$mkyvkf = "row";
echo "<option value='" . ${${"GLOBALS"}["spxwbund"]}["id"] . "'>" . ${${"GLOBALS"}["spxwbund"]}["user_name"] . " [" . ${$ggrdmeqlbp}["last_name"] . ", " . ${$mkyvkf}["first_name"] . "]</option>";
}
echo "</select>";
echo " </div>\n <div class=\"modal-footer quickCreateActions\">\n <a class=\"cancelLink cancelLinkContainer pull-right\" type=\"reset\" data-dismiss=\"modal\">";
echo getTranslatedString("LBL_CLOSE", "Settings:Workflow2");
echo "</a>\n <button class=\"btn btn-success\" type=\"submit\" id=\"modalSubmitButton\" ><strong>Set</strong></button>\n \t</div>\n </form>\n </div>\n ";
exit;
}
示例12: process
public function process(Vtiger_Request $request)
{
$viewer = $this->getViewer($request);
$moduleName = $request->getModule();
$qualifiedModuleName = $request->getModule(false);
if (!$request->get("label") && !$request->get("block") || !$request->get("languages")) {
//Make JSON response
$response = new Vtiger_Response();
$response->setError('error-param', getTranslatedString("LBL_ERROR_PARAM", $moduleName));
$response->emit();
exit;
}
$languages = trim($request->get("languages"));
$a_languages = explode(",", $languages);
$a_block = $request->get("block");
//Repair bug with utf8 characters
if (!is_array($a_block)) {
$oldValue = Zend_Json::$useBuiltinEncoderDecoder;
Zend_Json::$useBuiltinEncoderDecoder = true;
$a_block = Zend_Json::decode($a_block);
Zend_Json::$useBuiltinEncoderDecoder = $oldValue;
foreach ($a_block as &$val) {
$val = utf8_encode($val);
}
}
$viewer->assign('MODULE', $moduleName);
$viewer->assign('QUALIFIED_MODULE', $qualifiedModuleName);
$viewer->assign('LIST_PARENT_TABS', $a_parent_tabs);
$viewer->assign('LIST_MODULES', $a_modules);
$viewer->assign('LIST_MANIFEST_TEMPLATES', $a_manifest_templates);
$viewer->assign('LIST_DIR_TEMPLATES', $a_dir_templates);
$viewer->assign('a_block', $a_block);
$viewer->assign('a_languages', $a_languages);
echo $viewer->view('EditBlockPopup.tpl', $qualifiedModuleName, true);
}
示例13: getComboArray
/** Function to returns the combo field values in array format
* @param $combofieldNames -- combofieldNames:: Type string array
* @returns $comboFieldArray -- comboFieldArray:: Type string array
*/
function getComboArray($combofieldNames)
{
global $log, $mod_strings;
$log->debug("Entering getComboArray(" . $combofieldNames . ") method ...");
global $adb, $current_user;
$roleid = $current_user->roleid;
$comboFieldArray = array();
foreach ($combofieldNames as $tableName => $arrayName) {
$fldArrName = $arrayName;
$arrayName = array();
$sql = "select {$tableName} from vtiger_{$tableName}";
$params = array();
if (!is_admin($current_user)) {
$subrole = getRoleSubordinates($roleid);
if (count($subrole) > 0) {
$roleids = $subrole;
array_push($roleids, $roleid);
} else {
$roleids = $roleid;
}
$sql = "select distinct {$tableName} from vtiger_{$tableName} inner join vtiger_role2picklist on vtiger_role2picklist.picklistvalueid = vtiger_{$tableName}.picklist_valueid where roleid in(" . generateQuestionMarks($roleids) . ") order by sortid";
$params = array($roleids);
}
$result = $adb->pquery($sql, $params);
while ($row = $adb->fetch_array($result)) {
$val = $row[$tableName];
$arrayName[$val] = getTranslatedString($val);
}
$comboFieldArray[$fldArrName] = $arrayName;
}
$log->debug("Exiting getComboArray method ...");
return $comboFieldArray;
}
示例14: getHistoryListViewEntries
/**
* Function to get the Login History values of the User.
* @param $navigation_array - Array values to navigate through the number of entries.
* @param $sortorder - DESC
* @param $orderby - login_time
* Returns the login history entries in an array format.
**/
function getHistoryListViewEntries($username, $navigation_array, $sorder = '', $orderby = '')
{
global $log, $adb, $current_user;
$log->debug("Entering getHistoryListViewEntries() method ...");
if ($sorder != '' && $order_by != '') {
$list_query = "Select * from vtiger_loginhistory where user_name=? order by " . $order_by . " " . $sorder;
} else {
$list_query = "Select * from vtiger_loginhistory where user_name=? order by " . $this->default_order_by . " " . $this->default_sort_order;
}
$result = $adb->pquery($list_query, array($username));
$entries_list = array();
if ($navigation_array['end_val'] != 0) {
$in = getTranslatedString('Signed in');
$out = getTranslatedString('Signed off');
for ($i = $navigation_array['start']; $i <= $navigation_array['end_val']; $i++) {
$entries = array();
$loginid = $adb->query_result($result, $i - 1, 'login_id');
$entries[] = $adb->query_result($result, $i - 1, 'user_name');
$entries[] = $adb->query_result($result, $i - 1, 'user_ip');
$entries[] = $adb->query_result($result, $i - 1, 'login_time');
$entries[] = $adb->query_result($result, $i - 1, 'logout_time');
$entries[] = $adb->query_result($result, $i - 1, 'status') == 'Signed in' ? $in : $out;
$entries_list[] = $entries;
}
$log->debug("Exiting getHistoryListViewEntries() method ...");
return $entries_list;
}
}
示例15: ShowModuleIdField
function ShowModuleIdField($selected_module, $tab_only = false)
{
$db = PearDatabase::getInstance();
$names = array('Emails', 'PBXManager', 'ModComments', 'SMSNotifier', 'OSSPdf');
foreach ($names as $id) {
$in .= "'" . $id . "',";
}
$in = trim($in, ',');
$query = "select tabid, name, customized from vtiger_tab where isentitytype = '1' and presence <> '2' and name not in ( {$in} )";
$wynik = $db->query($query, true);
$tablist = array();
for ($i = 0; $i < $db->num_rows($wynik); $i++) {
$tablist[$i]['id'] = $db->query_result($wynik, $i, "tabid");
$label = $db->query_result($wynik, $i, "name");
if ($db->query_result($wynik, $i, "customized") == 0) {
$tablist[$i]['label'] = getTranslatedString($label);
} else {
$tablist[$i]['label'] = getTranslatedString($label, $label);
}
}
if ($selected_module == '') {
$SMODULE = $tablist[0]['id'];
} else {
$SMODULE = $selected_module;
}
if ($tab_only == false) {
$viewer = new Vtiger_Viewer();
$viewer->assign("TABLIST", $tablist);
$viewer->assign("SMODULE", $SMODULE);
$viewer->assign("SELECTED_MODULE", $selected_module);
return $viewer->fetch('modules/OSSPdf/FieldModuleid.tpl');
} else {
return $tablist;
}
}