📄 popup_stylesheet.tpl.php
字号:
<?php// -----------------------------------------------------------------------// This file is part of AROUNDMe// // Copyright (C) 2003-2007 Barnraiser// http://www.barnraiser.org/// info@barnraiser.org// // This program is free software: you can redistribute it and/or modify// it under the terms of the GNU General Public License as published by// the Free Software Foundation, either version 3 of the License, or// (at your option) any later version.// // This program is distributed in the hope that it will be useful,// but WITHOUT ANY WARRANTY; without even the implied warranty of// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the// GNU General Public License for more details.// // You should have received a copy of the GNU General Public License// along with this program; see the file COPYING.txt. If not, see// <http://www.gnu.org/licenses/>// -----------------------------------------------------------------------?><!DOCTYPE htmlPUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title><?php echo $lang['hdr_page_title'];?></title> <style type="text/css"> <!-- @import url(<?php echo $template_path;?>css/aroundme.css); --> </style> <!--[if IE]> <style type="text/css"> @import url(<?php echo $template_path;?>css/aroundme-IE.css); </style> <![endif]--> <?php if (isset($update_mother)) { ?> <script type="text/javascript"> window.opener.location.reload(true); </script> <?php }?></head><body><div id="header_container"> <div class="logo" style="float:left;"> <img src="<?php echo $template_path;?>img/flower.png" width="30" height="30" border="0" alt="<?php echo $lang['alt_flower_logo'];?>" /><br /> </div> <div class="menu"> <?php $link_css = ""; if (!isset($display)) { $link_css = " class=\"highlight\""; } ?> <a href="popup_stylesheet.php?ws=<?php echo $_REQUEST['ws'];?>"<?php echo $link_css;?>><?php echo $lang['href_simple_editor'];?></a> | <?php $link_css = ""; if (isset($display) && $display == "expert") { $link_css = " class=\"highlight\""; } ?> <a href="popup_stylesheet.php?ws=<?php echo $_REQUEST['ws'];?>&view=expert"<?php echo $link_css;?>><?php echo $lang['href_expert_editor'];?></a> | <a href="#" onclick="javascript:self.close();"><?php echo $lang['sub_close'];?></a> <br /> </div></div> <div id="body_container" style="top:10px;"> <form action="popup_stylesheet.php<?php if (isset($display) && $display == "expert") { echo "?view=expert";}?>" method="POST"> <input type="hidden" name="ws" value="<?php echo $_REQUEST['ws'];?>" /> <div id="am_core_area" style="margin:10px;"> <div class="box" style="height:100%"> <?php if (isset($display) && $display == "expert") { ?> <input type="hidden" name="mode" value="expert" /> <input type="hidden" name="webspace_css_simple" value="<?php if (isset($webspace['style_simple'])) { echo $webspace['style_simple'];}?>" /> <input type="hidden" name="style_dir_name" value="<?php if (isset($style_dir_name)) { echo $style_dir_name;}?>" /> <p> <label for="id_webspace_css"><?php echo $lang['txt_expert_editor_intro'];?></label><br /> </p> <p> <textarea name="webspace_css_expert" id="id_webspace_css" cols="50" rows="14" style="width:100%;height:380px;"><?php if (isset($webspace['style_expert'])) { echo $webspace['style_expert'];}?></textarea> </p> <p align="right"> <input type="submit" name="update_webspace_css" value="<?php echo $lang['sub_save'];?>" class="input_submit" /><br /> </p> <?php } else { ?> <input type="hidden" name="mode" value="simple" /> <input type="hidden" name="webspace_css_expert" value="<?php if (isset($webspace['style_expert'])) { echo $webspace['style_expert'];}?>" /> <p> <label for="id_webspace_css"><?php echo $lang['txt_simple_editor_intro'];?></label><br /> </p> <div id="themes" style="height:380px; width:310px; overflow-y:scroll; overflow-x:hidden; border: 1px solid silver; padding-left:10px; padding-top:10px;"> <?php if (!empty($styles)) { ?> <table cellspacing="0" cellpadding="0" border="0" width="280"> <tr> <td style="border: 1px solid black;"> <span style="float:right; padding:6px;"> <input type="radio" name="style_dir_name" value="none" style="margin:2px;" checked="checked" /> </span> <span style="padding:6px;"> <?php echo $lang['txt_no_style'];?><br /> </span> </td> </tr> <tr> <td> <img src="<?php echo $template_path;?>img/pixel.png" height="10" width="1" alt="" /><br /> </td> </tr> <?php foreach ($styles as $key => $i): ?> <tr> <td style="border: 1px solid black;"> <img src="<?php echo $template_path;?>themes/<?php echo $i['name'];?>/thumb.png" style="border-bottom: 1px solid black;" onclick="javascript:setStyleRadio('<?php echo $i['name'];?>');" /><br /> <span style="float:right; padding:6px;"> <?php $checked = ""; if (isset($style_dir_name) && $style_dir_name == $i['name']) { $checked = " checked=\"checked\""; } ?> <input type="radio" name="style_dir_name" id="style_dir_id_<?php echo $i['name'];?>" value="<?php echo $i['name'];?>" style="margin:2px;"<?php echo $checked;?> /> </span> <span style="padding:6px;"> <?php echo $i['title'];?><br /> </span> <a name="style_anchor_<?php echo $i['name'];?>"></a> <?php if (isset($style_dir_name) && $style_dir_name == $i['name']) { ?> <script type="text/javascript"> window.location = window.location + "#style_anchor_<?php echo $i['name'];?>"; </script> <?php }?> </td> </tr> <tr> <td> <img src="<?php echo $template_path;?>img/pixel.png" height="10" width="1" alt="" /><br /> </td> </tr> <?php endforeach; ?> </table> <script type="text/javascript"> function setStyleRadio (radioname) { document.getElementById('style_dir_id_'+radioname).checked = true; } </script> <?php }?> </div> <p align="right"> <input type="submit" name="update_webspace_css" value="<?php echo $lang['sub_save'];?>" class="input_submit" /><br /> </p> <?php }?> </div> </div> </form></div><script type="text/javascript">//<![CDATA[ var element = document.getElementById('id_webspace_css'); element.scrollTop = element.scrollHeight;//]]></script></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -