Browse Source

Move language field above sub field in upload form

spaghetti 7 years ago
parent
commit
6ad9b13e15
1 changed files with 14 additions and 14 deletions
  1. 14
    14
      classes/torrent_form.class.php

+ 14
- 14
classes/torrent_form.class.php View File

452
           </select>
452
           </select>
453
         </td>
453
         </td>
454
       </tr>
454
       </tr>
455
-      <tr id="sub_tr">
456
-        <td class="label">Subbing</td>
455
+      <tr id="lang_tr">
456
+        <td class="label">Language</td>
457
         <td>
457
         <td>
458
-          <select name="sub">
458
+          <select name="lang">
459
             <option>---</option>
459
             <option>---</option>
460
 <?
460
 <?
461
-    foreach($this->Subbing as $Subbing) {
462
-      echo "\t\t\t\t\t\t<option value=\"$Subbing\"";
463
-      if ($Subbing == $Torrent['Subbing']) {
461
+    foreach($this->Languages as $Language) {
462
+      echo "\t\t\t\t\t\t<option value=\"$Language\"";
463
+      if ($Language == $Torrent['Language']) {
464
         echo " selected";
464
         echo " selected";
465
       }
465
       }
466
-      echo ">$Subbing</option>\n";
466
+      echo ">$Language</option>\n";
467
     }
467
     }
468
 ?>
468
 ?>
469
           </select>
469
           </select>
470
         </td>
470
         </td>
471
       </tr>
471
       </tr>
472
-      <tr id="lang_tr">
473
-        <td class="label">Language</td>
472
+      <tr id="sub_tr">
473
+        <td class="label">Subbing</td>
474
         <td>
474
         <td>
475
-          <select name="lang">
475
+          <select name="sub">
476
             <option>---</option>
476
             <option>---</option>
477
 <?
477
 <?
478
-    foreach($this->Languages as $Language) {
479
-      echo "\t\t\t\t\t\t<option value=\"$Language\"";
480
-      if ($Language == $Torrent['Language']) {
478
+    foreach($this->Subbing as $Subbing) {
479
+      echo "\t\t\t\t\t\t<option value=\"$Subbing\"";
480
+      if ($Subbing == $Torrent['Subbing']) {
481
         echo " selected";
481
         echo " selected";
482
       }
482
       }
483
-      echo ">$Language</option>\n";
483
+      echo ">$Subbing</option>\n";
484
     }
484
     }
485
 ?>
485
 ?>
486
           </select>
486
           </select>

Loading…
Cancel
Save