本文整理汇总了PHP中FormLib::date_range_picker方法的典型用法代码示例。如果您正苦于以下问题:PHP FormLib::date_range_picker方法的具体用法?PHP FormLib::date_range_picker怎么用?PHP FormLib::date_range_picker使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FormLib
的用法示例。
在下文中一共展示了FormLib::date_range_picker方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: form_content
public function form_content()
{
ob_start();
?>
<form method=get class="form-horizontal">
<div class="row">
<div class="col-sm-6">
<p>
<label>Start Date</label>
<input class="form-control date-field" required type=text id=date1 name=date1 />
</p>
<p>
<label>End Date</label>
<input class="form-control date-field" required type=text id=date2 name=date2 />
</p>
</div>
<div class="col-sm-6">
<p>
<?php
echo FormLib::date_range_picker();
?>
</p>
</div>
</div>
<p>
<button type=submit name=submit value="Submit" class="btn btn-default">Submit</button>
<label><input type=checkbox name=excel /> Excel</label>
</p>
</form>
<?php
return ob_get_clean();
}
示例2: form_content
public function form_content()
{
ob_start();
?>
<form method ="get" action="CashierRecordsReport.php">
<div class="col-sm-4">
<div class="form-group">
<label>Date Start</label>
<input type=text id=date1 name=date1 class="form-control date-field" />
</div>
<div class="form-group">
<label>Date End</label>
<input type=text id=date2 name=date2 class="form-control date-field" />
</div>
<p>
<button type=submit name=submit class="btn btn-default btn-core">Submit</button>
<button type=reset name=reset class="btn btn-default btn-reset">Start Over</button>
</p>
</div>
<div class="col-sm-4">
<?php
echo FormLib::date_range_picker();
?>
</div>
</form>
<?php
return ob_get_clean();
}
示例3: form_content
public function form_content()
{
$lastMonday = "";
$lastSunday = "";
$ts = mktime(0, 0, 0, date("n"), date("j") - 1, date("Y"));
while ($lastMonday == "" || $lastSunday == "") {
if (date("w", $ts) == 1 && $lastSunday != "") {
$lastMonday = date("Y-m-d", $ts);
} elseif (date("w", $ts) == 0) {
$lastSunday = date("Y-m-d", $ts);
}
$ts = mktime(0, 0, 0, date("n", $ts), date("j", $ts) - 1, date("Y", $ts));
}
ob_start();
?>
<form action=DiscountsReport.php method=get>
<div class="col-sm-4">
<div class="form-group">
<label>Date Start</label>
<input type=text id=date1 name=date1 class="form-control date-field" />
</div>
<div class="form-group">
<label>Date End</label>
<input type=text id=date2 name=date2 class="form-control date-field" />
</div>
<p>
<label>Excel <input type=checkbox name=excel value="xls" /></label>
</p>
<p>
<button type=submit name=submit class="btn btn-default btn-core">Submit</button>
<button type=reset name=reset class="btn btn-default btn-reset">Start Over</button>
</p>
</div>
<div class="col-sm-4">
<?php
echo FormLib::date_range_picker();
?>
</div>
</form>
<?php
return ob_get_clean();
}
示例4: form_content
public function form_content()
{
ob_start();
?>
<form method="get" action="BasketLimitedReport.php" class="form-horizontal">
<div class="col-sm-5">
<div class="form-group">
<label class="control-label col-sm-4">Size Limit (Qty)</label>
<div class="col-sm-8">
<input type=text name=qty id=qty value="1"
class="form-control" required />
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-4">Start Date</label>
<div class="col-sm-8">
<input type=text id=date1 name=date1
class="form-control date-field" required />
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-4">End Date</label>
<div class="col-sm-8">
<input type=text id=date2 name=date2
class="form-control date-field" required />
</div>
</div>
<div class="form-group">
<label class="col-sm-8">
<input type="checkbox" name="excel" value="xls" />
Excel
</label>
</div>
<p>
<button class="btn btn-default btn-core" type="submit">Submit</button>
<button class="btn btn-default btn-reset" type="reset">Start Over</button>
</p>
</div>
<div class="col-sm-5">
<div class="form-group">
<?php
echo FormLib::date_range_picker();
?>
</div>
</div>
</form>
<?php
return ob_get_clean();
}
示例5: form_content
public function form_content()
{
ob_start();
?>
<form method="get" class="form-horizontal">
<div class="row">
<div class="col-sm-6">
<?php
echo FormLib::standardDepartmentFields('buyer');
?>
<div class="form-group">
<label class="col-sm-4 control-label">
Group by weekday?
<input type=checkbox name=weekday value=1>
</label>
</div>
<div class="form-group">
<label class="control-label col-sm-4">Save to Excel
<input type=checkbox name=excel id=excel value=1>
</label>
<label class="col-sm-4 control-label">Store</label>
<div class="col-sm-4">
<?php
$ret = FormLib::storePicker();
echo $ret['html'];
?>
</div>
</div>
</div>
<div class="col-sm-5">
<div class="form-group">
<label class="col-sm-4 control-label">Start Date</label>
<div class="col-sm-8">
<input type=text id=date1 name=date1 class="form-control date-field" required />
</div>
</div>
<div class="form-group">
<label class="col-sm-4 control-label">End Date</label>
<div class="col-sm-8">
<input type=text id=date2 name=date2 class="form-control date-field" required />
</div>
</div>
<div class="form-group">
<?php
echo FormLib::date_range_picker();
?>
</div>
</div>
</div>
<p>
<button type=submit name=submit value="Submit" class="btn btn-default btn-core">Submit</button>
<button type=reset name=reset class="btn btn-default btn-reset"
onclick="$('#super-id').val('').trigger('change');">Start Over</button>
</p>
</form>
<?php
$this->addOnloadCommand("\$('#subdepts').closest('.form-group').hide();");
return ob_get_clean();
}
示例6: form_content
public function form_content()
{
$dbc = $this->connection;
$dbc->selectDB($this->config->get('OP_DB'));
$tenders = array();
$p = $dbc->prepare_statement("SELECT TenderCode,TenderName FROM tenders ORDER BY TenderName");
$r = $dbc->exec_statement($p);
while ($w = $dbc->fetch_row($r)) {
$tenders[$w['TenderCode']] = $w['TenderName'];
}
ob_start();
?>
<form method = "get" action="TenderInOutReport.php">
<div class="col-sm-4">
<div class="form-group">
<label>Reason</label>
<select name="tendercode" class="form-control">
<?php
foreach ($tenders as $code => $name) {
printf('<option value="%s">%s</option>', $code, $name);
}
?>
</select>
</div>
<div class="form-group">
<label>Date Start</label>
<input type=text id=date1 name=date1 required
class="form-control date-field" />
</div>
<div class="form-group">
<label>Date End</label>
<input type=text id=date2 name=date2 required
class="form-control date-field" />
</div>
<div class="form-group">
<input type="checkbox" name="excel" id="excel" value="xls" />
<label for="excel">Excel</label>
</div>
<div class="form-group">
<button type=submit name=submit value="Submit"
class="btn btn-default btn-core">Submit</button>
<button type=reset name=reset value="Start Over"
class="btn btn-default btn-reset">Start Over</button>
</div>
</div>
<div class="col-sm-4">
<?php
echo FormLib::date_range_picker();
?>
</div>
</form>
<?php
return ob_get_clean();
}
示例7: form_content
function form_content()
{
$dbc = FannieDB::get($this->config->get('OP_DB'));
ob_start();
?>
<form method = "get" action="<?php
echo $_SERVER['PHP_SELF'];
?>
">
<div class="col-sm-5">
<div class="form-group">
<label>Date Start</label>
<input type=text id=date1 name=date1
class="form-control date-field" required />
</div>
<div class="form-group">
<label>Date End</label>
<input type=text id=date2 name=date2
class="form-control date-field" required />
</div>
<div class="form-group">
<label>Vendor</label>
<select name="vendorID" class="form-control">
<option value="">All</option>
<?php
$vendors = new VendorsModel($dbc);
foreach ($vendors->find('vendorName') as $obj) {
printf('<option value="%d">%s</option>', $obj->vendorID(), $obj->vendorName());
}
?>
</select>
</div>
<p>
<button type="submit" class="btn btn-default btn-core">Submit</button>
<button type="reset" class="btn btn-default btn-reset">Start Over</button>
</p>
</div>
<div class="col-sm-5">
<?php
echo FormLib::date_range_picker();
?>
</div>
</form>
<?php
return ob_get_clean();
}
示例8: form_content
public function form_content()
{
$this->addScript('../../item/autocomplete.js');
ob_start();
?>
<form method = "get" action="<?php
echo $_SERVER['PHP_SELF'];
?>
">
<div class="col-sm-5">
<div class="form-group">
<label>Vendor</label>
<input type=text name=vendor id=vendor
class="form-control" required />
</div>
<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>Sum report by</label>
<select name=groupby class="form-control">
<option value="upc">UPC</option>
<option value="date">Date</option>
<option value="dept">Department</option>
</select>
</div>
<div class="form-group">
<label>Excel
<input type="checkbox" name="excel" value="xls" />
</label>
</div>
<p>
<button type="submit" class="btn btn-default">Submit</button>
</p>
</div>
<div class="col-sm-5">
<?php
echo FormLib::date_range_picker();
?>
</div>
</form>
<?php
$auto_url = $this->config->URL . 'ws/';
$this->add_onload_command("bindAutoComplete('#vendor', '{$auto_url}', 'vendor');\n");
$this->add_onload_command('$(\'#vendor\').focus();');
return ob_get_clean();
}
示例9: form_content
public function form_content()
{
$this->add_onload_command('$(\'#upc\').focus();');
return '
<form action=RecallReport.php method=get>
<div class="col-sm-4">
<div class="form-group">
<label>UPC</label>
<input type=text name=upc class="form-control"
id="upc" required />
</div>
<div class="form-group">
<label>Start date</label>
<input type=text name=date1 id="date1" required
class="form-control date-field" />
</div>
<div class="form-group">
<label>End date</label>
<input type=text name=date2 id="date2" required
class="form-control date-field" />
</div>
<div class="form-group">
<button type=submit name=submit value="Get Report"
class="btn btn-default">Get Report</button>
<input type=checkbox name=excel id=excel value=xls /> <label for=excel>Excel</label>
</div>
</div>
<div class="col-sm-4">
' . FormLib::date_range_picker() . '
</div>
</form>';
}
示例10: form_content
function form_content()
{
$dbc = $this->connection;
$dbc->selectDB($this->config->get('OP_DB'));
$codes = new ReasoncodesModel($dbc);
ob_start();
?>
<form method = "get" action="<?php
echo $_SERVER['PHP_SELF'];
?>
">
<div class="col-sm-4">
<div class="form-group">
<label>Reason</label>
<select name="reason" class="form-control">
<option value="0">Any Reason</option>
<?php
foreach ($codes->find() as $obj) {
printf('<option value="%d">%s</option>', $obj->mask(), $obj->textStr());
}
?>
</select>
</div>
<div class="form-group">
<label>Date Start</label>
<input type=text id=date1 name=date1 required
class="form-control date-field" />
</div>
<div class="form-group">
<label>Date End</label>
<input type=text id=date2 name=date2 required
class="form-control date-field" />
</div>
<div class="form-group">
<input type="checkbox" name="excel" id="excel" value="xls" />
<label for="excel">Excel</label>
</div>
<div class="form-group">
<button type=submit name=submit value="Submit"
class="btn btn-default">Submit</button>
<button type=reset name=reset value="Start Over"
class="btn btn-default">Start Over</button>
</div>
</div>
<div class="col-sm-4">
<?php
echo FormLib::date_range_picker();
?>
</div>
</form>
<?php
return ob_get_clean();
}
示例11: form_content
public function form_content()
{
return '
<form action="' . $_SERVER['PHP_SELF'] . '" method="get">
<div class="well">Dates are optional; omit for last quarter</div>
<div class="col-sm-4">
<div class="form-group">
<label>Date Start</label>
<input type=text id=date1 name=date1 class="form-control date-field" />
</div>
<div class="form-group">
<label>Date End</label>
<input type=text id=date2 name=date2 class="form-control date-field" />
</div>
<p>
<button type=submit name=submitted value=1 class="btn btn-default btn-core">Submit</button>
<button type=reset name=reset class="btn btn-default btn-reset">Start Over</button>
</p>
</div>
<div class="col-sm-4">' . FormLib::date_range_picker() . '
</div>
</form>
';
}
示例12: form_content
function form_content()
{
ob_start();
?>
<form method = "get">
<div class="col-sm-4">
<div class="form-group">
<label><?php
echo _('Owner #');
?>
</label>
<input type=text name=card_no id=card_no class="form-control" />
</div>
<div class="form-group">
<label>Date Start</label>
<input type=text id=date1 name=date1 class="form-control date-field" required />
</div>
<div class="form-group">
<label>End Start</label>
<input type=text id=date2 name=date2 class="form-control date-field" required />
</div>
<div class="form-group">
<input type="checkbox" name="excel" id="excel" value="xls" />
<label for="excel">Excel</label>
</div>
<p>
<button type=submit class="btn btn-default btn-core">Submit</button>
<button type=reset class="btn btn-default btn-reset">Start Over</button>
</p>
</div>
<div class="col-sm-4">
<?php
echo FormLib::date_range_picker();
?>
</div>
</form>
<?php
return ob_get_clean();
}
示例13: form_content
function form_content()
{
ob_start();
list($lastMonday, $lastSunday) = \COREPOS\Fannie\API\lib\Dates::lastWeek();
?>
<form action="<?php
echo $_SERVER['PHP_SELF'];
?>
" method="get" id="form1">
<!-- Left column -->
<div class="col-sm-5">
<div class="form-group">
<label>Top how many <?php
echo _("members");
?>
?
<br />(Leave empty for all.)</label>
<input type="text" name="top_n" value="" class="form-control"
id="top_n" />
</div>
<div class="form-group">
<label>Start Date</label>
<input type=text id=date1 name=date1 class="form-control date-field"
value="<?php
echo $lastMonday;
?>
" />
</div>
<div class="form-group">
<label>End Date</label>
<input type=text id=date2 name=date2 class="form-control date-field"
value="<?php
echo $lastSunday;
?>
" />
</div>
<div class="form-group">
<label>Sortable
<input type="checkbox" name="sortable" />
</label>
</div>
<div class="form-group">
<p>
<button type="submit" class="btn btn-default">Prepare Report</button>
</p>
</div>
</div>
<!-- Right column -->
<div class="col-sm-5">
<p>
<br/>
<br/>
<br/>
</p>
<?php
echo FormLib::date_range_picker();
?>
</div>
</form>
<?php
$this->add_onload_command('$(\'#top_n\').focus()');
return ob_get_clean();
// form_content()
}
示例14: form_content
public function form_content()
{
$lastMonday = "";
$lastSunday = "";
$ts = mktime(0, 0, 0, date("n"), date("j") - 1, date("Y"));
while ($lastMonday == "" || $lastSunday == "") {
if (date("w", $ts) == 1 && $lastSunday != "") {
$lastMonday = date("Y-m-d", $ts);
} elseif (date("w", $ts) == 0) {
$lastSunday = date("Y-m-d", $ts);
}
$ts = mktime(0, 0, 0, date("n", $ts), date("j", $ts) - 1, date("Y", $ts));
}
ob_start();
?>
<form action=GeneralSalesReport.php method=get class="form-horizontal">
<div class="row">
<div class="col-sm-6">
<p>
<label>Start Date</label>
<input class="form-control date-field" type=text id=date1 name=date1 value="<?php
echo $lastMonday;
?>
" />
</p>
<p>
<label>End Date</label>
<input class="form-control date-field" type=text id=date2 name=date2 value="<?php
echo $lastSunday;
?>
" />
</p>
</div>
<div class="col-sm-6">
<p>
<?php
echo FormLib::date_range_picker();
?>
</p>
</div>
</div>
<p>
<select name=dept class="form-control">
<option value=0>Use department settings at time of sale</option>
<option value=1>Use current department settings</option>
</select>
</p>
<p>
<button type=submit name=submit value="Submit" class="btn btn-default">Submit</button>
<label><input type=checkbox name=excel /> Excel</label>
</p>
</form>
<?php
return ob_get_clean();
}
示例15: form_content
function form_content()
{
ob_start();
?>
<form method="get" action="<?php
echo $_SERVER['PHP_SELF'];
?>
">
<div class="col-sm-5">
<div class="form-group">
<label>UPC</label>
<input type="text" name="upc" id="upc-field"
required class="form-control" />
</div>
<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>
<p>
<button type=submit class="btn btn-default btn-core">Submit</button>
<button type=reset class="btn btn-default btn-reset">Start Over</button>
</p>
</div>
<div class="col-sm-5">
<?php
echo FormLib::date_range_picker();
?>
</div>
</form>
<?php
$this->add_onload_command('$(\'#upc-field\').focus();');
return ob_get_clean();
}