📄 flink_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 language="javascript">
function checkSubmit(){
var obj = document.form1;
if (obj.usertype.value == 'all'){
alert('请选择消费类型!')
obj.usertype.focus();
return false;
}
if (obj.usergroup.value == 'all'){
alert('请选择卡权限!')
obj.usergroup.focus();
return false;
}
if (isNaN(parseInt(obj.num.value))){
alert('卡张数必须为数字!')
obj.num.focus();
return false;
}
document.getElementById('btn').disabled=true;
return true;
}
function delfile(o, filename){
var parent = o.parentNode;
parent.innerHTML = '<input name="logo" type="file" id="logo" /><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>
<table cellspacing="1" cellpadding="4" class="tab">
<form action="<?php echo $this->installdir;?>?mod=flink&action=modify" method="post" enctype="multipart/form-data" name="form1" id="form1" onsubmit="return checkSubmit();">
<tr class="row">
<td width="14%" class="align-right">站点名:</td>
<td>
<input name="sitename" type="text" id="sitename" value="<?php echo $this->modify['sitename'];?>" />
* 限100个字符 </td>
</tr>
<tr class="row">
<td class="align-right">站点描述:</td>
<td><input name="description" type="text" id="description" value="<?php echo $this->modify['description'];?>" />
* 50个字符内</td>
</tr>
<tr class="row">
<td class="align-right">站点链接:</td>
<td><input name="url" type="text" id="url" value="<?php echo $this->modify['url'];?>" /></td>
</tr>
<tr class="row">
<td class="align-right">LOGO:</td>
<td>
<?php
if ($this->modify['logo']){?>
<img src="<?php echo $this->basedir;?>
<?php echo $this->modify['logo'];?>" width="60" />
<input name="delete" type="button" value="更新图片" onclick="delfile(this, '<?php echo base64_encode(strrev($this->modify['logo']));?>')" /><?php }else{?>
<input name="logo" type="file" id="logo" /><?php }?>
</td>
</tr>
<tr class="row">
<td class="align-right">状态:</td>
<td><input name="state" type="radio" class="radio" value="0" <?php if($this->modify['state'] == 0) echo 'checked="checked"';?> />
待审核
<input name="state" type="radio" class="radio" value="1" <?php if($this->modify['state'] == 1) echo 'checked="checked"';?> />
已审核
<input name="state" type="radio" class="radio" value="2" <?php if($this->modify['state'] == 2) 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'];?>" />
</form>
</table>
</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 + -