當前位置: 首頁>>代碼示例>>PHP>>正文


PHP SugarThemeRegistry類代碼示例

本文整理匯總了PHP中SugarThemeRegistry的典型用法代碼示例。如果您正苦於以下問題:PHP SugarThemeRegistry類的具體用法?PHP SugarThemeRegistry怎麽用?PHP SugarThemeRegistry使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


在下文中一共展示了SugarThemeRegistry類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: template_groups_chooser

function template_groups_chooser(&$args)
{
    global $mod_strings, $js_loaded;
    $table_style = '';
    if (!empty($args['display'])) {
        $table_style = "display: " . $args['display'] . "\"";
    }
    $uparraow_big = SugarThemeRegistry::current()->getImage('uparrow_big', 'border="0" style="margin-bottom: 1px;"', null, null, '.gif', $mod_strings['LBL_SORT']);
    $downarrow_big = SugarThemeRegistry::current()->getImage('downarrow_big', 'border="0" style="margin-top: 1px;" ', null, null, '.gif', $mod_strings['LBL_SORT']);
    $leftarrow_big = SugarThemeRegistry::current()->getImage('leftarrow_big', 'border="0" style="margin-right: 1px;"', null, null, '.gif', $mod_strings['LBL_SORT']);
    $rightarrow_big = SugarThemeRegistry::current()->getImage('rightarrow_big', 'border="0" style="margin-left: 1px;"', null, null, '.gif', $mod_strings['LBL_SORT']);
    $smarty = new Sugar_Smarty();
    $smarty->assign('args', $args);
    $smarty->assign('js_loaded', $js_loaded);
    $smarty->assign('table_style', $table_style);
    $smarty->assign('uparraow_big', $uparraow_big);
    $smarty->assign('downarrow_big', $downarrow_big);
    $smarty->assign('leftarrow_big', $leftarrow_big);
    $smarty->assign('rightarrow_big', $rightarrow_big);
    $smarty->assign('table_style', $table_style);
    //echo $smarty->fetch("modules/Reports/templates/_template_groups_chooser.tpl");
    if ($js_loaded == false) {
        $js_loaded = true;
    }
    return $smarty->fetch("modules/Reports/templates/_template_groups_chooser.tpl");
}
開發者ID:jglaine,項目名稱:sugar761-ent,代碼行數:26,代碼來源:templates_group_chooser.php

示例2: display

    public function display()
    {
        global $beanList, $beanFiles, $current_user, $app_strings, $app_list_strings;
        $moduleDir = empty($_REQUEST['bean']) ? '' : $_REQUEST['bean'];
        $beanName = empty($beanList[$moduleDir]) ? '' : $beanList[$moduleDir];
        $id = empty($_REQUEST['id']) ? '' : $_REQUEST['id'];
        // Bug 40216 - Add support for a custom additionalDetails.php file
        $additionalDetailsFile = $this->getAdditionalDetailsMetadataFile($moduleDir);
        if (empty($id) || empty($additionalDetailsFile)) {
            echo 'bad data';
            die;
        }
        require_once $additionalDetailsFile;
        $adFunction = 'additionalDetails' . $beanName;
        if (function_exists($adFunction)) {
            // does the additional details function exist
            $json = getJSONobj();
            $bean = BeanFactory::getBean($moduleDir, $id);
            //bug38901 - shows dropdown list label instead of database value
            foreach ($bean->field_name_map as $field => $value) {
                if ($value['type'] == 'enum' && !empty($value['options']) && !empty($app_list_strings[$value['options']]) && isset($app_list_strings[$value['options']][$bean->{$field}])) {
                    $bean->{$field} = $app_list_strings[$value['options']][$bean->{$field}];
                }
            }
            $bean->ACLFilterFields();
            $arr = array_change_key_case($bean->toArray(), CASE_UPPER);
            $results = $adFunction($arr);
            $retArray['body'] = str_replace(array("\rn", "\r", "\n"), array('', '', '<br />'), $results['string']);
            $retArray['caption'] = "<div style='float:left'>{$app_strings['LBL_ADDITIONAL_DETAILS']}</div><div style='float: right'>";
            if (!empty($_REQUEST['show_buttons'])) {
                if ($bean->ACLAccess('EditView')) {
                    $editImg = SugarThemeRegistry::current()->getImageURL('edit_inline.png', false);
                    $results['editLink'] = $this->buildButtonLink($results['editLink']);
                    $retArray['caption'] .= <<<EOC
<a style="text-decoration:none;" title="{$GLOBALS['app_strings']['LBL_EDIT_BUTTON']}" href="{$results['editLink']}">
    <img border=0 src="{$editImg}">
</a>
EOC;
                }
                if ($bean->ACLAccess('DetailView')) {
                    $detailImg = SugarThemeRegistry::current()->getImageURL('view_inline.png', false);
                    $results['viewLink'] = $this->buildButtonLink($results['viewLink']);
                    $retArray['caption'] .= <<<EOC
<a style="text-decoration:none;" title="{$GLOBALS['app_strings']['LBL_VIEW_BUTTON']}" href="{$results['viewLink']}">
    <img border=0 src="{$detailImg}" style="margin-left:2px;">
</a>
EOC;
                }
                $closeImg = SugarThemeRegistry::current()->getImageURL('close.png', false);
                $retArray['caption'] .= <<<EOC
<a title="{$GLOBALS['app_strings']['LBL_ADDITIONAL_DETAILS_CLOSE_TITLE']}" href="javascript:SUGAR.util.closeStaticAdditionalDetails();">
    <img border=0 src="{$closeImg}" style="margin-left:2px;">
</a>
EOC;
            }
            $retArray['caption'] .= "";
            $retArray['width'] = empty($results['width']) ? '300' : $results['width'];
            echo 'result = ' . $json->encode($retArray);
        }
    }
