www.gusucode.com > Tatter Tools 0.961 SE GB2312 简体中文版 > upload/admin/setting_emoticon.php
<? include("../inc_global.php"); include("../inc_function.php"); check_authority(); if ($mode == "modify") { if ($emoticon_enable == "true") $emoticon->e_enable = 1; else $emoticon->e_enable = 0; if (trim($emoticon_skin_name) != $emoticon->e_skin_name) { $emoticon->e_skin_name = $emoticon_skin_name; $emoticon->set_db_emoticon_all_set(); } else $emoticon->set_db_emoticon_enable(); header("Location: setting_emoticon.php"); exit; } admin_pop_header(""); ?> <head> <meta http-equiv="Content-Type" content="text/html; charset=GB2312"> <meta name="keywords" content="TT,TatterTools,Skin,php"> <meta name="description" content="Meyu,梦游,华人中文网"> <meta name="generator" content="TatterTools中文BLOG"> <meta name="MSSmartTagsPreventParsing" content="TRUE"> <meta http-equiv="MSThemeCompatible" content="Yes"> </head> <script type="text/javascript"> function onclick_reflect(form) { form.submit(); } </script> <style type="text/css"> <!-- .ev { width: 192px; } --> </style> <form method="post" name="emoticon_listview" action="<?=$PHP_SELF?>"> <input type="hidden" name="mode" value="modify"> <table width="480" style="margin:6 0 3 0"> <tr> <td width="24" align="right"><img src="../images/num_emoticon.gif" height="17" alt=""></td> <td width="9"><img src="../images/ver_01.gif" width="9" height="17" alt=""></td> <td><img src="../images/cap_e.gif" alt="" width="122" height="17"></td> </tr> </table> <? print_content_line(); ?> <table width="480" class="content_back1" cellpadding="0" cellspacing="0"> <tr> <td width="230" height="150" style="padding:15 10 15 15"> <div style="width:230; border:solid;border-width:1pt;border-color:#848484"> <?=$emoticon->e_str_html?> </div> </td> <td> <table width="100%" height="100%" cellspacing="0"> <tr> <td height="20" colspan="2" style="padding:7 0 0 0">表情风格模板</td> </tr> <tr> <td colspan="2" valign="top" style="padding:0 0 15 0"><select name="emoticon_skin_name" size="7" class="ev"> <? $dh = @opendir($emoticon->e_r_path); while($dh && false !== ($folder = readdir($dh))) { if ($folder == "." || $folder == "..") continue; if (is_file($emoticon->e_r_path.$folder)) continue; ?> <option value="<?=$folder?>" <? if ($emoticon->e_skin_name == $folder) print "selected"; ?> > <?=$folder?> </option> <? } closedir($dh); ?> </select></td> </tr> <tr> <td width="24" height="29" nowrap style="padding:0 0 15 0"><input name="emoticon_enable" type="checkbox" value="true" <? if ($emoticon->e_enable == 1) print "checked"; ?>></td> <td width="870" nowrap style="padding:0 0 15 0">采用表情转义</td> </tr> </table> </td> </tr> </table> <? print_content_line(); ?> <table cellpadding="0" cellspacing="0" width="100%"> <tr> <td height="35" align="right" style="padding-right:13"> <img class="ib" src="../images/b_reflect.gif" width="68" height="17" onclick="onclick_reflect(emoticon_listview)" style="margin-right:5" alt=""><img class="ib" src="../images/b_close.gif" width="53" height="17" onclick="window.close();" alt=""></td> </tr> </table> </form> <? admin_pop_footer(); ?>