当前位置: 首页>>代码示例>>PHP>>正文


PHP FormLib::standardDateFields方法代码示例

本文整理汇总了PHP中FormLib::standardDateFields方法的典型用法代码示例。如果您正苦于以下问题:PHP FormLib::standardDateFields方法的具体用法?PHP FormLib::standardDateFields怎么用?PHP FormLib::standardDateFields使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在FormLib的用法示例。


在下文中一共展示了FormLib::standardDateFields方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: form_content

 public function form_content()
 {
     return '<form method="get">
         <div class="container row">' . FormLib::standardDateFields() . '
         </div>
         <p>
             <button type="submit" class="btn btn-default btn-core">Submit</button>
         </p>
         </form>';
 }
开发者ID:phpsmith,项目名称:IS4C,代码行数:10,代码来源:VoidedTransactionsReport.php

示例2: form_content

 public function form_content()
 {
     return '<form method="get" class="form-horizontal">
         <div class="row">
             <div class="col-sm-4">
                 <div class="form-group">
                     <label class="col-sm-3">Member#</label>
                     <div class="col-sm-8">
                         <input type="text" name="member" class="form-control" />
                     </div>
                 </div>
                 <div class="form-group">
                     <div class="col-sm-5">
                         <button type="submit" value="1" name="submit" class="btn btn-default">Get Report</button>
                     </div>
                 </div>
             </div>' . str_replace('required', '', FormLib::standardDateFields()) . '
         </div>
         </form>';
 }
开发者ID:phpsmith,项目名称:IS4C,代码行数:20,代码来源:ScheduledEmailQueueReport.php

示例3: form_content

 public function form_content()
 {
     $ret = '<form method="get">';
     $ret .= '<div class="row">';
     $ret .= FormLib::standardItemFields();
     $ret .= FormLib::standardDateFields();
     $ret .= '</div>';
     $ret .= '<div class="row">';
     $ret .= '<div class="form-group col-sm-5 form-inline">';
     $ret .= '<label>Customer Type</label> ';
     $ret .= '<select name="memtype" class="form-control">';
     $dbc = $this->connection;
     $dbc->selectDB($this->config->get('OP_DB'));
     $types = new MemtypeModel($dbc);
     foreach ($types->find() as $t) {
         $ret .= sprintf('<option value="%d">%s</option>', $t->memtype(), $t->memDesc());
     }
     $ret .= '</select>';
     $ret .= ' <button type="submit" class="btn btn-default">Submit</button>';
     $ret .= '</div>';
     $ret .= '</div>';
     return $ret;
 }
开发者ID:phpsmith,项目名称:IS4C,代码行数:23,代码来源:MemTypeMovementReport.php

示例4: get_view

 public function get_view()
 {
     $ret = '<form method="get">
         <div class="col-sm-5">
             <div class="form-group">
                 <label>Dept# &lt=</label>
                 <input type="text" name="dept" class="form-control">
             </div>
             <div class="form-group">
                 <label>Method</label>
                 <select name="sql-method" class="form-control">
                     <option>Single Query</option>
                     <option>Large Temporary Table</option>
                     <option>Aggregate Temporary Table</option>
                 </select>
             </div>
             <div class="form-group">
                 <button type="submit" class="btn btn-default">Run</button>
             </div>
         </div>';
     $ret .= FormLib::standardDateFields();
     $ret .= '</form>';
     return $ret;
 }
开发者ID:phpsmith,项目名称:IS4C,代码行数:24,代码来源:SpeedTestReport.php

示例5: form_content

 public function form_content()
 {
     $ret = '<form method="get">' . FormLib::standardDateFields() . '<div class="form-group">
             <button type="submit" class="btn btn-default">Submit</button>
            </div>
         </form>';
     return $ret;
 }
开发者ID:phpsmith,项目名称:IS4C,代码行数:8,代码来源:CWBasketReport.php

