예제 #1
0
/**
* Prints a language row for use in language.php?do=modify
*
* @param	array	Language array containing languageid, title
*/
function print_language_row($language)
{
    global $vbulletin, $typeoptions, $vbphrase;
    $languageid = $language['languageid'];
    $cell = array();
    $cell[] = iif($vbulletin->debug and $languageid != -1, '-- ', '') . fetch_tag_wrap($language['title'], 'b', $languageid == $vbulletin->options['languageid']);
    $cell[] = "<a href=\"language.php?" . $vbulletin->session->vars['sessionurl'] . "do=edit&amp;dolanguageid={$languageid}\">" . construct_phrase($vbphrase['edit_translate_x_y_phrases'], $language['title'], '') . "</a>";
    $cell[] = iif($languageid != -1, construct_link_code($vbphrase['edit_settings'], "language.php?" . $vbulletin->session->vars['sessionurl'] . "do=edit_settings&amp;dolanguageid={$languageid}") . construct_link_code($vbphrase['delete'], "language.php?" . $vbulletin->session->vars['sessionurl'] . "do=delete&amp;dolanguageid={$languageid}")) . construct_link_code($vbphrase['download'], "language.php?" . $vbulletin->session->vars['sessionurl'] . "do=files&amp;dolanguageid={$languageid}");
    $cell[] = iif($languageid != -1, "<input type=\"button\" class=\"button\" value=\"{$vbphrase['set_default']}\" tabindex=\"1\"" . iif($languageid == $vbulletin->options['languageid'], ' disabled="disabled"') . " onclick=\"window.location='language.php?" . $vbulletin->session->vars['sessionurl'] . "do=setdefault&amp;dolanguageid={$languageid}';\" />", '');
    print_cells_row($cell, 0, '', -2);
}
예제 #2
0
파일: phrase.php 프로젝트: holandacz/nb4
            $headings[] = "<a href=\"javascript:js_open_phrase_ref({$language['languageid']},'{$_fieldname}');\" title=\"" . $vbphrase['view_quickref'] . ": {$language['title']}\">{$language['title']}</a>";
        }
        $headings[] = '';
        print_cells_row($headings, 0, 'thead');
        ksort($varnames);
        foreach ($varnames as $varname => $phrase) {
            $cell = array(construct_wrappable_varname($varname, 'font-weight:bold;', 'smallfont', 'span'));
            if (isset($phrase['-1'])) {
                $phraseid = $phrase['-1'];
                $custom = 0;
            } else {
                $phraseid = $phrase['0'];
                $custom = 1;
            }
            foreach (array_keys($languages) as $_languageid) {
                $cell[] = "<img src=\"../cpstyles/" . $vbulletin->options['cpstylefolder'] . "/cp_tick_" . iif(isset($phrase["{$_languageid}"]), 'yes', 'no') . ".gif\" alt=\"\" />";
            }
            $cell[] = '<span class="smallfont">' . construct_link_code(fetch_tag_wrap($vbphrase['edit'], 'span class="col-i"', $custom == 1), "phrase.php?" . $vbulletin->session->vars['sessionurl'] . "do=edit&amp;phraseid={$phraseid}&amp;page=" . $vbulletin->GPC['pagenumber'] . "&amp;pp=" . $vbulletin->GPC['perpage'] . "&amp;fieldname=" . $vbulletin->GPC['fieldname']) . iif($custom or $vbulletin->debug, construct_link_code(fetch_tag_wrap($vbphrase['delete'], 'span class="col-i"', $custom == 1), "phrase.php?" . $vbulletin->session->vars['sessionurl'] . "do=delete&amp;phraseid={$phraseid}&amp;page=" . $vbulletin->GPC['pagenumber'] . "&amp;pp=" . $vbulletin->GPC['perpage'] . "&amp;fieldname=" . $vbulletin->GPC['fieldname']), '') . '</span>';
            print_cells_row($cell, 0, 0, 0, 'top', 0);
        }
    }
    print_table_footer($colspan, "\n\t\t<input type=\"button\" class=\"button\" value=\"" . $vbphrase['search_in_phrases'] . "\" tabindex=\"1\" onclick=\"window.location='phrase.php?" . $vbulletin->session->vars['sessionurl'] . "&amp;do=search';\" />\n\t\t&nbsp; &nbsp;\n\t\t<input type=\"button\" class=\"button\" value=\"" . $vbphrase['add_new_phrase'] . "\" tabindex=\"1\" onclick=\"window.location='phrase.php?" . $vbulletin->session->vars['sessionurl'] . "do=add&amp;fieldname=" . $vbulletin->GPC['fieldname'] . "&amp;page=" . $vbulletin->GPC['pagenumber'] . "&amp;pp=" . $vbulletin->GPC['perpage'] . "';\" />\n\t\t&nbsp; &nbsp;\n\t\t<input type=\"button\" class=\"button\" value=\"" . $vbphrase['find_orphan_phrases'] . "\" tabindex=\"1\" onclick=\"window.location='phrase.php?" . $vbulletin->session->vars['sessionurl'] . "do=findorphans';\" />\n\t");
}
// #############################################################################
print_cp_footer();
/*======================================================================*\
|| ####################################################################
|| # Downloaded: 09:39, Wed Nov 5th 2008
|| # CVS: $RCSfile$ - $Revision: 27619 $
|| ####################################################################
\*======================================================================*/
예제 #3
0
            $headings[] = "<a href=\"javascript:js_open_phrase_ref({$language['languageid']},'{$_fieldname}');\" title=\"" . $vbphrase['view_quickref_glanguage'] . ": {$language['title']}\">{$language['title']}</a>";
        }
        $headings[] = '';
        print_cells_row($headings, 0, 'thead');
        ksort($varnames);
        foreach ($varnames as $varname => $phrase) {
            $cell = array(construct_wrappable_varname($varname, 'font-weight:bold;', 'smallfont', 'span'));
            if (isset($phrase['-1'])) {
                $phraseid = $phrase['-1'];
                $custom = 0;
            } else {
                $phraseid = $phrase['0'];
                $custom = 1;
            }
            foreach ($languages as $language) {
                $cell[] = "<img src=\"" . vB::getDatastore()->getOption('bburl') . "/cpstyles/" . vB::getDatastore()->getOption('cpstylefolder') . "/cp_tick_" . iif(isset($phrase["{$language['languageid']}"]), 'yes', 'no') . ".gif\" alt=\"\" />";
            }
            $cell[] = '<span class="smallfont">' . construct_link_code(fetch_tag_wrap($vbphrase['edit'], 'span class="col-i"', $custom == 1), "phrase.php?" . vB::getCurrentSession()->get('sessionurl') . "do=edit&amp;phraseid={$phraseid}&amp;page=" . $vbulletin->GPC['pagenumber'] . "&amp;pp=" . $vbulletin->GPC['perpage'] . "&amp;fieldname=" . $vbulletin->GPC['fieldname']) . iif($custom or $vb5_config['Misc']['debug'], construct_link_code(fetch_tag_wrap($vbphrase['delete'], 'span class="col-i"', $custom == 1), "phrase.php?" . vB::getCurrentSession()->get('sessionurl') . "do=delete&amp;phraseid={$phraseid}&amp;page=" . $vbulletin->GPC['pagenumber'] . "&amp;pp=" . $vbulletin->GPC['perpage'] . "&amp;fieldname=" . $vbulletin->GPC['fieldname']), '') . '</span>';
            print_cells_row($cell, 0, 0, 0, 'top', 0);
        }
    }
    print_table_footer($colspan, "\n\t\t<input type=\"button\" class=\"button\" value=\"" . $vbphrase['search_in_phrases_glanguage'] . "\" tabindex=\"1\" onclick=\"window.location='phrase.php?" . vB::getCurrentSession()->get('sessionurl') . "&amp;do=search';\" />\n\t\t&nbsp; &nbsp;\n\t\t<input type=\"button\" class=\"button\" value=\"" . $vbphrase['add_new_phrase'] . "\" tabindex=\"1\" onclick=\"window.location='phrase.php?" . vB::getCurrentSession()->get('sessionurl') . "do=add&amp;fieldname=" . $vbulletin->GPC['fieldname'] . "&amp;page=" . $vbulletin->GPC['pagenumber'] . "&amp;pp=" . $vbulletin->GPC['perpage'] . "';\" />\n\t\t&nbsp; &nbsp;\n\t\t<input type=\"button\" class=\"button\" value=\"" . $vbphrase['find_orphan_phrases'] . "\" tabindex=\"1\" onclick=\"window.location='phrase.php?" . vB::getCurrentSession()->get('sessionurl') . "do=findorphans';\" />\n\t");
}
// #############################################################################
print_cp_footer();
/*=========================================================================*\
|| #######################################################################
|| # Downloaded: 15:45, Tue Sep 8th 2015
|| # CVS: $RCSfile$ - $Revision: 84285 $
|| #######################################################################
\*=========================================================================*/