| author | indvdum (gotoindvdum[at]gmail[dot]com) |
| Fri, 09 Mar 2012 16:11:37 +0400 | |
| changeset 12 | 898199d067e7 |
| parent 0 | ceef6d64c21d |
| permissions | -rw-r--r-- |
| indvdum@0 | 1 |
<!-- INCLUDE overall_header.html --> |
| indvdum@0 | 2 |
|
| indvdum@0 | 3 |
<a name="maincontent"></a> |
| indvdum@0 | 4 |
|
| indvdum@0 | 5 |
<!-- IF S_EDIT --> |
| indvdum@0 | 6 |
|
| indvdum@0 | 7 |
<script type="text/javascript" defer="defer"> |
| indvdum@0 | 8 |
// <![CDATA[ |
| indvdum@0 | 9 |
<!-- IF S_ADD_CODE --> |
| indvdum@0 | 10 |
|
| indvdum@0 | 11 |
var smiley = Array(); |
| indvdum@0 | 12 |
<!-- BEGIN smile --> |
| indvdum@0 | 13 |
smiley['{smile.SMILEY_URL}'] = Array();
|
| indvdum@0 | 14 |
smiley['{smile.SMILEY_URL}']['code'] = '{smile.CODE}';
|
| indvdum@0 | 15 |
smiley['{smile.SMILEY_URL}']['emotion'] = '{smile.EMOTION}';
|
| indvdum@0 | 16 |
smiley['{smile.SMILEY_URL}']['width'] = {smile.WIDTH};
|
| indvdum@0 | 17 |
smiley['{smile.SMILEY_URL}']['height'] = {smile.HEIGHT};
|
| indvdum@0 | 18 |
smiley['{smile.SMILEY_URL}']['order'] = {smile.ORDER};
|
| indvdum@0 | 19 |
<!-- END smile --> |
| indvdum@0 | 20 |
|
| indvdum@0 | 21 |
function update_image(newimage) |
| indvdum@0 | 22 |
{
|
| indvdum@0 | 23 |
var use_element = smiley[newimage]; |
| indvdum@0 | 24 |
|
| indvdum@0 | 25 |
document.getElementById('add_image_src').src = '{PHPBB_ROOT_PATH}{IMG_PATH}/' + encodeURI(newimage);
|
| indvdum@0 | 26 |
document.getElementById('add_code').value = use_element['code'];
|
| indvdum@0 | 27 |
document.getElementById('add_emotion').value = use_element['emotion'];
|
| indvdum@0 | 28 |
document.getElementById('add_width').value = use_element['width'];
|
| indvdum@0 | 29 |
document.getElementById('add_height').value = use_element['height'];
|
| indvdum@0 | 30 |
|
| indvdum@0 | 31 |
element = document.getElementById('add_order');
|
| indvdum@0 | 32 |
for (var i = 0; i < element.length; i++) |
| indvdum@0 | 33 |
{
|
| indvdum@0 | 34 |
if (element.options[i].value == use_element['order']) |
| indvdum@0 | 35 |
{
|
| indvdum@0 | 36 |
document.getElementById('add_order').options.selectedIndex = i;
|
| indvdum@0 | 37 |
} |
| indvdum@0 | 38 |
} |
| indvdum@0 | 39 |
} |
| indvdum@0 | 40 |
|
| indvdum@0 | 41 |
<!-- ENDIF --> |
| indvdum@0 | 42 |
|
| indvdum@0 | 43 |
|
| indvdum@0 | 44 |
function toggle_select(icon, display, select) |
| indvdum@0 | 45 |
{
|
| indvdum@0 | 46 |
var disp = document.getElementById('order_disp_' + select);
|
| indvdum@0 | 47 |
var nodisp = document.getElementById('order_no_disp_' + select);
|
| indvdum@0 | 48 |
disp.disabled = !display; |
| indvdum@0 | 49 |
nodisp.disabled = display; |
| indvdum@0 | 50 |
if (display) |
| indvdum@0 | 51 |
{
|
| indvdum@0 | 52 |
document.getElementById('order_' + select).selectedIndex = 0;
|
| indvdum@0 | 53 |
nodisp.className = 'disabled-options'; |
| indvdum@0 | 54 |
disp.className = ''; |
| indvdum@0 | 55 |
} |
| indvdum@0 | 56 |
else |
| indvdum@0 | 57 |
{
|
| indvdum@0 | 58 |
document.getElementById('order_' + select).selectedIndex = {S_ORDER_LIST_DISPLAY_COUNT};
|
| indvdum@0 | 59 |
disp.className = 'disabled-options'; |
| indvdum@0 | 60 |
nodisp.className = ''; |
| indvdum@0 | 61 |
} |
| indvdum@0 | 62 |
} |
| indvdum@0 | 63 |
// ]]> |
| indvdum@0 | 64 |
</script> |
| indvdum@0 | 65 |
|
| indvdum@0 | 66 |
<a href="{U_BACK}" style="float: {S_CONTENT_FLOW_END};">« {L_BACK}</a>
|
| indvdum@0 | 67 |
|
| indvdum@0 | 68 |
<h1>{L_TITLE}</h1>
|
| indvdum@0 | 69 |
|
| indvdum@0 | 70 |
<p>{L_EXPLAIN}</p>
|
| indvdum@0 | 71 |
|
| indvdum@0 | 72 |
<form id="acp_icons" method="post" action="{U_ACTION}">
|
| indvdum@0 | 73 |
|
| indvdum@0 | 74 |
<fieldset class="tabulated"> |
| indvdum@0 | 75 |
<legend>{L_TITLE}</legend>
|
| indvdum@0 | 76 |
|
| indvdum@0 | 77 |
<table cellspacing="1" id="smilies"> |
| indvdum@0 | 78 |
<thead> |
| indvdum@0 | 79 |
<tr> |
| indvdum@0 | 80 |
<th colspan="{COLSPAN}">{L_CONFIG}</th>
|
| indvdum@0 | 81 |
</tr> |
| indvdum@0 | 82 |
<!-- IF .items or S_ADD_CODE --> |
| indvdum@0 | 83 |
<tr class="row3"> |
| indvdum@0 | 84 |
<td>{L_URL}</td>
|
| indvdum@0 | 85 |
<td>{L_LOCATION}</td>
|
| indvdum@0 | 86 |
<!-- IF S_SMILIES --> |
| indvdum@0 | 87 |
<td>{L_SMILIES_CODE}</td>
|
| indvdum@0 | 88 |
<td>{L_SMILIES_EMOTION}</td>
|
| indvdum@0 | 89 |
<!-- ENDIF --> |
| indvdum@0 | 90 |
<td>{L_WIDTH}</td>
|
| indvdum@0 | 91 |
<td>{L_HEIGHT}</td>
|
| indvdum@0 | 92 |
<td>{L_DISPLAY_ON_POSTING}</td>
|
| indvdum@0 | 93 |
<!-- IF ID or S_ADD --> |
| indvdum@0 | 94 |
<td>{L_ORDER}</td>
|
| indvdum@0 | 95 |
<!-- ENDIF --> |
| indvdum@0 | 96 |
<!-- IF S_ADD --> |
| indvdum@0 | 97 |
<td>{L_ADD} <a href="#" onclick="marklist('smilies', 'add_img', true); return false;">({L_MARK_ALL})</a></td>
|
| indvdum@0 | 98 |
<!-- ENDIF --> |
| indvdum@0 | 99 |
</tr> |
| indvdum@0 | 100 |
</thead> |
| indvdum@0 | 101 |
<tbody> |
| indvdum@0 | 102 |
<!-- BEGIN items --> |
| indvdum@0 | 103 |
<!-- IF items.S_ROW_COUNT is even --><tr class="row1"><!-- ELSE --><tr class="row2"><!-- ENDIF --> |
| indvdum@0 | 104 |
|
| indvdum@0 | 105 |
<td style="text-align: center;"><img src="{items.IMG_SRC}" alt="" title="" /><input type="hidden" name="image[{items.IMG}]" value="1" /></td>
|
| indvdum@0 | 106 |
<td style="vertical-align: top;">[{items.IMG}]</td>
|
| indvdum@0 | 107 |
<!-- IF S_SMILIES --> |
| indvdum@0 | 108 |
<td><input class="text post" type="text" name="code[{items.IMG}]" value="{items.CODE}" size="10" maxlength="50" /></td>
|
| indvdum@0 | 109 |
<td><input class="text post" type="text" name="emotion[{items.IMG}]" value="{items.EMOTION}" size="10" maxlength="50" /></td>
|
| indvdum@0 | 110 |
<!-- ENDIF --> |
| indvdum@0 | 111 |
<td><input class="text post" type="text" size="3" name="width[{items.IMG}]" value="{items.WIDTH}" /></td>
|
| indvdum@0 | 112 |
<td><input class="text post" type="text" size="3" name="height[{items.IMG}]" value="{items.HEIGHT}" /></td>
|
| indvdum@0 | 113 |
<td> |
| indvdum@0 | 114 |
<input type="checkbox" class="radio" name="display_on_posting[{items.IMG}]"{items.POSTING_CHECKED} onclick="toggle_select('{items.A_IMG}', this.checked, '{items.S_ROW_COUNT}');"/>
|
| indvdum@0 | 115 |
<!-- IF items.S_ID --> |
| indvdum@0 | 116 |
<input type="hidden" name="id[{items.IMG}]" value="{items.ID}" />
|
| indvdum@0 | 117 |
<!-- ENDIF --> |
| indvdum@0 | 118 |
</td> |
| indvdum@0 | 119 |
<!-- IF ID or S_ADD --> |
| indvdum@0 | 120 |
<td><select id="order_{items.S_ROW_COUNT}" name="order[{items.IMG}]">
|
| indvdum@0 | 121 |
<optgroup id="order_disp_{items.S_ROW_COUNT}" label="{L_DISPLAY_POSTING}" <!-- IF not items.POSTING_CHECKED -->disabled="disabled" class="disabled-options" <!-- ENDIF -->>{S_ORDER_LIST_DISPLAY}</optgroup>
|
| indvdum@0 | 122 |
<optgroup id="order_no_disp_{items.S_ROW_COUNT}" label="{L_DISPLAY_POSTING_NO}" <!-- IF items.POSTING_CHECKED -->disabled="disabled" class="disabled-options" <!-- ENDIF -->>{S_ORDER_LIST_UNDISPLAY}</optgroup>
|
| indvdum@0 | 123 |
</select></td> |
| indvdum@0 | 124 |
<!-- ENDIF --> |
| indvdum@0 | 125 |
<!-- IF S_ADD --> |
| indvdum@0 | 126 |
<td><input type="checkbox" class="radio" name="add_img[{items.IMG}]" value="1" /></td>
|
| indvdum@0 | 127 |
<!-- ENDIF --> |
| indvdum@0 | 128 |
</tr> |
| indvdum@0 | 129 |
<!-- END items --> |
| indvdum@0 | 130 |
<!-- IF S_ADD_CODE --> |
| indvdum@0 | 131 |
<tr> |
| indvdum@0 | 132 |
<th colspan="{COLSPAN}">{L_ADD_SMILEY_CODE}</th>
|
| indvdum@0 | 133 |
</tr> |
| indvdum@0 | 134 |
<tr class="row1"> |
| indvdum@0 | 135 |
<td style="text-align: center;"><select name="add_image" id="add_image" onchange="update_image(this.options[selectedIndex].value);">{S_IMG_OPTIONS}</select></td>
|
| indvdum@0 | 136 |
<td style="vertical-align: top;"><img src="{IMG_SRC}" id="add_image_src" alt="" title="" /></td>
|
| indvdum@0 | 137 |
<td><input class="text post" type="text" name="add_code" id="add_code" value="{CODE}" size="10" maxlength="50" /></td>
|
| indvdum@0 | 138 |
<td><input class="text post" type="text" name="add_emotion" id="add_emotion" value="{EMOTION}" size="10" maxlength="50" /></td>
|
| indvdum@0 | 139 |
<td><input class="text post" type="text" size="3" name="add_width" id="add_width" value="{WIDTH}" /></td>
|
| indvdum@0 | 140 |
<td><input class="text post" type="text" size="3" name="add_height" id="add_height" value="{HEIGHT}" /></td>
|
| indvdum@0 | 141 |
<td><input type="checkbox" class="radio" name="add_display_on_posting" checked="checked" onclick="toggle_select('add', this.checked, 'add_order');"/></td>
|
| indvdum@0 | 142 |
<td><select id="order_add_order" name="add_order"> |
| indvdum@0 | 143 |
<optgroup id="order_disp_add_order" label="{L_DISPLAY_POSTING}">{S_ADD_ORDER_LIST_DISPLAY}</optgroup>
|
| indvdum@0 | 144 |
<optgroup id="order_no_disp_add_order" label="{L_DISPLAY_POSTING_NO}" disabled="disabled" class="disabled-options" >{S_ADD_ORDER_LIST_UNDISPLAY}</optgroup>
|
| indvdum@0 | 145 |
</select></td> |
| indvdum@0 | 146 |
<td><input type="checkbox" class="radio" name="add_additional_code" value="1" /></td> |
| indvdum@0 | 147 |
</tr> |
| indvdum@0 | 148 |
<!-- ENDIF --> |
| indvdum@0 | 149 |
<!-- ELSE --> |
| indvdum@0 | 150 |
<tr class="row3"> |
| indvdum@0 | 151 |
<td colspan="{COLSPAN}">{L_NO_ICONS}</td>
|
| indvdum@0 | 152 |
</tr> |
| indvdum@0 | 153 |
<!-- ENDIF --> |
| indvdum@0 | 154 |
</tbody> |
| indvdum@0 | 155 |
</table> |
| indvdum@0 | 156 |
|
| indvdum@0 | 157 |
<p class="submit-buttons"> |
| indvdum@0 | 158 |
<input class="button1" type="submit" id="submit" name="submit" value="{L_SUBMIT}" />
|
| indvdum@0 | 159 |
<input class="button2" type="reset" id="reset" name="reset" value="{L_RESET}" />
|
| indvdum@0 | 160 |
</p> |
| indvdum@0 | 161 |
{S_FORM_TOKEN}
|
| indvdum@0 | 162 |
</fieldset> |
| indvdum@0 | 163 |
</form> |
| indvdum@0 | 164 |
|
| indvdum@0 | 165 |
<!-- ELSEIF S_CHOOSE_PAK --> |
| indvdum@0 | 166 |
|
| indvdum@0 | 167 |
<a href="{U_BACK}" style="float: {S_CONTENT_FLOW_END};">« {L_BACK}</a>
|
| indvdum@0 | 168 |
|
| indvdum@0 | 169 |
<h1>{L_TITLE}</h1>
|
| indvdum@0 | 170 |
|
| indvdum@0 | 171 |
<p>{L_EXPLAIN}</p>
|
| indvdum@0 | 172 |
|
| indvdum@0 | 173 |
<form id="acp_icons" method="post" action="{U_ACTION}">
|
| indvdum@0 | 174 |
|
| indvdum@0 | 175 |
<fieldset> |
| indvdum@0 | 176 |
<legend>{L_IMPORT}</legend>
|
| indvdum@0 | 177 |
|
| indvdum@0 | 178 |
<!-- IF not S_PAK_OPTIONS --> |
| indvdum@0 | 179 |
<p>{L_NO_PAK_OPTIONS}</p>
|
| indvdum@0 | 180 |
|
| indvdum@0 | 181 |
<!-- ELSE --> |
| indvdum@0 | 182 |
<dl> |
| indvdum@0 | 183 |
<dt><label for="pak">{L_SELECT_PACKAGE}</label></dt>
|
| indvdum@0 | 184 |
<dd><select id="pak" name="pak">{S_PAK_OPTIONS}</select></dd>
|
| indvdum@0 | 185 |
</dl> |
| indvdum@0 | 186 |
<dt><label for="current">{L_CURRENT}</label><br /><span>{L_CURRENT_EXPLAIN}</span></dt>
|
| indvdum@0 | 187 |
<dd><label><input type="radio" class="radio" id="current" name="current" value="keep" checked="checked" /> {L_KEEP_ALL}</label>
|
| indvdum@0 | 188 |
<label><input type="radio" class="radio" name="current" value="replace" /> {L_REPLACE_MATCHES}</label>
|
| indvdum@0 | 189 |
<label><input type="radio" class="radio" name="current" value="delete" /> {L_DELETE_ALL}</label></dd>
|
| indvdum@0 | 190 |
</dl> |
| indvdum@0 | 191 |
|
| indvdum@0 | 192 |
<p class="quick"> |
| indvdum@0 | 193 |
<input class="button1" type="submit" id="import" name="import" value="{L_IMPORT_SUBMIT}" />
|
| indvdum@0 | 194 |
</p> |
| indvdum@0 | 195 |
<!-- ENDIF --> |
| indvdum@0 | 196 |
{S_FORM_TOKEN}
|
| indvdum@0 | 197 |
</fieldset> |
| indvdum@0 | 198 |
</form> |
| indvdum@0 | 199 |
|
| indvdum@0 | 200 |
<!-- ELSE --> |
| indvdum@0 | 201 |
|
| indvdum@0 | 202 |
<h1>{L_TITLE}</h1>
|
| indvdum@0 | 203 |
|
| indvdum@0 | 204 |
<p>{L_EXPLAIN}</p>
|
| indvdum@0 | 205 |
|
| indvdum@0 | 206 |
<!-- IF NOTICE --> |
| indvdum@0 | 207 |
<div class="successbox"> |
| indvdum@0 | 208 |
<h3>{L_NOTIFY}</h3>
|
| indvdum@0 | 209 |
<p>{NOTICE}</p>
|
| indvdum@0 | 210 |
</div> |
| indvdum@0 | 211 |
<!-- ENDIF --> |
| indvdum@0 | 212 |
|
| indvdum@0 | 213 |
<form id="acp_icons" method="post" action="{U_ACTION}">
|
| indvdum@0 | 214 |
|
| indvdum@0 | 215 |
<div style="text-align: right;"><a href="{U_IMPORT}">{L_IMPORT}</a> | <a href="{U_EXPORT}">{L_EXPORT}</a></div>
|
| indvdum@0 | 216 |
|
| indvdum@0 | 217 |
<fieldset class="tabulated"> |
| indvdum@0 | 218 |
|
| indvdum@0 | 219 |
<legend>{L_TITLE}</legend>
|
| indvdum@0 | 220 |
|
| indvdum@0 | 221 |
<table cellspacing="1"> |
| indvdum@0 | 222 |
<thead> |
| indvdum@0 | 223 |
<tr> |
| indvdum@0 | 224 |
<th>{L_TITLE}</th>
|
| indvdum@0 | 225 |
<!-- IF S_SMILIES --> |
| indvdum@0 | 226 |
<th>{L_CODE}</th>
|
| indvdum@0 | 227 |
<th>{L_EMOTION}</th>
|
| indvdum@0 | 228 |
<!-- ENDIF --> |
| indvdum@0 | 229 |
<th>{L_OPTIONS}</th>
|
| indvdum@0 | 230 |
</tr> |
| indvdum@0 | 231 |
</thead> |
| indvdum@0 | 232 |
<tbody> |
| indvdum@0 | 233 |
<!-- BEGIN items --> |
| indvdum@0 | 234 |
<!-- IF items.S_SPACER --> |
| indvdum@0 | 235 |
<tr> |
| indvdum@0 | 236 |
<td class="row3" colspan="{COLSPAN}" style="text-align: center;">{L_NOT_DISPLAYED}</td>
|
| indvdum@0 | 237 |
</tr> |
| indvdum@0 | 238 |
<!-- ENDIF --> |
| indvdum@0 | 239 |
<!-- IF items.S_ROW_COUNT is even --><tr class="row1"><!-- ELSE --><tr class="row2"><!-- ENDIF --> |
| indvdum@0 | 240 |
<td style="width: 85%; text-align: center;"><img src="{items.IMG_SRC}" width="{items.WIDTH}" height="{items.HEIGHT}" alt="{items.ALT_TEXT}" title="{items.ALT_TEXT}" /></td>
|
| indvdum@0 | 241 |
<!-- IF S_SMILIES --> |
| indvdum@0 | 242 |
<td style="text-align: center;">{items.CODE}</td>
|
| indvdum@0 | 243 |
<td style="text-align: center;">{items.EMOTION}</td>
|
| indvdum@0 | 244 |
<!-- ENDIF --> |
| indvdum@0 | 245 |
<td style="text-align: right; white-space: nowrap;"> |
| indvdum@0 | 246 |
<!-- IF items.S_FIRST_ROW and not PREVIOUS_PAGE -->{ICON_MOVE_UP_DISABLED}<!-- ELSE --><a href="{items.U_MOVE_UP}">{ICON_MOVE_UP}</a><!-- ENDIF -->
|
| indvdum@0 | 247 |
<!-- IF items.S_LAST_ROW and not NEXT_PAGE -->{ICON_MOVE_DOWN_DISABLED}<!-- ELSE --><a href="{items.U_MOVE_DOWN}">{ICON_MOVE_DOWN}</a><!-- ENDIF -->
|
| indvdum@0 | 248 |
<a href="{items.U_EDIT}">{ICON_EDIT}</a> <a href="{items.U_DELETE}">{ICON_DELETE}</a>
|
| indvdum@0 | 249 |
</td> |
| indvdum@0 | 250 |
</tr> |
| indvdum@0 | 251 |
<!-- BEGINELSE --> |
| indvdum@0 | 252 |
<tr class="row3"> |
| indvdum@0 | 253 |
<td colspan="{COLSPAN}">{L_ACP_NO_ITEMS}</td>
|
| indvdum@0 | 254 |
</tr> |
| indvdum@0 | 255 |
<!-- END items --> |
| indvdum@0 | 256 |
</tbody> |
| indvdum@0 | 257 |
</table> |
| indvdum@0 | 258 |
<div>{PAGINATION}</div>
|
| indvdum@0 | 259 |
<p class="quick"> |
| indvdum@0 | 260 |
<input class="button2" name="add" type="submit" value="{L_ICON_ADD}" /> <input class="button2" type="submit" name="edit" value="{L_ICON_EDIT}" />
|
| indvdum@0 | 261 |
</p> |
| indvdum@0 | 262 |
{S_FORM_TOKEN}
|
| indvdum@0 | 263 |
</fieldset> |
| indvdum@0 | 264 |
</form> |
| indvdum@0 | 265 |
|
| indvdum@0 | 266 |
<!-- ENDIF --> |
| indvdum@0 | 267 |
|
| indvdum@0 | 268 |
<!-- INCLUDE overall_footer.html --> |