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

📄 car_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 src="<?php echo $this->basedir;?>js/calendar.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'));
		});
	});
	 $("#all").click(function() {
	 	$("input[@name='id[]']").each(function() {
			$(this).attr("checked", $('#all').attr('checked'));
		});
	});
});
</script>
<body>
<table border="0" cellspacing="0" cellpadding="0" width="100%">
  <tr align="center" valign="top">
    <td width="*" align="right" valign="top">
	<!-- ######### begin ######### -->
      <div class="Block">

        <div class="BlockBar">未使用充值卡</div>
		
        <form id="form1" name="form1" method="post" action="<?php echo $this->installdir;?>?mod=car&action=delete">
        <table border="0" cellpadding="4" cellspacing="1" class="tab" id="ta">
		
          <tr class="sub">
		  	<td width="10%" class="align-center">编号</td>
            <td width="12%" class="align-center">卡号</td>
            <td width="12%" class="align-center">卡密码</td>
            <td width="8%" class="align-center">类型</td>
            <td width="9%" class="align-center">面值</td>
            <td width="8%" class="align-center">价格</td>
            <td width="7%" class="align-center">权限</td>
            <td width="12%" class="align-center">发行日期</td>
            <td width="11%" class="align-center">有效期</td>
            <td width="11%" class="align-center"><input name="checkall" type="checkbox" class="checkbox" id="checkall" value="checkbox" />
              全选</td>
          </tr>
		  <?php
		  if (count($this->car)>0){
		  foreach($this->car as $row){?>
          <tr class="row">
		  <td class="align-center"><?php echo $row['id'];?></td>
            <td class="align-center"><?php echo $row['carid'];?></td>
            <td class="align-center"><?php echo $row['carpwd'];?></td>
            <td class="align-center"><?php echo $row['usertype'] ? '包月' : '计点';?></td>
            <td class="align-center"><?php echo $row['usertype'] ? $row['usercount'].'天' : $row['usercount'].'点';?></td>
            <td class="align-center"><?php echo $row['money'];?></td>
            <td class="align-center"><?php echo $row['title'];?></td>
            <td class="align-center"><?php echo date('Y-m-d', $row['addtime']);?></td>
            <td class="align-center"><?php echo date('Y-m-d', $row['lifetime']);?></td>
            <td class="align-center">
              <input name="id[]" type="checkbox" class="checkbox" id="id[]" value="<?php echo $row['id'];?>" />
            
            <a href="<?php echo $this->installdir;?>?mod=car&action=delete&id=<?php echo $row['id'];?>">删除</a></td>
          </tr>
		  <?php
		  	}
		  }else{
		  	echo '<tr class="row align-center"><td colspan="11">没有找到任何记录!</td></tr>';
		  }?>
        </table>
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td><?php echo $this->printPage;?>
             <div class="form-handle"><input name="all" type="checkbox" class="checkbox" id="all" value="checkbox" />全选 <input name="Submit" type="submit" value=" 删 除 " class="button" /> 
             </div></td>
          </tr>
        </table>
		</form>
	   <div class="BlockBar">未使用充值卡检索</div>
	    <table border="0" cellpadding="4" cellspacing="1" class="tab">
		<form id="form2" name="form2" method="post" action="<?php echo $this->installdir;?>?mod=car&action=index&do=search">
          <tr class="row">
            <td width="15%" class="align-right">卡类型:</td>
            <td width="85%"><select name="usertype" id="usertype">
              <option value="all" <?php if ($_REQUEST['usertype'] === 'all') echo 'selected';?> >全部</option>
              <option value="1" <?php if ((int)$_REQUEST['usertype'] === 1) echo 'selected';?>>包月</option>
              <option value="0" <?php if (is_numeric($_REQUEST['usertype']) && (int)$_REQUEST['usertype'] == 0) echo 'selected';?>>计点</option>
            </select>
            </td>
          </tr>
          <tr class="row">
            <td class="align-right">卡权限:</td>
            <td><select name="usergroup" id="usergroup">
              <option value="all">全部</option><?php echo $this->usergroup;?>
            </select>
            </td>
          </tr>
          <tr class="row">
            <td class="align-right">发行日期:</td>
            <td><input name="stime" type="text" class="time" id="stime" onClick="vodcms_date(event,this,this)" value="<?php echo $_REQUEST['stime'];?>" />
              <input name="etime" type="text" class="time" id="etime" onClick="vodcms_date(event,this,this)" value="<?php echo $_REQUEST['etime'];?>" /></td>
          </tr>
          <tr class="row">
            <td class="align-right">关键词:</td>
            <td><input name="keyword" type="text" id="keyword" value="<?php echo urldecode($_REQUEST['keyword']);?>" />
              <input name="type" type="radio" class="radio" value="carid" checked="checked" />
              卡号码
              <input name="type" type="radio" class="radio" value="admin" />
              发行人</td>
          </tr>
          <tr class="row">
            <td class="align-right">&nbsp;</td>
            <td><input name="" type="submit" class="btn" value=" 搜 索 " />&nbsp;<input name="Submit2" type="button" class="btn" onclick="location.href='<?php echo $this->installdir;?>?mod=excel&action=index&export=<?php echo $this->sql;?>'" value="导出当前数据至Excel" /></td>
          </tr>
		</form>
        </table>
      </div>
    </td>
  </tr>
</table>
<?php
echo $this->render('copyright');
?>
</body>
</html>

⌨️ 快捷键说明

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