開發者ID:jglaine,項目名稱:sugar761-ent,代碼行數:60,代碼來源:view.additionaldetailsretrieve.php

示例3: strtoupper

 function &displayList($layout_def)
 {
     if (!empty($layout_def['column_key'])) {
         $field_def = $this->reporter->all_fields[$layout_def['column_key']];
     } else {
         if (!empty($layout_def['fields'])) {
             $field_def = $layout_def['fields'];
         }
     }
     $cell = $this->displayListPlain($layout_def);
     $str = $cell;
     global $sugar_config;
     if (isset($sugar_config['enable_inline_reports_edit']) && $sugar_config['enable_inline_reports_edit']) {
         $module = $this->reporter->all_fields[$layout_def['column_key']]['module'];
         $name = $layout_def['name'];
         $layout_def['name'] = 'id';
         $key = $this->_get_column_alias($layout_def);
         $key = strtoupper($key);
         //If the key isn't in the layout fields, skip it
         if (!empty($layout_def['fields'][$key])) {
             $record = $layout_def['fields'][$key];
             $field_name = $field_def['name'];
             $field_type = $field_def['type'];
             $div_id = $field_def['module'] . "&{$record}&{$field_name}";
             $str = "<div id='{$div_id}'>" . $cell . "&nbsp;" . SugarThemeRegistry::current()->getImage("edit_inline", "border='0' alt='Edit Layout' align='bottom' onClick='SUGAR.reportsInlineEdit.inlineEdit(" . "\"{$div_id}\",\"{$cell}\",\"{$module}\",\"{$record}\",\"{$field_name}\",\"{$field_type}\");'") . "</div>";
         }
     }
     return $str;
 }
開發者ID:jglaine,項目名稱:sugar761-ent,代碼行數:29,代碼來源:SugarWidgetFieldenum.php

