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


PHP FormLib::dateRangePicker方法代码示例

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


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

示例1: form_content

 public function form_content()
 {
     return '<form action="' . $_SERVER['PHP_SELF'] . '" method="get">
         <div class="row">
         <div class="col-sm-5">
             <div class="form-group">
                 <label>Start Date</label>
                 <input type="text" id="date1" name="date1" class="form-control date-field" required />
             </div>
             <div class="form-group">
                 <label>End Date</label>
                 <input type="text" id="date2" name="date2" class="form-control date-field" required />
             </div>
         </div>
         <div class="col-sm-5">
             ' . FormLib::dateRangePicker() . '
         </div>
         </div>
         <p>
             <button type="submit" class="btn btn-default">Get Report</button>
         </p>
         </form>';
 }
开发者ID:phpsmith,项目名称:IS4C,代码行数:23,代码来源:WeeklySalesReport.php

示例2: get_view

 public function get_view()
 {
     return '
         <form action="' . $_SERVER['PHP_SELF'] . '" type="get">
         <div class="col-sm-5">
             <div class="form-group">
                 <label>Start Date</label>
                 <input type="text" name="date1" id="date1" class="form-control date-field" required />
             </div>
             <div class="form-group">
                 <label>End Date</label>
                 <input type="text" name="date2" id="date2" class="form-control date-field" required />
             </div>
             <div class="form-group">
                 <label>
                     <input type="checkbox" name="badscans" value="1" checked />
                     Only receipts with unknown UPCs
                 </label>
             </div>
             <p>
                 <button type="submit" class="btn btn-default">Lookup Receipts</button>
             </p>
         </div>
         <div class="col-sm-5">
             ' . FormLib::dateRangePicker() . '
         </div>
         </form>';
 }
开发者ID:phpsmith,项目名称:IS4C,代码行数:28,代码来源:OpenRingReceipts.php

示例3: form_content

 public function form_content()
 {
     return '
         <form method="get" action="ProductHistoryReport.php">
         <div class="well">Dates are optional; omit for full history</div>
         <div class="col-sm-4">
         <div class="form-group">
             <label>UPC</label>
             <input type="text" name="upc" class="form-control" required />
         </div>
         <div class="form-group">
             <label>Start Date</label>
             <input type="text" id="date1" name="date1" class="form-control date-field" />
         </div>
         <div class="form-group">
             <label>End Date</label>
             <input type="text" id="date2" name="date2" class="form-control date-field" />
         </div>
         <p>
             <button type="submit" class="btn btn-default">Get Report</button>
         </p>
         </div>
         <div class="col-sm-4">
             ' . FormLib::dateRangePicker() . '
         </div>
         </table>
         </form>';
 }
开发者ID:phpsmith,项目名称:IS4C,代码行数:28,代码来源:ProductHistoryReport.php

示例4: form_content

 public function form_content()
 {
     $dbc = $this->connection;
     $dbc->selectDB($this->config->get('OP_DB'));
     $ret = '<form action="' . $_SERVER['PHP_SELF'] . '" method="get">
         <div class="col-sm-5">
             <div class="form-group">
                 <label>FY</label>
                 <select name="fy" class="form-control">';
     $q = '
         SELECT FY
         FROM patronage
         GROUP BY FY
         ORDER BY FY DESC';
     $r = $dbc->query($q);
     while ($w = $dbc->fetchRow($r)) {
         $ret .= sprintf('<option>%s</option>', $w['FY']);
     }
     $ret .= '
                 </select>
             </div>
             <div class="form-group">
                 <label>Start Date</label>
                 <input type="text" name="date1" class="form-control date-field" id="date1" />
             </div>
             <div class="form-group">
                 <label>End Date</label>
                 <input type="text" name="date2" class="form-control date-field" id="date2" />
             </div>
         </div>
         <div class="col-sm-5">
             ' . FormLib::dateRangePicker() . '
             <p>
                 <button type="submit" class="btn btn-default">Get Report</button>
             </p>
         </div>
     </form>';
     return $ret;
 }
开发者ID:phpsmith,项目名称:IS4C,代码行数:39,代码来源:PatronageChecksReport.php

