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

📄 flink_index.tpl.php

📁 a short sketch about linux syntex lines.
💻 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.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;
}
</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=add" 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" />
			     * 限100个字符				</td>
			  </tr>
			   <tr class="row">
			     <td class="align-right">站点描述:</td>
			     <td><input name="description" type="text" id="description" />
			     * 50个字符内</td>
	        </tr>
			   <tr class="row">
			     <td class="align-right">站点链接:</td>
			     <td><input name="url" type="text" id="url" /></td>
	        </tr>
			   <tr class="row">
			     <td class="align-right">LOGO:</td>
			     <td><input name="logo" type="file" id="logo" /></td>
	        </tr>
			   <tr class="row">
			     <td class="align-right">状态:</td>
			     <td><input name="state" type="radio" class="radio" value="0" />
			       待审核
		           <input name="state" type="radio" class="radio" value="1" checked="checked" />
		           已审核
		           <input name="state" type="radio" class="radio" value="2" />
		           已禁用</td>
	        </tr>
			   <tr class="row">
			     <td class="align-right">&nbsp;</td>
			     <td><input type="submit" class="btn" value=" 添 加 " id="btn" />&nbsp;<input type="button" class="btn" value=" 返回上一页 " onclick="history.back()" /></td>
	        </tr>
        </form>
        </table>
		<form id="form2" name="form2" method="post" action="<?php echo $this->installdir;?>flink/post/">
        <table width="100%" border="0" cellpadding="1" cellspacing="1" class="tab">
          <tr class="sub">
            <td width="10%" class="align-center">编号</td>
            <td width="26%" class="align-center">站点名</td>
            <td width="24%" class="align-center">链接</td>
            <td width="26%" class="align-center">LOGO</td>
            <td width="14%" class="align-center">
                <input name="checkall" type="checkbox" class="checkbox" id="checkall" value="checkbox" />
              全选
              
            </td>
          </tr>
		  <?php
		  foreach($this->rows as $row){?>
          <tr class="row">
            <td class="align-center"><?php echo $row['id'];?></td>
            <td class="align-center" title="<?php echo $row['description'];?>"><a href="<?php echo $this->installdir;?>?mod=flink&action=modify&id=<?php echo $row['id'];?>/"><?php echo $row['sitename'];?></a></td>
            <td class="align-center"><a href="<?php echo $row['url'];?>" target="_blank"><?php echo $row['url'];?></a></td>
            <td class="align-center"><?php if($row['logo']){?><img src="<?php echo $this->basedir.$row['logo'];?>" width="81" /><?php }?></td>
            <td class="align-center"><input name="id[]" type="checkbox" class="checkbox" id="id[]" value="<?php echo $row['id'];?>" />&nbsp;
              <a href="<?php echo $this->installdir;?>?mod=flink&action=delete&id=<?php echo $row['id'];?>" onclick="return confirm('确认删除吗')">删除</a>&nbsp;<?php if($row['state'] ==0 ){echo '<font color=red>待审核</font>';}elseif($row['state'] == 1){echo '已审核';}elseif($row['state'] == 2){echo '已禁用';};?></td>
          </tr>
		  <?php }?>
        </table>
        <table width="100%" border="0">
          <tr>
            <td><?php echo $this->printpage;?><div class="form-handle"><select name="action" id="action">
              <option value="1">审核</option>
              <option value="2">删除</option>
              <option value="3">禁用</option>
</select>
                <input name="Submit" type="submit" value="提交" />
</div></td>
          </tr>
        </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 + -