本文整理汇总了PHP中ListView::setDataArray方法的典型用法代码示例。如果您正苦于以下问题:PHP ListView::setDataArray方法的具体用法?PHP ListView::setDataArray怎么用?PHP ListView::setDataArray使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ListView
的用法示例。
在下文中一共展示了ListView::setDataArray方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: ListView
$search_form->assign("LANGUAGE_OPTIONS", get_select_options_with_id($sugar_config['languages'], $language_select));
$search_form->assign("MOD", $current_module_strings);
$search_form->assign("APP", $app_strings);
$search_form->assign("IMAGE_PATH", $image_path);
$search_form->assign("JAVASCRIPT", get_clear_form_js());
$header_text = '';
echo get_form_header($current_module_strings['LBL_SEARCH_FORM_TITLE'] . $header_text, "", false);
$search_form->parse("main");
$search_form->out("main");
echo get_form_footer();
echo "\n<BR>\n";
}
$ListView = new ListView();
if ('' != $dropdown_select) {
$app_list_strings_to_edit = return_app_list_strings_language($language_select);
$ListView->setDataArray($app_list_strings_to_edit[$dropdown_select]);
}
$ListView->initNewXTemplate('modules/Dropdown/ListView.html', $current_module_strings);
$ListView->xTemplateAssign('UPARROW_INLINE', get_image($image_path . 'uparrow_inline', 'align="absmiddle" alt="' . $mod_strings['LNK_UP'] . '" border="0"'));
$ListView->xTemplateAssign('DOWNARROW_INLINE', get_image($image_path . 'downarrow_inline', 'align="absmiddle" alt="' . $mod_strings['LNK_DOWN'] . '" border="0"'));
$ListView->xTemplateAssign('PLUS_INLINE', get_image($image_path . 'plus_inline', 'align="absmiddle" alt="' . $mod_strings['LNK_INSERT'] . '" border="0"'));
$ListView->xTemplateAssign('EDIT_INLINE', get_image($image_path . 'edit_inline', 'align="absmiddle" alt="' . $app_strings['LNK_EDIT'] . '" border="0"'));
$ListView->xTemplateAssign('DELETE_INLINE', get_image($image_path . 'delete_inline', 'align="absmiddle" alt="' . $app_strings['LNK_DELETE'] . '" border="0"'));
$ListView->xTemplateAssign('DROPDOWN_SELECT', $dropdown_select);
$ListView->xTemplateAssign('LANGUAGE_SELECT', $language_select);
$ListView->xTemplateAssign('INDEX', $array_index);
$delete_onclick = "return confirm('Are you sure you want to delete this item?')";
$ListView->xTemplateAssign('DELETE_ONCLICK', $delete_onclick);
$ListView->setHeaderTitle($current_module_strings['LBL_LIST_FORM_TITLE'] . $header_text);
if ('' != $dropdown_select) {
$app_list_strings_to_edit = return_app_list_strings_language($language_select);