當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。