当前位置: 首页>>代码示例>>PHP>>正文


PHP ListView::getArrowEnd方法代码示例

本文整理汇总了PHP中ListView::getArrowEnd方法的典型用法代码示例。如果您正苦于以下问题:PHP ListView::getArrowEnd方法的具体用法?PHP ListView::getArrowEnd怎么用?PHP ListView::getArrowEnd使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在ListView的用法示例。


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

示例1: displayHeaderCell

 function displayHeaderCell($layout_def)
 {
     $module_name = $this->layout_manager->getAttribute('module_name');
     $this->local_current_module = $_REQUEST['module'];
     $this->is_dynamic = true;
     // don't show sort links if name isn't defined
     if (empty($layout_def['name'])) {
         return $layout_def['label'];
     }
     if (isset($layout_def['sortable']) && !$layout_def['sortable']) {
         return $this->displayHeaderCellPlain($layout_def);
     }
     $header_cell_text = '';
     $key = '';
     if (!empty($layout_def['vname'])) {
         $key = $layout_def['vname'];
     }
     if (empty($key)) {
         $header_cell_text = $layout_def['name'];
     } else {
         $header_cell_text = translate($key, $module_name);
     }
     $subpanel_module = $layout_def['subpanel_module'];
     if (empty($this->base_URL)) {
         $this->base_URL = ListView::getBaseURL('CELL');
         $split_url = explode('&to_pdf=true&action=SubPanelViewer&subpanel=', $this->base_URL);
         $this->base_URL = $split_url[0];
         $this->base_URL .= '&inline=true&to_pdf=true&action=SubPanelViewer&subpanel=';
     }
     $sort_by_name = $layout_def['name'];
     if (isset($layout_def['sort_by'])) {
         $sort_by_name = $layout_def['sort_by'];
     }
     $sort_by = ListView::getSessionVariableName('CELL', "ORDER_BY") . '=' . $sort_by_name;
     $start = empty($layout_def['start_link_wrapper']) ? '' : $layout_def['start_link_wrapper'];
     $end = empty($layout_def['end_link_wrapper']) ? '' : $layout_def['end_link_wrapper'];
     $header_cell = "<a class=\"listViewThLinkS1\" href=\"" . $start . $this->base_URL . $subpanel_module . '&' . $sort_by . $end . "\">";
     $header_cell .= $header_cell_text;
     $header_cell .= "</a>";
     $arrow_start = ListView::getArrowStart();
     $arrow_end = ListView::getArrowEnd();
     $imgArrow = '';
     if (isset($layout_def['sort'])) {
         $imgArrow = $layout_def['sort'];
     }
     $header_cell .= " " . $arrow_start . $imgArrow . $arrow_end;
     return $header_cell;
 }
开发者ID:nerdystudmuffin,项目名称:dashlet-subpanels,代码行数:48,代码来源:SugarWidgetField.php

示例2: empty

 function &displayHeaderCell(&$layout_def)
 {
     global $start_link_wrapper, $end_link_wrapper;
     require_once "include/ListView/ListView.php";
     // don't show sort links if name isn't defined
     $no_sort = $this->layout_manager->getAttribute('no_sort');
     if (empty($layout_def['name']) || !empty($no_sort) || !empty($layout_def['no_sort'])) {
         return $layout_def['label'];
     }
     $sort_by = '';
     if (!empty($layout_def['table_key']) && !empty($layout_def['name'])) {
         if (!empty($layout_def['group_function']) && $layout_def['group_function'] == 'count') {
             $sort_by = 'count';
         } else {
             $sort_by = $layout_def['table_key'] . ":" . $layout_def['name'];
             if (!empty($layout_def['column_function'])) {
                 $sort_by .= ':' . $layout_def['column_function'];
             } else {
                 if (!empty($layout_def['group_function'])) {
                     $sort_by .= ':' . $layout_def['group_function'];
                 }
             }
         }
     } else {
         return $this->displayHeaderCellPlain($layout_def);
     }
     $start = $start_link_wrapper;
     $end = $end_link_wrapper;
     $start = empty($start) ? '' : $start;
     $end = empty($end) ? '' : $end;
     if ($layout_def['name'] != 'description') {
         $header_cell = "<a class=\"listViewThLinkS1\" href=\"" . $start . $sort_by . $end . "\">";
         $header_cell .= $this->displayHeaderCellPlain($layout_def);
         $arrow_start = ListView::getArrowStart($this->layout_manager->getAttribute('image_path'));
         $arrow_end = ListView::getArrowEnd($this->layout_manager->getAttribute('image_path'));
         $imgArrow = '';
         if (isset($layout_def['sort'])) {
             $imgArrow = $layout_def['sort'];
         }
         $header_cell .= ' ' . $arrow_start . $imgArrow . $arrow_end . "</a>";
     } else {
         $header_cell = $this->displayHeaderCellPlain($layout_def);
     }
     return $header_cell;
 }
