• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP vtiger_imageurl函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中vtiger_imageurl函数的典型用法代码示例。如果您正苦于以下问题:PHP vtiger_imageurl函数的具体用法?PHP vtiger_imageurl怎么用?PHP vtiger_imageurl使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了vtiger_imageurl函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: getStdOutput

/** Function to get the field label/permission array to construct the default orgnization field UI for the specified profile 
 * @param $fieldListResult -- mysql query result that contains the field label and uitype:: Type array
 * @param $lang_strings -- i18n language mod strings array:: Type array
 * @param $profileid -- profile id:: Type integer
 * @returns $standCustFld -- field label/permission array :: Type varchar
 *
 */
function getStdOutput($fieldListResult, $noofrows, $lang_strings, $profileid)
{
    global $adb;
    global $image_path, $theme;
    $standCustFld = array();
    for ($i = 0; $i < $noofrows; $i++) {
        $uitype = $adb->query_result($fieldListResult, $i, "uitype");
        $fieldlabel = $adb->query_result($fieldListResult, $i, "fieldlabel");
        $typeofdata = $adb->query_result($fieldListResult, $i, "typeofdata");
        $fieldtype = explode("~", $typeofdata);
        if ($lang_strings[$fieldlabel] != '') {
            $standCustFld[] = $lang_strings[$fieldlabel];
        } else {
            $standCustFld[] = $fieldlabel;
        }
        if ($adb->query_result($fieldListResult, $i, "visible") == 0 || $uitype == 117 && $fieldtype[1] == "M") {
            $visible = "<img src='" . vtiger_imageurl('prvPrfSelectedTick.gif', $theme) . "'>";
        } else {
            $visible = "<img src='" . vtiger_imageurl('no.gif', $theme) . "'>";
        }
        $standCustFld[] = $visible;
    }
    $standCustFld = array_chunk($standCustFld, 2);
    $standCustFld = array_chunk($standCustFld, 4);
    return $standCustFld;
}
开发者ID:sacredwebsite,项目名称:vtigercrm,代码行数:33,代码来源:DefaultFieldPermissions.php


示例2: checkAdminAccess

 static function checkAdminAccess($user)
 {
     if (is_admin($user)) {
         return;
     }
     echo "<table border='0' cellpadding='5' cellspacing='0' width='100%' height='450px'><tr><td align='center'>";
     echo "<div style='border: 3px solid rgb(153, 153, 153); background-color: rgb(255, 255, 255); width: 55%; position: relative; z-index: 10000000;'>\n\n\t\t<table border='0' cellpadding='5' cellspacing='0' width='98%'>\n\t\t<tbody><tr>\n\t\t<td rowspan='2' width='11%'><img src= " . vtiger_imageurl('denied.gif', $theme) . " ></td>\n\t\t<td style='border-bottom: 1px solid rgb(204, 204, 204);' nowrap='nowrap' width='70%'>\n\t\t\t<span class='genHeaderSmall'>{$app_strings['LBL_PERMISSION']}</span></td>\n\t\t</tr>\n\t\t<tr>\n\t\t<td class='small' align='right' nowrap='nowrap'>\n\t\t<a href='javascript:window.history.back();'>{$app_strings['LBL_GO_BACK']}</a><br>\n\t\t</td>\n\t\t</tr>\n\t\t</tbody></table>\n\t\t</div>";
     echo "</td></tr></table>";
     exit;
 }
开发者ID:casati-dolibarr,项目名称:corebos,代码行数:10,代码来源:Webforms.php


示例3: showError

function showError()
{
    require_once 'include/utils/VtlibUtils.php';
    global $current_user, $currentModule, $theme, $app_strings, $log;
    echo "<link rel='stylesheet' type='text/css' href='themes/{$theme}/style.css'>";
    echo "<table border='0' cellpadding='5' cellspacing='0' width='100%' height='450px'><tr><td align='center'>";
    echo "<div style='border: 3px solid rgb(153, 153, 153); background-color: rgb(255, 255, 255); width: 55%; position: relative; z-index: 10000000;'>\n\n\t\t<table border='0' cellpadding='5' cellspacing='0' width='98%'>\n\t\t<tbody><tr>\n\t\t<td rowspan='2' width='11%'><img src='" . vtiger_imageurl('denied.gif', $theme) . "' ></td>\n\t\t<td style='border-bottom: 1px solid rgb(204, 204, 204);' nowrap='nowrap' width='70%'>\n\t\t\t<span class='genHeaderSmall'>" . getTranslatedString('SINGLE_' . $currentModule, $currentModule) . " " . getTranslatedString('CANNOT_CONVERT', $currentModule) . "\n\t\t<br>\n\t\t<ul> " . getTranslatedString('LBL_FOLLOWING_ARE_POSSIBLE_REASONS', $currentModule) . ":\n\t\t\t<li>" . getTranslatedString('LBL_LEADS_FIELD_MAPPING_INCOMPLETE', $currentModule) . "</li>\n\t\t\t<li>" . getTranslatedString('LBL_MANDATORY_FIELDS_ARE_EMPTY', $currentModule) . "</li>\n\t\t</ul>\n\t\t</span>\n\t\t</td>\n\t\t</tr>\n\t\t<tr>\n\t\t<td class='small' align='right' nowrap='nowrap'>";
    if (is_admin($current_user)) {
        echo "<a href='index.php?module=Settings&action=CustomFieldList&parenttab=Settings&formodule=Leads'>" . getTranslatedString('LBL_LEADS_FIELD_MAPPING', $currentModule) . "</a><br>";
    }
    echo "<a href='javascript:window.history.back();'>" . getTranslatedString('LBL_GO_BACK', $currentModule) . "</a><br>";
    echo "</td>\n               </tr>\n\t\t</tbody></table>\n\t\t</div>\n                </td></tr></table>";
}
开发者ID:sacredwebsite,项目名称:vtigercrm,代码行数:13,代码来源:LeadConvertToEntities.php


