⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 admin.tpl.php

📁 一款开源的sns系统源码 安装简单
💻 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/>// -----------------------------------------------------------------------?><form action="index.php?ws=<?php echo $_REQUEST['ws'];?>&amp;t=admin&amp;c=poll" method="POST"><input type="hidden" name="poll_id" value="<?php if (isset($poll['poll_id'])) { echo $poll['poll_id'];}?>" /><div id="am_core_area">	<table cellpadding="0" cellspacing="0" border="0" width="100%">		<tr>			<td width="240" valign="top">				<div class="box">					<h1><?php echo $lang['hdr_poll'];?></h1>										<p>						<?php echo $lang['txt_edit_poll'];?><br />					</p>						<ul>						<li><a href="index.php?ws=<?php echo $_REQUEST['ws'];?>&amp;t=connect"><?php echo $lang['href_back_to_start'];?></a></li>					</ul>				</div>			</td>			<td width="30" style="border-right: 1px solid #333">				<img src="<?php echo $template_path;?>img/pixel.png" width="30" height="1" border="0" alt="" /><br />			</td>			<td width="40">				<img src="<?php echo $template_path;?>img/pixel.png" width="40" height="1" border="0" alt="" /><br />			</td>			<td valign="top">				<?php				if (isset($poll)) {				?>					<h1><?php echo $lang['hdr_edit_poll'];?></h1>					<p>						<label for="id_question"><?php echo $lang['txt_poll_question'];?></label>						<textarea id="id_question" name="poll_question" cols="30" rows="2"><?php if (isset($poll['poll_question'])) { echo $poll['poll_question'];}?></textarea><br />					</p>					<table border="0" cellspacing="0" cellpadding="2">						<?php						foreach ($poll['options'] as $key => $i):						?>						<tr>							<td>								<label for="id_option<?php echo ($key+1);?>"><?php echo $lang['txt_option']." ".($key+1);?></label>								<input type="text" id="id_option<?php echo ($key+1);?>" name="poll_options[<?php echo $key;?>][body]" size="25" value="<?php if (isset($i['option_body'])) { echo $i['option_body'];}?>" /><br />							</td>							<td>								<label for="id_position<?php echo ($key+1);?>"><?php echo $lang['txt_position'];?></label>								<input type="text" id="id_position<?php echo ($key+1);?>" name="poll_options[<?php echo $key;?>][order]" size="3" value="<?php if (isset($i['option_order'])) { echo $i['option_order'];}?>" /><br />							</td>						</tr>						<?php						endforeach;						?>					</table>					<p align="right">						<input type="submit" name="update_poll" value="<?php echo $lang['sub_save'];?>" class="input_submit" /><br />					</p>					<?php					if (!empty($poll['poll_id'])) {					?>					<p>						<i><?php echo $lang['txt_block_poll'];?> &lt;AM_PLUGIN_POLL block="poll" id="<?php echo $poll['poll_id'];?>"&gt;</i><br />					</p>					<?php }?>				<?php				}				else { // we list polls				?>				<h1><?php echo $lang['hdr_polls'];?></h1>				<?php				if (isset($polls)) {				?>				<table cellspacing="0" cellpadding="2" border="0" width="100%">					<?php					foreach ($polls as $key => $i):										?>					<tr>						<td valign="top">							<a href="index.php?ws=<?php echo $webspace['webspace_id'];?>&amp;t=admin&amp;c=poll&amp;poll_id=<?php echo $i['poll_id'];?>"><?php echo $i['poll_question'];?></a><br />						</td>					</tr>					<?php					endforeach;					?>				</table>				<?php }?>								<p align="right">					<a href="index.php?ws=<?php echo $webspace['webspace_id'];?>&amp;t=admin&amp;c=poll&amp;add=1"><?php echo $lang['href_add_poll'];?></a><br />				</p>				<?php }?>			</td>		</tr>	</table></div></form>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -