Skip to content

Commit

Permalink
add some schools~
Browse files Browse the repository at this point in the history
  • Loading branch information
tongyifan committed Jun 2, 2019
1 parent e1a4e9b commit 7bf7feb
Show file tree
Hide file tree
Showing 4 changed files with 837 additions and 115 deletions.
2 changes: 1 addition & 1 deletion signup.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ class=small><?php echo($restrictemaildomain == 'yes' ? $lang_signup['text_email_
//School select
if ($showschool == 'yes') {
$schools = "<option value=35>---- " . $lang_signup['select_none_selected'] . " ----</option>n";
$sc_r = sql_query("SELECT id,name FROM schools ORDER BY name") or die;
$sc_r = sql_query("SELECT id,name FROM schools ORDER BY CONVERT(name USING gbk) COLLATE gbk_chinese_ci ASC") or die;
while ($sc_a = mysql_fetch_array($sc_r))
$schools .= "<option value=$sc_a[id]" . ($sc_a['id'] == 35 ? " selected" : "") . ">$sc_a[name]</option>n";
tr($lang_signup['row_school'], "<select name=school>$schools</select>", 1);
Expand Down
Loading

0 comments on commit 7bf7feb

Please sign in to comment.