157 行
5.4 KiB
HTML
157 行
5.4 KiB
HTML
<#def title = "日历控件"/>
|
|
<#def keyword = "ZhiqimUI"/>
|
|
<#def desc = "日历控件是在输入框触发时展开一个年月日时分秒的日期界面,按日历格式显示出来,通过点击和选择得到要求的日期或时间。当前日历控件支持选择日期、选择日期+时间、选择日期+时分三种。"/>
|
|
<#def prevUrl = "button.htm"/>
|
|
<#def nextUrl = "checkInput.htm"/>
|
|
${zhiqim_com_head()}
|
|
${zhiqim_com_head_main()}
|
|
<script>
|
|
Z.onload(function()
|
|
{
|
|
Z(".example").each(function(elem)
|
|
{
|
|
Z(elem).next("td > pre").html(Z(elem).htmlt());
|
|
});
|
|
});
|
|
|
|
function onchangea()
|
|
{
|
|
}
|
|
</script>
|
|
${zhiqim_com_head_end()}
|
|
|
|
${zhiqim_com_mobileUI_scrollJs()}
|
|
${zhiqim_com_body()}
|
|
${zhiqim_com_topnav("ui")}
|
|
|
|
<!--容器开始 -->
|
|
<div id="container" class="container">
|
|
|
|
${zhiqim_com_container_ui("ZmUI", "form", "calendar")}
|
|
|
|
<!--主体-->
|
|
<div id="mainbody" class="mainbody">
|
|
|
|
${zhiqim_com_breadcrumb("UI", "ZmUI", "表单", "日历控件")}
|
|
|
|
<!-- content开始 -->
|
|
<div id="mobileUI_content" class="content">
|
|
|
|
<!-- 左侧详情 -->
|
|
<div class="mobileUI-left">
|
|
|
|
<#-- 标题 -->
|
|
<div class="z-relative-left z-w100p z-pd16 z-bg-blue z-px18 z-lh200p z-bold" style="border-left:5px solid #4bacc6">
|
|
<p class="z-text-blue">日历控件:</p>
|
|
<p class="z-color-333" style="text-indent:38px;">
|
|
日历控件是在输入框触发时展开一个年月日时分秒的日期界面,按日历格式显示出来,通过点击和选择得到要求的日期或时间。当前日历控件支持选择日期、选择日期+时间、选择日期+时分三种。
|
|
</p>
|
|
</div>
|
|
|
|
<#-- 一、日期选择器 -->
|
|
<div class="tutorial title">一、日期选择器</div>
|
|
|
|
<table class="z-table z-bordered z-pd10 z-bd-rd8">
|
|
<tr bgcolor="#f5f5f5">
|
|
<td width="20%">类型</td>
|
|
<td width="20%">事例</td>
|
|
<td width="*">代码</td>
|
|
</tr>
|
|
<tr>
|
|
<td>最简单的方式</td>
|
|
<td class="example"><input class="z-input" onfocus="Z.date(this);"></td>
|
|
<td><pre class="z-text-preline"></pre></td>
|
|
</tr>
|
|
<tr>
|
|
<td>有默认值</td>
|
|
<td class="example"><input class="z-input" onfocus="Z.date(this);" value="2015-04-11"></td>
|
|
<td><pre class="z-text-preline"></pre></td>
|
|
</tr>
|
|
<tr>
|
|
<td>有默认值和onchange方法</td>
|
|
<td class="example"><input class="z-input" onfocus="Z.date(this);" value="2015-04-11" onchange="alert('修改值为'+this.value)"></td>
|
|
<td><pre class="z-text-preline"></pre></td>
|
|
</tr>
|
|
</table>
|
|
|
|
<#-- 二、日期+时间选择器 -->
|
|
<div class="tutorial title">二、日期+时间选择器</div>
|
|
|
|
<table class="z-table z-bordered z-pd10 z-bd-rd8 z-lh150p">
|
|
<tr bgcolor="#f5f5f5">
|
|
<td width="20%">类型</td>
|
|
<td width="20%">未指定</td>
|
|
<td width="*">代码</td>
|
|
</tr>
|
|
<tr>
|
|
<td>最简单的方式</td>
|
|
<td class="example"><input class="z-input" onfocus="Z.datetime(this);"></td>
|
|
<td><pre class="z-text-preline"></pre></td>
|
|
</tr>
|
|
<tr>
|
|
<td>有默认值</td>
|
|
<td class="example"><input class="z-input" onfocus="Z.datetime(this);" value="2015-04-11 00:00:01"></td>
|
|
<td><pre class="z-text-preline"></pre></td>
|
|
</tr>
|
|
<tr>
|
|
<td>有默认值和onchange方法<br><input id="datetime_value" class="z-input z-w150"></td>
|
|
<td class="example"><input class="z-input" onfocus="Z.datetime(this);" value="2015-04-11 00:00:01" onchange="Z('#datetime_value').val(this.value);"></td>
|
|
<td><pre class="z-text-preline"></pre></td>
|
|
</tr>
|
|
</table>
|
|
|
|
<#-- 三、日期+时分选择器 -->
|
|
<div class="tutorial title">三、日期+时分选择器</div>
|
|
|
|
<table class="z-table z-bordered z-pd10 z-bd-rd8 z-lh150p">
|
|
<tr bgcolor="#f5f5f5">
|
|
<td width="30%">类型</td>
|
|
<td width="20%">未指定</td>
|
|
<td width="*">代码</td>
|
|
</tr>
|
|
<tr>
|
|
<td>最简单的方式</td>
|
|
<td class="example"><input class="z-input" onfocus="Z.datetimeNoSecond(this);"></td>
|
|
<td><pre class="z-text-preline"></pre></td>
|
|
</tr>
|
|
<tr>
|
|
<td>有默认值</td>
|
|
<td class="example"><input class="z-input" onfocus="Z.datetimeNoSecond(this);" value="2015-04-11 00:00:00"></td>
|
|
<td><pre class="z-text-preline"></pre></td>
|
|
</tr>
|
|
<tr>
|
|
<td>有默认值和onchange方法<br><input id="datehourminute_value" class="z-input z-w150"></td>
|
|
<td class="example"><input class="z-input" onfocus="Z.datetimeNoSecond(this);" value="2015-04-11 00:00:00" onchange="Z('#datehourminute_value').val(this.value);"></td>
|
|
<td><pre class="z-text-preline"></pre></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
|
|
<!-- 右侧demo ZmUI代码 -->
|
|
${zhiqim_turorial_ZmUI_demo_start()}
|
|
<div class="z-bar-top">
|
|
<a href="#" class="z-left"><i class="z-font z-rem18 z-arrowhead-left"></i></a>
|
|
<div class="z-title">ZhiqimUI.mobile</div>
|
|
</div>
|
|
<div class="z-bar-bottom">
|
|
<a href="#" class="z-direction-column z-active"><i class="z-font z-apps"></i><span class="z-mg-t3">文案</span></a>
|
|
<a href="#" class="z-direction-column"><i class="z-font z-apps"></i><span class="z-mg-t3">文案</span></a>
|
|
<a href="#" class="z-direction-column"><i class="z-font z-apps"></i><span class="z-mg-t3">文案</span></a>
|
|
<a href="#" class="z-direction-column"><i class="z-font z-apps"></i><span class="z-mg-t3">文案</span></a>
|
|
</div>
|
|
<div class="z-container">
|
|
<div class="z-flexBox-list z-h100p"><div class="z-rem30 z-text-center">这里是内容</div></div>
|
|
</div>
|
|
${zhiqim_turorial_ZmUI_demo_end()}
|
|
|
|
<!-- content结束 -->
|
|
</div>
|
|
|
|
${zhiqim_com_chapter()}
|
|
<!-- 主体结束 -->
|
|
</div>
|
|
|
|
<!-- 容器结束 -->
|
|
</div>
|
|
|
|
${zhiqim_com_footer()} |