示例6: form_content

    public function form_content()
    {
        ob_start();
        ?>
        <form method="get" action="<?php 
        echo $_SERVER['PHP_SELF'];
        ?>
">
        <div class="row">
            <?php 
        echo FormLib::standardItemFields();
        ?>
            <?php 
        echo FormLib::standardDateFields();
        ?>
        </div>
        <div class="row form-horizontal">
            <div class="form-group">
                <label class="col-sm-2 control-label">Sum movement by?</label>
                <div class="col-sm-2">
                    <select name="sort" class="form-control">
                        <option>PLU</option>
                        <option>Date</option>
                        <option>Department</option>
                        <option>Weekday</option>
                    </select> 
                </div>
                <label class="col-sm-1 control-label">Store</label>
                <div class="col-sm-2">
                    <?php 
        $s = FormLib::storePicker();
        echo $s['html'];
        ?>
                </div>
                <label class="col-sm-2 control-label">
                    <input type="checkbox" name="excel" value="csv" />
                    Excel
                </label>
            </div>
        </div>
        <p>
            <button type="submit" class="btn btn-default btn-core">Get Report</button>
            <button type="reset" class="btn btn-default btn-reset">Reset Form</button>
        </p>
        </form>
        <?php 
        return ob_get_clean();
    }
开发者ID:phpsmith,项目名称:IS4C,代码行数:48,代码来源:SmartMovementReport.php

示例7: form_content

 function form_content()
 {
     ob_start();
     ?>
     <form method=get>
     <div>
         <?php 
     echo FormLib::standardDateFields();
     ?>
         <div class="form-group">
             <label>Excel <input type=checkbox name=excel /></label>
         </div>
         <p>
         <button type=submit name=submit value="Submit"
             class="btn btn-default">Submit</button>
         </p>
     </div>
     </form>
     <?php 
     return ob_get_clean();
 }
开发者ID:phpsmith,项目名称:IS4C,代码行数:21,代码来源:ChartOfAccountsReport.php

示例8: form_content

    public function form_content()
    {
        ob_start();
        ?>
<form method=get action=TrendsReport.php class="form">
<div class="row">
    <?php 
        echo FormLib::standardItemFields();
        ?>
    <?php 
        echo FormLib::standardDateFields();
        ?>
</div>
<p>
    <button type="submit" class="btn btn-default">Submit</button>
</p>
</form>
        <?php 
        $this->add_script($this->config->URL . 'item/autocomplete.js');
        $ws = $this->config->URL . 'ws/';
        $this->add_onload_command("bindAutoComplete('#brand-field', '{$ws}', 'brand');\n");
        $this->add_onload_command("bindAutoComplete('#upc-field', '{$ws}', 'item');\n");
        return ob_get_clean();
    }
开发者ID:phpsmith,项目名称:IS4C,代码行数:24,代码来源:TrendsReport.php

示例9: form_content

 public function form_content()
 {
     $ret = '<form method="get">
         <div class="col-sm-5">
             <label>Coupon</label>
             <select name="coupon_id" class="form-control">';
     $dbc = $this->connection;
     $dbc->selectDB($this->config->get('OP_DB'));
     $hc = new HouseCouponsModel($dbc);
     foreach ($hc->find() as $obj) {
         if ($obj->description() == '') {
             continue;
         }
         $ret .= sprintf('<option value="%s">%s</option>', $obj->coupID(), $obj->description());
     }
     $ret .= '</select>
         <p>
             <button type="submit" class="btn btn-default">Submit</button>
         </p>
         </div>';
     $ret .= FormLib::standardDateFields();
     $ret .= '</form>';
     return $ret;
 }
开发者ID:phpsmith,项目名称:IS4C,代码行数:24,代码来源:CWCouponReport.php

示例10: form_content

 function form_content()
 {
     $start = date('Y-m-d', strtotime('yesterday'));
     ob_start();
     ?>
     <form method=get>
     <div class="col-sm-5">
         <div class="form-group">
             <label>List Sales By</label>
             <select name="sales-by" class="form-control">
                 <option>Super Department</option>
                 <option>Department</option>
                 <option>Sales Code</option>
             </select>
         </div>
         <div class="form-group">
             <label>Excel <input type=checkbox name=excel /></label>
         </div>
         <p>
         <button type=submit name=submit value="Submit"
             class="btn btn-default">Submit</button>
         </p>
     </div>
     <?php 
     echo FormLib::standardDateFields();
     ?>
     </form>
     <?php 
     return ob_get_clean();
 }
开发者ID:phpsmith,项目名称:IS4C,代码行数:30,代码来源:GeneralRangeReport.php


注:本文中的FormLib::standardDateFields方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。