示例4: getBody

    function getBody()
    {
        global $locale;
        $d_image = explode('?', SugarThemeRegistry::current()->getImageURL('company_logo.png'));
        return '<table style="width: 100%;" border="0" cellspacing="2" cellpadding="2">
<tbody style="text-align: left;">
<tr>
<td valign="top">
<p><img src="' . $d_image[0] . '" style="float: left;"/>&nbsp;</p>
</td>
<td style="font-weight: bold; text-align: right;"><div>' . translate('LBL_BROWSER_TITLE') . ' Ltd<br />' . translate('LBL_ANY_STREET', 'AOS_PDF_Templates') . '<br />' . translate('LBL_ANY_TOWN', 'AOS_PDF_Templates') . '</span><br />' . translate('LBL_ANY_WHERE', 'AOS_PDF_Templates') . '</div></td>
</tr>
</tbody>
</table>
<div><br /></div>
<div>$accounts_name<br /> $accounts_billing_address_street<br /> $accounts_billing_address_city<br /> $accounts_billing_address_state<br /> $accounts_billing_address_postalcode</div>
<div><br /></div>
<div>{DATE ' . $locale->getPrecedentPreference('default_date_format') . '}</div>
<div><br /></div>
<p>Dear $accounts_name</p>
<p>OpenSales was originally designed and conceived by Rustin Phares. In  2009, when Rustin could no longer devote time to the project, which is  an important one for the Community Edition of SugarCRM, SalesAgility approached him to seek permission to pick up where he had left off.</p>
<p>In early 2010 we released the first iteration of what was now to be  called "Advanced OpenSales". Since then there have been regular releases  to bring Advanced OpenSales into line with the latest releases of  SugarCRM and to advance the functionality.</p>
<p>2011 saw a complete rewrite of Advanced OpenSales to bring it into  line with the 5.x and 6.x architectures and the introduction of an  Invoice module. In March 2011, an Invoicing module for SugarCRM  Professional Edition was also released.</p>
<p>Advanced OpenSales is released under the Affero General Purpose  License meaning it&#39;s Open Source and freely available. That does not  mean that there is no cost involved in making it. Thousands of man hours  have gone in to developing and maintaining these modules. Any  contributions that assist us in keeping the project on an even keel are  gratefully received.</p>
<p>SalesAgility are SugarCRM experts. With offices in Manchester and Central Scotland,  we&#39;re ideally placed to serve your SugarCRM requirements. As  consultants, we design and implement tailored Sugar CRM instances. As  software developers, we design and deliver customised instances of Sugar  CRM that meet the more specialist needs of our clients. As a support  organisation we deliver training, hosting and help-desk services to  ensure that our clients continue to get best value from their Sugar  investment.</p>
<p>Yours sincerely</p>
<p> </p>
<p> </p>
<p>Someone</p>';
    }
開發者ID:MexinaD,項目名稱:SuiteCRM,代碼行數:30,代碼來源:smpl_Account_Sample.php

示例5: smarty_function_sugar_getlink

/**
 * Smarty {sugar_getlink} function plugin
 *
 * Type:     function
 * Name:     sugar_getlink
 * Purpose:  Returns HTML link <a> with embedded image or normal text
 * 
 * @param array
 * @param Smarty
 */
function smarty_function_sugar_getlink($params, &$smarty)
{
    // error checking for required parameters
    if (!isset($params['url'])) {
        $smarty->trigger_error($GLOBALS['app_strings']['ERR_MISSING_REQUIRED_FIELDS'] . 'url');
    }
    if (!isset($params['title'])) {
        $smarty->trigger_error($GLOBALS['app_strings']['ERR_MISSING_REQUIRED_FIELDS'] . 'title');
    }
    // set defaults
    if (!isset($params['attr'])) {
        $params['attr'] = '';
    }
    if (!isset($params['img_name'])) {
        $params['img_name'] = '';
    }
    if (!isset($params['img_attr'])) {
        $params['img_attr'] = '';
    }
    if (!isset($params['img_width'])) {
        $params['img_width'] = null;
    }
    if (!isset($params['img_height'])) {
        $params['height'] = null;
    }
    if (!isset($params['img_placement'])) {
        $params['img_placement'] = 'imageonly';
    }
    if (!isset($params['img_alt'])) {
        $params['img_alt'] = '';
    }
    return SugarThemeRegistry::current()->getLink($params['url'], $params['title'], $params['attr'], $params['img_name'], $params['img_attr'], $params['img_width'], $params['img_height'], $params['img_alt'], $params['img_placement']);
}
開發者ID:jglaine,項目名稱:sugar761-ent,代碼行數:43,代碼來源:function.sugar_getlink.php

示例6: smarty_function_sugar_getimagepath