开发者ID:BackupTheBerlios,项目名称:livealphaprint,代码行数:45,代码来源:SugarWidgetReportField.php

示例3: displayHeaderCell

 function displayHeaderCell($layout_def)
 {
     global $start_link_wrapper, $end_link_wrapper;
     // don't show sort links if name isn't defined
     $no_sort = $this->layout_manager->getAttribute('no_sort');
     if (empty($layout_def['name']) || !empty($no_sort) || !empty($layout_def['no_sort'])) {
         return $layout_def['label'];
     }
     $sort_by = '';
     if (!empty($layout_def['table_key']) && !empty($layout_def['name'])) {
         if (!empty($layout_def['group_function']) && $layout_def['group_function'] == 'count') {
             $sort_by = 'count';
         } else {
             $sort_by = $layout_def['table_key'] . ":" . $layout_def['name'];
             if (!empty($layout_def['column_function'])) {
                 $sort_by .= ':' . $layout_def['column_function'];
             } else {
                 if (!empty($layout_def['group_function'])) {
                     $sort_by .= ':' . $layout_def['group_function'];
                 }
             }
         }
     } else {
         return $this->displayHeaderCellPlain($layout_def);
     }
     $start = $start_link_wrapper;
     $end = $end_link_wrapper;
     $start = empty($start) ? '' : $start;
     $end = empty($end) ? '' : $end;
     // unable to retrieve the vardef here, exclude columns of type clob/text from being sortable
     if (!in_array($layout_def['name'], array('description', 'account_description', 'lead_source_description', 'status_description', 'to_addrs', 'cc_addrs', 'bcc_addrs', 'work_log', 'objective', 'resolution'))) {
         $header_cell = "<a class=\"listViewThLinkS1\" href=\"" . $start . $sort_by . $end . "\">";
         $header_cell .= $this->displayHeaderCellPlain($layout_def);
         $imgArrow = '';
         if (isset($layout_def['sort'])) {
             $imgArrow = $layout_def['sort'];
         }
         $arrow_start = ListView::getArrowUpDownStart($imgArrow);
         $arrow_end = ListView::getArrowEnd();
         $header_cell .= ' ' . $arrow_start . $arrow_end . "</a>";
     } else {
         $header_cell = $this->displayHeaderCellPlain($layout_def);
     }
     return $header_cell;
 }
开发者ID:sysraj86,项目名称:carnivalcrm,代码行数:45,代码来源:SugarWidgetReportField.php

示例4: ListView

        }
    }
    $GLOBALS['log']->info("Here is the where clause for the list view: {$where}");
}
$display_title = $mod_strings['LBL_LIST_FORM_TITLE'];
if ($title) {
    $display_title = $title;
}
$ListView = new ListView();
if (is_admin($current_user) && $_REQUEST['module'] != 'DynamicLayout' && !empty($_SESSION['editinplace'])) {
    $header_text = "&nbsp;<a href='index.php?action=index&module=DynamicLayout&from_action=ListView&from_module=" . $_REQUEST['module'] . "'>" . SugarThemeRegistry::current()->getImage("EditLayout", "border='0' alt='Edit Layout' align='bottom'") . "</a>";
}
$ListView->initNewXTemplate('modules/EmailTemplates/ListView.html', $mod_strings);
$ListView->setHeaderTitle($display_title . $header_text);
$ListView->setQuery($where, "", "email_templates.date_entered DESC", "EMAIL_TEMPLATE");
if ($db->dbType == 'mysql') {
    $ListView->createXTemplate();
    $sortURLBase = $ListView->getBaseURL("EMAIL_TEMPLATE") . "&" . $ListView->getSessionVariableName("EMAIL_TEMPLATE", "ORDER_BY") . "=";
    $ListView->xTemplate->assign("ET_ORDER_BY", '<a href="' . $sortURLBase . 'description" class="listViewThLinkS1">');
    $ListView->xTemplateAssign("et_arrow_start", $ListView->getArrowStart($ListView->local_image_path));
    $arrowInfo = $ListView->getOrderByInfo('EMAIL_TEMPLATE');
    if ($arrowInfo[0] == 'description') {
        $imgArrow = "_down";
        if ($arrowInfo[1]) {
            $imgArrow = "_up";
        }
        $ListView->xTemplateAssign('et_description_arrow', $imgArrow);
    }
    $ListView->xTemplateAssign('et_arrow_end', $ListView->getArrowEnd($ListView->local_image_path) . '</a>');
}
$ListView->processListView($seedEmailTemplate, "main", "EMAIL_TEMPLATE");
开发者ID:klr2003,项目名称:sourceread,代码行数:31,代码来源:ListView.php


注:本文中的ListView::getArrowEnd方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。