本文整理匯總了PHP中FormLib::standardItemFields方法的典型用法代碼示例。如果您正苦於以下問題:PHP FormLib::standardItemFields方法的具體用法?PHP FormLib::standardItemFields怎麽用?PHP FormLib::standardItemFields使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類FormLib
的用法示例。
在下文中一共展示了FormLib::standardItemFields方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: 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;
}
示例2: 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();
}
示例3: 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();
}