| 1 | <!DOCTYPE html PUBLIC '//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'> |
|---|
| 2 | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<{$xoops_langcode}>" lang="<{$xoops_langcode}>"> |
|---|
| 3 | <head> |
|---|
| 4 | <meta http-equiv="content-type" content="text/html; charset=<{$xoops_charset}>" /> |
|---|
| 5 | <meta http-equiv="content-language" content="<{$xoops_langcode}>" /> |
|---|
| 6 | <title><{$sitename}> <{$lang_imgmanager}></title> |
|---|
| 7 | <script type="text/javascript"> |
|---|
| 8 | <!--// |
|---|
| 9 | function appendCode(addCode) { |
|---|
| 10 | var targetDom = window.opener.xoopsGetElementById('<{$target}>'); |
|---|
| 11 | if (targetDom.createTextRange && targetDom.caretPos){ |
|---|
| 12 | var caretPos = targetDom.caretPos; |
|---|
| 13 | caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) |
|---|
| 14 | == ' ' ? addCode + ' ' : addCode; |
|---|
| 15 | } else if (targetDom.getSelection && targetDom.caretPos){ |
|---|
| 16 | var caretPos = targetDom.caretPos; |
|---|
| 17 | caretPos.text = caretPos.text.charat(caretPos.text.length - 1) |
|---|
| 18 | == ' ' ? addCode + ' ' : addCode; |
|---|
| 19 | } else { |
|---|
| 20 | targetDom.value = targetDom.value + addCode; |
|---|
| 21 | } |
|---|
| 22 | window.close(); |
|---|
| 23 | return; |
|---|
| 24 | } |
|---|
| 25 | //--> |
|---|
| 26 | </script> |
|---|
| 27 | <style type="text/css" media="all"> |
|---|
| 28 | body {margin: 0;} |
|---|
| 29 | img {border: 0;} |
|---|
| 30 | table {width: 100%; margin: 0;} |
|---|
| 31 | a:link {color: #3a76d6; font-weight: bold; background-color: transparent;} |
|---|
| 32 | a:visited {color: #9eb2d6; font-weight: bold; background-color: transparent;} |
|---|
| 33 | a:hover {color: #e18a00; background-color: transparent;} |
|---|
| 34 | table td {background-color: white; font-size: 12px; padding: 0; border-width: 0; vertical-align: top; font-family: Verdana, Arial, Helvetica, sans-serif;} |
|---|
| 35 | table#imagenav td {vertical-align: bottom; padding: 5px;} |
|---|
| 36 | table#imagemain td {border-right: 1px solid silver; border-bottom: 1px solid silver; padding: 5px; vertical-align: middle;} |
|---|
| 37 | table#imagemain th {border: 0; background-color: #2F5376; color:white; font-size: 12px; padding: 5px; vertical-align: top; text-align:center; font-family: Verdana, Arial, Helvetica, sans-serif;} |
|---|
| 38 | table#header td {width: 100%; background-color: #2F5376; vertical-align: middle;} |
|---|
| 39 | table#header td#headerbar {border-bottom: 1px solid silver; background-color: #dddddd;} |
|---|
| 40 | div#pagenav {text-align:center;} |
|---|
| 41 | div#footer {text-align:right; padding: 5px;} |
|---|
| 42 | </style> |
|---|
| 43 | </head> |
|---|
| 44 | |
|---|
| 45 | <body onload="window.resizeTo(<{$xsize}>, <{$ysize}>);"> |
|---|
| 46 | <table id="header" cellspacing="0"> |
|---|
| 47 | <tr> |
|---|
| 48 | <td><a href="<{$xoops_url}>/"><img src="<{$xoops_url}>/images/logo.gif" width="150" height="80" alt="" /></a></td><td> </td> |
|---|
| 49 | </tr> |
|---|
| 50 | <tr> |
|---|
| 51 | <td id="headerbar" colspan="2"> </td> |
|---|
| 52 | </tr> |
|---|
| 53 | </table> |
|---|
| 54 | |
|---|
| 55 | <form action="imagemanager.php" method="get"> |
|---|
| 56 | <table cellspacing="0" id="imagenav"> |
|---|
| 57 | <tr> |
|---|
| 58 | <td> |
|---|
| 59 | <select name="cat_id" onchange="location='<{$xoops_url}>/imagemanager.php?target=<{$target}>&cat_id='+this.options[this.selectedIndex].value"><{$cat_options}></select> <input type="hidden" name="target" value="<{$target}>" /><input type="submit" value="<{$lang_go}>" /> |
|---|
| 60 | </td> |
|---|
| 61 | |
|---|
| 62 | <{if $show_cat > 0}> |
|---|
| 63 | <td align="right"><a href="<{$xoops_url}>/imagemanager.php?target=<{$target}>&op=upload&imgcat_id=<{$show_cat}>"><{$lang_addimage}></a></td> |
|---|
| 64 | <{/if}> |
|---|
| 65 | |
|---|
| 66 | </tr> |
|---|
| 67 | </table> |
|---|
| 68 | </form> |
|---|
| 69 | |
|---|
| 70 | <{if $image_total > 0}> |
|---|
| 71 | |
|---|
| 72 | <table cellspacing="0" id="imagemain"> |
|---|
| 73 | <tr> |
|---|
| 74 | <th><{$lang_imagename}></th> |
|---|
| 75 | <th><{$lang_image}></th> |
|---|
| 76 | <th><{$lang_imagemime}></th> |
|---|
| 77 | <th><{$lang_align}></th> |
|---|
| 78 | </tr> |
|---|
| 79 | |
|---|
| 80 | <{section name=i loop=$images}> |
|---|
| 81 | <tr align="center"> |
|---|
| 82 | <td><input type="hidden" name="image_id[]" value="<{$images[i].id}>" /><{$images[i].nicename}></td> |
|---|
| 83 | <td><img src="<{$images[i].src}>" alt="" /></td> |
|---|
| 84 | <td><{$images[i].mimetype}></td> |
|---|
| 85 | <td><a href="#" onclick="javascript:appendCode('<{$images[i].lxcode}>');"><img src="<{$xoops_url}>/images/alignleft.gif" alt="Left" /></a> <a href="#" onclick="javascript:appendCode('<{$images[i].xcode}>');"><img src="<{$xoops_url}>/images/aligncenter.gif" alt="Center" /></a> <a href="#" onclick="javascript:appendCode('<{$images[i].rxcode}>');"><img src="<{$xoops_url}>/images/alignright.gif" alt="Right" /></a></td> |
|---|
| 86 | </tr> |
|---|
| 87 | <{/section}> |
|---|
| 88 | </table> |
|---|
| 89 | |
|---|
| 90 | <{/if}> |
|---|
| 91 | |
|---|
| 92 | <div id="pagenav"><{$pagenav}></div> |
|---|
| 93 | |
|---|
| 94 | <div id="footer"> |
|---|
| 95 | <input value="<{$lang_close}>" type="button" onclick="javascript:window.close();" /> |
|---|
| 96 | </div> |
|---|
| 97 | |
|---|
| 98 | </body> |
|---|
| 99 | </html> |
|---|