/**
 * Smarty {sugar_include} function plugin
 *
 * Type:     function<br>
 * Name:     sugar_include<br>
 * Purpose:  Handles rendering the global file includes from the metadata files defined
 *           in templateMeta=>includes.
 * 
 * @author Collin Lee {clee@sugarcrm.com}
 * @param array
 * @param Smarty
 */
function smarty_function_sugar_getimagepath($params, &$smarty)
{
    if (!isset($params['file'])) {
        $smarty->trigger_error($GLOBALS['app_strings']['ERR_MISSING_REQUIRED_FIELDS'] . 'file');
    }
    return SugarThemeRegistry::current()->getImageURL($params['file']);
}
開發者ID:MexinaD,項目名稱:SuiteCRM,代碼行數:19,代碼來源:function.sugar_getimagepath.php

示例7: displayList

 function displayList($layout_def)
 {
     global $app_strings;
     $return_module = $_REQUEST['module'];
     $return_id = $_REQUEST['record'];
     $module_name = $layout_def['module'];
     $record_id = $layout_def['fields']['ID'];
     // calls and meetings are held.
     $new_status = 'Held';
     switch ($module_name) {
         case 'Tasks':
             $new_status = 'Completed';
             break;
     }
     $subpanel = $layout_def['subpanel_id'];
     if (isset($layout_def['linked_field_set']) && !empty($layout_def['linked_field_set'])) {
         $linked_field = $layout_def['linked_field_set'];
     } else {
         $linked_field = $layout_def['linked_field'];
     }
     $refresh_page = 0;
     if (!empty($layout_def['refresh_page'])) {
         $refresh_page = 1;
     }
     $html = "<a onclick='return sp_del_conf();' href=\"javascript:sub_p_del('{$subpanel}', '{$module_name}', '{$record_id}', {$refresh_page});\">" . SugarThemeRegistry::current()->getImage("delete_inline", "alt=" . translate('LBL_LIST_DELETE', $module_name) . " border='0'") . "</a>";
     return $html;
 }
開發者ID:razorinc,項目名稱:sugarcrm-example,代碼行數:27,代碼來源:SugarWidgetSubPanelDeleteButton.php

示例8: smarty_function_sugar_getimage

/**
 * Smarty {sugar_getimage} function plugin
 *
 * Type:     function
 * Name:     sugar_getimage
 * Purpose:  Returns HTML image or sprite
 * 
 * @author Aamir Mansoor (amansoor@sugarcrm.com) 
 * @author Cam McKinnon (cmckinnon@sugarcrm.com)
 * @param array
 * @param Smarty
 */
function smarty_function_sugar_getimage($params, &$smarty)
{
    // error checking for required parameters
    if (!isset($params['name'])) {
        $smarty->trigger_error($GLOBALS['app_strings']['ERR_MISSING_REQUIRED_FIELDS'] . 'name');
    }
    // temp hack to deprecate the use of other_attributes
    if (isset($params['other_attributes'])) {
        $params['attr'] = $params['other_attributes'];
    }
    // set defaults
    if (!isset($params['attr'])) {
        $params['attr'] = '';
    }
    if (!isset($params['width'])) {
        $params['width'] = null;
    }
    if (!isset($params['height'])) {
        $params['height'] = null;
    }
    if (!isset($params['alt'])) {
        $params['alt'] = '';
    }
    // deprecated ?
    if (!isset($params['ext'])) {
        $params['ext'] = null;
    }
    return SugarThemeRegistry::current()->getImage($params['name'], $params['attr'], $params['width'], $params['height'], $params['ext'], $params['alt']);
}
開發者ID:thsonvt,項目名稱:sugarcrm_dev,代碼行數:41,代碼來源:function.sugar_getimage.php

示例9: get_new_record_form

/**
 * Create HTML form to enter a new record with the minimum necessary fields.
 * Portions created by SugarCRM are Copyright (C) SugarCRM, Inc.
 * All Rights Reserved.
 * Contributor(s): ______________________________________..
 */
