示例#1
0
文件: _form.php 项目: ewwgit/eptri
						<div class="form-group">
							
							<?php 
echo $form->field($model, 'uom')->dropDownList(ArrayHelper::map(Units::find()->all(), 'unitName', 'unitName'), ['prompt' => 'Unit']);
?>
						</div>
					</div>
				</div>
				<!--row 2end-->

				<div class="row">
					<!--row 3-->
					<div class="col-md-4">
						<div class="form-group">
                               <?php 
echo $form->field($model, 'AltUom')->dropDownList(ArrayHelper::map(Units::find()->all(), 'unitName', 'unitName'), ['prompt' => 'Alternate Unit']);
?>
 
                              </div>
					</div>
					<div class="col-md-4">
						<div class="form-group">
                                <?php 
echo $form->field($model, 'SalePrice')->textInput(['maxlength' => true]);
?>
                              </div>
					</div>
					
					<div class="col-md-4">
						<div class="form-group">
                                <?php 
示例#2
0
?>
" value="<?php 
echo $model['AltQty'];
?>
"></div></td>
                            <td><div class="actualval acval<?php 
echo $model['Saleid'];
?>
" ><?php 
echo $model['AltUom'];
?>
</div><div class="inpval inval<?php 
echo $model['Saleid'];
?>
"><?php 
echo Html::activeDropDownList($model, 'AltUom', ArrayHelper::map(Units::find()->all(), 'unitName', 'unitName'), ['id' => 'altuom' . $model['Saleid']]);
?>
</div></td>
                            <td><div class="actualval acval<?php 
echo $model['Saleid'];
?>
" ><?php 
echo $model['UnitPrice'];
?>
</div><div class="inpval inval<?php 
echo $model['Saleid'];
?>
"><input type="text" class="product-width" id="unitprice<?php 
echo $model['Saleid'];
?>
" value="<?php 
示例#3
0
 /**
  * Lists all Units models.
  * @return mixed
  */
 public function actionIndex()
 {
     $dataProvider = new ActiveDataProvider(['query' => Units::find()]);
     return $this->render('index', ['dataProvider' => $dataProvider]);
 }