| 433 | | <?php if ( $action == 'links' ) : ?> |
|---|
| 434 | | * html { overflow-x: hidden; } |
|---|
| 435 | | <?php else : ?> |
|---|
| 436 | | * html { overflow-y: hidden; } |
|---|
| 437 | | <?php endif; ?> |
|---|
| 438 | | body { |
|---|
| 439 | | font: 13px "Lucida Grande", "Lucida Sans Unicode", Tahoma, Verdana; |
|---|
| 440 | | border: none; |
|---|
| 441 | | margin: 0px; |
|---|
| 442 | | height: 150px; |
|---|
| 443 | | background: #dfe8f1; |
|---|
| 444 | | } |
|---|
| 445 | | form { |
|---|
| 446 | | margin: 3px 2px 0px 6px; |
|---|
| 447 | | } |
|---|
| 448 | | #wrap { |
|---|
| 449 | | clear: both; |
|---|
| 450 | | padding: 0px; |
|---|
| 451 | | width: 100%; |
|---|
| 452 | | } |
|---|
| 453 | | #images { |
|---|
| 454 | | position: absolute; |
|---|
| 455 | | clear: both; |
|---|
| 456 | | margin: 0px; |
|---|
| 457 | | padding: 15px 15px; |
|---|
| 458 | | width: <?php echo $images_width; ?>px; |
|---|
| 459 | | } |
|---|
| 460 | | #images img { |
|---|
| 461 | | background-color: rgb(209, 226, 239); |
|---|
| 462 | | } |
|---|
| 463 | | <?php echo $style; ?> |
|---|
| 464 | | .attwrap, .attwrap * { |
|---|
| 465 | | margin: 0px; |
|---|
| 466 | | padding: 0px; |
|---|
| 467 | | border: 0px; |
|---|
| 468 | | } |
|---|
| 469 | | .imagewrap { |
|---|
| 470 | | margin-right: 5px; |
|---|
| 471 | | overflow: hidden; |
|---|
| 472 | | width: 128px; |
|---|
| 473 | | } |
|---|
| 474 | | .otherwrap { |
|---|
| 475 | | margin-right: 5px; |
|---|
| 476 | | overflow: hidden; |
|---|
| 477 | | background-color: #f9fcfe; |
|---|
| 478 | | } |
|---|
| 479 | | .otherwrap a { |
|---|
| 480 | | display: block; |
|---|
| 481 | | } |
|---|
| 482 | | .otherwrap a, .otherwrap a:hover, .otherwrap a:active, .otherwrap a:visited { |
|---|
| 483 | | color: blue; |
|---|
| 484 | | } |
|---|
| 485 | | .usingicon { |
|---|
| 486 | | padding: 0px; |
|---|
| 487 | | height: 96px; |
|---|
| 488 | | text-align: center; |
|---|
| 489 | | width: 128px; |
|---|
| 490 | | } |
|---|
| 491 | | .usingtext { |
|---|
| 492 | | padding: 3px; |
|---|
| 493 | | height: 90px; |
|---|
| 494 | | text-align: left; |
|---|
| 495 | | width: 122px; |
|---|
| 496 | | } |
|---|
| 497 | | .filetype { |
|---|
| 498 | | font-size: 80%; |
|---|
| 499 | | border-bottom: 3px double #89a |
|---|
| 500 | | } |
|---|
| 501 | | .imagewrap, .imagewrap img, .imagewrap a, .imagewrap a img, .imagewrap a:hover img, .imagewrap a:visited img, .imagewrap a:active img { |
|---|
| 502 | | text-decoration: none; |
|---|
| 503 | | } |
|---|
| 504 | | #upload-menu { |
|---|
| 505 | | background: #fff; |
|---|
| 506 | | margin: 0px; |
|---|
| 507 | | padding: 0; |
|---|
| 508 | | list-style: none; |
|---|
| 509 | | height: 2em; |
|---|
| 510 | | border-bottom: 1px solid #448abd; |
|---|
| 511 | | width: 100%; |
|---|
| 512 | | } |
|---|
| 513 | | #upload-menu li { |
|---|
| 514 | | float: left; |
|---|
| 515 | | margin: 0 0 0 .75em; |
|---|
| 516 | | } |
|---|
| 517 | | #upload-menu a { |
|---|
| 518 | | display: block; |
|---|
| 519 | | padding: 5px; |
|---|
| 520 | | text-decoration: none; |
|---|
| 521 | | color: #000; |
|---|
| 522 | | border-top: 3px solid #fff; |
|---|
| 523 | | } |
|---|
| 524 | | #upload-menu .current a { |
|---|
| 525 | | background: #dfe8f1; |
|---|
| 526 | | border-right: 2px solid #448abd; |
|---|
| 527 | | } |
|---|
| 528 | | #upload-menu a:hover { |
|---|
| 529 | | background: #dfe8f1; |
|---|
| 530 | | color: #000; |
|---|
| 531 | | } |
|---|
| 532 | | .tip { |
|---|
| 533 | | color: rgb(68, 138, 189); |
|---|
| 534 | | padding: 2px 1em; |
|---|
| 535 | | } |
|---|
| 536 | | .inactive { |
|---|
| 537 | | color: #fff; |
|---|
| 538 | | padding: 1px 3px; |
|---|
| 539 | | } |
|---|
| 540 | | .left { |
|---|
| 541 | | float: left; |
|---|
| 542 | | } |
|---|
| 543 | | .right { |
|---|
| 544 | | float: right; |
|---|
| 545 | | } |
|---|
| 546 | | .center { |
|---|
| 547 | | text-align: center; |
|---|
| 548 | | } |
|---|
| 549 | | #upload-menu li.spacer { |
|---|
| 550 | | margin-left: 40px; |
|---|
| 551 | | } |
|---|
| 552 | | #title, #descr { |
|---|
| 553 | | width: 99%; |
|---|
| 554 | | margin-top: 1px; |
|---|
| 555 | | } |
|---|
| 556 | | th { |
|---|
| 557 | | width: 4.5em; |
|---|
| 558 | | } |
|---|
| 559 | | #descr { |
|---|
| 560 | | height: 36px; |
|---|
| 561 | | } |
|---|
| 562 | | #buttons { |
|---|
| 563 | | margin-top: 2px; |
|---|
| 564 | | text-align: right; |
|---|
| 565 | | } |
|---|
| 566 | | .popup { |
|---|
| 567 | | margin: 4px 4px; |
|---|
| 568 | | padding: 1px; |
|---|
| 569 | | position: absolute; |
|---|
| 570 | | width: 114px; |
|---|
| 571 | | display: none; |
|---|
| 572 | | background-color: rgb(240, 240, 238); |
|---|
| 573 | | border-top: 2px solid #fff; |
|---|
| 574 | | border-right: 2px solid #ddd; |
|---|
| 575 | | border-bottom: 2px solid #ddd; |
|---|
| 576 | | border-left: 2px solid #fff; |
|---|
| 577 | | text-align: center; |
|---|
| 578 | | } |
|---|
| 579 | | .imagewrap .popup { |
|---|
| 580 | | opacity: .90; |
|---|
| 581 | | filter:alpha(opacity=90); |
|---|
| 582 | | } |
|---|
| 583 | | .otherwrap .popup { |
|---|
| 584 | | padding-top: 20px; |
|---|
| 585 | | } |
|---|
| 586 | | .popup a, .popup a:visited, .popup a:active { |
|---|
| 587 | | background-color: transparent; |
|---|
| 588 | | display: block; |
|---|
| 589 | | width: 100%; |
|---|
| 590 | | text-decoration: none; |
|---|
| 591 | | color: #246; |
|---|
| 592 | | } |
|---|
| 593 | | .popup a:hover { |
|---|
| 594 | | background-color: #fff; |
|---|
| 595 | | color: #000; |
|---|
| 596 | | } |
|---|
| 597 | | .caption { |
|---|
| 598 | | text-align: center; |
|---|
| 599 | | } |
|---|
| 600 | | #submit { |
|---|
| 601 | | margin: 1px; |
|---|
| 602 | | width: 99%; |
|---|
| 603 | | } |
|---|
| 604 | | #submit input, #submit input:focus { |
|---|
| 605 | | background: url( images/fade-butt.png ); |
|---|
| 606 | | border: 3px double #999; |
|---|
| 607 | | border-left-color: #ccc; |
|---|
| 608 | | border-top-color: #ccc; |
|---|
| 609 | | color: #333; |
|---|
| 610 | | padding: 0.25em; |
|---|
| 611 | | } |
|---|
| 612 | | #submit input:active { |
|---|
| 613 | | background: #f4f4f4; |
|---|
| 614 | | border: 3px double #ccc; |
|---|
| 615 | | border-left-color: #999; |
|---|
| 616 | | border-top-color: #999; |
|---|
| 617 | | } |
|---|
| 618 | | .zerosize { |
|---|
| 619 | | width: 0px; |
|---|
| 620 | | height: 0px; |
|---|
| 621 | | overflow: hidden; |
|---|
| 622 | | position: absolute; |
|---|
| 623 | | } |
|---|
| 624 | | #links { |
|---|
| 625 | | margin: 3px 8px; |
|---|
| 626 | | line-height: 2em; |
|---|
| 627 | | } |
|---|
| 628 | | #links textarea { |
|---|
| 629 | | width: 95%; |
|---|
| 630 | | height: 4.5em; |
|---|
| 631 | | } |
|---|
| | 431 | <?php if ( $action == 'links' ) : ?> |
|---|
| | 432 | * html { overflow-x: hidden; } |
|---|
| | 433 | <?php else : ?> |
|---|
| | 434 | * html { overflow-y: hidden; } |
|---|
| | 435 | <?php endif; ?> |
|---|
| | 436 | |
|---|
| | 437 | body { |
|---|
| | 438 | font: 13px "Lucida Grande", "Lucida Sans Unicode", Tahoma, Verdana; |
|---|
| | 439 | border: none; |
|---|
| | 440 | margin: 0px; |
|---|
| | 441 | height: 150px; |
|---|
| | 442 | background: #dfe8f1; |
|---|
| | 443 | } |
|---|
| | 444 | |
|---|
| | 445 | form { margin: 3px 2px 0px 6px; } |
|---|
| | 446 | |
|---|
| | 447 | #wrap { |
|---|
| | 448 | clear: both; |
|---|
| | 449 | padding: 0px; |
|---|
| | 450 | width: 100%; |
|---|
| | 451 | } |
|---|
| | 452 | |
|---|
| | 453 | #images { |
|---|
| | 454 | position: absolute; |
|---|
| | 455 | clear: both; |
|---|
| | 456 | margin: 0px; |
|---|
| | 457 | padding: 15px 15px; |
|---|
| | 458 | width: <?php echo $images_width; ?>px; |
|---|
| | 459 | } |
|---|
| | 460 | |
|---|
| | 461 | #images img { background-color: rgb(209, 226, 239); } |
|---|
| | 462 | |
|---|
| | 463 | <?php echo $style; ?> |
|---|
| | 464 | |
|---|
| | 465 | .attwrap, .attwrap * { |
|---|
| | 466 | margin: 0px; |
|---|
| | 467 | padding: 0px; |
|---|
| | 468 | border: 0px; |
|---|
| | 469 | } |
|---|
| | 470 | |
|---|
| | 471 | .imagewrap { |
|---|
| | 472 | margin-right: 5px; |
|---|
| | 473 | overflow: hidden; |
|---|
| | 474 | width: 128px; |
|---|
| | 475 | } |
|---|
| | 476 | |
|---|
| | 477 | .otherwrap { |
|---|
| | 478 | margin-right: 5px; |
|---|
| | 479 | overflow: hidden; |
|---|
| | 480 | background-color: #f9fcfe; |
|---|
| | 481 | } |
|---|
| | 482 | |
|---|
| | 483 | .otherwrap a { display: block; } |
|---|
| | 484 | |
|---|
| | 485 | .otherwrap a, .otherwrap a:hover, .otherwrap a:active, .otherwrap a:visited { color: blue; } |
|---|
| | 486 | |
|---|
| | 487 | .usingicon { |
|---|
| | 488 | padding: 0px; |
|---|
| | 489 | height: 96px; |
|---|
| | 490 | text-align: center; |
|---|
| | 491 | width: 128px; |
|---|
| | 492 | } |
|---|
| | 493 | |
|---|
| | 494 | .usingtext { |
|---|
| | 495 | padding: 3px; |
|---|
| | 496 | height: 90px; |
|---|
| | 497 | text-align: left; |
|---|
| | 498 | width: 122px; |
|---|
| | 499 | } |
|---|
| | 500 | |
|---|
| | 501 | .filetype { |
|---|
| | 502 | font-size: 80%; |
|---|
| | 503 | border-bottom: 3px double #89a; |
|---|
| | 504 | } |
|---|
| | 505 | |
|---|
| | 506 | .imagewrap, .imagewrap img, .imagewrap a, .imagewrap a img, .imagewrap a:hover img, .imagewrap a:visited img, .imagewrap a:active img { text-decoration: none; } |
|---|
| | 507 | |
|---|
| | 508 | #upload-menu { |
|---|
| | 509 | background: #fff; |
|---|
| | 510 | margin: 0px; |
|---|
| | 511 | padding: 0; |
|---|
| | 512 | list-style: none; |
|---|
| | 513 | height: 2em; |
|---|
| | 514 | border-bottom: 1px solid #448abd; |
|---|
| | 515 | width: 100%; |
|---|
| | 516 | } |
|---|
| | 517 | |
|---|
| | 518 | #upload-menu li { |
|---|
| | 519 | float: left; |
|---|
| | 520 | margin: 0 0 0 .75em; |
|---|
| | 521 | } |
|---|
| | 522 | |
|---|
| | 523 | #upload-menu a { |
|---|
| | 524 | display: block; |
|---|
| | 525 | padding: 5px; |
|---|
| | 526 | text-decoration: none; |
|---|
| | 527 | color: #000; |
|---|
| | 528 | border-top: 3px solid #fff; |
|---|
| | 529 | } |
|---|
| | 530 | |
|---|
| | 531 | #upload-menu .current a { |
|---|
| | 532 | background: #dfe8f1; |
|---|
| | 533 | border-right: 2px solid #448abd; |
|---|
| | 534 | } |
|---|
| | 535 | |
|---|
| | 536 | #upload-menu a:hover { |
|---|
| | 537 | background: #dfe8f1; |
|---|
| | 538 | color: #000; |
|---|
| | 539 | } |
|---|
| | 540 | |
|---|
| | 541 | .tip { |
|---|
| | 542 | color: rgb(68, 138, 189); |
|---|
| | 543 | padding: 2px 1em; |
|---|
| | 544 | } |
|---|
| | 545 | |
|---|
| | 546 | .inactive { |
|---|
| | 547 | color: #fff; |
|---|
| | 548 | padding: 1px 3px; |
|---|
| | 549 | } |
|---|
| | 550 | |
|---|
| | 551 | .left { float: left; } |
|---|
| | 552 | |
|---|
| | 553 | .right { float: right; } |
|---|
| | 554 | |
|---|
| | 555 | .center { text-align: center; } |
|---|
| | 556 | |
|---|
| | 557 | #upload-menu li.spacer { margin-left: 40px; } |
|---|
| | 558 | |
|---|
| | 559 | #title, #descr { |
|---|
| | 560 | width: 99%; |
|---|
| | 561 | margin-top: 1px; |
|---|
| | 562 | } |
|---|
| | 563 | |
|---|
| | 564 | th { |
|---|
| | 565 | text-align: right; |
|---|
| | 566 | width: 4.5em; |
|---|
| | 567 | } |
|---|
| | 568 | |
|---|
| | 569 | #descr { height: 36px; } |
|---|
| | 570 | |
|---|
| | 571 | #buttons { |
|---|
| | 572 | margin-top: 2px; |
|---|
| | 573 | text-align: right; |
|---|
| | 574 | } |
|---|
| | 575 | |
|---|
| | 576 | .popup { |
|---|
| | 577 | margin: 4px 4px; |
|---|
| | 578 | padding: 1px; |
|---|
| | 579 | position: absolute; |
|---|
| | 580 | width: 114px; |
|---|
| | 581 | display: none; |
|---|
| | 582 | background-color: rgb(240, 240, 238); |
|---|
| | 583 | border-top: 2px solid #fff; |
|---|
| | 584 | border-right: 2px solid #ddd; |
|---|
| | 585 | border-bottom: 2px solid #ddd; |
|---|
| | 586 | border-left: 2px solid #fff; |
|---|
| | 587 | text-align: center; |
|---|
| | 588 | } |
|---|
| | 589 | |
|---|
| | 590 | .imagewrap .popup { |
|---|
| | 591 | opacity: .90; |
|---|
| | 592 | filter:alpha(opacity=90); |
|---|
| | 593 | } |
|---|
| | 594 | |
|---|
| | 595 | .otherwrap .popup { padding-top: 20px; } |
|---|
| | 596 | |
|---|
| | 597 | .popup a, .popup a:visited, .popup a:active { |
|---|
| | 598 | background-color: transparent; |
|---|
| | 599 | display: block; |
|---|
| | 600 | width: 100%; |
|---|
| | 601 | text-decoration: none; |
|---|
| | 602 | color: #246; |
|---|
| | 603 | } |
|---|
| | 604 | |
|---|
| | 605 | .popup a:hover { |
|---|
| | 606 | background-color: #fff; |
|---|
| | 607 | color: #000; |
|---|
| | 608 | } |
|---|
| | 609 | |
|---|
| | 610 | .caption { text-align: center; } |
|---|
| | 611 | |
|---|
| | 612 | #submit { |
|---|
| | 613 | margin: 1px; |
|---|
| | 614 | width: 99%; |
|---|
| | 615 | } |
|---|
| | 616 | |
|---|
| | 617 | #submit input, #submit input:focus { |
|---|
| | 618 | background: url( images/fade-butt.png ); |
|---|
| | 619 | border: 3px double #999; |
|---|
| | 620 | border-left-color: #ccc; |
|---|
| | 621 | border-top-color: #ccc; |
|---|
| | 622 | color: #333; |
|---|
| | 623 | padding: 0.25em; |
|---|
| | 624 | } |
|---|
| | 625 | |
|---|
| | 626 | #submit input:active { |
|---|
| | 627 | background: #f4f4f4; |
|---|
| | 628 | border: 3px double #ccc; |
|---|
| | 629 | border-left-color: #999; |
|---|
| | 630 | border-top-color: #999; |
|---|
| | 631 | } |
|---|
| | 632 | |
|---|
| | 633 | .zerosize { |
|---|
| | 634 | width: 0px; |
|---|
| | 635 | height: 0px; |
|---|
| | 636 | overflow: hidden; |
|---|
| | 637 | position: absolute; |
|---|
| | 638 | } |
|---|
| | 639 | |
|---|
| | 640 | #links { |
|---|
| | 641 | margin: 3px 8px; |
|---|
| | 642 | line-height: 2em; |
|---|
| | 643 | } |
|---|
| | 644 | |
|---|
| | 645 | #links textarea { |
|---|
| | 646 | width: 95%; |
|---|
| | 647 | height: 4.5em; |
|---|
| | 648 | } |
|---|
| 636 | | <li<?php echo $current_1; ?>><a href="<?php echo basename(__FILE__) . "?action=upload&post=$post&all=$all&start=$start"; ?>"><?php _e('Upload'); ?></a></li> |
|---|
| 637 | | <?php if ( $attachments = $wpdb->get_results("SELECT ID FROM $wpdb->posts WHERE post_parent = '$post'") ) { ?> |
|---|
| 638 | | <li<?php echo $current_2; ?>><a href="<?php echo basename(__FILE__) . "?action=view&post=$post&all=false"; ?>"><?php _e('Browse'); ?></a></li> |
|---|
| 639 | | <?php } ?> |
|---|
| 640 | | <?php if ($wpdb->get_var("SELECT count(ID) FROM $wpdb->posts WHERE post_type = 'attachment'")) { ?> |
|---|
| 641 | | <li<?php echo $current_3; ?>><a href="<?php echo basename(__FILE__) . "?action=view&post=$post&all=true"; ?>"><?php _e('Browse All'); ?></a></li> |
|---|
| 642 | | <?php } ?> |
|---|
| 643 | | <li> </li> |
|---|
| 644 | | <?php if ( $action == 'view' ) { ?> |
|---|
| 645 | | <?php if ( false !== $back ) : ?> |
|---|
| 646 | | <li class="spacer"><a href="<?php echo basename(__FILE__) . "?action=$action&post=$post&all=$all&start=0"; ?>" title="<?php _e('First'); ?>">|«</a></li> |
|---|
| 647 | | <li><a href="<?php echo basename(__FILE__) . "?action=$action&post=$post&all=$all&start=$back"; ?>">« <?php _e('Back'); ?></a></li> |
|---|
| 648 | | <?php else : ?> |
|---|
| 649 | | <li class="inactive spacer">|«</li> |
|---|
| 650 | | <li class="inactive">« <?php _e('Back'); ?></li> |
|---|
| 651 | | <?php endif; ?> |
|---|
| 652 | | <?php if ( false !== $next ) : ?> |
|---|
| 653 | | <li><a href="<?php echo basename(__FILE__) . "?action=$action&post=$post&all=$all&start=$next"; ?>"><?php _e('Next »'); ?></a></li> |
|---|
| 654 | | <li><a href="<?php echo basename(__FILE__) . "?action=$action&post=$post&all=$all&last=true"; ?>" title="<?php _e('Last'); ?>">»|</a></li> |
|---|
| 655 | | <?php else : ?> |
|---|
| 656 | | <li class="inactive"><?php _e('Next »'); ?></li> |
|---|
| 657 | | <li class="inactive">»|</li> |
|---|
| 658 | | <?php endif; ?> |
|---|
| 659 | | <?php } // endif not upload?> |
|---|
| | 686 | <li<?php echo $current_1; ?>><a href="<?php echo basename(__FILE__) . "?action=upload&post=$post&all=$all&start=$start"; ?>"><?php _e('Upload'); ?></a></li> |
|---|
| | 687 | |
|---|
| | 688 | <?php if ( $attachments = $wpdb->get_results("SELECT ID FROM $wpdb->posts WHERE post_parent = '$post'") ): ?> |
|---|
| | 689 | <li<?php echo $current_2; ?>><a href="<?php echo basename(__FILE__) . "?action=view&post=$post&all=false"; ?>"><?php _e('Browse'); ?></a></li> |
|---|
| | 690 | <?php endif; ?> |
|---|
| | 691 | |
|---|
| | 692 | <?php if ($wpdb->get_var("SELECT count(ID) FROM $wpdb->posts WHERE post_type = 'attachment'")): ?> |
|---|
| | 693 | <li<?php echo $current_3; ?>><a href="<?php echo basename(__FILE__) . "?action=view&post=$post&all=true"; ?>"><?php _e('Browse All'); ?></a></li> |
|---|
| | 694 | <?php endif; ?> |
|---|
| | 695 | |
|---|
| | 696 | <li> </li> |
|---|
| | 697 | |
|---|
| | 698 | <?php if ( $action == 'view' ): ?> |
|---|
| | 699 | <?php if ( false !== $back ): ?> |
|---|
| | 700 | <li class="spacer"><a href="<?php echo basename(__FILE__) . "?action=$action&post=$post&all=$all&start=0"; ?>" title="<?php _e('First'); ?>">|«</a></li> |
|---|
| | 701 | <li><a href="<?php echo basename(__FILE__) . "?action=$action&post=$post&all=$all&start=$back"; ?>">« <?php _e('Back'); ?></a></li> |
|---|
| | 702 | <?php else: ?> |
|---|
| | 703 | <li class="inactive spacer">|«</li> |
|---|
| | 704 | <li class="inactive">« <?php _e('Back'); ?></li> |
|---|
| | 705 | <?php endif; ?> |
|---|
| | 706 | |
|---|
| | 707 | <?php if ( false !== $next ): ?> |
|---|
| | 708 | <li><a href="<?php echo basename(__FILE__) . "?action=$action&post=$post&all=$all&start=$next"; ?>"><?php _e('Next »'); ?></a></li> |
|---|
| | 709 | <li><a href="<?php echo basename(__FILE__) . "?action=$action&post=$post&all=$all&last=true"; ?>" title="<?php _e('Last'); ?>">»|</a></li> |
|---|
| | 710 | <?php else: ?> |
|---|
| | 711 | <li class="inactive"><?php _e('Next »'); ?></li> |
|---|
| | 712 | <li class="inactive">»|</li> |
|---|
| | 713 | <?php endif; ?> |
|---|
| | 714 | <?php endif; ?> |
|---|
| 674 | | <div class="tip"></div> |
|---|
| 675 | | <form enctype="multipart/form-data" id="uploadForm" method="post" action="<?php echo basename(__FILE__); ?>"> |
|---|
| 676 | | <table style="width:99%;"> |
|---|
| 677 | | <tr> |
|---|
| 678 | | <th scope="row" align="right"><label for="upload"><?php _e('File:'); ?></label></th> |
|---|
| 679 | | <td><input type="file" id="upload" name="image" /></td> |
|---|
| 680 | | </tr> |
|---|
| 681 | | <tr> |
|---|
| 682 | | <th scope="row" align="right"><label for="title"><?php _e('Title:'); ?></label></th> |
|---|
| 683 | | <td><input type="text" id="title" name="imgtitle" /></td> |
|---|
| 684 | | </tr> |
|---|
| 685 | | <tr> |
|---|
| 686 | | <th scope="row" align="right"><label for="descr"><?php _e('Description:'); ?></label></th> |
|---|
| 687 | | <td><input type="textarea" name="descr" id="descr" value="" /></td> |
|---|
| 688 | | </tr> |
|---|
| 689 | | <tr id="buttons"> |
|---|
| 690 | | <th></th> |
|---|
| 691 | | <td> |
|---|
| 692 | | <input type="hidden" name="action" value="save" /> |
|---|
| 693 | | <input type="hidden" name="post" value="<?php echo $post; ?>" /> |
|---|
| 694 | | <input type="hidden" name="all" value="<?php echo $all; ?>" /> |
|---|
| 695 | | <input type="hidden" name="start" value="<?php echo $start; ?>" /> |
|---|
| 696 | | <?php wp_nonce_field( 'inlineuploading' ); ?> |
|---|
| 697 | | <div id="submit"> |
|---|
| 698 | | <input type="submit" value="<?php _e('Upload'); ?>" /> |
|---|
| 699 | | <?php if ( !empty($all) ) : ?> |
|---|
| 700 | | <input type="button" value="<?php _e('Cancel'); ?>" onclick="cancelUpload()" /> |
|---|
| 701 | | <?php endif; ?> |
|---|
| 702 | | </div> |
|---|
| 703 | | </td> |
|---|
| 704 | | </tr> |
|---|
| 705 | | </table> |
|---|
| 706 | | </div> |
|---|
| 707 | | </form> |
|---|
| 708 | | <?php } ?> |
|---|
| | 730 | <div class="tip"></div> |
|---|
| | 731 | <form enctype="multipart/form-data" id="uploadForm" method="post" action="<?php echo basename(__FILE__); ?>"> |
|---|
| | 732 | <table style="width: 99%"> |
|---|
| | 733 | <tr> |
|---|
| | 734 | <th scope="row"><label for="upload"><?php _e('File:'); ?></label></th> |
|---|
| | 735 | <td><input type="file" id="upload" name="image" /></td> |
|---|
| | 736 | </tr> |
|---|
| | 737 | <tr> |
|---|
| | 738 | <th scope="row"><label for="title"><?php _e('Title:'); ?></label></th> |
|---|
| | 739 | <td><input type="text" id="title" name="imgtitle" /></td> |
|---|
| | 740 | </tr> |
|---|
| | 741 | <tr> |
|---|
| | 742 | <th scope="row"><label for="descr"><?php _e('Description:'); ?></label></th> |
|---|
| | 743 | <td><input type="textarea" name="descr" id="descr" value="" /></td> |
|---|
| | 744 | </tr> |
|---|
| | 745 | <tr id="buttons"> |
|---|
| | 746 | <th></th> |
|---|
| | 747 | <td> |
|---|
| | 748 | <input type="hidden" name="action" value="save" /> |
|---|
| | 749 | <input type="hidden" name="post" value="<?php echo $post; ?>" /> |
|---|
| | 750 | <input type="hidden" name="all" value="<?php echo $all; ?>" /> |
|---|
| | 751 | <input type="hidden" name="start" value="<?php echo $start; ?>" /> |
|---|
| | 752 | <?php wp_nonce_field( 'inlineuploading' ); ?> |
|---|
| | 753 | <div id="submit"> |
|---|
| | 754 | <input type="submit" value="<?php _e('Upload'); ?>" /> |
|---|
| | 755 | <?php if ( !empty($all) ): ?> |
|---|
| | 756 | <input type="button" value="<?php _e('Cancel'); ?>" onclick="cancelUpload()" /> |
|---|
| | 757 | <?php endif; ?> |
|---|
| | 758 | </div> |
|---|
| | 759 | </td> |
|---|
| | 760 | </tr> |
|---|
| | 761 | </table> |
|---|
| | 762 | </form> |
|---|
| | 763 | <?php } ?> |
|---|