function get_new_record_form()
{
    global $app_strings;
    global $app_list_strings;
    global $mod_strings;
    global $currentModule;
    global $current_user;
    global $timedate;
    $the_form = get_left_form_header($mod_strings['LBL_NEW_FORM_TITLE']);
    $form = new XTemplate('modules/Campaigns/Forms.html');
    $module_select = empty($_REQUEST['module_select']) ? '' : $_REQUEST['module_select'];
    $form->assign('MOD', $mod_strings);
    $form->assign('APP', $app_strings);
    $form->assign('THEME', SugarThemeRegistry::current()->__toString());
    $form->assign("JAVASCRIPT", get_set_focus_js() . get_validate_record_js());
    $form->assign("STATUS_OPTIONS", get_select_options_with_id($app_list_strings['campaign_status_dom'], "Planning"));
    $form->assign("TYPE_OPTIONS", get_select_options_with_id($app_list_strings['campaign_type_dom'], ""));
    $form->assign("USER_ID", $current_user->id);
    $form->assign("TEAM_ID", sprintf('<input type="hidden" name="team_id" value="%s">', $current_user->default_team));
    $form->assign("CALENDAR_LANG", "en");
    $form->assign("USER_DATEFORMAT", '(' . $timedate->get_user_date_format() . ')');
    $form->assign("CALENDAR_DATEFORMAT", $timedate->get_cal_date_format());
    $form->parse('main');
    $the_form .= $form->text('main');
    $focus = BeanFactory::getBean('Campaigns');
    $javascript = new javascript();
    $javascript->setFormName('quick_save');
    $javascript->setSugarBean($focus);
    $javascript->addRequiredFields('');
    $jscript = $javascript->getScript();
    $the_form .= $jscript . get_left_form_footer();
    return $the_form;
}
開發者ID:jglaine,項目名稱:sugar761-ent,代碼行數:39,代碼來源:Forms.php

示例10: display

 /**
  * display
  * Override the display method to support customization for the buttons that display
  * a popup and allow you to copy the account's address into the selected contacts.
  * The custom_code_billing and custom_code_shipping Smarty variables are found in
  * include/SugarFields/Fields/Address/DetailView.tpl (default).  If it's a English U.S.
  * locale then it'll use file include/SugarFields/Fields/Address/en_us.DetailView.tpl.
  */
 function display()
 {
     global $app_strings, $app_list_strings;
     global $mod_strings;
     parent::display();
     $smarty = new Sugar_Smarty();
     $smarty->assign('APP', $app_strings);
     $smarty->assign('MOD', $mod_strings);
     $smarty->assign('RECORD', $this->bean->id);
     $popup_request_data = array('call_back_function' => 'set_return', 'form_name' => 'xeBayOrderSend', 'field_to_name_array' => array('description' => 'message'));
     $json = getJSONobj();
     $smarty->assign('ENCODED_TEMPLATES_POPUP_REQUEST_DATA', $json->encode($popup_request_data));
     $smarty->assign("TEMPLATE_SELECT", SugarThemeRegistry::current()->getImage('id-ff-select', '', null, null, '.png', $mod_strings['LBL_SELECT']));
     $smarty->assign("TEMPLATE_CLEAR", SugarThemeRegistry::current()->getImage('id-ff-clear', '', null, null, '.gif', $mod_strings['LBL_ID_FF_CLEAR']));
     $itemAssociation = '';
     $this->bean->load_relationship('xebaytransactions');
     $transactions = $this->bean->xebaytransactions->getBeans();
     $first = true;
     foreach ($transactions as &$transaction) {
         if (!empty($transaction->item_item_id)) {
             if ($first == true) {
                 $first = false;
                 $smarty->assign('ITEM_ID', $transaction->item_item_id);
                 $smarty->assign('SUBJECT', $transaction->name);
                 $itemAssociation .= "<input name='item_assocaition' id='{$transaction->name}' type='radio' value='{$transaction->item_item_id}' checked='checked' onclick=select_item_id(this) />{$transaction->name}<br>";
             } else {
                 $itemAssociation .= "<input name='item_assocaition' id='{$transaction->name}' type='radio' value='{$transaction->item_item_id}' onclick=select_item_id(this) />{$transaction->name}<br>";
             }
         }
     }
     $smarty->assign('ITEM_ASSOCIATION', $itemAssociation);
     $smarty->assign('SALUTATION', str_replace("\n", "<br>", $this->bean->get_salutation()));
     $smarty->assign('SIGNATURE', str_replace("\n", "<br>", $this->bean->get_signature()));
     $smarty->display("modules/xeBayOrders/tpls/send.tpl");
 }
