ManageSmileys.template.php 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544
  1. <?php
  2. /**
  3. * Simple Machines Forum (SMF)
  4. *
  5. * @package SMF
  6. * @author Simple Machines
  7. * @copyright 2012 Simple Machines
  8. * @license http://www.simplemachines.org/about/smf/license.php BSD
  9. *
  10. * @version 2.1 Alpha 1
  11. */
  12. // Editing the smiley sets.
  13. function template_editsets()
  14. {
  15. global $context, $settings, $options, $scripturl, $txt, $modSettings;
  16. echo '
  17. <div id="admincenter">';
  18. template_show_list('smiley_set_list');
  19. echo '
  20. <br />
  21. <div class="cat_bar">
  22. <h3 class="catbg">', $txt['smiley_sets_latest'], '</h3>
  23. </div>
  24. <div class="windowbg">
  25. <div class="content">
  26. <div id="smileysLatest">', $txt['smiley_sets_latest_fetch'], '</div>
  27. </div>
  28. </div>
  29. </div>
  30. <br class="clear" />
  31. <script type="text/javascript"><!-- // --><![CDATA[
  32. window.smfForum_scripturl = "', $scripturl, '";
  33. window.smfForum_sessionid = "', $context['session_id'], '";
  34. window.smfForum_sessionvar = "', $context['session_var'], '";
  35. // ]]></script>';
  36. if (empty($modSettings['disable_smf_js']))
  37. echo '
  38. <script type="text/javascript" src="', $scripturl, '?action=viewsmfile;filename=latest-smileys.js"></script>';
  39. echo '
  40. <script type="text/javascript"><!-- // --><![CDATA[
  41. function smfSetLatestSmileys()
  42. {
  43. if (typeof(window.smfLatestSmileys) != "undefined")
  44. setInnerHTML(document.getElementById("smileysLatest"), window.smfLatestSmileys);';
  45. if (!empty($context['selected_set']))
  46. echo '
  47. changeSet("', $context['selected_set'], '");';
  48. if (!empty($context['selected_smiley']))
  49. echo '
  50. loadSmiley(', $context['selected_smiley'], ');';
  51. echo '
  52. }';
  53. echo '
  54. smfSetLatestSmileys();';
  55. echo '
  56. // ]]></script>';
  57. }
  58. // Modifying a smiley set.
  59. function template_modifyset()
  60. {
  61. global $context, $settings, $options, $scripturl, $txt, $modSettings;
  62. echo '
  63. <div id="admincenter">
  64. <form action="', $scripturl, '?action=admin;area=smileys;sa=editsets" method="post" accept-charset="', $context['character_set'], '">
  65. <div class="cat_bar">
  66. <h3 class="catbg">
  67. ', $context['current_set']['is_new'] ? $txt['smiley_set_new'] : $txt['smiley_set_modify_existing'], '
  68. </h3>
  69. </div>';
  70. // If this is an existing set, and there are still un-added smileys - offer an import opportunity.
  71. if (!empty($context['current_set']['can_import']))
  72. {
  73. echo '
  74. <div class="information">
  75. ', $context['current_set']['can_import'] == 1 ? $txt['smiley_set_import_single'] : $txt['smiley_set_import_multiple'], ' <a href="', $scripturl, '?action=admin;area=smileys;sa=import;set=', $context['current_set']['id'], ';', $context['session_var'], '=', $context['session_id'], '">', $txt['here'], '</a> ', $context['current_set']['can_import'] == 1 ? $txt['smiley_set_to_import_single'] : $txt['smiley_set_to_import_multiple'], '
  76. </div>';
  77. }
  78. echo '
  79. <div class="windowbg">
  80. <div class="content">
  81. <dl class="settings">
  82. <dt>
  83. <strong><label for="smiley_sets_name">', $txt['smiley_sets_name'], '</label>: </strong>
  84. </dt>
  85. <dd>
  86. <input type="text" name="smiley_sets_name" id="smiley_sets_name" value="', $context['current_set']['name'], '" class="input_text" />
  87. </dd>
  88. <dt>
  89. <strong><label for="smiley_sets_path">', $txt['smiley_sets_url'], '</label>: </strong>
  90. </dt>
  91. <dd>
  92. ', $modSettings['smileys_url'], '/';
  93. if ($context['current_set']['id'] == 'default')
  94. echo '<strong>default</strong><input type="hidden" name="smiley_sets_path" id="smiley_sets_path" value="default" />';
  95. elseif (empty($context['smiley_set_dirs']))
  96. echo '
  97. <input type="text" name="smiley_sets_path" id="smiley_sets_path" value="', $context['current_set']['path'], '" class="input_text" /> ';
  98. else
  99. {
  100. echo '
  101. <select name="smiley_sets_path" id="smiley_sets_path">';
  102. foreach ($context['smiley_set_dirs'] as $smiley_set_dir)
  103. echo '
  104. <option value="', $smiley_set_dir['id'], '"', $smiley_set_dir['current'] ? ' selected="selected"' : '', $smiley_set_dir['selectable'] ? '' : ' disabled="disabled"', '>', $smiley_set_dir['id'], '</option>';
  105. echo '
  106. </select> ';
  107. }
  108. echo '
  109. /..
  110. </dd>
  111. <dt>
  112. <strong><label for="smiley_sets_default">', $txt['smiley_set_select_default'], '</label>: </strong>
  113. </dt>
  114. <dd>
  115. <input type="checkbox" name="smiley_sets_default" id="smiley_sets_default" value="1"', $context['current_set']['selected'] ? ' checked="checked"' : '', ' class="input_check" />
  116. </dd>';
  117. // If this is a new smiley set they have the option to import smileys already in the directory.
  118. if ($context['current_set']['is_new'] && !empty($modSettings['smiley_enable']))
  119. echo '
  120. <dt>
  121. <strong><label for="smiley_sets_import">', $txt['smiley_set_import_directory'], '</label>: </strong>
  122. </dt>
  123. <dd>
  124. <input type="checkbox" name="smiley_sets_import" id="smiley_sets_import" value="1" class="input_check" />
  125. </dd>';
  126. echo '
  127. </dl>
  128. <hr class="hrcolor" />
  129. <input type="submit" name="smiley_save" value="', $txt['smiley_sets_save'], '" class="button_submit" />
  130. <br class="clear_right" />
  131. </div>
  132. </div>
  133. <input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />
  134. <input type="hidden" name="', $context['admin-mss_token_var'], '" value="', $context['admin-mss_token'], '" />
  135. <input type="hidden" name="set" value="', $context['current_set']['id'], '" />
  136. </form>
  137. </div>
  138. <br class="clear" />';
  139. }
  140. // Editing an individual smiley
  141. function template_modifysmiley()
  142. {
  143. global $context, $settings, $options, $scripturl, $txt, $modSettings;
  144. echo '
  145. <div id="admincenter">
  146. <form action="', $scripturl, '?action=admin;area=smileys;sa=editsmileys" method="post" accept-charset="', $context['character_set'], '" name="smileyForm" id="smileyForm">
  147. <div class="cat_bar">
  148. <h3 class="catbg">', $txt['smiley_modify_existing'], '</h3>
  149. </div>
  150. <div class="windowbg">
  151. <div class="content">
  152. <dl class="settings">
  153. <dt>
  154. <strong>', $txt['smiley_preview'], ': </strong>
  155. </dt>
  156. <dd>
  157. <img src="', $modSettings['smileys_url'], '/', $modSettings['smiley_sets_default'], '/', $context['current_smiley']['filename'], '" id="preview" alt="" /> (', $txt['smiley_preview_using'], ': <select name="set" onchange="updatePreview();">';
  158. foreach ($context['smiley_sets'] as $smiley_set)
  159. echo '
  160. <option value="', $smiley_set['path'], '"', $context['selected_set'] == $smiley_set['path'] ? ' selected="selected"' : '', '>', $smiley_set['name'], '</option>';
  161. echo '
  162. </select>)
  163. </dd>
  164. <dt>
  165. <strong><label for="smiley_code">', $txt['smileys_code'], '</label>: </strong>
  166. </dt>
  167. <dd>
  168. <input type="text" name="smiley_code" id="smiley_code" value="', $context['current_smiley']['code'], '" class="input_text" />
  169. </dd>
  170. <dt>
  171. <strong><label for="smiley_filename">', $txt['smileys_filename'], '</label>: </strong>
  172. </dt>
  173. <dd>';
  174. if (empty($context['filenames']))
  175. echo '
  176. <input type="text" name="smiley_filename" id="smiley_filename" value="', $context['current_smiley']['filename'], '" class="input_text" />';
  177. else
  178. {
  179. echo '
  180. <select name="smiley_filename" id="smiley_filename" onchange="updatePreview();">';
  181. foreach ($context['filenames'] as $filename)
  182. echo '
  183. <option value="', $filename['id'], '"', $filename['selected'] ? ' selected="selected"' : '', '>', $filename['id'], '</option>';
  184. echo '
  185. </select>';
  186. }
  187. echo '
  188. </dd>
  189. <dt>
  190. <strong><label for="smiley_description">', $txt['smileys_description'], '</label>: </strong>
  191. </dt>
  192. <dd>
  193. <input type="text" name="smiley_description" id="smiley_description" value="', $context['current_smiley']['description'], '" class="input_text" />
  194. </dd>
  195. <dt>
  196. <strong><label for="smiley_location">', $txt['smileys_location'], '</label>: </strong>
  197. </dt>
  198. <dd>
  199. <select name="smiley_location" id="smiley_location">
  200. <option value="0"', $context['current_smiley']['location'] == 0 ? ' selected="selected"' : '', '>
  201. ', $txt['smileys_location_form'], '
  202. </option>
  203. <option value="1"', $context['current_smiley']['location'] == 1 ? ' selected="selected"' : '', '>
  204. ', $txt['smileys_location_hidden'], '
  205. </option>
  206. <option value="2"', $context['current_smiley']['location'] == 2 ? ' selected="selected"' : '', '>
  207. ', $txt['smileys_location_popup'], '
  208. </option>
  209. </select>
  210. </dd>
  211. </dl>
  212. <hr class="hrcolor" />
  213. <input type="submit" name="smiley_save" value="', $txt['smileys_save'], '" class="button_submit" />
  214. <input type="submit" name="deletesmiley" value="', $txt['smileys_delete'], '" onclick="return confirm(\'', $txt['smileys_delete_confirm'], '\');" class="button_submit" />
  215. <br class="clear_right" />
  216. </div>
  217. </div>
  218. <input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />
  219. <input type="hidden" name="smiley" value="', $context['current_smiley']['id'], '" />
  220. </form>
  221. </div>
  222. <br class="clear" />
  223. <script type="text/javascript"><!-- // --><![CDATA[
  224. function updatePreview()
  225. {
  226. var currentImage = document.getElementById("preview");
  227. currentImage.src = "', $modSettings['smileys_url'], '/" + document.forms.smileyForm.set.value + "/" + document.forms.smileyForm.smiley_filename.value;
  228. }
  229. // ]]></script>';
  230. }
  231. // Adding a new smiley.
  232. function template_addsmiley()
  233. {
  234. global $context, $settings, $options, $scripturl, $txt, $modSettings;
  235. echo '
  236. <div id="admincenter">
  237. <form action="', $scripturl, '?action=admin;area=smileys;sa=addsmiley" method="post" accept-charset="', $context['character_set'], '" name="smileyForm" id="smileyForm" enctype="multipart/form-data">
  238. <div class="cat_bar">
  239. <h3 class="catbg">', $txt['smileys_add_method'], '</h3>
  240. </div>
  241. <div class="windowbg">
  242. <div class="content">
  243. <ul class="reset">
  244. <li>
  245. <label for="method-existing"><input type="radio" onclick="switchType();" name="method" id="method-existing" value="existing" checked="checked" class="input_radio" /> ', $txt['smileys_add_existing'], '</label>
  246. </li>
  247. <li>
  248. <label for="method-upload"><input type="radio" onclick="switchType();" name="method" id="method-upload" value="upload" class="input_radio" /> ', $txt['smileys_add_upload'], '</label>
  249. </li>
  250. </ul>
  251. <br />
  252. <fieldset id="ex_settings">
  253. <dl class="settings">
  254. <dt>
  255. <img src="', $modSettings['smileys_url'], '/', $modSettings['smiley_sets_default'], '/', $context['filenames'][0]['id'], '" id="preview" alt="" />
  256. </dt>
  257. <dd>
  258. ', $txt['smiley_preview_using'], ': <select name="set" onchange="updatePreview();selectMethod(\'existing\');">
  259. ';
  260. foreach ($context['smiley_sets'] as $smiley_set)
  261. echo '
  262. <option value="', $smiley_set['path'], '"', $context['selected_set'] == $smiley_set['path'] ? ' selected="selected"' : '', '>', $smiley_set['name'], '</option>';
  263. echo '
  264. </select>
  265. </dd>
  266. <dt>
  267. <strong><label for="smiley_filename">', $txt['smileys_filename'], '</label>: </strong>
  268. </dt>
  269. <dd>';
  270. if (empty($context['filenames']))
  271. echo '
  272. <input type="text" name="smiley_filename" id="smiley_filename" value="', $context['current_smiley']['filename'], '" onchange="selectMethod(\'existing\');" class="input_text" />';
  273. else
  274. {
  275. echo '
  276. <select name="smiley_filename" id="smiley_filename" onchange="updatePreview();selectMethod(\'existing\');">';
  277. foreach ($context['filenames'] as $filename)
  278. echo '
  279. <option value="', $filename['id'], '"', $filename['selected'] ? ' selected="selected"' : '', '>', $filename['id'], '</option>';
  280. echo '
  281. </select>';
  282. }
  283. echo '
  284. </dd>
  285. </dl>
  286. </fieldset>
  287. <fieldset id="ul_settings" style="display: none;">
  288. <dl class="settings">
  289. <dt>
  290. <strong>', $txt['smileys_add_upload_choose'], ':</strong><br />
  291. <span class="smalltext">', $txt['smileys_add_upload_choose_desc'], '</span>
  292. </dt>
  293. <dd>
  294. <input type="file" name="uploadSmiley" id="uploadSmiley" onchange="selectMethod(\'upload\');" class="input_file" />
  295. </dd>
  296. <dt>
  297. <strong><label for="sameall">', $txt['smileys_add_upload_all'], ':</label></strong>
  298. </dt>
  299. <dd>
  300. <input type="checkbox" name="sameall" id="sameall" checked="checked" class="input_check" onclick="swapUploads(); selectMethod(\'upload\');" />
  301. </dd>
  302. </dl>
  303. </fieldset>
  304. <dl id="uploadMore" style="display: none;" class="settings">';
  305. foreach ($context['smiley_sets'] as $smiley_set)
  306. echo '
  307. <dt>
  308. ', $txt['smileys_add_upload_for1'], ' <strong>', $smiley_set['name'], '</strong> ', $txt['smileys_add_upload_for2'], ':
  309. </dt>
  310. <dd>
  311. <input type="file" name="individual_', $smiley_set['name'], '" onchange="selectMethod(\'upload\');" class="input_file" />
  312. </dd>';
  313. echo '
  314. </dl>
  315. </div>
  316. </div>
  317. <br class="clear" />
  318. <div class="cat_bar">
  319. <h3 class="catbg">', $txt['smiley_new'], '</h3>
  320. </div>
  321. <div class="windowbg">
  322. <div class="content">
  323. <dl class="settings">
  324. <dt>
  325. <strong><label for="smiley_code">', $txt['smileys_code'], '</label>: </strong>
  326. </dt>
  327. <dd>
  328. <input type="text" name="smiley_code" id="smiley_code" value="" class="input_text" />
  329. </dd>
  330. <dt>
  331. <strong><label for="smiley_description">', $txt['smileys_description'], '</label>: </strong>
  332. </dt>
  333. <dd>
  334. <input type="text" name="smiley_description" id="smiley_description" value="" class="input_text" />
  335. </dd>
  336. <dt>
  337. <strong><label for="smiley_location">', $txt['smileys_location'], '</label>: </strong>
  338. </dt>
  339. <dd>
  340. <select name="smiley_location" id="smiley_location">
  341. <option value="0" selected="selected">
  342. ', $txt['smileys_location_form'], '
  343. </option>
  344. <option value="1">
  345. ', $txt['smileys_location_hidden'], '
  346. </option>
  347. <option value="2">
  348. ', $txt['smileys_location_popup'], '
  349. </option>
  350. </select>
  351. </dd>
  352. </dl>
  353. <hr class="hrcolor" />
  354. <input type="submit" name="smiley_save" value="', $txt['smileys_save'], '" class="button_submit" />
  355. <br class="clear_right" />
  356. </div>
  357. </div>
  358. <input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />
  359. </form>
  360. </div>
  361. <br class="clear" />';
  362. }
  363. // Ordering smileys.
  364. function template_setorder()
  365. {
  366. global $context, $settings, $options, $scripturl, $txt, $modSettings;
  367. echo '
  368. <div id="admincenter">';
  369. foreach ($context['smileys'] as $location)
  370. {
  371. echo '
  372. <form action="', $scripturl, '?action=admin;area=smileys;sa=editsmileys" method="post" accept-charset="', $context['character_set'], '">
  373. <div class="cat_bar">
  374. <h3 class="catbg">', $location['title'], '</h3>
  375. </div>
  376. <div class="information">
  377. ', $location['description'], '
  378. </div>
  379. <div class="windowbg">
  380. <div class="content">
  381. <strong>', empty($context['move_smiley']) ? $txt['smileys_move_select_smiley'] : $txt['smileys_move_select_destination'], '...</strong><br />';
  382. foreach ($location['rows'] as $row)
  383. {
  384. if (!empty($context['move_smiley']))
  385. echo '
  386. <a href="', $scripturl, '?action=admin;area=smileys;sa=setorder;location=', $location['id'], ';source=', $context['move_smiley'], ';row=', $row[0]['row'], ';reorder=1;', $context['session_var'], '=', $context['session_id'], '"><img src="', $settings['images_url'], '/smiley_select_spot.png" alt="', $txt['smileys_move_here'], '" /></a>';
  387. foreach ($row as $smiley)
  388. {
  389. if (empty($context['move_smiley']))
  390. echo '<a href="', $scripturl, '?action=admin;area=smileys;sa=setorder;move=', $smiley['id'], '"><img src="', $modSettings['smileys_url'], '/', $modSettings['smiley_sets_default'], '/', $smiley['filename'], '" style="padding: 2px; border: 0px solid black;" alt="', $smiley['description'], '" /></a>';
  391. else
  392. echo '<img src="', $modSettings['smileys_url'], '/', $modSettings['smiley_sets_default'], '/', $smiley['filename'], '" style="padding: 2px; border: ', $smiley['selected'] ? '2px solid red' : '0px solid black', ';" alt="', $smiley['description'], '" /><a href="', $scripturl, '?action=admin;area=smileys;sa=setorder;location=', $location['id'], ';source=', $context['move_smiley'], ';after=', $smiley['id'], ';reorder=1;', $context['session_var'], '=', $context['session_id'], '" title="', $txt['smileys_move_here'], '"><img src="', $settings['images_url'], '/smiley_select_spot.png" alt="', $txt['smileys_move_here'], '" /></a>';
  393. }
  394. echo '
  395. <br />';
  396. }
  397. if (!empty($context['move_smiley']))
  398. echo '
  399. <a href="', $scripturl, '?action=admin;area=smileys;sa=setorder;location=', $location['id'], ';source=', $context['move_smiley'], ';row=', $location['last_row'], ';reorder=1;', $context['session_var'], '=', $context['session_id'], '"><img src="', $settings['images_url'], '/smiley_select_spot.png" alt="', $txt['smileys_move_here'], '" /></a>';
  400. echo '
  401. </div>
  402. </div>
  403. <input type="hidden" name="reorder" value="1" />
  404. </form>
  405. <br />';
  406. }
  407. echo '
  408. </div>
  409. <br class="clear" />';
  410. }
  411. // Editing Message Icons
  412. function template_editicons()
  413. {
  414. global $context, $settings, $options, $scripturl, $txt, $modSettings;
  415. template_show_list('message_icon_list');
  416. }
  417. // Editing an individual message icon
  418. function template_editicon()
  419. {
  420. global $context, $settings, $options, $scripturl, $txt, $modSettings;
  421. echo '
  422. <div id="admincenter">
  423. <form action="', $scripturl, '?action=admin;area=smileys;sa=editicon;icon=', $context['new_icon'] ? '0' : $context['icon']['id'], '" method="post" accept-charset="', $context['character_set'], '">
  424. <div class="cat_bar">
  425. <h3 class="catbg">
  426. ', $context['new_icon'] ? $txt['icons_new_icon'] : $txt['icons_edit_icon'], '
  427. </h3>
  428. </div>
  429. <div class="windowbg">
  430. <div class="content">
  431. <dl class="settings">';
  432. if (!$context['new_icon'])
  433. echo '
  434. <dt>
  435. <strong>', $txt['smiley_preview'], ': </strong>
  436. </dt>
  437. <dd>
  438. <img src="', $context['icon']['image_url'], '" alt="', $context['icon']['title'], '" />
  439. </dd>';
  440. echo '
  441. <dt>
  442. <strong><label for="icon_filename">', $txt['smileys_filename'], '</label>: </strong><br /><span class="smalltext">', $txt['icons_filename_all_png'], '</span>
  443. </dt>
  444. <dd>
  445. <input type="text" name="icon_filename" id="icon_filename" value="', !empty($context['icon']['filename']) ? $context['icon']['filename'] . '.gif' : '', '" class="input_text" />
  446. </dd>
  447. <dt>
  448. <strong><label for="icon_description">', $txt['smileys_description'], '</label>: </strong>
  449. </dt>
  450. <dd>
  451. <input type="text" name="icon_description" id="icon_description" value="', !empty($context['icon']['title']) ? $context['icon']['title'] : '', '" class="input_text" />
  452. </dd>
  453. <dt>
  454. <strong><label for="icon_board_select">', $txt['icons_board'], '</label>: </strong>
  455. </dt>
  456. <dd>
  457. <select name="icon_board" id="icon_board_select">
  458. <option value="0"', empty($context['icon']['board_id']) ? ' selected="selected"' : '', '>', $txt['icons_edit_icons_all_boards'], '</option>';
  459. foreach ($context['categories'] as $category)
  460. {
  461. echo '
  462. <optgroup label="', $category['name'], '">';
  463. foreach ($category['boards'] as $board)
  464. echo '
  465. <option value="', $board['id'], '"', $board['selected'] ? ' selected="selected"' : '', '>', $board['child_level'] > 0 ? str_repeat('==', $board['child_level'] - 1) . '=&gt;' : '', ' ', $board['name'], '</option>';
  466. echo '
  467. </optgroup>';
  468. }
  469. echo '
  470. </select>
  471. </dd>
  472. <dt>
  473. <strong><label for="icon_location">', $txt['smileys_location'], '</label>: </strong>
  474. </dt>
  475. <dd>
  476. <select name="icon_location" id="icon_location">
  477. <option value="0"', empty($context['icon']['after']) ? ' selected="selected"' : '', '>', $txt['icons_location_first_icon'], '</option>';
  478. // Print the list of all the icons it can be put after...
  479. foreach ($context['icons'] as $id => $data)
  480. if (empty($context['icon']['id']) || $id != $context['icon']['id'])
  481. echo '
  482. <option value="', $id, '"', !empty($context['icon']['after']) && $id == $context['icon']['after'] ? ' selected="selected"' : '', '>', $txt['icons_location_after'], ': ', $data['title'], '</option>';
  483. echo '
  484. </select>
  485. </dd>
  486. </dl>';
  487. if (!$context['new_icon'])
  488. echo '
  489. <input type="hidden" name="icon" value="', $context['icon']['id'], '" />';
  490. echo '
  491. <hr class="hrcolor" />
  492. <input type="submit" name="icons_save" value="', $txt['smileys_save'], '" class="button_submit" />
  493. <input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />
  494. <br class="clear_right" />
  495. </div>
  496. </div>
  497. </form>
  498. </div>
  499. <br class="clear" />';
  500. }
  501. ?>