| 1 |
<{* xnpbulletin register block *}> |
| 2 |
<{* $Revision: 1.4 $ *}> |
| 3 |
|
| 4 |
<table class="outer"> |
| 5 |
<!-- Basic Information --> |
| 6 |
<tr> |
| 7 |
<td class="head"><{$basic.doi.name}></td> |
| 8 |
<td class="<{cycle name="oddeven" values="odd,even"}>"><{$basic.doi.value}></td> |
| 9 |
</tr> |
| 10 |
<tr> |
| 11 |
<td class="head"><{$smarty.const._MD_XNPBULLETIN_TITLE_LABEL}><{$smarty.const._MD_XOONIPS_ITEM_REQUIRED_MARK}></td> |
| 12 |
<td class="<{cycle name="oddeven" values="odd,even"}>" > |
| 13 |
<table> |
| 14 |
<tr> |
| 15 |
<td width="70"><{$basic.title.name}></td> |
| 16 |
<td><input size=50 type='text' name='title' value='<{$detail.title|escape|replace:"&#":"&#"}>' STYLE='ime-mode:inactive;'></td> |
| 17 |
</tr> |
| 18 |
<tr> |
| 19 |
<td width="70"><{$smarty.const._MD_XNPBULLETIN_KANA_LABEL}></td> |
| 20 |
<td> |
| 21 |
<input size=50 type='text' name='title_kana' value='<{$detail.title_kana|escape|replace:"&#":"&#"}>' STYLE='ime-mode:active;'> |
| 22 |
<input type='hidden' name='xnpbulletinTitleRomajiFlag' value=''> |
| 23 |
<button type='button' onclick='xnpbulletinTitleRomaji(this);'><{$smarty.const._MD_XNPBULLETIN_ROMAJI_LABEL}></button> |
| 24 |
</td> |
| 25 |
</tr> |
| 26 |
<tr> |
| 27 |
<td width="70"><{$smarty.const._MD_XNPBULLETIN_ROMAJI_LABEL}></td> |
| 28 |
<td><input size=50 type='text' name='title_romaji' value='<{$detail.title_romaji|escape|replace:"&#":"&#"}>' STYLE='ime-mode:disabled;'></td> |
| 29 |
</tr> |
| 30 |
</table> |
| 31 |
</td> |
| 32 |
</tr> |
| 33 |
<tr> |
| 34 |
<td class="head"><{$smarty.const._MD_XNPBULLETIN_SUB_TITLE_LABEL}></td> |
| 35 |
<td class="<{cycle name="oddeven" values="odd,even"}>" > |
| 36 |
<table> |
| 37 |
<tr> |
| 38 |
<td width="70"><{$smarty.const._MD_XNPBULLETIN_TRANSLATION_LABEL}></td> |
| 39 |
<td><input size=50 type='text' name='sub_title_translation_add' value='<{$detail.sub_title_translation_add|escape|replace:"&#":"&#"}>'></td> |
| 40 |
</tr> |
| 41 |
<tr> |
| 42 |
<td width="70"><{$smarty.const._MD_XNPBULLETIN_TITLE_LABEL}></td> |
| 43 |
<td><input size=50 type='text' name='sub_title_add' value='<{$detail.sub_title_add|escape|replace:"&#":"&#"}>'></td> |
| 44 |
</tr> |
| 45 |
<tr> |
| 46 |
<td width="70"><{$smarty.const._MD_XNPBULLETIN_KANA_LABEL}></td> |
| 47 |
<td> |
| 48 |
<input size=50 type='text' name='sub_title_kana_add' value='<{$detail.sub_title_kana_add|escape|replace:"&#":"&#"}>' STYLE='ime-mode:active;'> |
| 49 |
<input type='hidden' name='xnpbulletinSubTitleRomajiFlag' value=''> |
| 50 |
<button type='button' onclick='xnpbulletinSubTitleRomaji(this);'><{$smarty.const._MD_XNPBULLETIN_ROMAJI_LABEL}></button> |
| 51 |
</td> |
| 52 |
</tr> |
| 53 |
<tr> |
| 54 |
<td width="70"><{$smarty.const._MD_XNPBULLETIN_ROMAJI_LABEL}></td> |
| 55 |
<td><input size=50 type='text' name='sub_title_romaji_add' value='<{$detail.sub_title_romaji_add|escape|replace:"&#":"&#"}>' STYLE='ime-mode:disabled;'></td> |
| 56 |
</tr> |
| 57 |
<tr> |
| 58 |
<td> |
| 59 |
<input type='hidden' name='xnpbulletinAddSubTitleFlag' value=''> |
| 60 |
<button type='button' onclick='xnpbulletinAddSubTitle(this);'><{$smarty.const._MD_XNPBULLETIN_ADD_LABEL}></button> |
| 61 |
<input type='hidden' name='sub_title_translation' value='<{$detail.sub_title_translation|escape|replace:"&#":"&#"}>'> |
| 62 |
<input type='hidden' name='sub_title' value='<{$detail.sub_title|escape|replace:"&#":"&#"}>'> |
| 63 |
<input type='hidden' name='sub_title_kana' value='<{$detail.sub_title_kana|escape|replace:"&#":"&#"}>'> |
| 64 |
<input type='hidden' name='sub_title_romaji' value='<{$detail.sub_title_romaji|escape|replace:"&#":"&#"}>'> |
| 65 |
</td> |
| 66 |
</tr> |
| 67 |
<{if !empty( $detail.sub_title_str.value ) }> |
| 68 |
<tr> |
| 69 |
<td></td> |
| 70 |
<td class="<{cycle name="oddeven"}>"><{$detail.sub_title_str|replace:"&#":"&#"}> |
| 71 |
<input type='hidden' name='xnpbulletinUpdateSubTitleFlag' value=''> |
| 72 |
<button type='button' onclick='xnpbulletinUpdateSubTitle(this);'><{$smarty.const._MD_XNPBULLETIN_UPDATE_LABEL}></button> |
| 73 |
</td> |
| 74 |
</tr> |
| 75 |
<{/if}> |
| 76 |
</table> |
| 77 |
</td> |
| 78 |
</tr> |
| 79 |
<tr> |
| 80 |
<td class="head"><{$smarty.const._MD_XNPBULLETIN_AUTHOR_LABEL}></td> |
| 81 |
<td class="<{cycle name="oddeven"}>" > |
| 82 |
<table> |
| 83 |
<tr> |
| 84 |
<td width="70"><{$smarty.const._MD_XNPBULLETIN_AUTHOR_NAME_LABEL}></td> |
| 85 |
<td><input size=40 type='text' name='author_name_add' value='<{$detail.author_name_add|escape|replace:"&#":"&#"}>'></td> |
| 86 |
</tr> |
| 87 |
<tr> |
| 88 |
<td width="70"><{$smarty.const._MD_XNPBULLETIN_ROMAJI_LABEL}></td> |
| 89 |
<td><input size=40 type='text' name='author_romaji_add' value='<{$detail.author_romaji_add|escape|replace:"&#":"&#"}>' STYLE='ime-mode:disabled;'></td> |
| 90 |
</tr> |
| 91 |
<tr> |
| 92 |
<td width="70"><{$smarty.const._MD_XNPBULLETIN_AUTHOR_AFFILIATION_LABEL}></td> |
| 93 |
<td> |
| 94 |
<input size=50 type='text' name='author_affiliation_add' |
| 95 |
value='<{$detail.author_affiliation_add|escape|replace:"&#":"&#"}>'></td> |
| 96 |
</tr> |
| 97 |
<tr> |
| 98 |
<td width="70"><{$smarty.const._MD_XNPBULLETIN_AUTHOR_AFFILIATION_TRANSLATION_LABEL}></td> |
| 99 |
<td><input size=50 type='text' name='author_affiliation_translation_add' |
| 100 |
value='<{$detail.author_affiliation_translation_add|escape|replace:"&#":"&#"}>'></td> |
| 101 |
</tr> |
| 102 |
<tr> |
| 103 |
<td> |
| 104 |
<input type='hidden' name='xnpbulletinAddAuthorFlag' value=''> |
| 105 |
<button type='button' onclick='xnpbulletinAddAuthor(this);'><{$smarty.const._MD_XNPBULLETIN_ADD_LABEL}></button> |
| 106 |
<input type='hidden' name='author_name' value='<{$detail.author_name|escape|replace:"&#":"&#"}>'> |
| 107 |
<input type='hidden' name='author_romaji' value='<{$detail.author_romaji|escape|replace:"&#":"&#"}>'> |
| 108 |
<input type='hidden' name='author_affiliation' value='<{$detail.author_affiliation|escape|replace:"&#":"&#"}>'> |
| 109 |
<input type='hidden' name='author_affiliation_translation' value='<{$detail.author_affiliation_translation|escape|replace:"&#":"&#"}>'> |
| 110 |
</td> |
| 111 |
</tr> |
| 112 |
<{if !empty( $detail.author_str.value ) }> |
| 113 |
<tr> |
| 114 |
<td></td> |
| 115 |
<td class="<{cycle name="oddeven"}>"><{$detail.author_str|replace:"&#":"&#"}> |
| 116 |
<input type='hidden' name='xnpbulletinUpdateAuthorFlag' value=''> |
| 117 |
<button type='button' onclick='xnpbulletinUpdateAuthor(this);'><{$smarty.const._MD_XNPBULLETIN_UPDATE_LABEL}></button> |
| 118 |
</td> |
| 119 |
</tr> |
| 120 |
<{/if}> |
| 121 |
</table> |
| 122 |
</td> |
| 123 |
</tr> |
| 124 |
<tr> |
| 125 |
<td class="head"><{$smarty.const._MD_XNPBULLETIN_JOURNAL_LABEL}></td> |
| 126 |
<td class="<{cycle name="oddeven"}>" > |
| 127 |
<table> |
| 128 |
<tr> |
| 129 |
<tr> |
| 130 |
<td width="70"></td> |
| 131 |
<td><input size=50 type='text' name='journal' value='<{$detail.journal|escape|replace:"&#":"&#"}>'></td> |
| 132 |
</tr> |
| 133 |
<tr> |
| 134 |
<td width="70"><{$smarty.const._MD_XNPBULLETIN_TRANSLATION_LABEL}></td> |
| 135 |
<td><input size=50 type='text' name='journal_translation' value='<{$detail.journal_translation|escape|replace:"&#":"&#"}>'></td> |
| 136 |
</tr> |
| 137 |
</table> |
| 138 |
</td> |
| 139 |
</tr> |
| 140 |
<tr> |
| 141 |
<td class="head"><{$smarty.const._MD_XNPBULLETIN_VOLUME_LABEL}></td> |
| 142 |
<td class="<{cycle name="oddeven"}>" ><input type='text' name='volume' value='<{$detail.volume|escape|replace:"&#":"&#"}>' STYLE='ime-mode:inactive;'></td> |
| 143 |
</tr> |
| 144 |
<tr> |
| 145 |
<td class="head"><{$smarty.const._MD_XNPBULLETIN_NUMBER_LABEL}></td> |
| 146 |
<td class="<{cycle name="oddeven"}>" ><input type='text' name='number' value='<{$detail.number|escape|replace:"&#":"&#"}>' STYLE='ime-mode:inactive;'></td> |
| 147 |
</tr> |
| 148 |
<tr> |
| 149 |
<td class="head"><{$smarty.const._MD_XNPBULLETIN_PAGE_LABEL}></td> |
| 150 |
<td class="<{cycle name="oddeven"}>" ><input type='text' name='page' value='<{$detail.page|escape|replace:"&#":"&#"}>' STYLE='ime-mode:inactive;'></td> |
| 151 |
</tr> |
| 152 |
<tr> |
| 153 |
<td class="head"><{$smarty.const._MD_XNPBULLETIN_DATE_LABEL}></td> |
| 154 |
<td class="<{cycle name="oddeven"}>"><{$basic.publication_date.value}></td> |
| 155 |
</tr> |
| 156 |
<tr> |
| 157 |
<td class="head"><{$smarty.const._MD_XNPBULLETIN_PUBLISHER_LABEL}></td> |
| 158 |
<td class="<{cycle name="oddeven"}>" ><input type='text' name='publisher' value='<{$detail.publisher|escape|replace:"&#":"&#"}>'></td> |
| 159 |
</tr> |
| 160 |
<tr> |
| 161 |
<td class="head"><{$smarty.const._MD_XNPBULLETIN_ISSN_LABEL}></td> |
| 162 |
<td class="<{cycle name="oddeven"}>" ><input type='text' maxlength='24' name='issn' value='<{$detail.issn|escape|replace:"&#":"&#"}>'></td> |
| 163 |
</tr> |
| 164 |
<tr> |
| 165 |
<td class="head"><{$smarty.const._MD_XNPBULLETIN_ISBN_LABEL}></td> |
| 166 |
<td class="<{cycle name="oddeven"}>" ><input type='text' maxlength='24' name='isbn' value='<{$detail.isbn|escape|replace:"&#":"&#"}>'></td> |
| 167 |
</tr> |
| 168 |
<tr> |
| 169 |
<td class="head"><{$smarty.const._MD_XNPBULLETIN_ABSTRACT_LABEL}></td> |
| 170 |
<td class="<{cycle name="oddeven"}>"><textarea name='abstract' rows='4' cols='40'><{$detail.abstract|escape|replace:"&#":"&#"}></textarea></td> |
| 171 |
<tr> |
| 172 |
<td class="head"><{$smarty.const._MD_XNPBULLETIN_KEYWORDS_LABEL}></td> |
| 173 |
<td class="<{cycle name="oddeven"}>"> |
| 174 |
<table> |
| 175 |
<tr> |
| 176 |
<td> |
| 177 |
<input size=50 type='text' name='keywords_add' value='<{$detail.keywords_add|escape|replace:"&#":"&#"}>'> |
| 178 |
<input type='hidden' name='xnpbulletinAddKeywordFlag' value=''> |
| 179 |
<button type='button' onclick='xnpbulletinAddKeyword(this);'><{$smarty.const._MD_XNPBULLETIN_ADD_LABEL}></button> |
| 180 |
<input type='hidden' name='keywords' value='<{$detail.keywords|escape|replace:"&#":"&#"}>'> |
| 181 |
<input type='hidden' name='keywords_str' value='<{$detail.keywords_str|escape|replace:"&#":"&#"}>'> |
| 182 |
</td> |
| 183 |
</tr> |
| 184 |
<{if !empty( $detail.keyword_str.value ) }> |
| 185 |
<tr> |
| 186 |
<td class="<{cycle name="oddeven"}>"><{$detail.keyword_str|replace:"&#":"&#"}> |
| 187 |
<input type='hidden' name='xnpbulletinUpdateKeywordFlag' value=''> |
| 188 |
<button type='button' onclick='xnpbulletinUpdateKeyword(this);'><{$smarty.const._MD_XNPBULLETIN_UPDATE_LABEL}></button> |
| 189 |
</td> |
| 190 |
</tr> |
| 191 |
<{/if}> |
| 192 |
</table> |
| 193 |
</td> |
| 194 |
</tr> |
| 195 |
<tr> |
| 196 |
<td class="head"><{$smarty.const._MD_XNPBULLETIN_FREE_KEYWORDS_LABEL}></td> |
| 197 |
<td class="<{cycle name="oddeven"}>"> |
| 198 |
<table> |
| 199 |
<tr> |
| 200 |
<td> |
| 201 |
<input size=50 type='text' name='free_keywords_add' value='<{$detail.free_keywords_add|escape|replace:"&#":"&#"}>'> |
| 202 |
<input type='hidden' name='xnpbulletinAddFreeKeywordFlag' value=''> |
| 203 |
<button type='button' onclick='xnpbulletinAddFreeKeyword(this);'><{$smarty.const._MD_XNPBULLETIN_ADD_LABEL}></button> |
| 204 |
<input type='hidden' name='free_keywords' value='<{$detail.free_keywords|escape|replace:"&#":"&#"}>'> |
| 205 |
</td> |
| 206 |
</tr> |
| 207 |
<{if !empty( $detail.free_keyword_str.value ) }> |
| 208 |
<tr> |
| 209 |
<td class="<{cycle name="oddeven"}>"><{$detail.free_keyword_str|replace:"&#":"&#"}> |
| 210 |
<input type='hidden' name='xnpbulletinUpdateFreeKeywordFlag' value=''> |
| 211 |
<button type='button' onclick='xnpbulletinUpdateFreeKeyword(this);'><{$smarty.const._MD_XNPBULLETIN_UPDATE_LABEL}></button> |
| 212 |
</td> |
| 213 |
</tr> |
| 214 |
<{/if}> |
| 215 |
</table> |
| 216 |
</td> |
| 217 |
</tr> |
| 218 |
<tr> |
| 219 |
<td class="head"><{$basic.description.name}></td> |
| 220 |
<td class="<{cycle name="oddeven"}>" ><{$basic.description.value}></td> |
| 221 |
</tr> |
| 222 |
<tr> |
| 223 |
<td class="head"><{$basic.lang.name}></td> |
| 224 |
<td class="<{cycle name="oddeven"}>" ><input maxlength=3 type='text' name='lang' value='<{$detail.lang|escape|replace:"&#":"&#"}>' STYLE='ime-mode:disabled;'></td> |
| 225 |
</tr> |
| 226 |
<tr> |
| 227 |
<td class="head"><{$smarty.const._MD_XNPBULLETIN_PHYSICAL_DESCRIPTION_LABEL}></td> |
| 228 |
<td class="<{cycle name="oddeven"}>" ><input size=50 type='text' name='physical_description' value='<{$detail.physical_description|escape|replace:"&#":"&#"}>' STYLE='ime-mode:inactive;'></td> |
| 229 |
</tr> |
| 230 |
<tr> |
| 231 |
<td class="head"><{$smarty.const._MD_XNPBULLETIN_TYPE_OF_RESOURCE_LABEL}></td> |
| 232 |
<td class="<{cycle name="oddeven"}>" ><input size=50 type='text' name='type_of_resource' value='<{$detail.type_of_resource|escape|replace:"&#":"&#"}>' STYLE='ime-mode:inactive;'></td> |
| 233 |
</tr> |
| 234 |
<tr> |
| 235 |
<td class="head"><{$smarty.const._MD_XNPBULLETIN_GENRE_LABEL}></td> |
| 236 |
<td class="<{cycle name="oddeven"}>" ><input size=50 type='text' name='genre' value='<{$detail.genre|escape|replace:"&#":"&#"}>' STYLE='ime-mode:inactive;'></td> |
| 237 |
</tr> |
| 238 |
<tr> |
| 239 |
<td class="head"><{$smarty.const._MD_XNPBULLETIN_IMAGES_LABEL}></td> |
| 240 |
<td class="<{cycle name="oddeven"}>" ><{$bulletin_images.value}></td> |
| 241 |
</tr> |
| 242 |
<tr> |
| 243 |
<td class="head"><{$smarty.const._MD_XNPBULLETIN_ATTACHMENT_LABEL}></td> |
| 244 |
<td class="<{cycle name="oddeven"}>" ><{$bulletin_attachment.value}></td> |
| 245 |
</tr> |
| 246 |
<tr> |
| 247 |
<td class="head"><{$smarty.const._MD_XNPBULLETIN_LINK_LABEL}></td> |
| 248 |
<td class="<{cycle name="oddeven"}>" ><input size=50 type='text' name='link' value='<{$detail.link|escape|replace:"&#":"&#"}>'></td> |
| 249 |
</tr> |
| 250 |
<{if !empty( $basic.last_update_date.value ) }> |
| 251 |
<tr> |
| 252 |
<td class="head"><{$basic.last_update_date.name}></td> |
| 253 |
<td class="<{cycle name="oddeven"}>" ><{$basic.last_update_date.value}></td> |
| 254 |
</tr> |
| 255 |
<{/if}> |
| 256 |
<{if !empty( $basic.creation_date.value ) }> |
| 257 |
<tr> |
| 258 |
<td class="head"><{$basic.creation_date.name}></td> |
| 259 |
<td class="<{cycle name="oddeven"}>"><{$basic.creation_date.value}></td> |
| 260 |
</tr> |
| 261 |
<{/if}> |
| 262 |
<{if !empty( $basic.contributor.value ) }> |
| 263 |
<tr> |
| 264 |
<td class="head"><{$basic.contributor.name}></td> |
| 265 |
<td class="<{cycle name="oddeven"}>" ><{$basic.contributor.value}></td> |
| 266 |
</tr> |
| 267 |
<{/if}> |
| 268 |
<{if !empty( $basic.item_type.value ) }> |
| 269 |
<tr> |
| 270 |
<td class="head"><{$basic.item_type.name}></td> |
| 271 |
<td class="<{cycle name="oddeven"}>"><{$basic.item_type.value}></td> |
| 272 |
</tr> |
| 273 |
<{/if}> |
| 274 |
<{if !empty( $basic.change_logs.value ) }> |
| 275 |
<tr> |
| 276 |
<td class="head"><{$basic.change_logs.name}></td> |
| 277 |
<td class="<{cycle name="oddeven"}>" ><{$basic.change_logs.value}></td> |
| 278 |
</tr> |
| 279 |
<{/if}> |
| 280 |
|
| 281 |
<!-- Bulletin Item Detail Information --> |
| 282 |
<!-- index --> |
| 283 |
<tr> |
| 284 |
<td class="head"><{$index.name}></td> |
| 285 |
<td class="<{cycle name="oddeven"}>"><{$index.value}></td> |
| 286 |
</tr> |
| 287 |
<!-- related_to --> |
| 288 |
<tr> |
| 289 |
<td class="head"><{$basic.related_to.name}></td> |
| 290 |
<td class="<{cycle name="oddeven"}>"><{$basic.related_to.value}></td> |
| 291 |
</tr> |
| 292 |
</table> |
| 293 |
|
| 294 |
<script type="text/javascript"> |
| 295 |
<!-- |
| 296 |
// |
| 297 |
function onSubmitItemType(form){ |
| 298 |
var result = true; |
| 299 |
if ( form.title.value == '' ){ |
| 300 |
result = false; |
| 301 |
window.alert("<{$smarty.const._MD_XNPBULLETIN_TITLE_REQUIRED}>"); |
| 302 |
} |
| 303 |
/* |
| 304 |
if ( form.author_str.value == '' ){ |
| 305 |
result = false; |
| 306 |
window.alert("<{$smarty.const._MD_XNPBULLETIN_AUTHOR_REQUIRED}>"); |
| 307 |
} |
| 308 |
if (( form.author_family.value == '' ) || ( form.author_family.value.indexOf("\n\n") != -1 )){ |
| 309 |
result = false; |
| 310 |
window.alert("<{$smarty.const._MD_XNPBULLETIN_AUTHOR_FAMILY_REQUIRED}>"); |
| 311 |
} |
| 312 |
if ( form.journal.value == '' ){ |
| 313 |
result = false; |
| 314 |
window.alert("<{$smarty.const._MD_XNPBULLETIN_JOURNAL_REQUIRED}>"); |
| 315 |
} |
| 316 |
if ( form.publicationDateYear.value == '' ){ |
| 317 |
result = false; |
| 318 |
window.alert("<{$smarty.const._MD_XNPBULLETIN_DATE_REQUIRED}>"); |
| 319 |
} |
| 320 |
var form = form.form; |
| 321 |
getCheckedIndexes(form); |
| 322 |
*/ |
| 323 |
return result; |
| 324 |
} |
| 325 |
|
| 326 |
/* |
| 327 |
// title Japanese request |
| 328 |
function xnpbulletinTitleJapanese(button){ |
| 329 |
var form = button.form; |
| 330 |
document.getElementsByName('xnpbulletinTitleJapaneseFlag').item(0).value = '1'; |
| 331 |
getCheckedIndexes(form); |
| 332 |
form.action = ''; |
| 333 |
form.submit(); |
| 334 |
} |
| 335 |
*/ |
| 336 |
|
| 337 |
// title romaji request |
| 338 |
function xnpbulletinTitleRomaji(button){ |
| 339 |
var form = button.form; |
| 340 |
if ( form.title_kana.value == '' ){ |
| 341 |
window.alert("<{$smarty.const._MD_XNPBULLETIN_TITLE_REQUIRED}>"); |
| 342 |
return false; |
| 343 |
} |
| 344 |
else { |
| 345 |
document.getElementsByName('xnpbulletinTitleRomajiFlag').item(0).value = '1'; |
| 346 |
getCheckedIndexes(form); |
| 347 |
saveScrollPosition(); |
| 348 |
form.action = ''; |
| 349 |
form.submit(); |
| 350 |
} |
| 351 |
} |
| 352 |
|
| 353 |
// sub title romaji request |
| 354 |
function xnpbulletinSubTitleRomaji(button){ |
| 355 |
var form = button.form; |
| 356 |
if ( form.sub_title_kana_add.value == '' ){ |
| 357 |
window.alert("<{$smarty.const._MD_XNPBULLETIN_SUB_TITLE_KANA_REQUIRED}>"); |
| 358 |
return false; |
| 359 |
} |
| 360 |
else { |
| 361 |
document.getElementsByName('xnpbulletinSubTitleRomajiFlag').item(0).value = '1'; |
| 362 |
getCheckedIndexes(form); |
| 363 |
saveScrollPosition(); |
| 364 |
form.action = ''; |
| 365 |
form.submit(); |
| 366 |
} |
| 367 |
} |
| 368 |
|
| 369 |
// add sub title request |
| 370 |
function xnpbulletinAddSubTitle(button){ |
| 371 |
var form = button.form; |
| 372 |
if (( form.sub_title_translation_add.value != '' ) || ( form.sub_title_add.value != '' ) || ( form.sub_title_kana_add.value != '' )){ |
| 373 |
document.getElementsByName('xnpbulletinAddSubTitleFlag').item(0).value = '1'; |
| 374 |
getCheckedIndexes(form); |
| 375 |
saveScrollPosition(); |
| 376 |
form.action = ''; |
| 377 |
form.submit(); |
| 378 |
} |
| 379 |
} |
| 380 |
|
| 381 |
// add author request |
| 382 |
function xnpbulletinAddAuthor(button){ |
| 383 |
var form = button.form; |
| 384 |
if (( form.author_name_add.value != '' ) || ( form.author_romaji_add.value != '' ) || ( form.author_affiliation_add.value != '' )){ |
| 385 |
document.getElementsByName('xnpbulletinAddAuthorFlag').item(0).value = '1'; |
| 386 |
getCheckedIndexes(form); |
| 387 |
saveScrollPosition(); |
| 388 |
form.action = ''; |
| 389 |
form.submit(); |
| 390 |
} |
| 391 |
} |
| 392 |
|
| 393 |
// update sub title request |
| 394 |
function xnpbulletinUpdateSubTitle(button){ |
| 395 |
var form = button.form; |
| 396 |
document.getElementsByName('xnpbulletinUpdateSubTitleFlag').item(0).value = '1'; |
| 397 |
getCheckedIndexes(form); |
| 398 |
saveScrollPosition(); |
| 399 |
form.action = ''; |
| 400 |
form.submit(); |
| 401 |
} |
| 402 |
|
| 403 |
|
| 404 |
// update author request |
| 405 |
function xnpbulletinUpdateAuthor(button){ |
| 406 |
var form = button.form; |
| 407 |
/* |
| 408 |
var count = ""; |
| 409 |
var err = 0; |
| 410 |
for (var i in form) { |
| 411 |
if (( form[i].name.substring(0,21) == "author_family_update_" ) && ( form[i].value == '' )){ |
| 412 |
count = form[i].name.substring(21); |
| 413 |
} |
| 414 |
if (( form[i].name.substring(0,21) == "author_delete_update_" ) && ( form[i].name.substring(21) == count ) && ( form[i].checked == false )){ |
| 415 |
err = 1; |
| 416 |
} |
| 417 |
} |
| 418 |
if (err == 1) { |
| 419 |
window.alert("<{$smarty.const._MD_XNPBULLETIN_AUTHOR_FAMILY_REQUIRED}>"); |
| 420 |
return false; |
| 421 |
} |
| 422 |
*/ |
| 423 |
document.getElementsByName('xnpbulletinUpdateAuthorFlag').item(0).value = '1'; |
| 424 |
getCheckedIndexes(form); |
| 425 |
saveScrollPosition(); |
| 426 |
form.action = ''; |
| 427 |
form.submit(); |
| 428 |
} |
| 429 |
|
| 430 |
// add keyword request |
| 431 |
function xnpbulletinAddKeyword(button){ |
| 432 |
var form = button.form; |
| 433 |
if ( form.keywords_add.value != '' ){ |
| 434 |
document.getElementsByName('xnpbulletinAddKeywordFlag').item(0).value = '1'; |
| 435 |
getCheckedIndexes(form); |
| 436 |
saveScrollPosition(); |
| 437 |
form.action = ''; |
| 438 |
form.submit(); |
| 439 |
} |
| 440 |
} |
| 441 |
|
| 442 |
// update keyword request |
| 443 |
function xnpbulletinUpdateKeyword(button){ |
| 444 |
var form = button.form; |
| 445 |
document.getElementsByName('xnpbulletinUpdateKeywordFlag').item(0).value = '1'; |
| 446 |
getCheckedIndexes(form); |
| 447 |
saveScrollPosition(); |
| 448 |
form.action = ''; |
| 449 |
form.submit(); |
| 450 |
} |
| 451 |
|
| 452 |
// add free keyword request |
| 453 |
function xnpbulletinAddFreeKeyword(button){ |
| 454 |
var form = button.form; |
| 455 |
if ( form.free_keywords_add.value != '' ){ |
| 456 |
document.getElementsByName('xnpbulletinAddFreeKeywordFlag').item(0).value = '1'; |
| 457 |
getCheckedIndexes(form); |
| 458 |
saveScrollPosition(); |
| 459 |
form.action = ''; |
| 460 |
form.submit(); |
| 461 |
} |
| 462 |
} |
| 463 |
|
| 464 |
// update keyword request |
| 465 |
function xnpbulletinUpdateFreeKeyword(button){ |
| 466 |
var form = button.form; |
| 467 |
document.getElementsByName('xnpbulletinUpdateFreeKeywordFlag').item(0).value = '1'; |
| 468 |
getCheckedIndexes(form); |
| 469 |
saveScrollPosition(); |
| 470 |
form.action = ''; |
| 471 |
form.submit(); |
| 472 |
} |
| 473 |
|
| 474 |
//--> |
| 475 |
</script> |