示例5: form_content

 public function form_content()
 {
     $ret = '
         <form method="get" action="' . $_SERVER['PHP_SELF'] . '">
         <div class="row">
         <div class="col-sm-4">
             <div class="form-group">
                 <label for="date1">Start Date</label>
                 <input type="text" name="date1" id="date1" 
                     class="form-control date-field" required />
             </div>
             <div class="form-group">
                 <label for="date2">End Date</label>
                 <input type="text" name="date2" id="date2"
                     class="form-control date-field" required />
             </div>
             <div class="panel panel-default">
                 <div class="panel panel-heading">List Subtotals for some Inactive account reasons</div>
                 <div class="panel panel-body">';
     $reasons = new ReasoncodesModel($this->connection);
     foreach ($reasons->find('textStr') as $r) {
         $ret .= sprintf('<p><label>
             <input type="checkbox" name="reasons[]" value="%d" />
             %s</label></p>', $r->mask(), $r->textStr());
     }
     $ret .= '   </div>
             </div>
         </div>
         <div class="col-sm-5">
             ' . FormLib::dateRangePicker() . '
         </div>
         </div>
         <p><button type="submit" class="btn btn-default">Get Report</button></p>
         </form>';
     return $ret;
 }
开发者ID:phpsmith,项目名称:IS4C,代码行数:36,代码来源:OwnerJoinLeaveReport.php

示例6: get_view

 function get_view()
 {
     global $FANNIE_URL;
     $ret = '<form action="OverShortMAS.php" method="get">
         <div class="col-sm-4">
         <div class="form-group">
             <label>Start Date</label>
             <input name="startDate" class="form-control date-field" required id="date1" />
         </div>
         <div class="form-group">
             <label>End Date</label>
             <input name="endDate" class="form-control date-field" required id="date2" />
         </div>
         <p>
             <button type="submit" class="btn btn-default">Get Data</button>
         </p>
         </div>
         <div class="col-sm-4">' . FormLib::dateRangePicker() . '</div>
         </form>';
     return $ret;
 }
开发者ID:phpsmith,项目名称:IS4C,代码行数:21,代码来源:OverShortMAS.php

示例7: get_view

 public function get_view()
 {
     $ret = '<form class="form-horizontal" action="PurchasingSearchPage.php" method="get">';
     $ret .= '<div class="row">';
     $ret .= '<div class="col-sm-6">';
     $ret .= '<div class="form-group">';
     $ret .= '<label for="upcsku" class="col-sm-3 control-label">UPC or SKU</label>';
     $ret .= '<div class="col-sm-9"><input class="form-control" type="text" id="upcsku" name="id" /></div>';
     $ret .= '</div>';
     $ret .= '<div class="form-group">';
     $ret .= '<label for="date1" class="col-sm-3 control-label">Start Date</label>';
     $ret .= '<div class="col-sm-9"><input class="form-control date-field" type="text" id="date1" name="date1" /></div>';
     $ret .= '</div>';
     $ret .= '<div class="form-group">';
     $ret .= '<label for="date2" class="col-sm-3 control-label">End Date</label>';
     $ret .= '<div class="col-sm-9"><input class="form-control date-field" type="text" id="date2" name="date2" /></div>';
     $ret .= '</div>';
     $ret .= '</div>';
     $ret .= '<div class="col-sm-4 pull-left">';
     $ret .= FormLib::dateRangePicker();
     $ret .= '</div>';
     $ret .= '</div>';
     $ret .= '<p><button type="submit" class="btn btn-default">Search</button>';
     $ret .= ' Omit dates to search all orders
             (<a href="" onclick="$(\'#date1\').val(\'\');$(\'#date2\').val(\'\');return false;">Clear
             Dates</a>)</p>';
     $ret .= '</form>';
     $this->add_onload_command("\$('.form-control:first').focus();\n");
     return $ret;
 }
开发者ID:phpsmith,项目名称:IS4C,代码行数:30,代码来源:PurchasingSearchPage.php

示例8: form_content

    public function form_content()
    {
        $sql = $this->connection;
        $sql->selectDB($this->config->get('OP_DB'));
        $deptsQ = $sql->prepare_statement("select dept_no,dept_name from departments order by dept_no");
        $deptsR = $sql->exec_statement($deptsQ);
        $deptsList = "";
        while ($deptsW = $sql->fetch_array($deptsR)) {
            $deptsList .= "<option value={$deptsW['0']}>{$deptsW['0']} {$deptsW['1']}</option>";
        }
        $this->add_onload_command("showUPC();\n");
        ob_start();
        ?>
<form method=get action="<?php 
        echo $_SERVER['PHP_SELF'];
        ?>
">
<input type="hidden" name="type" id="type-field" value="upc" />
<div class="col-sm-6">
    <ul class="nav nav-tabs">
        <li class="active"><a href="#upc-tab" role="tab"
            onclick="$(this).tab('show'); $('#type-field').val('upc'); return false;">UPC</a></li>
        <li><a href="#dept-tab" role="tab"
            onclick="$(this).tab('show'); $('#type-field').val('department'); return false;">Department</a></li>
        <li><a href="#manu-tab" role="tab"
            onclick="$(this).tab('show'); $('#type-field').val('manufacturer'); return false;"><?php 
        echo _('Manufacturer');
        ?>
</a></li>
    </ul>
    <div class="tab-content">
        <div class="tab-pane active" id="upc-tab">
            <label>UPC</label>
            <input type=text name=upc class="form-control" />
        </div>
        <div class="tab-pane" id="dept-tab">
            <p>
                <label class="col-sm-3">Start</label>
                <div class="col-sm-2">
                    <input type=text id=dept1 name=dept1 class="form-control" />
                </div>
                <div class="col-sm-7">
                    <select onchange="$('#dept1').val(this.value);" class="form-control">
                    <?php 
        echo $deptsList;
        ?>
                    </select>
                </div>
            </p>
            <p>
                <label class="col-sm-3">End</label>
                <div class="col-sm-2">
                    <input type=text id=dept2 name=dept2 class="form-control" />
                </div>
                <div class="col-sm-7">
                    <select onchange="$('#dept2').val(this.value);" class="form-control">
                    <?php 
        echo $deptsList;
        ?>
                    </select>
                </div>
            </p>
        </div>
        <div class="tab-pane" id="manu-tab">
            <label><?php 
        echo _('Manufacturer');
        ?>
</label>
            <input type=text name=manufacturer class="form-control" />
            <p>
                <label><input type=radio name=mtype value=upc checked /> UPC prefix</label>
                <label><input type=radio name=mtype value=name /> <?php 
        echo _('Manufacturer name');
        ?>
</label>
            </p>
        </div>
    </div>
    <br />
    <p>
        <button type=submit name=Submit class="btn btn-default">Submit</button>
        <label><input type=checkbox name=excel value="xls" /> Excel</label>
    </p>
</div>
<div class="col-sm-6">
    <p>
        <label>Start Date</label>
        <input type="text" id="date1" name="date1" class="form-control date-field" required />
    </p>
    <p>
        <label>End Date</label>
        <input type="text" id="date2" name="date2" class="form-control date-field" required />
    </p>
    <p>
        <?php 
        echo FormLib::dateRangePicker();
        ?>
    </p>
</div>
</form>
//.........这里部分代码省略.........
开发者ID:phpsmith,项目名称:IS4C,代码行数:101,代码来源:PriceHistoryReport.php

示例9: form_content

    function form_content()
    {
        list($lastMonday, $lastSunday) = \COREPOS\Fannie\API\lib\Dates::lastWeek();
        ob_start();
        ?>
<form action=CustomerCountReport.php method=get>
<div class="col-sm-6">
<p>
    <label>Start Date</label>
    <input type=text id=date1 name=date1 value="<?php 
        echo $lastMonday;
        ?>
"
        class="form-control date-field" required />
</p>
<p>
    <label>End Date</label>
    <input type=text id=date2 name=date2 value="<?php 
        echo $lastSunday;
        ?>
" 
        class="form-control date-field" required />
</p>
<p>
    <button type=submit name=submit value="Submit" class="btn btn-default">Submit</button>
    <label><input type=checkbox name=excel id="excel" value=xls /> Excel</label>
</p>
</div>
<div class="col-sm-6">
    <?php 
        echo FormLib::dateRangePicker();
        ?>
</div>
</form>
<?php 
        return ob_get_clean();
    }
开发者ID:phpsmith,项目名称:IS4C,代码行数:37,代码来源:CustomerCountReport.php

示例10: form_content

 function form_content()
 {
     $ret = '';
     $ret .= '<form action="ZipCodeReport.php" method="get">
         <div class="col-sm-5">
         <div class="form-group">
             <label>Start Date</label>
             <input type="text" name="date1" id="date1" 
                 class="form-control date-field" required/>
         </div>
         <div class="form-group">
             <label>End Date</label>
             <input type="text" name="date2" id="date2" 
                 class="form-control date-field" required/>
         </div>
         <div class="form-group">
             <label>Exclude #(s)</label>
             <input type="text" name="excludes" class="form-control" />
         </div>
         <p>
            <button type="submit" class="btn btn-default">Get Report</button>
         </p>
         </div>
         <div class="col-sm-5">
             ' . FormLib::dateRangePicker() . '
         </div>
         </form>';
     return $ret;
 }
开发者ID:phpsmith,项目名称:IS4C,代码行数:29,代码来源:ZipCodeReport.php


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