23 if (!defined(
"XOOPS_ROOT_PATH")) { die(
"XOOPS root path not defined"); }
26 include_once XOOPS_ROOT_PATH.
"/modules/system/constants.php";
42 echo
'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">';
43 echo
'<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="' .
_LANGCODE .
'" lang="' .
_LANGCODE .
'">';
46 <title>{#xoopsimagemanager_dlg.dialog_title}</title>
47 <script type=
"text/javascript" src=
"../../tiny_mce_popup.js"></script>
48 <script type=
"text/javascript" src=
"../../utils/mctabs.js"></script>
49 <script type=
"text/javascript" src=
"../../utils/form_utils.js"></script>
50 <script type=
"text/javascript" src=
"../../utils/validate.js"></script>
51 <script type=
"text/javascript" src=
"js/xoopsimagemanager.js"></script>
52 <link href=
"css/xoopsimagemanager.css" rel=
"stylesheet" type=
"text/css" />
53 <base target=
"_self" />
56 <body
id=
"xoopsimagemanager" style=
"display: none">
57 <
form onsubmit=
"XoopsimagemanagerDialog.insert();return false;" action=
"#">
60 <li
id=
"general_tab" class=
"current"><span><a href=
"javascript:mcTabs.displayTab('general_tab','general_panel');" onmousedown=
"return false;">{#xoopsimagemanager_dlg.tab_general}</a></span></li>
61 <li
id=
"appearance_tab"><span><a href=
"javascript:mcTabs.displayTab('appearance_tab','appearance_panel');" onmousedown=
"return false;">{#xoopsimagemanager_dlg.tab_appearance}</a></span></li>
62 <li
id=
"advanced_tab"><span><a href=
"javascript:mcTabs.displayTab('advanced_tab','advanced_panel');" onmousedown=
"return false;">{#xoopsimagemanager_dlg.tab_advanced}</a></span></li>
66 <div
class=
"panel_wrapper">
67 <div
id=
"general_panel" class=
"panel current">
69 <legend>{#xoopsimagemanager_dlg.general}</legend>
70 <table
class=
"properties">
73 <label
id=
"srclabel" for=
"src">{#xoopsimagemanager_dlg.src}</label>
76 <table border=
"0" cellspacing=
"0" cellpadding=
"0">
79 <input name=
"src" type=
"text" id=
"src" value=
"" onchange=
"XoopsimagemanagerDialog.showPreviewImage(this.value);" />
82 <td
id=
"srcbrowsercontainer"> </td>
88 <td><label
for=
"src_list">{#xoopsimagemanager_dlg.image_list}</label></td>
89 <td><select
id=
"src_list" name=
"src_list" onchange=
"document.getElementById('src').value=this.options[this.selectedIndex].value;document.getElementById('alt').value=this.options[this.selectedIndex].text;document.getElementById('title').value=this.options[this.selectedIndex].text;XoopsimagemanagerDialog.showPreviewImage(this.options[this.selectedIndex].value);"></select></td>
92 <td
class=
"column1"><label
id=
"altlabel" for=
"alt">{#xoopsimagemanager_dlg.alt}</label></td>
93 <td colspan=
"2"><input
id=
"alt" name=
"alt" type=
"text" value=
"" /></td>
96 <td
class=
"column1"><label
id=
"titlelabel" for=
"title">{#xoopsimagemanager_dlg.title}</label></td>
97 <td colspan=
"2"><input
id=
"title" name=
"title" type=
"text" value=
"" /></td>
103 <legend>{#xoopsimagemanager_dlg.preview}</legend>
104 <div
id=
"prev"></div>
108 <div
id=
"appearance_panel" class=
"panel">
110 <legend>{#xoopsimagemanager_dlg.tab_appearance}</legend>
112 <table border=
"0" cellpadding=
"4" cellspacing=
"0">
114 <td
class=
"column1"><label
id=
"alignlabel" for=
"align">{#xoopsimagemanager_dlg.align}</label></td>
116 <select
id=
"align" name=
"align" onchange=
"XoopsimagemanagerDialog.updateStyle('align');XoopsimagemanagerDialog.changeAppearance();">
117 <option value=
"">{#not_set}</option>
118 <option value=
"baseline">{#xoopsimagemanager_dlg.align_baseline}</option>
119 <option value=
"top">{#xoopsimagemanager_dlg.align_top}</option>
120 <option value=
"middle">{#xoopsimagemanager_dlg.align_middle}</option>
121 <option value=
"bottom">{#xoopsimagemanager_dlg.align_bottom}</option>
122 <option value=
"text-top">{#xoopsimagemanager_dlg.align_texttop}</option>
123 <option value=
"text-bottom">{#xoopsimagemanager_dlg.align_textbottom}</option>
124 <option value=
"left">{#xoopsimagemanager_dlg.align_left}</option>
125 <option value=
"right">{#xoopsimagemanager_dlg.align_right}</option>
128 <td rowspan=
"6" valign=
"top">
129 <div
class=
"alignPreview">
130 <img
id=
"alignSampleImg" src=
"img/sample.gif" alt=
"{#xoopsimagemanager_dlg.example_img}" />
131 Lorem ipsum, Dolor sit amet, consectetuer adipiscing loreum ipsum edipiscing elit, sed diam
132 nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.Loreum ipsum
133 edipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam
140 <td
class=
"column1"><label
id=
"widthlabel" for=
"width">{#xoopsimagemanager_dlg.dimensions}</label></td>
142 <input name=
"width" type=
"text" id=
"width" value=
"" size=
"5" maxlength=
"5" class=
"size" onchange=
"XoopsimagemanagerDialog.changeHeight();" /> x
143 <input name=
"height" type=
"text" id=
"height" value=
"" size=
"5" maxlength=
"5" class=
"size" onchange=
"XoopsimagemanagerDialog.changeWidth();" /> px
150 <table border=
"0" cellpadding=
"0" cellspacing=
"0">
152 <td><input
id=
"constrain" type=
"checkbox" name=
"constrain" class=
"checkbox" /></td>
153 <td><label
id=
"constrainlabel" for=
"constrain">{#xoopsimagemanager_dlg.constrain_proportions}</label></td>
160 <td
class=
"column1"><label
id=
"vspacelabel" for=
"vspace">{#xoopsimagemanager_dlg.vspace}</label></td>
161 <td><input name=
"vspace" type=
"text" id=
"vspace" value=
"" size=
"3" maxlength=
"3" class=
"number" onchange=
"XoopsimagemanagerDialog.updateStyle('vspace');XoopsimagemanagerDialog.changeAppearance();" onblur=
"XoopsimagemanagerDialog.updateStyle('vspace');XoopsimagemanagerDialog.changeAppearance();" />
166 <td
class=
"column1"><label
id=
"hspacelabel" for=
"hspace">{#xoopsimagemanager_dlg.hspace}</label></td>
167 <td><input name=
"hspace" type=
"text" id=
"hspace" value=
"" size=
"3" maxlength=
"3" class=
"number" onchange=
"XoopsimagemanagerDialog.updateStyle('hspace');XoopsimagemanagerDialog.changeAppearance();" onblur=
"XoopsimagemanagerDialog.updateStyle('hspace');XoopsimagemanagerDialog.changeAppearance();" /></td>
171 <td
class=
"column1"><label
id=
"borderlabel" for=
"border">{#xoopsimagemanager_dlg.border}</label></td>
172 <td><input
id=
"border" name=
"border" type=
"text" value=
"" size=
"3" maxlength=
"3" class=
"number" onchange=
"XoopsimagemanagerDialog.updateStyle('border');XoopsimagemanagerDialog.changeAppearance();" onblur=
"XoopsimagemanagerDialog.updateStyle('border');XoopsimagemanagerDialog.changeAppearance();" /></td>
176 <td><label
for=
"class_list">{#class_name}</label></td>
177 <td><select
id=
"class_list" name=
"class_list"></select></td>
181 <td
class=
"column1"><label
id=
"stylelabel" for=
"style">{#xoopsimagemanager_dlg.style}</label></td>
182 <td colspan=
"2"><input
id=
"style" name=
"style" type=
"text" value=
"" onchange=
"XoopsimagemanagerDialog.changeAppearance();" /></td>
186 <td
class=
"column1"><label
id=
"classeslabel" for=
"classes">{#xoopsimagemanager_dlg.classes}</label></td>
187 <td colspan=
"2"><input
id=
"classes" name=
"classes" type=
"text" value=
"" onchange=
"selectByValue(this.form,'classlist',this.value,true);" /></td>
193 <div
id=
"advanced_panel" class=
"panel">
195 <legend>{#xoopsimagemanager_dlg.swap_image}</legend>
197 <input type=
"checkbox" id=
"onmousemovecheck" name=
"onmousemovecheck" class=
"checkbox" onclick=
"XoopsimagemanagerDialog.setSwapImage(this.checked);" />
198 <label
id=
"onmousemovechecklabel" for=
"onmousemovecheck">{#xoopsimagemanager_dlg.alt_image}</label>
200 <table border=
"0" cellpadding=
"4" cellspacing=
"0" width=
"100%">
202 <td
class=
"column1"><label
id=
"onmouseoversrclabel" for=
"onmouseoversrc">{#xoopsimagemanager_dlg.mouseover}</label></td>
204 <table border=
"0" cellspacing=
"0" cellpadding=
"0">
207 <input
id=
"onmouseoversrc" name=
"onmouseoversrc" type=
"text" value=
"" />
210 <td
id=
"onmouseoversrccontainer"> </td>
216 <td><label
for=
"over_list">{#xoopsimagemanager_dlg.image_list}</label></td>
217 <td><select
id=
"over_list" name=
"over_list" onchange=
"document.getElementById('onmouseoversrc').value=this.options[this.selectedIndex].value;"></select></td>
220 <td
class=
"column1"><label
id=
"onmouseoutsrclabel" for=
"onmouseoutsrc">{#xoopsimagemanager_dlg.mouseout}</label></td>
222 <table border=
"0" cellspacing=
"0" cellpadding=
"0">
225 <input
id=
"onmouseoutsrc" name=
"onmouseoutsrc" type=
"text" value=
"" />
228 <td
id=
"onmouseoutsrccontainer"> </td>
234 <td><label
for=
"out_list">{#xoopsimagemanager_dlg.image_list}</label></td>
235 <td><select
id=
"out_list" name=
"out_list" onchange=
"document.getElementById('onmouseoutsrc').value=this.options[this.selectedIndex].value;"></select></td>
241 <legend>{#xoopsimagemanager_dlg.misc}</legend>
243 <table border=
"0" cellpadding=
"4" cellspacing=
"0">
245 <td
class=
"column1"><label
id=
"idlabel" for=
"id">{#xoopsimagemanager_dlg.id}</label></td>
246 <td><input
id=
"id" name=
"id" type=
"text" value=
"" /></td>
250 <td
class=
"column1"><label
id=
"dirlabel" for=
"dir">{#xoopsimagemanager_dlg.langdir}</label></td>
252 <select
id=
"dir" name=
"dir" onchange=
"XoopsimagemanagerDialog.changeAppearance();">
253 <option value=
"">{#not_set}</option>
254 <option value=
"ltr">{#xoopsimagemanager_dlg.ltr}</option>
255 <option value=
"rtl">{#xoopsimagemanager_dlg.rtl}</option>
261 <td
class=
"column1"><label
id=
"langlabel" for=
"lang">{#xoopsimagemanager_dlg.langcode}</label></td>
263 <input
id=
"lang" name=
"lang" type=
"text" value=
"" />
268 <td
class=
"column1"><label
id=
"usemaplabel" for=
"usemap">{#xoopsimagemanager_dlg.map}</label></td>
270 <input
id=
"usemap" name=
"usemap" type=
"text" value=
"" />
275 <td
class=
"column1"><label
id=
"longdesclabel" for=
"longdesc">{#xoopsimagemanager_dlg.long_desc}</label></td>
277 <table border=
"0" cellspacing=
"0" cellpadding=
"0">
279 <td><input
id=
"longdesc" name=
"longdesc" type=
"text" value=
"" /></td>
280 <td
id=
"longdesccontainer"> </td>
290 <div
class=
"mceActionPanel">
291 <div style=
"float: left">
292 <input type=
"button" id=
"insert" name=
"insert" value=
"{#insert}" onclick=
"XoopsimagemanagerDialog.insert();" />
295 <div style=
"float: right">
296 <input type=
"button" id=
"cancel" name=
"cancel" value=
"{#cancel}" onclick=
"tinyMCEPopup.close();" />
307 $html =
"<img title=\"{#xoopsimagebrowser.desc}\" class=\"xoopsimagebrowser\" src=\"img/xoopsimagemanager.png\"
308 onclick=\"javascript:XoopsImageBrowser('" . $inputname .
"');\" />\n";