|
@@ -61,7 +61,7 @@ class TORRENT_FORM {
|
61
|
61
|
$this->ArchivesManga = $ArchivesManga;
|
62
|
62
|
|
63
|
63
|
if ($this->Torrent && $this->Torrent['GroupID']) {
|
64
|
|
- $this->Disabled = ' disabled="disabled"';
|
|
64
|
+ $this->Disabled = ' readonly="readonly"';
|
65
|
65
|
$this->DisabledFlag = true;
|
66
|
66
|
}
|
67
|
67
|
}
|
|
@@ -103,7 +103,7 @@ class TORRENT_FORM {
|
103
|
103
|
if ($this->Torrent && $this->Torrent['GroupID']) {
|
104
|
104
|
?>
|
105
|
105
|
<input type="hidden" name="groupid" value="<?=display_str($this->Torrent['GroupID'])?>" />
|
106
|
|
- <input type="hidden" name="type" value="<?=array_search($this->UploadForm, $this->Categories)?>" />
|
|
106
|
+ <input type="hidden" name="type" value="<?=display_str($this->Torrent['CategoryID'])?>" />
|
107
|
107
|
<?
|
108
|
108
|
}
|
109
|
109
|
if ($this->Torrent && $this->Torrent['RequestID']) {
|
|
@@ -123,7 +123,7 @@ class TORRENT_FORM {
|
123
|
123
|
<tr>
|
124
|
124
|
<td class="label">Type:</td>
|
125
|
125
|
<td>
|
126
|
|
- <select id="categories" name="type" onchange="Categories()"<?=$this->Disabled?>>
|
|
126
|
+ <select id="categories" name="type" onchange="Categories()"<?=($this->DisabledFlag) ? ' disabled="disabled"' : ''?>>
|
127
|
127
|
<?
|
128
|
128
|
foreach (Misc::display_array($this->Categories) as $Index => $Cat) {
|
129
|
129
|
echo "\t\t\t\t\t\t<option value=\"$Index\"";
|
|
@@ -203,8 +203,10 @@ class TORRENT_FORM {
|
203
|
203
|
<tr id="javdb_tr">
|
204
|
204
|
<td class="label tooltip" title='Enter a JAV catalogue number, e.g., "CND-060"'>Catalogue Number:</td>
|
205
|
205
|
<td>
|
206
|
|
- <input type="text" id="catalogue" name="catalogue" size="10" value="<?=display_str($Torrent['CatalogueNumber']) ?>"/>
|
207
|
|
- <input type="button" onclick="JavAutofill()" value="Autofill" <?=$this->Disabled?>></input>
|
|
206
|
+ <input type="text" id="catalogue" name="catalogue" size="10" value="<?=display_str($Torrent['CatalogueNumber']) ?>" <?=$this->Disabled?>/>
|
|
207
|
+<? if (!$this->DisabledFlag) { ?>
|
|
208
|
+ <input type="button" onclick="JavAutofill()" value="Autofill"></input>
|
|
209
|
+<? } ?>
|
208
|
210
|
</td>
|
209
|
211
|
</tr>
|
210
|
212
|
<tr id="title_tr">
|
|
@@ -403,7 +405,7 @@ class TORRENT_FORM {
|
403
|
405
|
G::$Cache->cache_value('genre_tags', $GenreTags, 3600*6);
|
404
|
406
|
}
|
405
|
407
|
?>
|
406
|
|
- <select id="genre_tags" name="genre_tags" onchange="add_tag(); return false;">
|
|
408
|
+ <select id="genre_tags" name="genre_tags" onchange="add_tag(); return false;" <?=($this->DisabledFlag) ? ' disabled="disabled"' : ''?>>
|
407
|
409
|
<option>---</option>
|
408
|
410
|
<? foreach (Misc::display_array($GenreTags) as $Genre) { ?>
|
409
|
411
|
<option value="<?=$Genre?>"><?=$Genre?></option>
|
|
@@ -459,8 +461,10 @@ class TORRENT_FORM {
|
459
|
461
|
<tr id="anidb_tr">
|
460
|
462
|
<td class="label">AniDB Autofill (optional):</td>
|
461
|
463
|
<td>
|
462
|
|
- <input type="text" id="anidb" size="10" />
|
463
|
|
- <input type="button" onclick="AnidbAutofill()" value="Autofill" <?=$this->Disabled?>/>
|
|
464
|
+ <input type="text" id="anidb" size="10" <?=$this->Disabled?>/>
|
|
465
|
+<? if (!$this->DisabledFlag) { ?>
|
|
466
|
+ <input type="button" onclick="AnidbAutofill()" value="Autofill"/>
|
|
467
|
+<? } ?>
|
464
|
468
|
</td>
|
465
|
469
|
</tr>
|
466
|
470
|
<tr id="title_tr">
|
|
@@ -655,7 +659,7 @@ class TORRENT_FORM {
|
655
|
659
|
G::$Cache->cache_value('genre_tags', $GenreTags, 3600*6);
|
656
|
660
|
}
|
657
|
661
|
?>
|
658
|
|
- <select id="genre_tags" name="genre_tags" onchange="add_tag(); return false;">
|
|
662
|
+ <select id="genre_tags" name="genre_tags" onchange="add_tag(); return false;" <?=($this->DisabledFlag) ? ' disabled="disabled"' : ''?>>
|
659
|
663
|
<option>---</option>
|
660
|
664
|
<? foreach (Misc::display_array($GenreTags) as $Genre) { ?>
|
661
|
665
|
<option value="<?=$Genre?>"><?=$Genre?></option>
|
|
@@ -707,7 +711,9 @@ class TORRENT_FORM {
|
707
|
711
|
<td class="label">nhentai URL (optional):</td>
|
708
|
712
|
<td>
|
709
|
713
|
<input type="text" id="catalogue" size="50" <?=$this->Disabled?> />
|
710
|
|
- <input type="button" onclick="DoujAutofill()" value="Autofill" <?=$this->Disabled?>/>
|
|
714
|
+<? if (!$this->DisabledFlag) { ?>
|
|
715
|
+ <input type="button" onclick="DoujAutofill()" value="Autofill"/>
|
|
716
|
+<? } ?>
|
711
|
717
|
</td>
|
712
|
718
|
</tr>
|
713
|
719
|
<tr id="title_tr">
|
|
@@ -832,7 +838,7 @@ class TORRENT_FORM {
|
832
|
838
|
G::$Cache->cache_value('genre_tags', $GenreTags, 3600*6);
|
833
|
839
|
}
|
834
|
840
|
?>
|
835
|
|
- <select id="genre_tags" name="genre_tags" onchange="add_tag(); return false;">
|
|
841
|
+ <select id="genre_tags" name="genre_tags" onchange="add_tag(); return false;" <?=($this->DisabledFlag) ? ' disabled="disabled"' : ''?>>
|
836
|
842
|
<option>---</option>
|
837
|
843
|
<? foreach (Misc::display_array($GenreTags) as $Genre) { ?>
|
838
|
844
|
<option value="<?=$Genre?>"><?=$Genre?></option>
|
|
@@ -888,6 +894,12 @@ class TORRENT_FORM {
|
888
|
894
|
<td><input type="text" id="title_jp" name="title_jp" size="60" value="<?=display_str($Torrent['TitleJP'])?>" <?=$this->Disabled?>/></td>
|
889
|
895
|
</tr>
|
890
|
896
|
<? } ?>
|
|
897
|
+ <tr>
|
|
898
|
+ <td class="label">Censored?:</td>
|
|
899
|
+ <td>
|
|
900
|
+ <input type="checkbox" name="censored" value="1" <?=(($Torrent['Censored'] ?? 1) ? 'checked ' : '')?>/>
|
|
901
|
+ </td>
|
|
902
|
+ </tr>
|
891
|
903
|
<tr>
|
892
|
904
|
<td class="label tooltip" title="Comma seperated list of tags">Tags:</td>
|
893
|
905
|
<td>
|
|
@@ -903,7 +915,7 @@ class TORRENT_FORM {
|
903
|
915
|
G::$Cache->cache_value('genre_tags', $GenreTags, 3600*6);
|
904
|
916
|
}
|
905
|
917
|
?>
|
906
|
|
- <select id="genre_tags" name="genre_tags" onchange="add_tag(); return false;">
|
|
918
|
+ <select id="genre_tags" name="genre_tags" onchange="add_tag(); return false;" <?=($this->DisabledFlag) ? ' disabled="disabled"' : ''?>>
|
907
|
919
|
<option>---</option>
|
908
|
920
|
<? foreach (Misc::display_array($GenreTags) as $Genre) { ?>
|
909
|
921
|
<option value="<?=$Genre?>"><?=$Genre?></option>
|
|
@@ -1081,7 +1093,7 @@ new TEXTAREA_PREVIEW('album_desc', 'album_desc', display_str($Torrent['GroupDesc
|
1081
|
1093
|
G::$Cache->cache_value('genre_tags', $GenreTags, 3600*6);
|
1082
|
1094
|
}
|
1083
|
1095
|
?>
|
1084
|
|
- <select id="genre_tags" name="genre_tags" onchange="add_tag(); return false;">
|
|
1096
|
+ <select id="genre_tags" name="genre_tags" onchange="add_tag(); return false;" <?=($this->DisabledFlag) ? ' disabled="disabled"' : ''?>>
|
1085
|
1097
|
<option>---</option>
|
1086
|
1098
|
<? foreach (Misc::display_array($GenreTags) as $Genre) { ?>
|
1087
|
1099
|
<option value="<?=$Genre?>"><?=$Genre?></option>
|