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


PHP ListView::setDataArray方法代碼示例

本文整理匯總了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);
開發者ID:BackupTheBerlios,項目名稱:livealphaprint,代碼行數:31,代碼來源:ListView.php


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