開發者ID:sunmo,項目名稱:snowlotus,代碼行數:43,代碼來源:view.detail.php

示例11: fill_in_additional_detail_fields

 function fill_in_additional_detail_fields()
 {
     global $theme;
     global $current_language;
     global $timedate;
     global $app_list_strings;
     $this->uploadfile = $this->filename;
     $mod_strings = return_module_language($current_language, $this->object_name);
     global $img_name;
     global $img_name_bare;
     if (!$this->file_ext) {
         $img_name = SugarThemeRegistry::current()->getImageURL(strtolower($this->file_ext) . "_image_inline.gif");
         $img_name_bare = strtolower($this->file_ext) . "_image_inline";
     }
     //set default file name.
     if (!empty($img_name) && file_exists($img_name)) {
         $img_name = $img_name_bare;
     } else {
         $img_name = "def_image_inline";
         //todo change the default image.
     }
     $this->file_url_noimage = basename(UploadFile::get_url($this->filename, $this->id));
     if (!empty($this->status_id)) {
         $this->status = $app_list_strings['document_status_dom'][$this->status_id];
     }
 }
開發者ID:klr2003,項目名稱:sourceread,代碼行數:26,代碼來源:File.php

示例12: displayScript

    function displayScript()
    {
        global $current_language;
        $mod_strings = return_module_language($current_language, 'Emails');
        $casesImageURL = "\"" . SugarThemeRegistry::current()->getImageURL('Cases.gif') . "\"";
        $leadsImageURL = "\"" . SugarThemeRegistry::current()->getImageURL('Leads.gif') . "\"";
        $contactsImageURL = "\"" . SugarThemeRegistry::current()->getImageURL('Contacts.gif') . "\"";
        $bugsImageURL = "\"" . SugarThemeRegistry::current()->getImageURL('Bugs.gif') . "\"";
        $tasksURL = "\"" . SugarThemeRegistry::current()->getImageURL('Tasks.gif') . "\"";
        $script = <<<EOQ
        <script>
        function quick_create_overlib(id, theme) {
            return overlib('<a style=\\'width: 150px\\' class=\\'menuItem\\' onmouseover=\\'hiliteItem(this,"yes");\\' onmouseout=\\'unhiliteItem(this);\\' href=\\'index.php?module=Cases&action=EditView&inbound_email_id=' + id + '\\'>' +
            "<img border='0' src='" + {$casesImageURL} + "' style='margin-right:5px'>" + '{$mod_strings['LBL_LIST_CASE']}' + '</a>' +
            "<a style='width: 150px' class='menuItem' onmouseover='hiliteItem(this,\\"yes\\");' onmouseout='unhiliteItem(this);' href='index.php?module=Leads&action=EditView&inbound_email_id=" + id + "'>" +
                    "<img border='0' src='" + {$leadsImageURL} + "' style='margin-right:5px'>"
                    + '{$mod_strings['LBL_LIST_LEAD']}' + "</a>" +
             "<a style='width: 150px' class='menuItem' onmouseover='hiliteItem(this,\\"yes\\");' onmouseout='unhiliteItem(this);' href='index.php?module=Contacts&action=EditView&inbound_email_id=" + id + "'>" +
                    "<img border='0' src='" + {$contactsImageURL} + "' style='margin-right:5px'>"
                    + '{$mod_strings['LBL_LIST_CONTACT']}' + "</a>" +
             "<a style='width: 150px' class='menuItem' onmouseover='hiliteItem(this,\\"yes\\");' onmouseout='unhiliteItem(this);' href='index.php?module=Bugs&action=EditView&inbound_email_id=" + id + "'>"+
                    "<img border='0' src='" + {$bugsImageURL} + "' style='margin-right:5px'>"
                    + '{$mod_strings['LBL_LIST_BUG']}' + "</a>" +
             "<a style='width: 150px' class='menuItem' onmouseover='hiliteItem(this,\\"yes\\");' onmouseout='unhiliteItem(this);' href='index.php?module=Tasks&action=EditView&inbound_email_id=" + id + "'>" +
                    "<img border='0' src='" + {$tasksURL} + "' style='margin-right:5px'>"
                   + '{$mod_strings['LBL_LIST_TASK']}' + "</a>"
            , CAPTION, '{$mod_strings['LBL_QUICK_CREATE']}'
            , STICKY, MOUSEOFF, 3000, CLOSETEXT, '<img border=0 src="themes/' + theme + '/images/close_inline.gif">', WIDTH, 150, CLOSETITLE, SUGAR.language.get('app_strings', 'LBL_ADDITIONAL_DETAILS_CLOSE_TITLE'), CLOSECLICK, FGCLASS, 'olOptionsFgClass',
            CGCLASS, 'olOptionsCgClass', BGCLASS, 'olBgClass', TEXTFONTCLASS, 'olFontClass', CAPTIONFONTCLASS, 'olOptionsCapFontClass', CLOSEFONTCLASS, 'olOptionsCloseFontClass');
        }
        </script>
EOQ;
        return $script;
    }
開發者ID:klr2003,項目名稱:sourceread,代碼行數:34,代碼來源:MyEmailsDashlet.php

示例13: display

 function display()
 {
     global $current_user, $app_strings, $mod_strings;
     $admin = is_admin($current_user) || is_admin_for_module($current_user, 'Reports');
     foreach ($this->data['data'] as $i => $rowData) {
         if (isset($this->data['data'][$i]['IS_PUBLISHED'])) {
             $this->data['data'][$i]['IS_PUBLISHED'] = "<input type='checkbox' ";
             if ($rowData['IS_PUBLISHED'] == 'yes') {
                 $this->data['data'][$i]['IS_PUBLISHED'] .= ' checked ';
             }
             if ($admin) {
                 $this->data['data'][$i]['IS_PUBLISHED'] .= " onclick='location.href=\"index.php?module=Reports&action=index&publish=no&publish_report_id={$rowData['ID']}\";'>";
             } else {
                 $this->data['data'][$i]['IS_PUBLISHED'] .= ' disabled=true>';
             }
         }
         if (isset($this->data['data'][$i]['IS_SCHEDULED'])) {
             $this->data['data'][$i]['IS_SCHEDULED'] = "<a href='#' onclick=\"schedulePOPUP('{$rowData['ID']}'); return false\" class='listViewTdToolsS1'>{$rowData['IS_SCHEDULED_IMG']} {$rowData['IS_SCHEDULED']}</a>";
         }
         if (!isset($this->data['data'][$i]['IS_EDIT'])) {
             if ($this->data['data'][$i]['ASSIGNED_USER_ID'] != $current_user->id || !ACLController::checkAccess('Reports', 'edit', $this->data['data'][$i]['ASSIGNED_USER_ID'])) {
                 $this->data['data'][$i]['IS_EDIT'] = "&nbsp;";
             } else {
                 $this->data['data'][$i]['IS_EDIT'] = "<a title=\"{$app_strings['LBL_EDIT_BUTTON']}\" href=\"index.php?action=ReportsWizard&module=Reports&page=report&record={$rowData['ID']}\">" . SugarThemeRegistry::current()->getImage("edit_inline", '', null, null, ".gif", $mod_strings['LBL_EDIT']) . "</a>";
             }
         }
     }
     $this->ss->assign('act', 'ReportsWizard');
     return parent::display();
 }
開發者ID:jglaine,項目名稱:sugar761-ent,代碼行數:30,代碼來源:ListViewReports.php

示例14: display

 /**
  * display
  *
  */
 function display()
 {
     parent::display();
     global $current_user, $app_strings, $mod_strings;
     if (isset($this->bean->query_id) && !empty($this->bean->query_id)) {
         //CHECK FOR SUB-QUERIES
         $this->bean->check_interlock();
         //OUTPUT THE DATASET
         $data_set = BeanFactory::getBean('CustomQueries', $this->bean->query_id);
         $QueryView = new ReportListView();
         $QueryView->initNewXTemplate('modules/CustomQueries/QueryView.html', $mod_strings);
         $QueryView->setHeaderTitle($this->bean->name);
         //below: make sure to aquire the custom layout headers if available
         $QueryView->export_type = "Ent";
         $QueryView->xTemplateAssign('EDIT_INLINE', SugarThemeRegistry::current()->getImage('edit_inline', 'align="absmiddle" border="0"', null, null, '.gif', $app_strings['LNK_EDIT']));
         $QueryView->xTemplateAssign('LEFTARROW_INLINE', SugarThemeRegistry::current()->getImage('calendar_previous', 'align="absmiddle" border="0"', null, null, '.gif', $mod_strings['LBL_LEFT']));
         $QueryView->xTemplateAssign('RIGHTARROW_INLINE', SugarThemeRegistry::current()->getImage('calendar_next', 'align="absmiddle" border="0"', null, null, '.gif', $mod_strings['LBL_RIGHT']));
         $QueryView->setup($data_set, $this->bean, "main", "CUSTOMQUERY");
         $query_results = $QueryView->processDataSet();
         if ($query_results['result'] == "Error") {
             if (is_admin($current_user)) {
                 echo "<font color=\"red\"><b>" . $query_results['result_msg'] . "" . $app_strings['ERROR_EXAMINE_MSG'] . "</font><BR>" . $query_results['msg'] . "</b>";
             } else {
                 echo "<font color=\"red\"><b>" . $query_results['result_msg'] . "</font></b><BR>";
             }
         }
         //end if there is even a query for the data set
     } else {
         echo "<font color=\"red\"><b>" . $app_strings['NO_QUERY_SELECTED'] . "</font></b><BR>";
     }
 }
開發者ID:jglaine,項目名稱:sugar761-ent,代碼行數:35,代碼來源:view.detail.php

示例15: display

 /**
  * @see SugarView::display()
  */
 public function display()
 {
     global $mod_strings, $app_strings, $current_user;
     global $sugar_config;
     $this->ss->assign("MODULE_TITLE", $this->getModuleTitle(false));
     $this->ss->assign("DELETE_INLINE_PNG", SugarThemeRegistry::current()->getImage('delete_inline', 'align="absmiddle" alt="' . $app_strings['LNK_DELETE'] . '" border="0"'));
     $this->ss->assign("PUBLISH_INLINE_PNG", SugarThemeRegistry::current()->getImage('publish_inline', 'align="absmiddle" alt="' . $mod_strings['LBL_PUBLISH'] . '" border="0"'));
     $this->ss->assign("UNPUBLISH_INLINE_PNG", SugarThemeRegistry::current()->getImage('unpublish_inline', 'align="absmiddle" alt="' . $mod_strings['LBL_UNPUBLISH'] . '" border="0"'));
     $this->ss->assign("IMPORT_MODULE", $_REQUEST['import_module']);
     $this->ss->assign("JAVASCRIPT", $this->_getJS());
     $this->ss->assign("CURRENT_STEP", $this->currentStep);
     //BEGIN DRAG DROP WIDGET
     $idc = new ImportDuplicateCheck($this->bean);
     $dupe_indexes = $idc->getDuplicateCheckIndexes();
     $dupe_disabled = array();
     foreach ($dupe_indexes as $dk => $dv) {
         $dupe_disabled[] = array("dupeVal" => $dk, "label" => $dv);
     }
     //set dragdrop value
     $this->ss->assign('enabled_dupes', json_encode(array()));
     $this->ss->assign('disabled_dupes', json_encode($dupe_disabled));
     //END DRAG DROP WIDGET
     $this->ss->assign("RECORDTHRESHOLD", $sugar_config['import_max_records_per_file']);
     $content = $this->ss->fetch('modules/Import/tpls/extdupcheck.tpl');
     $this->ss->assign("CONTENT", $content);
     $this->ss->display('modules/Import/tpls/wizardWrapper.tpl');
 }
開發者ID:netconstructor,項目名稱:sugarcrm_dev,代碼行數:30,代碼來源:view.extdupcheck.php


注:本文中的SugarThemeRegistry類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。