📄 flash_modify.tpl.php
字号:
<html>
<head>
<title>系统后台</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<link href="../../images/admin/public.css" rel="stylesheet" type="text/css" />
<link href="../../images/admin/style.css" rel="stylesheet" type="text/css" />
<script src="<?php echo $this->basedir;?>js/jquery.js" language="javascript"></script>
<script language="javascript">
$(document).ready(function() {
$("#ta tr").mouseover(function(){
$(this).addClass("over");
});
$("#ta tr").mouseout(function(){
$(this).removeClass("over");
});
$("#ta tr:even").addClass("double");
$('#mostrar').click(function(){$('#sh').toggle();});
/*全选*/
$("#checkall").click(function() {
$("input[@name='id[]']").each(function() {
$(this).attr("checked", $('#checkall').attr('checked'));
});
});
});
function checkSubmit(){
var obj = document.form1;
if (obj.picture.value == ''){
alert('请选择上传文件!')
obj.picture.focus();
return false;
}
document.getElementById('btn').disabled=true;
return true;
}
function delfile(o, filename){
var parent = o.parentNode;
parent.innerHTML = '<input name="picture" type="file" id="picture" /><input name="delfile" type="hidden" id="delfile" value="'+filename+'" />';
}
</script>
<body>
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr align="center" valign="top">
<td width="*" align="center" valign="top">
<!-- ######### begin ######### -->
<div class="Block">
<div class="BlockBar">修改幻灯片资料</div>
<form action="<?php echo $this->installdir;?>?mod=flash&action=modify" method="post" enctype="multipart/form-data" name="form1" id="form1" onsubmit="return checkSubmit();">
<table cellspacing="1" cellpadding="4" class="tab">
<tr class="row">
<td width="14%" class="align-right">标题:</td>
<td>
<input name="title" type="text" id="title" value="<?php echo $this->modify['title'];?>" size="30" maxlength="100" />
* 限100个字符 </td>
</tr>
<tr class="row">
<td class="align-right">图片:</td>
<td> <?php
if ($this->modify['picture']){?>
<img src="<?php echo $this->basedir;?>
<?php echo $this->modify['picture'];?>" width="100" />
<input name="delete" type="button" value="更新图片" onclick="delfile(this, '<?php echo base64_encode(strrev($this->modify['picture']));?>')" /><?php }else{?>
<input name="picture" type="file" id="picture" /><?php }?>
*</td>
</tr>
<tr class="row">
<td class="align-right">链接:</td>
<td><input name="link" type="text" id="link" value="<?php echo $this->modify['link'];?>" size="30" /></td>
</tr>
<tr class="row">
<td class="align-right">状态:</td>
<td><input name="locked" type="radio" class="radio" value="0" <?php if($this->modify['locked'] == 0) echo 'checked="checked"';?> />
已审核
<input name="locked" type="radio" class="radio" value="1" <?php if($this->modify['locked'] == 1) echo 'checked="checked"';?> />
已禁用</td>
</tr>
<tr class="row">
<td class="align-right"> </td>
<td><input type="submit" class="btn" value=" 修 改 " id="btn" /> <input type="button" class="btn" value=" 返回上一页 " onclick="history.back()" /></td>
</tr>
<input type="hidden" name="id" value="<?php echo $this->modify['id'];?>" />
</table></form>
</div>
<div id="App-Version-Prompt" style="display:none;">
<div class="space"></div>
<div class="Block">
<div class="BlockBar">版本更新信息</div>
<div class="BlockContent" id="App-Version-Prompt-Body" style="padding:20px 5px 20px 5px; text-align:center; background:#FFFFCC;">loading...</div>
</div>
</div>
<!-- ########## end ########## -->
</td>
</tr>
</table>
<?php
echo $this->render('copyright');
?>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -