with a hat tip to Sublime Text 2 Shortcuts
⌘; | autocomplete |
⌘⌥B | instant replay |
⌘⌥E | search across all tabs |
with a hat tip to Sublime Text 2 Shortcuts
⌘; | autocomplete |
⌘⌥B | instant replay |
⌘⌥E | search across all tabs |
#!/bin/bash | |
## Rsync Cc@Snp | |
## function | |
default(){ | |
echo ' | |
##################### | |
1,创建服务端 | |
##################### | |
2,配置客户端 |
<script language="javascript" type="text/javascript" src="/js/jquery.js"></script> | |
<script language="javascript" type="text/javascript" src="/js/bootstrap.min.js"></script> | |
<script language="javascript" type="text/javascript" src="/js/jquery.dataTables.js"></script> | |
<script type="text/javascript" charset="utf-8" src="/js/ZeroClipboard.js"></script> | |
<script type="text/javascript" charset="utf-8" src="/js/TableTools.js"></script> | |
<script type="text/javascript" charset="utf-8" src="/js/dataTables.bootstrap.js"></script> | |
{#<link rel="StyleSheet" type="text/css" href="/css/bootstrap-responsive.min.css" />#} | |
{#<link rel="StyleSheet" type="text/css" href="/css/bootstrap.min.css" />#} | |
{#<link rel="StyleSheet" type="text/css" href="/css/style.css" />#} |
$(document).ready(function() { | |
$('#example').dataTable({ | |
? | |
"sScrollX": "100%", //表格的宽度 | |
"sScrollXInner": "110%", //表格的内容宽度 | |
"bScrollCollapse": true, //当显示的数据不足以支撑表格的默认的高度时,依然显示纵向的滚动条。(默认是false) | |
"bPaginate": true, //是否显示分页 | |
"bLengthChange": true, //每页显示的记录数 | |
"bFilter": true, //搜索栏 | |
"bSort": true, //是否支持排序功能 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> | |
<html> | |
<head> | |
<meta http-equiv="content-type" content="text/html; charset=utf-8" /> | |
<link rel="shortcut icon" type="image/ico" href="http://www.datatables.net/media/images/favicon.ico" /> | |
<title>DataTables example</title> | |
<style type="text/css"> | |
@import "../../media/css/demo_page.css"; @import "/media/css/header.ccss"; | |
@import "http://twitter.github.com/bootstrap/assets/css/bootstrap.css"; |
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# Create your views here. | |
import decimal | |
from django.db.models import Sum | |
from django.http import HttpResponse | |
import MySQLdb, json, datetime, time | |
from django.shortcuts import render_to_response | |
from django.template import RequestContext |
{% extends "base.html" %} | |
{% block content %} | |
<div id="nav" class="container nav"> | |
<div id="nav" class="container nav"> | |
<form class="form-inline " action="/billing/role_chart/{{ role }}/" method="POST" id="submitid"> | |
<label class="control-label" for="inputEmail">开始时间</label> | |
<input class="span3" type="text" onclick="WdatePicker({dateFmt:'yyyy-MM-dd H:m:s',readOnly:true})" | |
name="start_time" value="{{ start_time|default_if_none:'' }}" id="start_timeID" /> | |
<label class="control-label" for="inputEmail">结束时间</label> |
<script language="javascript" type="text/javascript"><!-- | |
/** | |
* 对Date的扩展,将 Date 转化为指定格式的String | |
* 月(M)、日(d)、12小时(h)、24小时(H)、分(m)、秒(s)、周(E)、季度(q) 可以用 1-2 个占位符 | |
* 年(y)可以用 1-4 个占位符,毫秒(S)只能用 1 个占位符(是 1-3 位的数字) | |
* eg: | |
* (new Date()).pattern("yyyy-MM-dd hh:mm:ss.S") ==> 2006-07-02 08:09:04.423 | |
* (new Date()).pattern("yyyy-MM-dd E HH:mm:ss") ==> 2009-03-10 二 20:09:04 | |
* (new Date()).pattern("yyyy-MM-dd EE hh:mm:ss") ==> 2009-03-10 周二 08:09:04 | |
* (new Date()).pattern("yyyy-MM-dd EEE hh:mm:ss") ==> 2009-03-10 星期二 08:09:04 |
<div class='example'> | |
<table cellspacing='0'> | |
<thead> | |
<tr class='odd'> | |
<th>Title</th> | |
<th>One</th> | |
<th>Two</th> | |
<th>Three</th> | |
<th>Four</th> | |
<th>Row Total</th> |
<div class='example'> | |
<table cellspacing='0'> | |
<thead> | |
<tr class='odd'> | |
<th>Title</th> | |
<th>One</th> | |
<th>Two</th> | |
<th>Three</th> | |
<th>Four</th> | |
<th>Row Total</th> |