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

📄 %%-16^%%-1645720750^roomlist.tpl.php

📁 flashget43的源代码 一个比较常用的下载程序
💻 PHP
字号:
<?php /* Smarty version 2.6.2, created on 2005-09-22 19:06:20         compiled from roomlist.tpl */ ?><?php $this->assign('title', 'Rooms');  $_smarty_tpl_vars = $this->_tpl_vars;$this->_smarty_include(array('smarty_include_tpl_file' => "top.tpl", 'smarty_include_vars' => array()));$this->_tpl_vars = $_smarty_tpl_vars;unset($_smarty_tpl_vars); ?><!-- transfer vars from php to javascript --><script type="text/javascript">var permanent = '<?php echo $this->_tpl_vars['room_permanent_post']; ?>';var ispublic = '<?php echo $this->_tpl_vars['room_public_post']; ?>';var name = '<?php echo $this->_tpl_vars['room_name_post']; ?>';var password = '<?php echo $this->_tpl_vars['room_password_post']; ?>';var selectstr = '<?php echo $this->_tpl_vars['room_order_post']; ?>';var optionstr = '<?php echo $this->_tpl_vars['room_option']; ?>';var hidden = '<?php echo $this->_tpl_vars['room_identification_post']; ?>';var option_count = <?php echo $this->_tpl_vars['rowcount']; ?>;var deleteroom = '<?php echo $this->_tpl_vars['room_delete_post']; ?>';var maxorder = '<?php echo $this->_tpl_vars['max_order_post']; ?>';</script><center>	<h4>Rooms</h4>	<a href="room.php">Add new room</a><br>	<br><?php if ($this->_tpl_vars['rooms']): ?>	<form id="roomlist" action="" method="post" enctype="multipart/form-data">		<table border="1">			<tr>				<th><a href="javascript:my_getbyid('sort').value = 'id'; my_getbyid('roomlist').submit()">id</a></th>				<th><a href="javascript:my_getbyid('sort').value = 'name'; my_getbyid('roomlist').submit()">name</a></th>				<th><a href="javascript:my_getbyid('sort').value = 'password'; my_getbyid('roomlist').submit()">password</a></th>				<th>public</th>				<th>permanent</th>				<th><a href="javascript:my_getbyid('sort').value = 'row_nr'; my_getbyid('roomlist').submit()">#</a></th>				<th>Bump up</th>				<th>Delete</th>			</tr><?php if (count($_from = (array)$this->_tpl_vars['rooms'])):    foreach ($_from as $this->_tpl_vars['room']):?>						<?php $this->assign('button_id', "bttn_".($this->_tpl_vars['room']['row_nr'])); ?>			<?php $this->assign('button_pass_id', "bttn_pass_".($this->_tpl_vars['room']['row_nr'])); ?>			<?php $this->assign('edit_id', ($this->_tpl_vars['room_name_post'])."[".($this->_tpl_vars['room']['row_nr'])."]"); ?>			<?php $this->assign('edit_pass_id', ($this->_tpl_vars['room_password_post'])."[".($this->_tpl_vars['room']['row_nr'])."]"); ?>			<?php $this->assign('on_click', "javascript: onbttnclick('".($this->_tpl_vars['button_id'])."','".($this->_tpl_vars['edit_id'])."');"); ?>			<?php $this->assign('on_click_pass', "javascript: onbttnclick('".($this->_tpl_vars['button_pass_id'])."','".($this->_tpl_vars['edit_pass_id'])."');"); ?>			<?php $this->assign('on_focus', "javascript: onnamefocus('".($this->_tpl_vars['button_id'])."','".($this->_tpl_vars['edit_id'])."');"); ?>			<?php $this->assign('on_focus_pass', "javascript: onnamefocus('".($this->_tpl_vars['button_pass_id'])."','".($this->_tpl_vars['edit_pass_id'])."');"); ?>			<?php $this->assign('on_change', "javascript: row_change(".($this->_tpl_vars['room']['row_nr']).");"); ?>			<?php $this->assign('on_change_pass', "javascript: row_change(".($this->_tpl_vars['room']['row_nr']).");"); ?>			<?php $this->assign('permanent_change', "javascript: perm_change(".($this->_tpl_vars['room']['row_nr']).");"); ?>			<tr>				<!-- Heater row -->				<td align="center">					<?php echo $this->_tpl_vars['room']['id']; ?>				</td>				<!-- Name row -->				<td align="center">					<input type="button" value="edit" id="<?php echo $this->_tpl_vars['button_id']; ?>" onclick="<?php echo $this->_tpl_vars['on_click']; ?>">					<input type="text" name="<?php echo $this->_tpl_vars['edit_id']; ?>" value="<?php echo $this->_tpl_vars['room']['name']; ?>" id="<?php echo $this->_tpl_vars['edit_id']; ?>" onchange="<?php echo $this->_tpl_vars['on_change']; ?>" onfocus="<?php echo $this->_tpl_vars['on_focus']; ?>" style="border: 0px;">				</td>								<!-- Password row -->				<td align="center">					<input type="button" value="edit" id="<?php echo $this->_tpl_vars['button_pass_id']; ?>" onclick="<?php echo $this->_tpl_vars['on_click_pass']; ?>">					<input type="text" name="<?php echo $this->_tpl_vars['edit_pass_id']; ?>" value="<?php echo $this->_tpl_vars['room']['password']; ?>" id="<?php echo $this->_tpl_vars['edit_pass_id']; ?>" onchange="<?php echo $this->_tpl_vars['on_change_pass']; ?>" onfocus="<?php echo $this->_tpl_vars['on_focus_pass']; ?>" style="border: 0px;">				</td>				<!-- ispublic row -->				<td align="center">				<input type="checkbox" name="<?php echo $this->_tpl_vars['room']['public_id']; ?>" id="<?php echo $this->_tpl_vars['room']['public_id']; ?>" onchange="<?php echo $this->_tpl_vars['on_change']; ?>" <?php echo $this->_tpl_vars['room']['ispublic']; ?>>				</td>				<!-- ispermanent row -->				<td align="center">				<input type="checkbox" name="<?php echo $this->_tpl_vars['room']['permanent_id']; ?>" id="<?php echo $this->_tpl_vars['room']['permanent_id']; ?>" onchange="<?php echo $this->_tpl_vars['permanent_change']; ?>" <?php echo $this->_tpl_vars['room']['ispermanent']; ?>>				<!-- order row -->				<td align="center">				<?php if ($this->_tpl_vars['room']['ispermanent']): ?>				<?php $this->assign('room_order_name', ($this->_tpl_vars['room_order_post'])."[".($this->_tpl_vars['room']['row_nr'])."]"); ?>				<select name=<?php echo $this->_tpl_vars['room_order_name']; ?> onchange="javascript: change(<?php echo $this->_tpl_vars['room']['row_nr']; ?>);" onfocus="javascript: focused(<?php echo $this->_tpl_vars['room']['row_nr']; ?>);">				<?php $this->assign('selected', ($this->_tpl_vars['room_option'])."[".($this->_tpl_vars['room']['row_nr'])."][".($this->_tpl_vars['room']['row_nr'])."]"); ?>				<?php if (count($_from = (array)$this->_tpl_vars['room']['ordersel'])):    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['ordersel']):?>				<option id="<?php echo $this->_tpl_vars['key']; ?>"				<?php if ($this->_tpl_vars['key'] == $this->_tpl_vars['selected']): ?>selected<?php endif; ?>				><?php echo $this->_tpl_vars['ordersel']; ?></option>				<?php endforeach; unset($_from); endif; ?>								</select>				<?php else: ?>				&nbsp;				<?php endif; ?>				</td>				<!-- bumper row -->				<td align="center">					<a href="javascript: bump_up(<?php echo $this->_tpl_vars['room']['row_nr']; ?>);">						<img src="bumper.gif" border="0" alt="Bump up">					</a>				</td>				<!-- delete row -->				<td align="center">					<input type="checkbox" name="<?php echo $this->_tpl_vars['room']['delete_id']; ?>" id="<?php echo $this->_tpl_vars['room']['delete_id']; ?>" onchange="<?php echo $this->_tpl_vars['on_change']; ?>">				</td>				<!-- this hidden input will show if user edited row -->					<input type="hidden" name="<?php echo $this->_tpl_vars['room']['hidden_id']; ?>" id="<?php echo $this->_tpl_vars['room']['hidden_id']; ?>" value=<?php echo $this->_tpl_vars['room']['id']; ?> disabled >			</tr><?php endforeach; unset($_from); endif; ?>		</table>		<br>		<br>		<input type="hidden" value="<?php echo $this->_tpl_vars['maxnumb']; ?>" name="<?php echo $this->_tpl_vars['max_order_post']; ?>">		<input type="submit" value="Submit All" name="submited" onclick="javascript: submit_form();">		<input type="hidden" id="sort" name="sort" value="none">				<br>		<br>You must re-load the chat (page refresh) and re-login to see room changes.	</form><?php else: ?>	No rooms found<?php endif; ?></center><?php $_smarty_tpl_vars = $this->_tpl_vars;$this->_smarty_include(array('smarty_include_tpl_file' => "bottom.tpl", 'smarty_include_vars' => array()));$this->_tpl_vars = $_smarty_tpl_vars;unset($_smarty_tpl_vars); ?>

⌨️ 快捷键说明

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