示例4: vtigerCRM_Smarty

/*+********************************************************************************
 * The contents of this file are subject to the vtiger CRM Public License Version 1.0
 * ("License"); You may not use this file except in compliance with the License
 * The Original Code is:  vtiger CRM Open Source
 * The Initial Developer of the Original Code is vtiger.
 * Portions created by vtiger are Copyright (C) vtiger.
 * All Rights Reserved.
 *********************************************************************************/
require_once 'Smarty_setup.php';
global $mod_strings, $app_strings, $theme, $adb;
$smarty = new vtigerCRM_Smarty();
$module = vtlib_purify($_REQUEST['formodule']);
$menu_array = array();
$menu_array['CustomFields']['location'] = 'index.php?module=Settings&action=CustomFieldList&parenttab=Settings&formodule=' . $module;
$menu_array['CustomFields']['image_src'] = vtiger_imageurl('orgshar.gif', $theme);
$menu_array['CustomFields']['desc'] = getTranslatedString('LBL_USER_CUSTOMFIELDS_DESCRIPTION', 'Users');
$menu_array['CustomFields']['label'] = getTranslatedString('LBL_USER_CUSTOMFIELDS', 'Users');
//add blanks for 3-column layout
$count = count($menu_array) % 3;
if ($count > 0) {
    for ($i = 0; $i < 3 - $count; $i++) {
        $menu_array[] = array();
    }
}
$smarty->assign("MOD", $mod_strings);
$smarty->assign("APP", $app_strings);
$smarty->assign("IMAGE_PATH", "themes/{$theme}/images/");
$smarty->assign('MODULE', $module);
$smarty->assign('MODULE_LBL', getTranslatedString($module));
$smarty->assign('MENU_ARRAY', $menu_array);
开发者ID:casati-dolibarr,项目名称:corebos,代码行数:30,代码来源:Settings.php


示例5: vtiger_imageurl

								</table>
							</td>
						   </tr>
						</table>
					</td>
				   </tr>
				</table>
			    </div>

			</td>
		   </tr>
		</table>
	     </div>
	</td>
	<td align=right valign=top><img src="<?php 
echo vtiger_imageurl('showPanelTopRight.gif', $this->_tpl_vars['THEME']);
?>
"></td>
   </tr>
</table>
</form>

