本文整理汇总了PHP中lang_or_i18n_get_translated函数的典型用法代码示例。如果您正苦于以下问题:PHP lang_or_i18n_get_translated函数的具体用法?PHP lang_or_i18n_get_translated怎么用?PHP lang_or_i18n_get_translated使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了lang_or_i18n_get_translated函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: error_alert
</a></p>
<h1><?php
echo $lang['uploadviaemail'];
?>
</h1>
<?php
if ($userinfo['email'] == "") {
error_alert($lang['pleasesetupemailaddress']);
}
$message = str_replace("[fromaddress]", $userinfo['email'], $lang['uploadviaemail-intro']);
$message = str_replace("[toaddress]", $checkmail_email, $message);
$subjectfield = sql_value("select title value from resource_type_field where ref='{$checkmail_subject_field}'", "");
$bodyfield = sql_value("select title value from resource_type_field where ref='{$checkmail_body_field}'", "");
$message = str_replace("[subjectfield]", lang_or_i18n_get_translated($subjectfield, "fieldtitle-"), $message);
$message = str_replace("[bodyfield]", lang_or_i18n_get_translated($bodyfield, "fieldtitle-"), $message);
$access = $checkmail_default_access;
$access = $lang["access{$access}"];
$archive = $checkmail_default_archive;
$archive = $lang["status{$archive}"];
$message = str_replace("[access]", $access, $message);
$message = str_replace("[archive]", $archive, $message);
$message = str_replace("[confirmation]", $lang['checkmail_confirmation_message'], $message);
?>
<p><?php
echo $message;
?>
</p>
</div>
<?php
示例2: if
if ($searchbyday) { $searchbuttons.="document.getElementById('basicday').value='';"; }
if ($display_user_rating_stars && $star_search) { $searchbuttons.="StarSearchRatingDisplay(0,'StarCurrent');document.getElementById('starsearch').value='';window['StarSearchRatingDone']=true;"; }
$searchbuttons.="ResetTicks();\"/>"; }
$searchbuttons.="<input name=\"Submit\" class=\"searchbutton\" type=\"submit\" value=\" ". $lang['searchbutton']." \" /></div>";?>
<?php if (!$searchbar_buttons_at_bottom){ echo $searchbuttons."<br/>"; } ?>
<?php
if (!$basic_simple_search) {
// Include simple search items (if any)
$optionfields=array();
for ($n=0;$n<count($fields);$n++)
{
hook("modifysearchfieldtitle");?>
<div class="SearchItem" id="simplesearch_<?php echo $fields[$n]["ref"] ?>" <?php if (strlen($fields[$n]["tooltip_text"])>=1){echo "title=\"" . htmlspecialchars(lang_or_i18n_get_translated($fields[$n]["tooltip_text"], "fieldtooltip-")) . "\"";}?>><?php echo htmlspecialchars($fields[$n]["title"]) ?><br />
<?php
$value=""; # to do, fetch set value.
if (isset($set_fields[$fields[$n]["name"]])) {$value=$set_fields[$fields[$n]["name"]];}
#hook to modify field type in special case. Returning zero (to get a standard text box) doesn't work, so return 1 for type 0, 2 for type 1, etc.
if(hook("modifyfieldtype")){$fields[$n]["type"]=hook("modifyfieldtype")-1;}
switch ($fields[$n]["type"])
{
case 0: # -------- Text boxes?><?php
case 1:
case 5:
case 9:
?>
示例3: sql_query
?>
</td>
</tr>
<?php
# ------------ View access to resource types
$rtypes = sql_query("select * from resource_type order by name");
foreach ($rtypes as $rtype) {
DrawOption("T" . $rtype["ref"], $lang["can_see_resource_type"] . " '" . lang_or_i18n_get_translated($rtype["name"], "resourcetype-") . "'", true);
}
# ------------ Restricted access to resource types
foreach ($rtypes as $rtype) {
DrawOption("X" . $rtype["ref"], $lang["restricted_access_only_to_resource_type"] . " '" . lang_or_i18n_get_translated($rtype["name"], "resourcetype-") . "'", false);
}
# ------------ Restricted upload for resource of type
foreach ($rtypes as $rtype) {
DrawOption("XU" . $rtype["ref"], $lang["restricted_upload_for_resource_of_type"] . " '" . lang_or_i18n_get_translated($rtype["name"], "resourcetype-") . "'", false);
}
?>
<tr class="ListviewTitleStyle">
<td colspan=3 class="permheader"><?php
echo $lang["resource_creation_and_management"];
?>
</td>
</tr>
<?php
# ------------ Edit access to workflow states
for ($n = -2; $n <= 3; $n++) {
DrawOption("e" . $n, $lang["edit_access_to_workflow_state"] . " '" . $lang["status" . $n] . "'", false);
}
foreach ($additional_archive_states as $additional_archive_state) {
DrawOption("e" . $additional_archive_state, $lang["edit_access_to_workflow_state"] . " '" . (isset($lang["status" . $additional_archive_state]) ? $lang["status" . $additional_archive_state] : $additional_archive_state) . "'", false);
示例4: hook
?>
</td>
<?php
hook("user_log_before_userid");
?>
<td><?php
echo $lang["resourceid"];
?>
</td>
<?php
if (!hook("replaceuserlogtitleheader")) {
?>
<td><?php
$field = get_fields(array($view_title_field));
if (isset($field[0])) {
echo lang_or_i18n_get_translated($field[0]["title"], "fieldtitle-");
}
?>
</td><?php
}
?>
<td><?php
echo $lang["action"];
?>
</td>
<td><?php
echo $lang["field"];
?>
</td>
<?php
hook("adduserlogcolumnheader");
示例5: if
for($n=0;$n<count($list_display_array);$n++){?>
<?php if ($per_page==$list_display_array[$n]){?><span class="Selected"><?php echo $list_display_array[$n]?></span><?php } else { ?><a onClick="return CentralSpaceLoad(this,true);" href="<?php echo $url; ?>&per_page_list_log=<?php echo $list_display_array[$n]?>"><?php echo $list_display_array[$n]?></a><?php } ?> |
<?php } ?>
<?php if ($per_page==99999){?><span class="Selected"><?php echo $lang["all"]?></span><?php } else { ?><a onClick="return CentralSpaceLoad(this,true);" href="<?php echo $url; ?>&per_page_list_log=99999"><?php echo $lang["all"]?></a><?php } ?>
</div> <?php pager(false); ?></div>
<div class="Listview">
<table border="0" cellspacing="0" cellpadding="0" class="ListviewStyle">
<!--Title row-->
<tr class="ListviewTitleStyle">
<td><?php echo $lang["date"]?></td>
<td><?php echo $lang["user"]?></td>
<td><?php echo $lang["action"]?></td>
<td><?php echo $lang["resourceid"]?></td>
<td><?php $field=get_fields(array($view_title_field)); echo lang_or_i18n_get_translated($field[0]["title"], "fieldtitle-");?></td>
</tr>
<?php
for ($n=$offset;(($n<count($log)) && ($n<($offset+$per_page)));$n++)
{
if (!isset($lang["collectionlog-".$log[$n]["type"]])){$lang["collectionlog-".$log[$n]["type"]]="";}
?>
<!--List Item-->
<tr>
<td><?php echo htmlspecialchars(nicedate($log[$n]["date"],true)) ?></td>
<td><?php echo htmlspecialchars($log[$n]["fullname"])?></td>
<td><?php
echo $lang["collectionlog-" . $log[$n]["type"]] ;
if ($log[$n]["notes"] != "" ) {
## notes field contains user IDs, collection references and /or standard texts
示例6: HookLicensemanagerViewCustompanels
function HookLicensemanagerViewCustompanels()
{
global $lang, $baseurl_short, $ref, $edit_access, $k;
if ($k != "") {
return false;
}
$licenses = sql_query("select ref,outbound,holder,license_usage,description,expires from resource_license where resource='{$ref}' order by ref");
?>
<!-- Begin Geolocation Section -->
<div class="RecordBox">
<div class="RecordPanel">
<div class="Title"><?php
echo $lang["license_management"];
?>
</div>
<?php
if ($edit_access) {
?>
<p>> <a href="<?php
echo $baseurl_short;
?>
plugins/licensemanager/pages/edit.php?ref=new&resource=<?php
echo $ref;
?>
" onClick="return CentralSpaceLoad(this,true);"><?php
echo $lang["new_license"];
?>
</a></p>
<?php
}
?>
<?php
if (count($licenses) > 0) {
?>
<div class="Listview">
<table border="0" cellspacing="0" cellpadding="0" class="ListviewStyle">
<tr class="ListviewTitleStyle">
<td><?php
echo $lang["license_id"];
?>
</a></td>
<td><?php
echo $lang["type"];
?>
</a></td>
<td><?php
echo $lang["licensor_licensee"];
?>
</a></td>
<td><?php
echo $lang["indicateusagemedium"];
?>
</a></td>
<td><?php
echo $lang["description"];
?>
</a></td>
<td><?php
echo $lang["fieldtitle-expiry_date"];
?>
</a></td>
<?php
if ($edit_access) {
?>
<td><div class="ListTools"><?php
echo $lang["tools"];
?>
</div></td>
<?php
}
?>
</tr>
<?php
foreach ($licenses as $license) {
$license_usage_mediums = trim_array(explode(", ", $license["license_usage"]));
$translated_mediums = "";
?>
<tr>
<td><?php
echo $license["ref"];
?>
</td>
<td><?php
echo $license["outbound"] ? $lang["outbound"] : $lang["inbound"];
?>
</td>
<td><?php
echo $license["holder"];
?>
</td>
<td><?php
foreach ($license_usage_mediums as $medium) {
$translated_mediums = $translated_mediums . lang_or_i18n_get_translated($medium, "license_usage-") . ", ";
}
//.........这里部分代码省略.........
示例7: foreach
if ($archiver) {
?>
<div class="Question">
<label for="archivetype"><?php
echo $lang["archivesettings"];
?>
</label>
<div class="tickset">
<select name="settings" class="stdwidth" id="archivesettings"><?php
foreach ($collection_download_settings as $key => $value) {
?>
<option value="<?php
echo htmlspecialchars($key);
?>
"><?php
echo lang_or_i18n_get_translated($value["name"], "archive-");
?>
</option><?php
}
?>
</select>
<div class="clearerleft"></div></div><br>
</div><?php
}
?>
<div class="QuestionSubmit" id="downloadbuttondiv">
<label for="download"> </label>
<?php
if (!$use_zip_extension) {
?>
示例8: foreach
echo "<tr><td colspan=\"5\">" . $lang['new_tags'] . "</td></tr>";
echo "<tr><td width=\"150\">" . $applicationname . "</td><td width=\"50\">" . $lang['group'] . "</td><td width=\"150\">" . $lang['exiftooltag'] . "</td><td>" . $lang['embeddedvalue'] . "</td><td>{$write_status}</td></tr>";
# Process the report of the original file.
foreach ($results_simulated as $result_simulated) {
$group = $result_simulated["group"];
$tag = $result_simulated["tag"];
$value = $result_simulated["value"];
$tagprops = $result_simulated["tagprops"];
# Check if the tag hasn't been displayed already.
if (isset($resourcefields[$tag]['listed']) && !$resourcefields[$tag]['listed'] || isset($resourcefields[$group . ":" . $tag]['listed']) && !$resourcefields[$group . ":" . $tag]['listed']) {
# Work out the RS resource field ref and title for the tag.
echo "<tr>";
if (isset($resourcefields[$tag]['ref'])) {
$RS_field_ref = $resourcefields[$tag]['ref'];
} elseif (isset($resourcefields[$group . ":" . $tag]['ref'])) {
$RS_field_ref = $resourcefields[$group . ":" . $tag]['ref'];
}
$RS_field_name = sql_query("select title from resource_type_field where ref = {$RS_field_ref}");
$RS_field_name = lang_or_i18n_get_translated($RS_field_name[0]['title'], "fieldtitle-");
# Display the RS resource field ref, title, exiftool group, tag and properties.
echo "<td>" . str_replace(array('%ref%', '%name%'), array($RS_field_ref, $RS_field_name), $lang['field_ref_and_name']) . "</td><td>{$group}</td><td>{$tag} {$tagprops}</td>";
# Display the value.
if ($tag != "filesize" && $tag != "filemodifydate") {
echo "<td></td><td>+ " . $value . "</td>";
}
echo "</tr>";
}
}
}
echo "</table>";
}
示例9: lang_or_i18n_get_translated
$lGroupName = $ldapGroupList[$i]['cn'];
// create the usergroup list
echo '<select name="ldapmaptors['.$lGroupName.']">';
foreach ($usergroups as $usergroup)
{
$ref = $usergroup['ref'];
echo '<option value="'.$ref.'"';
// check mapping;
if (isset($ldapauth['groupmap'][$lGroupName]['rsGroup']))
{
if ($ref == $ldapauth['groupmap'][$lGroupName]['rsGroup'])
{
echo "selected";
}
}
echo '>' . lang_or_i18n_get_translated($usergroup['name'], "usergroup-") . '</option>';
}
echo "</select>";
echo "</td>";
echo "<td>";
echo '<input name="ldapGroupEnable['.$lGroupName.']" type="checkbox" ';
// check to see if the enabled exists and if it has a value!
if (isset($ldapauth['groupmap'][$lGroupName]['enabled']))
{
if( $ldapauth['groupmap'][$lGroupName]['enabled'])
{
echo "checked";
}
}
echo ' />';
echo "</td>";
示例10: foreach
<td><div class="ListTools"><?php
echo $lang['tools'];
?>
</div></div>
</td>
</tr>
<?php
foreach ($current_whitelists as $whitelist) {
?>
<tr>
<td><?php
echo $whitelist['ip_domain'];
?>
</td>
<td><?php
echo $whitelist['fullname'] . " (" . lang_or_i18n_get_translated($whitelist['groupname'], "usergroup-") . ")";
?>
</td>
<td><?php
echo $whitelist['apis'] == "all" ? $lang['all'] : $whitelist['apis'];
?>
</td>
<td><div class="ListTools"><a onclick="return confirm('<?php
echo $lang['apicore_deletesure'];
?>
')" href="<?php
echo $baseurl_short;
?>
plugins/api_core/pages/setup.php?delete=true&ref=<?php
echo $whitelist['ref'];
?>
示例11: hook
if (isset($smartsearch[0])) {
$alt_text = "title='search=" . $smartsearch[0]['search'] . "&restypes=" . $smartsearch[0]['restypes'] . "&archive=" . $smartsearch[0]['archive'] . "&starsearch=" . $smartsearch[0]['starsearch'] . "'";
}
}
hook("collectionsearchtitlemod");
$search_title .= '<div align="left"><h1><div class="searchcrumbs">' . ($is_theme ? $theme_link . " > " : "") . '<span id="coltitle' . $collection . '"><a ' . $alt_text . ' href="' . $baseurl_short . 'pages/search.php?search=!collection' . $collection . $parameters_string . '" onClick="return CentralSpaceLoad(this,true);">' . i18n_get_collection_name($collectiondata) . ($display_user_and_access ? " <span class='CollectionUser'>(" . $colusername . $colaccessmode . ")" : "") . '</span></a></span>' . $searchcrumbs . '</div></h1> ';
} elseif ($search == "" && $archive == 0) {
# Which resource types (if any) are selected?
$searched_types_refs_array = explode(",", $restypes);
# Searched resource types and collection types
$resource_types_array = get_resource_types("", false);
# Get all resource types, untranslated
$searched_resource_types_names_array = array();
for ($n = 0; $n < count($resource_types_array); $n++) {
if (in_array($resource_types_array[$n]["ref"], $searched_types_refs_array)) {
$searched_resource_types_names_array[] = htmlspecialchars(lang_or_i18n_get_translated($resource_types_array[$n]["name"], "resourcetype-", "-2"));
}
}
if (count($searched_resource_types_names_array) == count($resource_types_array)) {
# All resource types are selected, don't list all of them
unset($searched_resource_types_names_array);
$searched_resource_types_names_array[0] = $lang["all-resourcetypes"];
}
# Which collection types (if any) are selected?
$searched_collection_types_names_array = array();
if (in_array("mycol", $searched_types_refs_array)) {
$searched_collection_types_names_array[] = $lang["mycollections"];
}
if (in_array("pubcol", $searched_types_refs_array)) {
$searched_collection_types_names_array[] = $lang["publiccollections"];
}
示例12: send_periodic_report_emails
function send_periodic_report_emails()
{
# For all configured periodic reports, send a mail if necessary.
global $lang, $baseurl;
# Query to return all 'pending' report e-mails, i.e. where we haven't sent one before OR one is now overdue.
$query = "\n\t\tSELECT pe.*,\n\t\t u.email,\n\t\t r.name\n\t\t FROM report_periodic_emails pe\n\t\t JOIN user u ON pe.user = u.ref\n\t\t JOIN report r ON pe.report = r.ref\n\t\t WHERE pe.last_sent IS NULL\n\t\t OR date_add(date(pe.last_sent), INTERVAL pe.email_days DAY) <= date(now());\n\t";
$reports = sql_query($query);
foreach ($reports as $report) {
$start = time() - 60 * 60 * 24 * $report["period"];
$from_y = date("Y", $start);
$from_m = date("m", $start);
$from_d = date("d", $start);
$to_y = date("Y");
$to_m = date("m");
$to_d = date("d");
# Translates the report name.
$report["name"] = lang_or_i18n_get_translated($report["name"], "report-");
# Generate remote HTML table.
$output = do_report($report["report"], $from_y, $from_m, $from_d, $to_y, $to_m, $to_d, false, true);
# Formulate a title
$title = $report["name"] . ": " . str_replace("?", $report["period"], $lang["lastndays"]);
# Send mail to original user - this contains the unsubscribe link
# Note: this is basically the only way at the moment to delete a periodic report
$delete_link = sprintf('<br />%s<br />%s/?dr=%s', $lang['report_delete_periodic_email_link'], $baseurl, $report['ref']);
$unsubscribe = "<br>" . $lang["unsubscribereport"] . "<br>" . $baseurl . "/?ur=" . $report["ref"];
$email = $report["email"];
// Check user unsubscribed from this report
$query = sprintf('
SELECT true as `value`
FROM report_periodic_emails_unsubscribe
WHERE user_id = "%s"
AND periodic_email_id = "%s";
', $report['user'], $report['ref']);
$unsubscribed_user = sql_value($query, false);
if (!$unsubscribed_user) {
echo $lang["sendingreportto"] . " " . $email . "<br>" . $output . $delete_link . $unsubscribe . "<br>";
send_mail($email, $title, $output . $delete_link . $unsubscribe);
}
// Jump to next report if this should only be sent to one user
if (!$report['send_all_users'] && empty($report['user_groups'])) {
# Mark as done.
sql_query('UPDATE report_periodic_emails set last_sent = now() where ref = "' . $report['ref'] . '";');
continue;
}
# Send to all other active users, if configured.
# Send the report to all active users.
$users = get_users();
// Send e-mail reports to users belonging to the specific user groups
if (!empty($report['user_groups'])) {
$users = get_users($report['user_groups']);
}
foreach ($users as $user) {
$email = $user['email'];
# Do not send to original report user, as they receive the mail with the unsubscribe link above.
if ($user['approved'] && $email == $report['email'] || !$user['approved']) {
continue;
}
// Check user unsubscribed from this report
$query = sprintf('
SELECT true as `value`
FROM report_periodic_emails_unsubscribe
WHERE user_id = "%s"
AND periodic_email_id = "%s";
', $user['ref'], $report['ref']);
$unsubscribed_user = sql_value($query, false);
if (!$unsubscribed_user) {
$unsubscribe_link = sprintf('<br />%s<br />%s/?ur=%s', $lang['unsubscribereport'], $baseurl, $report['ref']);
echo $lang["sendingreportto"] . " " . $email . "<br>" . $output . $unsubscribe_link . "<br>";
send_mail($email, $title, $output . $unsubscribe_link);
}
}
# Mark as done.
sql_query('UPDATE report_periodic_emails set last_sent = now() where ref = "' . $report['ref'] . '";');
}
}
示例13: elseif
if (in_array($tag, $writable_tags_array) && $file_writability) {
$tagprops .= "w";
}
if ($tagprops != "") {
$tagprops = "({$tagprops})";
}
if (isset($simcommands[$tag]['value']) || isset($simcommands[$group . ":" . $tag])) {
#add notes to mapped fields
if (isset($simcommands[$tag]['ref'])) {
$RS_field_ref = $simcommands[$tag]['ref'];
} elseif (isset($simcommands[$group . ":" . $tag])) {
$RS_field_ref = $simcommands[$group . ":" . $tag]['ref'];
}
$RS_field_name = sql_query("select title from resource_type_field where ref = {$RS_field_ref}");
$RS_field_name = $RS_field_name[0]['title'];
echo "<td>" . $RS_field_ref . " - " . lang_or_i18n_get_translated($RS_field_name, "fieldtitle-") . "</td><td>{$group}</td><td>{$tag} {$tagprops}</td>";
} else {
echo "<td></td><td>{$group}</td><td>{$tag} {$tagprops}</td>";
}
#add diff arrow to fields that will likely change
if (isset($simcommands[$tag]['value']) || isset($simcommands[$group . ":" . $tag]['value'])) {
if (isset($simcommands[$tag]['value'])) {
$newvalue = $simcommands[$tag]['value'];
} else {
if (isset($simcommands[$group . ":" . $tag]['value'])) {
$newvalue = $simcommands[$group . ":" . $tag]['value'];
}
}
// remove a leading comma from value in database when comparing.
if (substr($newvalue, 0, 1) == ',') {
$newvalue = substr($newvalue, 1);
示例14: lang_or_i18n_get_translated
echo lang_or_i18n_get_translated($item["name"], array("resourcetype-", "requesttype-", "fieldtype-"));
?>
</option>
<?php
}
?>
</select>
<?php
break;
#-------------------------------------------------------------------------
#-------------------------------------------------------------------------
case "lbl":
# label
?>
<?php
echo str_replace("%ref", $ref, lang_or_i18n_get_translated($value, "information-"));
?>
<?php
break;
}
}
}
?>
</p>
<?php
}
}
?>
<table width="100%" cellpadding=0 cellspacing=0 style="margin-top:5px;">
<tr><td align=left>
<!--
示例15: render_search_field
function render_search_field($field, $value = "", $autoupdate, $class = "stdwidth", $forsearchbar = false, $limit_keywords = array())
{
# Renders the HTML for the provided $field for inclusion in a search form, for example the
# advanced search page. Standard field titles are translated using $lang. Custom field titles are i18n translated.
#
# $field an associative array of field data, i.e. a row from the resource_type_field table.
# $name the input name to use in the form (post name)
# $value the default value to set for this field, if any
global $auto_order_checkbox, $lang, $category_tree_open, $minyear;
$name = "field_" . $field["ref"];
if (!$forsearchbar) {
?>
<div class="Question" <?php
if (strlen($field["tooltip_text"]) >= 1) {
echo "title=\"" . htmlspecialchars(lang_or_i18n_get_translated($field["tooltip_text"], "fieldtooltip-")) . "\"";
}
?>
>
<label><?php
echo lang_or_i18n_get_translated($field["title"], "fieldtitle-");
?>
</label>
<?php
} else {
?>
<div class="SearchItem">
<?php
echo lang_or_i18n_get_translated($field["title"], "fieldtitle-");
?>
</br>
<?php
}
switch ($field["type"]) {
case 0:
# -------- Text boxes
# -------- Text boxes
case 1:
case 5:
?>
<input class="<?php
echo $class;
?>
" type=text name="field_<?php
echo $field["ref"];
?>
" value="<?php
echo htmlspecialchars($value);
?>
" <?php
if ($autoupdate) {
?>
onChange="UpdateResultCount();"<?php
}
?>
onKeyPress="if (!(updating)) {setTimeout('UpdateResultCount()',2000);updating=true;}"><?php
break;
case 2:
case 3:
# -------- Show a check list or dropdown for dropdowns and check lists?
# By default show a checkbox list for both (for multiple selections this enabled OR functionality)
# Translate all options
$options = trim_array(explode(",", $field["options"]));
$adjusted_dropdownoptions = hook("adjustdropdownoptions");
if ($adjusted_dropdownoptions) {
$options = $adjusted_dropdownoptions;
}
$option_trans = array();
$option_trans_simple = array();
for ($m = 0; $m < count($options); $m++) {
$trans = i18n_get_translated($options[$m]);
$option_trans[$options[$m]] = $trans;
$option_trans_simple[] = $trans;
}
if ($auto_order_checkbox) {
asort($option_trans);
}
$options = array_keys($option_trans);
# Set the options array to the keys, so it is now effectively sorted by translated string
if ($field["display_as_dropdown"]) {
# Show as a dropdown box
$set = trim_array(explode(";", cleanse_string($value, true)));
?>
<select class="<?php
echo $class;
?>
" name="field_<?php
echo $field["ref"];
?>
" <?php
if ($autoupdate) {
?>
onChange="UpdateResultCount();"<?php
}
?>
><option value=""></option><?php
foreach ($option_trans as $option => $trans) {
if (trim($trans) != "") {
?>
<option value="<?php
echo htmlspecialchars(trim($trans));
//.........这里部分代码省略.........