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


PHP Branch::getOptions方法代码示例

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


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

示例1: alert

                    sale_can_edit_price = data.sale_can_edit_price;
                    sale_can_add_sub_price = data.sale_can_add_sub_price;
                    sale_out_of_stock = data.sale_out_of_stock;

                    if (data.sale_can_edit_price == 'no') {
                        $('.price').attr('readonly', 'readonly');
                    }
                }
            }
        });
    }
</script>

<?php 
$sumTotalPrice = BillSale::sumTotalPrice();
$branchList = Branch::getOptions();
?>

<?php 
if (count($branchList) == 0) {
    ?>
    <script>
        $(function () {
            alert("<?php 
    echo Yii::t('lang', 'sinceyou_have_not_yet_entered_the_field_Please_branches_before');
    ?>
";
                    window.location = 'index.php?r=Config/BranchIndex';
        });
    </script>
<?php 
开发者ID:adsavin,项目名称:bswshop,代码行数:31,代码来源:Sale.php

示例2: array

echo $form->textField($model, 'bill_import_code', array('class' => 'form-control', 'style' => 'width: 200px'));
?>
				
					<!-- bill_import_created_date -->
					<label for=""><?php 
echo Yii::t('lang', 'date_received');
?>
</label>
					<?php 
echo $form->textField($model, 'bill_import_created_date', array('class' => 'form-control datepicker', 'style' => 'width: 200px'));
?>
				</div>
				
				<div>
					<?php 
$branchOptions = Branch::getOptions();
?>
					
					<!-- branch_id -->
					<label for=""><?php 
echo Yii::t('lang', 'get_into_the_field');
?>
</label>
					<?php 
echo $form->dropdownList($model, 'branch_id', $branchOptions, array('class' => 'form-control', 'style' => 'width: 200px'));
?>
					
					<!-- from_branch_id -->
					<label for=""><?php 
echo Yii::t('lang', 'input_from_the_field');
?>
开发者ID:adsavin,项目名称:app,代码行数:31,代码来源:BillImport.php

示例3: array

			
			<div>
				<?php 
echo $form->labelEx($model, 'member_address');
?>
				<?php 
echo $form->textField($model, 'member_address', array('class' => 'form-control', 'style' => 'width: 700px'));
?>
			</div>
			
			<div>
				<?php 
echo $form->labelEx($model, 'branch_id');
?>
				<?php 
echo $form->dropdownList($model, 'branch_id', Branch::getOptions(true), array('class' => 'form-control', 'style' => 'width: 300px'));
?>
				
				<font color="red"> * <?php 
echo Yii::t('lang', 'if_your_branch_is_based_on_the_employee_s_login_id_field');
?>
</font>
			</div>

			<div>
				<label><?php 
echo Yii::t('lang', 'more_details');
?>
</label>
				<?php 
echo $form->textField($model, 'remark', array('class' => 'form-control', 'style' => 'width: 500px'));
开发者ID:adsavin,项目名称:app,代码行数:30,代码来源:MemberForm.php

示例4: array

</div>
    <div class="panel-body">
    	<form name="form1" method="post">
        <?php 
$date_find = Util::nowThai();
if (!empty($_POST)) {
    $date_find = $_POST['date_find'];
}
?>
        <div>
        	<label style="width: 80px"><?php 
echo Yii::t('lang', 'select_store');
?>
</label>
        	<?php 
echo CHtml::dropdownList('branch_id', @$branch_id, Branch::getOptions(), array('class' => 'form-control', 'style' => 'width: 200px'));
?>
        </div>
        <div>
            <label style="width: 80px"><?php 
echo Yii::t('lang', 'choose_the_date');
?>
</label>
            <input type="text" name="date_find" class="form-control datepicker" style="width: 200px" value="<?php 
echo $date_find;
?>
" />
            ถึง
            <input type="text" name="date_end" class="form-control datepicker" style="width: 200px" value="<?php 
echo $date_end;
?>
开发者ID:adsavin,项目名称:air,代码行数:31,代码来源:ReportSalePerDay.php


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