<?php 
if (($this->_tpl_vars['MODULE'] == 'Emails' || 'Documents') && $this->_tpl_vars['USE_RTE'] == 'true') {
    ?>
<script type="text/javascript" src="include/ckeditor/ckeditor.js"></script>
<script type="text/javascript" defer="1">
	var textAreaName = null;
	<?php 
    if ($this->_tpl_vars['MODULE'] == 'Documents') {
        ?>
开发者ID:latechdirect,项目名称:vtiger,代码行数:31,代码来源:%%18^18B^18B4CC8E%%CreateView.tpl.php


示例6: showhide

function showhide(argg,imgId)
{
	var harray=argg.split(",");
	var harrlen = harray.length;	
	var i;
	for(i=0; i<harrlen; i++)
	{
		var x=document.getElementById(harray[i]).style;
        	if (x.display=="none")
        	{
           		x.display="block";
			document.getElementById(imgId).src="<?php 
echo vtiger_imageurl('minus.gif', $this->_tpl_vars['THEME']);
?>
";
         	}
        	else
		{
			x.display="none";
			document.getElementById(imgId).src="<?php 
echo vtiger_imageurl('plus.gif', $this->_tpl_vars['THEME']);
?>
";
		}
	}
}



</script>
开发者ID:latechdirect,项目名称:vtiger,代码行数:30,代码来源:%%82^82C^82C69CDF%%ListRoles.tpl.php


示例7: vtigerCRM_Smarty

    $smarty = new vtigerCRM_Smarty();
    $smarty->assign('APP', $appStrings);
    $mod = array_merge(return_module_language($current_language, 'FieldFormulas'), return_module_language($current_language, 'Settings'));
    $jsStrings = array('NEED_TO_ADD_A' => $mod['NEED_TO_ADD_A'], 'CUSTOM_FIELD' => $mod['LBL_CUSTOM_FIELD'], 'LBL_USE_FUNCTION_DASHDASH' => $mod['LBL_USE_FUNCTION_DASHDASH'], 'LBL_USE_FIELD_VALUE_DASHDASH' => $mod['LBL_USE_FIELD_VALUE_DASHDASH'], 'LBL_DELETE_EXPRESSION_CONFIRM' => $mod['LBL_DELETE_EXPRESSION_CONFIRM']);
    $smarty->assign("JS_STRINGS", Zend_Json::encode($jsStrings));
    $smarty->assign("MOD", $mod);
    $smarty->assign("THEME", $theme);
    $smarty->assign("IMAGE_PATH", $image_path);
    $smarty->assign("MODULE_NAME", 'FieldFormulas');
    $smarty->assign("PAGE_NAME", 'LBL_FIELDFORMULAS');
    $smarty->assign("PAGE_TITLE", 'LBL_FIELDFORMULAS');
    $smarty->assign("PAGE_DESC", 'LBL_FIELDFORMULAS_DESCRIPTION');
    $smarty->assign("FORMODULE", $formodule);
    if (file_exists("modules/{$formodule}/{$formodule}.php")) {
        $focus = CRMEntity::getInstance($formodule);
        $validationArray = split_validationdataArray(getDBValidationData($focus->tab_name, getTabid($formodule)));
        $smarty->assign('VALIDATION_DATA_FIELDNAME', $validationArray['fieldname']);
        $smarty->assign('VALIDATION_DATA_FIELDDATATYPE', $validationArray['datatype']);
        $smarty->assign('VALIDATION_DATA_FIELDLABEL', $validationArray['fieldlabel']);
    }
    $smarty->display(vtlib_getModuleTemplate('FieldFormulas', 'EditExpressions.tpl'));
}
$modules = vtGetModules($adb);
if (vtlib_isModuleActive('FieldFormulas') && in_array(getTranslatedString($_REQUEST['formodule']), $modules)) {
    vtEditExpressions($adb, $app_strings, $current_language, $theme, $_REQUEST['formodule']);
} else {
    echo "<table border='0' cellpadding='5' cellspacing='0' width='100%' height='450px'><tr><td align='center'>";
    echo "<div style='border: 3px solid rgb(153, 153, 153); background-color: rgb(255, 255, 255); width: 80%; position: relative; z-index: 10000000;'>\n\n\t<table border='0' cellpadding='5' cellspacing='0' width='98%'>\n\t<tbody><tr>\n\t<td rowspan='2' width='11%'><img src='" . vtiger_imageurl('denied.gif', $theme) . "' ></td>\n\t<td style='border-bottom: 1px solid rgb(204, 204, 204);' nowrap='nowrap' width='70%'><span class='genHeaderSmall'>" . $app_strings['LBL_PERMISSION'] . " </span></td>\n\t</tr>\n\t<tr>\n\t<td class='small' align='right' nowrap='nowrap'>\n\t<a href='javascript:window.history.back();'>{$app_strings['LBL_BACK']}</a><br></td>\n\t</tr>\n\t</tbody></table>\n\t</div>";
    echo "</td></tr></table>";
    die;
}
开发者ID:hbsman,项目名称:vtigercrm-5.3.0-ja,代码行数:31,代码来源:editexpressions.php


示例8: get_tag_cloud_html

 /**
  * get_tag_cloud_html
  *
  * This is a pretty straightforward, flexible method that automatically
  * generates some html that can be dropped in as a tag cloud.
  * It uses explicit font sizes inside of the style attribute of SPAN 
  * elements to accomplish the differently sized objects.
  *
  * It will also link every tag to $tag_page_url, appended with the 
  * normalized form of the tag. You should adapt this value to your own
  * tag detail page's URL.
  *
  * @param int The maximum number of tags to return. (default: 100)
  * @param int The minimum font size in the cloud. (default: 10)
  * @param int The maximum number of tags to return. (default: 20)
  * @param string The "units" for the font size (i.e. 'px', 'pt', 'em') (default: px)
  * @param string The class to use for all spans in the cloud. (default: cloud_tag)
  * @param string The tag page URL (default: /tag/)
  *
  * @return string Returns an HTML snippet that can be used directly as a tag cloud.
  */
 function get_tag_cloud_html($module = "", $tagger_id = NULL, $obj_id = NULL, $num_tags = 100, $min_font_size = 10, $max_font_size = 20, $font_units = 'px', $span_class = '', $tag_page_url = '/tag/')
 {
     global $theme;
     $theme_path = "themes/" . $theme . "/";
     $image_path = $theme_path . "images/";
     $tag_list = $this->get_tag_cloud_tags($num_tags, $tagger_id, $module, $obj_id);
     if (count($tag_list[0])) {
         // Get the maximum qty of tagged objects in the set
         $max_qty = max(array_values($tag_list[0]));
         // Get the min qty of tagged objects in the set
         $min_qty = min(array_values($tag_list[0]));
     } else {
         return '';
     }
     // For ever additional tagged object from min to max, we add
     // $step to the font size.
     $spread = $max_qty - $min_qty;
     if (0 == $spread) {
         // Divide by zero
         $spread = 1;
     }
     $step = ($max_font_size - $min_font_size) / $spread;
     // Since the original tag_list is alphabetically ordered,
     // we can now create the tag cloud by just putting a span
     // on each element, multiplying the diff between min and qty
     // by $step.
     $cloud_html = '';
     $cloud_spans = array();
     if ($module == '') {
         $module = 'All';
     }
     if ($module != 'All') {
         foreach ($tag_list[0] as $tag => $qty) {
             $size = $min_font_size + ($qty - $min_qty) * $step;
             $cloud_span[] = '<span id="tag_' . $tag_list[1][$tag] . '" class="' . $span_class . '" onMouseOver=$("tagspan_' . $tag_list[1][$tag] . '").style.display="inline"; onMouseOut=$("tagspan_' . $tag_list[1][$tag] . '").style.display="none";><a class="tagit" href="index.php?module=Home&action=UnifiedSearch&search_module=' . $module . '&query_string=' . urlencode($tag) . '" style="font-size: ' . $size . $font_units . '">' . htmlspecialchars(stripslashes($tag)) . '</a><span class="' . $span_class . '" id="tagspan_' . $tag_list[1][$tag] . '" style="display:none;cursor:pointer;" onClick="DeleteTag(' . $tag_list[1][$tag] . ',' . $obj_id . ');"><img src="' . vtiger_imageurl('del_tag.gif', $theme) . '"></span></span>';
         }
     } else {
         foreach ($tag_list[0] as $tag => $qty) {
             $size = $min_font_size + ($qty - $min_qty) * $step;
             $cloud_span[] = '<span class="' . $span_class . '"><a class="tagit" href="index.php?module=Home&action=UnifiedSearch&search_module=' . $module . '&query_string=' . urlencode($tag) . '" style="font-size: ' . $size . $font_units . '">' . htmlspecialchars(stripslashes($tag)) . '</a></span>';
         }
     }
     $cloud_html = join("\n ", $cloud_span);
     return $cloud_html;
 }
开发者ID:hardikk,项目名称:HNH,代码行数:66,代码来源:freetag.class.php


示例9: vtiger_imageurl

?>
btnL3AllMenu.gif" alt="<?php 
echo $this->_tpl_vars['APP']['LBL_ALL_MENU_ALT'];
?>
" title="<?php 
echo $this->_tpl_vars['APP']['LBL_ALL_MENU_TITLE'];
?>
" border="0"></a></td>
				<?php 
if ($this->_tpl_vars['CHECK']['moduleSettings'] == 'yes') {
    ?>
	        		<td style="padding-left:10px;"><a href='index.php?module=Settings&action=ModuleManager&module_settings=true&formodule=<?php 
    echo $this->_tpl_vars['MODULE'];
    ?>
&parenttab=Settings'><img src="<?php 
    echo vtiger_imageurl('settingsBox.png', $this->_tpl_vars['THEME']);
    ?>
" alt="<?php 
    echo is_array($_tmp = $this->_tpl_vars['MODULE']) ? $this->_run_mod_handler('getTranslatedString', true, $_tmp, $this->_tpl_vars['MODULE']) : getTranslatedString($_tmp, $this->_tpl_vars['MODULE']);
    ?>
 <?php 
    echo $this->_tpl_vars['APP']['LBL_SETTINGS'];
    ?>
" title="<?php 
    echo is_array($_tmp = $this->_tpl_vars['MODULE']) ? $this->_run_mod_handler('getTranslatedString', true, $_tmp, $this->_tpl_vars['MODULE']) : getTranslatedString($_tmp, $this->_tpl_vars['MODULE']);
    ?>
 <?php 
    echo $this->_tpl_vars['APP']['LBL_SETTINGS'];
    ?>
" border="0"></a></td>
				<?php 
开发者ID:latechdirect,项目名称:vtiger,代码行数:31,代码来源:%%88^881^8817832C%%Buttons_List.tpl.php


示例10: getDuplicateRecordsArr

/** Function to return the duplicate records data as a formatted array */
function getDuplicateRecordsArr($module)
{
    global $adb, $app_strings, $list_max_entries_per_page, $theme;
    $field_values_array = getFieldValues($module);
    $field_values = $field_values_array['fieldnames_list'];
    $fld_arr = $field_values_array['fieldnames_array'];
    $col_arr = $field_values_array['columnnames_array'];
    $fld_labl_arr = $field_values_array['fieldlabels_array'];
    $ui_type = $field_values_array['fieldname_uitype'];
    $dup_query = getDuplicateQuery($module, $field_values, $ui_type);
    // added for page navigation
    $dup_count_query = substr($dup_query, stripos($dup_query, 'FROM'), strlen($dup_query));
    $dup_count_query = "SELECT count(*) as count " . $dup_count_query;
    $count_res = $adb->query($dup_count_query);
    $no_of_rows = $adb->query_result($count_res, 0, "count");
    if ($no_of_rows <= $list_max_entries_per_page) {
        $_SESSION['dup_nav_start' . $module] = 1;
    } else {
        if (isset($_REQUEST["start"]) && $_REQUEST["start"] != "" && $_SESSION['dup_nav_start' . $module] != $_REQUEST["start"]) {
            $_SESSION['dup_nav_start' . $module] = ListViewSession::getRequestStartPage();
        }
    }
    $start = $_SESSION['dup_nav_start' . $module] != "" ? $_SESSION['dup_nav_start' . $module] : 1;
    $navigation_array = getNavigationValues($start, $no_of_rows, $list_max_entries_per_page);
    $start_rec = $navigation_array['start'];
    $end_rec = $navigation_array['end_val'];
    $navigationOutput = getTableHeaderNavigation($navigation_array, "", $module, "FindDuplicate", "");
    if ($start_rec == 0) {
        $limit_start_rec = 0;
    } else {
        $limit_start_rec = $start_rec - 1;
    }
    $dup_query .= " LIMIT {$limit_start_rec}, {$list_max_entries_per_page}";
    //ends
    $nresult = $adb->query($dup_query);
    $no_rows = $adb->num_rows($nresult);
    require_once 'modules/Vtiger/layout_utils.php';
    if ($no_rows == 0) {
        if ($_REQUEST['action'] == 'FindDuplicateRecords') {
            //echo "<br><br><center>".$app_strings['LBL_NO_DUPLICATE']." <a href='javascript:window.history.back()'>".$app_strings['LBL_GO_BACK'].".</a></center>";
            //die;
            echo "<link rel='stylesheet' type='text/css' href='themes/{$theme}/style.css'>";
            echo "<table border='0' cellpadding='5' cellspacing='0' width='100%' height='450px'><tr><td align='center'>";
            echo "<div style='border: 3px solid rgb(153, 153, 153); background-color: rgb(255, 255, 255); width: 55%; position: relative; z-index: 10000000;'>\n\n\t\t\t\t<table border='0' cellpadding='5' cellspacing='0' width='98%'>\n\t\t\t\t<tbody><tr>\n\t\t\t\t<td rowspan='2' width='11%'><img src='" . vtiger_imageurl('empty.jpg', $theme) . "' ></td>\n\t\t\t\t<td style='border-bottom: 1px solid rgb(204, 204, 204);' nowrap='nowrap' width='70%'><span class='genHeaderSmall'>{$app_strings['LBL_NO_DUPLICATE']}</span></td>\n\t\t\t\t</tr>\n\t\t\t\t<tr>\n\t\t\t\t<td class='small' align='right' nowrap='nowrap'>\n\t\t\t\t<a href='javascript:window.history.back();'>{$app_strings['LBL_GO_BACK']}</a><br>     </td>\n\t\t\t\t</tr>\n\t\t\t\t</tbody></table>\n\t\t\t\t</div>";
            echo "</td></tr></table>";
            exit;
        } else {
            echo "<br><br><table align='center' class='reportCreateBottom big' width='95%'><tr><td align='center'>" . $app_strings['LBL_NO_DUPLICATE'] . "</td></tr></table>";
            die;
        }
    }
    $rec_cnt = 0;
    $temp = array();
    $sl_arr = array();
    $grp = "group0";
    $gcnt = 0;
    $ii = 0;
    //ii'th record in group
    while ($rec_cnt < $no_rows) {
        $result = $adb->fetchByAssoc($nresult);
        //echo '<pre>';print_r($result);echo '</pre>';
        if ($rec_cnt != 0) {
            $sl_arr = array_slice($result, 2);
            array_walk($temp, 'lower_array');
            array_walk($sl_arr, 'lower_array');
            $arr_diff = array_diff($temp, $sl_arr);
            if (count($arr_diff) > 0) {
                $gcnt++;
                $temp = $sl_arr;
                $ii = 0;
            }
            $grp = "group" . $gcnt;
        }
        $fld_values[$grp][$ii]['recordid'] = $result['recordid'];
        for ($k = 0; $k < count($col_arr); $k++) {
            if ($rec_cnt == 0) {
                $temp[$fld_labl_arr[$k]] = $result[$col_arr[$k]];
            }
            if ($ui_type[$fld_arr[$k]] == 56) {
                if ($result[$col_arr[$k]] == 0) {
                    $result[$col_arr[$k]] = $app_strings['no'];
                } else {
                    $result[$col_arr[$k]] = $app_strings['yes'];
                }
            }
            if ($ui_type[$fld_arr[$k]] == 75 || $ui_type[$fld_arr[$k]] == 81) {
                $vendor_id = $result[$col_arr[$k]];
                if ($vendor_id != '') {
                    $vendor_name = getVendorName($vendor_id);
                }
                $result[$col_arr[$k]] = $vendor_name;
            }
            if ($ui_type[$fld_arr[$k]] == 57) {
                $contact_id = $result[$col_arr[$k]];
                if ($contact_id != '') {
                    $parent_module = 'Contacts';
                    $displayValueArray = getEntityName($parent_module, $contact_id);
                    if (!empty($displayValueArray)) {
                        foreach ($displayValueArray as $key => $field_value) {
//.........这里部分代码省略.........
开发者ID:jgjermeni,项目名称:corebos,代码行数:101,代码来源:utils.php


示例11: constructTodoListView

/**
 * Function creates HTML to display Todos ListView
 * @param array  $todo_list     - collection of strings(Todo Information)
 * @param array  $cal           - collection of objects and strings 
 * return string $list_view     - html tags in string format
 */
function constructTodoListView($todo_list, $cal, $subtab, $navigation_array = '')
{
    global $mod_strings, $cal_log, $adb, $theme;
    $cal_log->debug("Entering constructTodoListView() method...");
    global $current_user, $app_strings;
    $date_format = $current_user->date_format;
    $format = $cal['calendar']->hour_format;
    $hour_startat = timeString(array('hour' => date('H:i'), 'minute' => 0), '24');
    $hour_endat = timeString(array('hour' => date('H:i', time() + 60 * 60), 'minute' => 0), '24');
    $time_arr = getaddEventPopupTime($hour_startat, $hour_endat, $format);
    $temp_ts = $cal['calendar']->date_time->ts;
    //to get date in user selected date format
    $temp_date = $date_format == 'dd-mm-yyyy' ? date('d-m-Y', $temp_ts) : ($date_format == 'mm-dd-yyyy' ? date('m-d-Y', $temp_ts) : ($date_format == 'yyyy-mm-dd' ? date('Y-m-d', $temp_ts) : ''));
    if ($cal['calendar']->day_start_hour != 23) {
        $endtemp_date = $temp_date;
    } else {
        $endtemp_ts = $temp_ts + 1 * 24 * 60 * 60;
        $endtemp_date = $date_format == 'dd-mm-yyyy' ? date('d-m-Y', $endtemp_ts) : ($date_format == 'mm-dd-yyyy' ? date('m-d-Y', $endtemp_ts) : ($date_format == 'yyyy-mm-dd' ? date('Y-m-d', $endtemp_ts) : ''));
    }
    $list_view = "";
    //labels of listview header
    if ($cal['view'] == 'day') {
        $colspan = 9;
        $header = array('0' => '#', '1' => $mod_strings['LBL_TIME'], '2' => $mod_strings['LBL_LIST_DUE_DATE'], '3' => $mod_strings['LBL_TODO']);
        $header_width = array('0' => '5%', '1' => '10%', '2' => '10%', '3' => '38%');
        /*if(getFieldVisibilityPermission('Calendar',$current_user->id,'parent_id') == '0')
        		{
        			array_push($header,$mod_strings['LBL_RELATEDTO']);
        			array_push($header_width,'15%');
        		}
        		if(getFieldVisibilityPermission('Calendar',$current_user->id,'contact_id') == '0')
        		{
        			array_push($header,$mod_strings['LBL_CONTACT_NAME']);
        			array_push($header_width,'15%');
        		}*/
        if (getFieldVisibilityPermission('Calendar', $current_user->id, 'taskstatus') == '0') {
            array_push($header, $mod_strings['LBL_STATUS']);
            array_push($header_width, '10%');
        }
        if (isPermitted("Calendar", "EditView") == "yes" || isPermitted("Calendar", "Delete") == "yes") {
            array_push($header, $mod_strings['LBL_ACTION']);
            array_push($header_width, '10%');
        }
        array_push($header, $mod_strings['LBL_ASSINGEDTO']);
        array_push($header_width, '15%');
    } else {
        $colspan = 10;
        $header = array('0' => '#', '1' => $mod_strings['LBL_TIME'], '2' => $mod_strings['LBL_START_DATE'], '3' => $mod_strings['LBL_DUE_DATE'], '4' => $mod_strings['LBL_TODO']);
        $header_width = array('0' => '5%', '1' => '10%', '2' => '10%', '3' => '10%', '4' => '28%');
        /*if(getFieldVisibilityPermission('Calendar',$current_user->id,'parent_id') == '0')
        		{
        			array_push($header,$mod_strings['LBL_RELATEDTO']);
        			array_push($header_width,'15%');
        		}
        		if(getFieldVisibilityPermission('Calendar',$current_user->id,'contact_id') == '0')
        		{
        			array_push($header,$mod_strings['LBL_CONTACT_NAME']);
        			array_push($header_width,'15%');
        		}*/
        if (getFieldVisibilityPermission('Calendar', $current_user->id, 'taskstatus') == '0') {
            array_push($header, $mod_strings['LBL_STATUS']);
            array_push($header_width, '10%');
        }
        if (isPermitted("Calendar", "EditView") == "yes" || isPermitted("Calendar", "Delete") == "yes") {
            array_push($header, $mod_strings['LBL_ACTION']);
        }
        array_push($header, $mod_strings['LBL_ASSINGEDTO']);
        array_push($header_width, '15%');
    }
    if ($current_user->column_fields['is_admin'] == 'on') {
        $Res = $adb->pquery("select * from vtiger_activitytype", array());
    } else {
        $roleid = $current_user->roleid;
        $subrole = getRoleSubordinates($roleid);
        if (count($subrole) > 0) {
            $roleids = $subrole;
            array_push($roleids, $roleid);
        } else {
            $roleids = $roleid;
        }
        if (count($roleids) > 1) {
            $Res = $adb->pquery("select distinct activitytype from  vtiger_activitytype inner join vtiger_role2picklist on vtiger_role2picklist.picklistvalueid = vtiger_activitytype.picklist_valueid where roleid in (" . generateQuestionMarks($roleids) . ") and picklistid in (select picklistid from vtiger_activitytype) order by sortid asc", array($roleids));
        } else {
            $Res = $adb->pquery("select distinct activitytype from vtiger_activitytype inner join vtiger_role2picklist on vtiger_role2picklist.picklistvalueid = vtiger_activitytype.picklist_valueid where roleid = ? and picklistid in (select picklistid from vtiger_activitytype) order by sortid asc", array($roleid));
        }
    }
    $eventlist = '';
    for ($i = 0; $i < $adb->num_rows($Res); $i++) {
        $eventlist .= $adb->query_result($Res, $i, 'activitytype') . ";";
    }
    $list_view .= "<table align='center' border='0' cellpadding='5' cellspacing='0' width='98%'>\n\t\t\t<tr><td colspan='3'>&nbsp;</td></tr>";
    //checking permission for Create/Edit Operation
    if (isPermitted("Calendar", "EditView") == "yes") {
        $list_view .= "<tr>\n\t\t\t\t<td class='calAddButton' onMouseOver='fnAddEvent(this,\"addEventDropDown\",\"" . $temp_date . "\",\"" . $endtemp_date . "\",\"" . $time_arr['starthour'] . "\",\"" . $time_arr['startmin'] . "\",\"" . $time_arr['startfmt'] . "\",\"" . $time_arr['endhour'] . "\",\"" . $time_arr['endmin'] . "\",\"" . $time_arr['endfmt'] . "\",\"\",\"" . $subtab . "\",\"" . $eventlist . "\");'style='border: 1px solid #666666;cursor:pointer;height:30px' align='center' width='10%'>\n                                        " . $mod_strings['LBL_ADD'] . "\n                                        <img src='" . vtiger_imageurl('menuDnArrow.gif', $theme) . "' style='padding-left: 5px;' border='0'>                                                                                                                         </td>";
//.........这里部分代码省略.........
开发者ID:p6,项目名称:VF,代码行数:101,代码来源:calendarLayout.php


示例12: vtlib_purify

 * All Rights Reserved.
 *********************************************************************************/
global $theme, $mod_strings;
$theme_path = "themes/" . $theme . "/";
$productid = vtlib_purify($_REQUEST['productid']);
$rowid = vtlib_purify($_REQUEST['curr_row']);
$product_total = vtlib_purify($_REQUEST['productTotal']);
$tax_details = getTaxDetailsForProduct($productid, 'all');
//we should pass available instead of all if we want to display only the available taxes.
$associated_tax_count = count($tax_details);
$tax_div = '
		<table width="100%" border="0" cellpadding="5" cellspacing="0" class="small" id="tax_table' . $rowid . '">
		   <tr>
			<td id="tax_div_title' . $rowid . '" nowrap align="left" ><b>' . $app_strings['LABEL_SET_TAX_FOR'] . ' : ' . $product_total . '</b></td>
			<td>&nbsp;</td>
			<td align="right"><img src="' . vtiger_imageurl('close.gif', $theme) . '" border="0" onClick="fnHidePopDiv(\'tax_div' . $rowid . '\')" style="cursor:pointer;"></td>
		   </tr>
	   ';
$net_tax_total = 0.0;
for ($i = 0, $j = $i + 1; $i < count($tax_details); $i++, $j++) {
    $tax_name = $tax_details[$i]['taxname'];
    $tax_label = $tax_details[$i]['taxlabel'];
    $tax_percentage = $tax_details[$i]['percentage'];
    $tax_name_percentage = $tax_name . "_percentage" . $rowid;
    $tax_id_name = "hidden_tax" . $j . "_percentage" . $rowid;
    //used to store the tax name, used in function callTaxCalc
    $tax_name_total = "popup_tax_row" . $rowid;
    //$tax_name."_total".$rowid;
    $tax_total = $product_total * $tax_percentage / 100.0;
    $net_tax_total += $tax_total;
    $tax_div .= '
开发者ID:sacredwebsite,项目名称:vtigercrm,代码行数:31,代码来源:InventoryTaxAjax.php


示例13: getRelatedTableHeaderNavigation

function getRelatedTableHeaderNavigation($navigation_array, $url_qry, $module, $related_module, $recordid)
{
    global $log, $app_strings, $adb;
    $log->debug("Entering getTableHeaderNavigation(" . $navigation_array . "," . $url_qry . "," . $module . "," . $action_val . "," . $viewid . ") method ...");
    global $theme;
    $relatedTabId = getTabid($related_module);
    $tabid = getTabid($module);
    $relatedListResult = $adb->pquery('SELECT * FROM vtiger_relatedlists WHERE tabid=? AND
		related_tabid=?', array($tabid, $relatedTabId));
    if (empty($relatedListResult)) {
        return;
    }
    $relatedListRow = $adb->fetchByAssoc($relatedListResult);
    $header = $relatedListRow['label'];
    $actions = $relatedListRow['actions'];
    $functionName = $relatedListRow['name'];
    $urldata = "module={$module}&action={$module}Ajax&file=DetailViewAjax&record={$recordid}&" . "ajxaction=LOADRELATEDLIST&header={$header}&relation_id={$relatedListRow['relation_id']}" . "&actions={$actions}&{$url_qry}";
    $formattedHeader = str_replace(' ', '', $header);
    $target = 'tbl_' . $module . '_' . $formattedHeader;
    $imagesuffix = $module . '_' . $formattedHeader;
    $output = '<td align="right" style="padding="5px;">';
    if ($navigation_array['prev'] != 0) {
        $output .= '<a href="javascript:;" onClick="loadRelatedListBlock(\'' . $urldata . '&start=1\',\'' . $target . '\',\'' . $imagesuffix . '\');" alt="' . $app_strings['LBL_FIRST'] . '" title="' . $app_strings['LBL_FIRST'] . '"><img src="' . vtiger_imageurl('start.gif', $theme) . '" border="0" align="absmiddle"></a>&nbsp;';
        $output .= '<a href="javascript:;" onClick="loadRelatedListBlock(\'' . $urldata . '&start=' . $navigation_array['prev'] . '\',\'' . $target . '\',\'' . $imagesuffix . '\');" alt="' . $app_strings['LNK_LIST_PREVIOUS'] . '"title="' . $app_strings['LNK_LIST_PREVIOUS'] . '"><img src="' . vtiger_imageurl('previous.gif', $theme) . '" border="0" align="absmiddle"></a>&nbsp;';
    } else {
        $output .= '<img src="' . vtiger_imageurl('start_disabled.gif', $theme) . '" border="0" align="absmiddle">&nbsp;';
        $output .= '<img src="' . vtiger_imageurl('previous_disabled.gif', $theme) . '" border="0" align="absmiddle">&nbsp;';
    }
    $jsHandler = "return VT_disableFormSubmit(event);";
    $output .= "<input class='small' name='pagenum' type='text' value='{$navigation_array['current']}'\n\t\tstyle='width: 3em;margin-right: 0.7em;' onchange=\"loadRelatedListBlock('{$urldata}&start='+this.value+'','{$target}','{$imagesuffix}');\"\n\t\tonkeypress=\"{$jsHandler}\">";
    $output .= "<span name='listViewCountContainerName' class='small' style='white-space: nowrap;'>";
    $computeCount = $_REQUEST['withCount'];
    if (PerformancePrefs::getBoolean('LISTVIEW_COMPUTE_PAGE_COUNT', false) === true || (bool) $computeCount == true) {
        $output .= $app_strings['LBL_LIST_OF'] . ' ' . $navigation_array['verylast'];
    } else {
        $output .= "<img src='" . vtiger_imageurl('windowRefresh.gif', $theme) . "' alt='" . $app_strings['LBL_HOME_COUNT'] . "'\n\t\t\tonclick=\"loadRelatedListBlock('{$urldata}&withCount=true&start={$navigation_array['current']}','{$target}','{$imagesuffix}');\"\n\t\t\talign='absmiddle' name='" . $module . "_listViewCountRefreshIcon'/>\n\t\t\t<img name='" . $module . "_listViewCountContainerBusy' src='" . vtiger_imageurl('vtbusy.gif', $theme) . "' style='display: none;'\n\t\t\talign='absmiddle' alt='" . $app_strings['LBL_LOADING'] . "'>";
    }
    $output .= '</span>';
    if ($navigation_array['next'] != 0) {
        $output .= '<a href="javascript:;" onClick="loadRelatedListBlock(\'' . $urldata . '&start=' . $navigation_array['next'] . '\',\'' . $target . '\',\'' . $imagesuffix . '\');"><img src="' . vtiger_imageurl('next.gif', $theme) . '" border="0" align="absmiddle"></a>&nbsp;';
        $output .= '<a href="javascript:;" onClick="loadRelatedListBlock(\'' . $urldata . '&start=' . $navigation_array['verylast'] . '\',\'' . $target . '\',\'' . $imagesuffix . '\');"><img src="' . vtiger_imageurl('end.gif', $theme) . '" border="0" align="absmiddle"></a>&nbsp;';
    } else {
        $output .= '<img src="' . vtiger_imageurl('next_disabled.gif', $theme) . '" border="0" align="absmiddle">&nbsp;';
        $output .= '<img src="' . vtiger_imageurl('end_disabled.gif', $theme) . '" border="0" align="absmiddle">&nbsp;';
    }
    $output .= '</td>';
    $log->debug("Exiting getTableHeaderNavigation method ...");
    if ($navigation_array['first'] == '') {
        return;
    } else {
        return $output;
    }
}
开发者ID:vinzdrance,项目名称:YetiForceCRM,代码行数:53,代码来源:ListViewUtils.php


示例14: vtiger_imageurl

">
		<input type="hidden" name="start_hour" value="<?php 
echo $this->_tpl_vars['START_HOUR'];
?>
">
		<input type="hidden" name="form_token" value="<?php 
echo $this->_tpl_vars['FORM_TOKEN'];
?>
">

	<table width="100%"  border="0" cellspacing="0" cellpadding="0" class="settingsSelUITopLine">
	<tr><td align="left">
		<table class="settingsSelUITopLine" border="0" cellpadding="5" cellspacing="0" width="100%">
		<tr>
			<td rowspan="2" width="50"><img src="<?php 
echo vtiger_imageurl('ico-users.gif', $this->_tpl_vars['THEME']);
?>
" align="absmiddle"></td>
			<td>	
				<span class="lvtHeaderText">
				<?php 
if ($this->_tpl_vars['PARENTTAB'] != '') {
    ?>
	
				<b><a href="index.php?module=Settings&action=index&parenttab=Settings"><?php 
    echo $this->_tpl_vars['MOD']['LBL_SETTINGS'];
    ?>
 </a> &gt; <a href="index.php?module=Administration&action=index&parenttab=Settings"><?php 
    echo $this->_tpl_vars['MOD']['LBL_USERS'];
    ?>
</a> &gt; 
开发者ID:latechdirect,项目名称:vtiger,代码行数:31,代码来源:%%B5^B5B^B5BE4305%%UserEditView.tpl.php


示例15: get_graph

function get_graph($cache_file_name, $html_imagename, $cnt_val, $name_val, $width, $height, $left, $right, $top, $bottom, $title, $target_val, $graph_date, $urlstring, $test_target_val, $date_start, $end_date)
{
    global $tmp_dir;
    global $graph_title, $mod_strings;
    global $theme;
    $theme_path = "themes/" . $theme . "/";
    $image_path = $theme_path . "images/";
    $val = explode(":", $title);
    $display_title = $val[0];
    if (isset($_REQUEST['display_view']) && $_REQUEST['display_view'] == 'MATRIX') {
        $sHTML .= "<tr><td width=50%><table width=100%  border=0 cellspacing=0 cellpadding=0 align=left>";
    }
    $sHTML .= "<tr>\r\n\t   <td><a name='1'></a><table width=20%  border=0 cellspacing=12 cellpadding=0 align=left>\r\n\t         <tr>\r\n\t    \t   <td rowspan=2 valign=top><span class=\"dash_count\">1</span></td>\r\n\t           <td nowrap><span class=genHeaderSmall>" . $display_title . "</span></td>\r\n\t\t </tr>\r\n\t\t <tr>\r\n\t\t   <td nowrap><span class=big>" . $mod_strings['LBL_HORZ_BAR_CHART'] . "</span> </td>\r\n\t\t </tr>\r\n\t\t</table>\r\n\t   </td>\r\n\t   <td align='right'>";
    if (isset($_REQUEST['display_view']) && $_REQUEST['display_view'] == 'MATRIX') {
        $sHTML .= "&nbsp;";
    } else {
        $sHTML .= "<table cellpadding='0' cellspacing='0' border='0' class='small'>\r\n\t\t<tr>\r\n\t\t\t<td class='small'>" . $mod_strings['VIEWCHART'] . " :&nbsp;</td>\r\n\t\t\t<td class='dash_row_sel'>1</td>\r\n\t\t\t<td class='dash_row_unsel'><a class='dash_href' href='#2'>2</a></td>\r\n\t\t\t<td class='dash_switch'><a href='#top'><img align='absmiddle' src='" . vtiger_imageurl('dash_scroll_up.jpg', $theme) . "' border='0'></a></td>\r\n\t\t</tr>\r\n\t\t</table>";
    }
    $sHTML .= "</td>\r\n\t</tr>\r\n\t<tr>\r\n           <td colspan='2'>";
    $sHTML .= render_graph($tmp_dir . "hor_" . $cache_file_name, $html_imagename . "_hor", $cnt_val, $name_val, $width, $height, $left, $right, $top, $bottom, $title, $target_val, "horizontal");
    //Commented by Minnie -- same content displayed in two graphs
    /*$sHTML .= "</td>
    	</tr>
    	<tr>
    	   <td><hr noshade='noshade' size='1' /></td>
    	</tr>";
    
    $sHTML .= "<tr>
    	   <td><table width=20%  border=0 cellspacing=0 cellpadding=0 align=left>
    	   	 <tr>
    		   <td rowspan=2 valign=top><span class=dashSerial>2</span></td>
    		   <td nowrap><span class=genHeaderSmall>".$graph_title."</span></td>
    		 </tr>
    		 <tr>
    		   <td><span class=big>Vertical Bar Chart</span> </td>
    		 </tr>
    	        </table>
    	   </td>
    	</tr>
    	<tr>
    	   <td height=200>";
    
    	   $sHTML .= render_graph($tmp_dir."vert_".$cache_file_name,$html_imagename."_vert",$cnt_val,$name_val,$width,$height,$left,$right,$top,$bottom,$title,$target_val,"vertical");*/
    $sHTML .= "</td>\r\n\t</tr>";
    if (isset($_REQUEST['display_view']) && $_REQUEST['display_view'] == 'MATRIX') {
        $sHTML .= "</table></td><td width=50%><table width=100%  border=0 cellspacing=0 cellpadding=0 align=left>";
    } else {
        $sHTML .= "<tr><td colspan='2' class='dash_chart_btm'>&nbsp;</td></tr>";
    }
    $sHTML .= "<tr>\r\n\t   <td><a name='2'></a><table width=20%  border=0 cellspacing=12 cellpadding=0 align=left>\r\n           \t <tr>\r\n\t           <td rowspan=2 valign=top><span class=\"dash_count\">2</span></td>\r\n\t           <td nowrap><span class=genHeaderSmall>" . $graph_title . "</span></td>\r\n\t         </tr>\r\n\t         <tr>\r\n\t           <td><span class=big>" . $mod_strings['LBL_PIE_C 

鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP vtlib_getModuleNameById函数代码示例发布时间:2022-05-23
下一篇:
PHP vtemplate_path函数代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap