2008-12-23 20:32:55 +00:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
2007-09-18 17:45:46 +00:00
|
|
|
<!-- $Revision$ -->
|
|
|
|
|
<sect1 id="language.function.html.select.time">
|
|
|
|
|
<title>{html_select_time}</title>
|
|
|
|
|
<para>
|
|
|
|
|
<varname>{html_select_time}</varname> adalah
|
|
|
|
|
<link linkend="language.custom.functions">fungsi kustom</link>
|
|
|
|
|
yang membuat dropdowns jam untuk anda.
|
|
|
|
|
Ia bisa menampilkan setiap atau seluruh jam, menit, detik dan meridian.
|
|
|
|
|
</para>
|
|
|
|
|
<para>
|
|
|
|
|
Atribut <parameter>time</parameter> dapat memiliki format berbeda.
|
|
|
|
|
Ia bisa berupa cap waktu uni, string dengan format
|
|
|
|
|
<literal>YYYYMMDDHHMMSS</literal> atau string yang dapat diurai oleh
|
|
|
|
|
<ulink url="&url.php-manual;strtotime"><varname>strtotime()</varname></ulink>
|
|
|
|
|
PHP.
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
|
|
<informaltable frame="all">
|
|
|
|
|
<tgroup cols="5">
|
|
|
|
|
<colspec colname="param" align="center" />
|
|
|
|
|
<colspec colname="type" align="center" />
|
|
|
|
|
<colspec colname="required" align="center" />
|
|
|
|
|
<colspec colname="default" align="center" />
|
|
|
|
|
<colspec colname="desc" />
|
|
|
|
|
<thead>
|
|
|
|
|
<row>
|
|
|
|
|
<entry>Nama Atribut</entry>
|
|
|
|
|
<entry>Tipe</entry>
|
|
|
|
|
<entry>Diperlukan</entry>
|
|
|
|
|
<entry>Default</entry>
|
|
|
|
|
<entry>Deskripsi</entry>
|
|
|
|
|
</row>
|
|
|
|
|
</thead>
|
|
|
|
|
<tbody>
|
|
|
|
|
<row>
|
|
|
|
|
<entry>prefix</entry>
|
|
|
|
|
<entry>string</entry>
|
|
|
|
|
<entry>Tidak</entry>
|
|
|
|
|
<entry>Time_</entry>
|
|
|
|
|
<entry>Apa yang mengawali nama var</entry>
|
|
|
|
|
</row>
|
|
|
|
|
<row>
|
|
|
|
|
<entry>time</entry>
|
|
|
|
|
<entry>timestamp</entry>
|
|
|
|
|
<entry>Tidak</entry>
|
|
|
|
|
<entry>jam sekarang</entry>
|
|
|
|
|
<entry>Tanggal/jam apa yang dipakai</entry>
|
|
|
|
|
</row>
|
|
|
|
|
<row>
|
|
|
|
|
<entry>display_hours</entry>
|
|
|
|
|
<entry>boolean</entry>
|
|
|
|
|
<entry>Tidak</entry>
|
|
|
|
|
<entry>&true;</entry>
|
|
|
|
|
<entry>Apakah menampilkan jam atau tidak</entry>
|
|
|
|
|
</row>
|
|
|
|
|
<row>
|
|
|
|
|
<entry>display_minutes</entry>
|
|
|
|
|
<entry>boolean</entry>
|
|
|
|
|
<entry>Tidak</entry>
|
|
|
|
|
<entry>&true;</entry>
|
|
|
|
|
<entry>Apakah menampilkan menit atau tidak</entry>
|
|
|
|
|
</row>
|
|
|
|
|
<row>
|
|
|
|
|
<entry>display_seconds</entry>
|
|
|
|
|
<entry>boolean</entry>
|
|
|
|
|
<entry>Tidak</entry>
|
|
|
|
|
<entry>&true;</entry>
|
|
|
|
|
<entry>Apakah menampilkan detik atau tidak</entry>
|
|
|
|
|
</row>
|
|
|
|
|
<row>
|
|
|
|
|
<entry>display_meridian</entry>
|
|
|
|
|
<entry>boolean</entry>
|
|
|
|
|
<entry>Tidak</entry>
|
|
|
|
|
<entry>&true;</entry>
|
|
|
|
|
<entry>Apakah menampilkan meridian (am/pm) atau tidak</entry>
|
|
|
|
|
</row>
|
|
|
|
|
<row>
|
|
|
|
|
<entry>use_24_hours</entry>
|
|
|
|
|
<entry>boolean</entry>
|
|
|
|
|
<entry>Tidak</entry>
|
|
|
|
|
<entry>&true;</entry>
|
|
|
|
|
<entry>Apakah menggunakan waktu 24 jam atau tidak</entry>
|
|
|
|
|
</row>
|
|
|
|
|
<row>
|
|
|
|
|
<entry>minute_interval</entry>
|
|
|
|
|
<entry>integer</entry>
|
|
|
|
|
<entry>Tidak</entry>
|
|
|
|
|
<entry>1</entry>
|
|
|
|
|
<entry>Angka interval dalam dropdown menit</entry>
|
|
|
|
|
</row>
|
|
|
|
|
<row>
|
|
|
|
|
<entry>second_interval</entry>
|
|
|
|
|
<entry>integer</entry>
|
|
|
|
|
<entry>Tidak</entry>
|
|
|
|
|
<entry>1</entry>
|
|
|
|
|
<entry>Angka interval dalam dropdown detik</entry>
|
|
|
|
|
</row>
|
|
|
|
|
<row>
|
|
|
|
|
<entry>field_array</entry>
|
|
|
|
|
<entry>string</entry>
|
|
|
|
|
<entry>Tidak</entry>
|
|
|
|
|
<entry>n/a</entry>
|
|
|
|
|
<entry>Menyimpan nilai ke array dari nama ini</entry>
|
|
|
|
|
</row>
|
|
|
|
|
<row>
|
|
|
|
|
<entry>all_extra</entry>
|
|
|
|
|
<entry>string</entry>
|
|
|
|
|
<entry>Tidak</entry>
|
|
|
|
|
<entry>null</entry>
|
|
|
|
|
<entry>Menambahkan atribut ekstra untuk select/input jika disediakan</entry>
|
|
|
|
|
</row>
|
|
|
|
|
<row>
|
|
|
|
|
<entry>hour_extra</entry>
|
|
|
|
|
<entry>string</entry>
|
|
|
|
|
<entry>Tidak</entry>
|
|
|
|
|
<entry>null</entry>
|
|
|
|
|
<entry>Menambahkan atribut ekstra untuk select/input jika disediakan</entry>
|
|
|
|
|
</row>
|
|
|
|
|
<row>
|
|
|
|
|
<entry>minute_extra</entry>
|
|
|
|
|
<entry>string</entry>
|
|
|
|
|
<entry>Tidak</entry>
|
|
|
|
|
<entry>null</entry>
|
|
|
|
|
<entry>Menambahkan atribut ekstra untuk select/input jika disediakan</entry>
|
|
|
|
|
</row>
|
|
|
|
|
<row>
|
|
|
|
|
<entry>second_extra</entry>
|
|
|
|
|
<entry>string</entry>
|
|
|
|
|
<entry>Tidak</entry>
|
|
|
|
|
<entry>null</entry>
|
|
|
|
|
<entry>Menambahkan atribut ekstra untuk select/input jika disediakan</entry>
|
|
|
|
|
</row>
|
|
|
|
|
<row>
|
|
|
|
|
<entry>meridian_extra</entry>
|
|
|
|
|
<entry>string</entry>
|
|
|
|
|
<entry>Tidak</entry>
|
|
|
|
|
<entry>null</entry>
|
|
|
|
|
<entry>Menambahkan atribut ekstra untuk select/input jika disediakan</entry>
|
|
|
|
|
</row>
|
|
|
|
|
</tbody>
|
|
|
|
|
</tgroup>
|
|
|
|
|
</informaltable>
|
|
|
|
|
|
|
|
|
|
<example>
|
|
|
|
|
<title>{html_select_time}</title>
|
|
|
|
|
<programlisting>
|
|
|
|
|
<![CDATA[
|
|
|
|
|
{html_select_time use_24_hours=true}
|
|
|
|
|
]]>
|
|
|
|
|
</programlisting>
|
|
|
|
|
<para>
|
|
|
|
|
Pada 9:20 dan 23 detik di pagi hari template di atas akan menampilkan:
|
|
|
|
|
</para>
|
|
|
|
|
<screen>
|
|
|
|
|
<![CDATA[
|
|
|
|
|
<select name="Time_Hour">
|
|
|
|
|
<option value="00">00</option>
|
|
|
|
|
<option value="01">01</option>
|
|
|
|
|
... snipped ....
|
|
|
|
|
<option value="08">08</option>
|
|
|
|
|
<option value="09" selected>09</option>
|
|
|
|
|
<option value="10">10</option>
|
|
|
|
|
... snipped ....
|
|
|
|
|
<option value="22">22</option>
|
|
|
|
|
<option value="23">23</option>
|
|
|
|
|
</select>
|
|
|
|
|
<select name="Time_Minute">
|
|
|
|
|
<option value="00">00</option>
|
|
|
|
|
<option value="01">01</option>
|
|
|
|
|
... snipped ....
|
|
|
|
|
<option value="19">19</option>
|
|
|
|
|
<option value="20" selected>20</option>
|
|
|
|
|
<option value="21">21</option>
|
|
|
|
|
... snipped ....
|
|
|
|
|
<option value="58">58</option>
|
|
|
|
|
<option value="59">59</option>
|
|
|
|
|
</select>
|
|
|
|
|
<select name="Time_Second">
|
|
|
|
|
<option value="00">00</option>
|
|
|
|
|
<option value="01">01</option>
|
|
|
|
|
... snipped ....
|
|
|
|
|
<option value="22">22</option>
|
|
|
|
|
<option value="23" selected>23</option>
|
|
|
|
|
<option value="24">24</option>
|
|
|
|
|
... snipped ....
|
|
|
|
|
<option value="58">58</option>
|
|
|
|
|
<option value="59">59</option>
|
|
|
|
|
</select>
|
|
|
|
|
<select name="Time_Meridian">
|
|
|
|
|
<option value="am" selected>AM</option>
|
|
|
|
|
<option value="pm">PM</option>
|
|
|
|
|
</select>
|
|
|
|
|
]]>
|
|
|
|
|
</screen>
|
|
|
|
|
</example>
|
|
|
|
|
<para>
|
|
|
|
|
Lihat juga
|
|
|
|
|
<link linkend="language.variables.smarty.now"><parameter>$smarty.now</parameter></link>,
|
|
|
|
|
<link linkend="language.function.html.select.date"><varname>{html_select_date}</varname></link>
|
|
|
|
|
dan <link linkend="tips.dates">halaman tips tanggal</link>.
|
|
|
|
|
</para>
|
|
|
|
|
</sect1>
|
|
|
|
|
<!-- Keep this comment at the end of the file
|
|
|
|
|
Local variables:
|
|
|
|
|
mode: sgml
|
|
|
|
|
sgml-omittag:t
|
|
|
|
|
sgml-shorttag:t
|
|
|
|
|
sgml-minimize-attributes:nil
|
|
|
|
|
sgml-always-quote-attributes:t
|
|
|
|
|
sgml-indent-step:1
|
|
|
|
|
sgml-indent-data:t
|
|
|
|
|
indent-tabs-mode:nil
|
|
|
|
|
sgml-parent-document:nil
|
|
|
|
|
sgml-default-dtd-file:"../../../../manual.ced"
|
|
|
|
|
sgml-exposed-tags:nil
|
|
|
|
|
sgml-local-catalogs:nil
|
|
|
|
|
sgml-local-ecat-files:nil
|
|
|
|
|
End:
|
|
|
|
|
vim600: syn=xml fen fdm=syntax fdl=2 si
|
|
|
|
|
vim: et tw=78 syn=sgml
|
|
|
|
|
vi: ts=1 sw=1
|
|
|
|
|
-->
|