예제 #1
0
echo $form->field($model, 'custtax_total');
echo $form->field($model, 'tax_total');
//echo $form->hiddenField($model,'assetvat_acc');
//echo $form->labelEx($model,'assetvat_total');
//echo $form->textField($model,'assetvat_total');
//echo $form->hiddenField($model,'buyvat_acc');
// $form->labelEx($model,'buyvat_total');
//echo $form->textField($model,'buyvat_total');
//echo $form->labelEx($model,'payvat_total');
//echo $form->textField($model,'payvat_total');
//echo \yii\helpers\Html::submitButton('Pay',array('onclick'=>'send();'));
?>
     <div class="row form-actions">
         <?php 
echo \yii\helpers\Html::submitButton(Yii::t('app', 'Commit'), ['class' => 'btn btn-success']);
?>
        
    </div>

<div id="mainPage">
         
        
    </div>

</div>
</div>
    
    
    <?php 
kartik\form\ActiveForm::end();
app\widgets\MiniForm::end();
예제 #2
0
<?php

$form = kartik\form\ActiveForm::begin(array('action' => yii\helpers\BaseUrl::base() . $this->route, 'method' => 'get'));
?>

	<?php 
echo $form->field($model, 'id', array('class' => 'span5'));
?>

	<?php 
echo $form->field($model, 'name', array('class' => 'span5', 'maxlength' => 255));
?>

	<?php 
echo $form->field($model, 'AccType_id', array('class' => 'span5'));
?>

	<div class="form-actions">
		<?php 
$this->widget('bootstrap.widgets.TbButton', array('buttonType' => 'submit', 'type' => 'success', 'label' => 'Search'));
?>
	</div>

<?php 
app\widgets\MiniForm::end();
예제 #3
0
파일: _form.php 프로젝트: chaimvaid/linet3
<?php 
app\widgets\MiniForm::end();
?>








<?php 
echo \yii\jui\Dialog::begin(array('id' => 'addnew', 'options' => array('title' => Yii::t('app', 'Add new field'), 'autoOpen' => false, 'width' => '600px')));
//bootstrap.widgets.TbModal
$form = kartik\form\ActiveForm::begin(array('id' => 'newField', 'action' => array('SaveSub', 'id' => $model->id)));
?>

<div class="modal-body">
<?php 
$models = EavFields::find()->All();
//array('order' => 'name')
$list = \yii\helpers\ArrayHelper::map($models, 'id', 'name');
$options = array();
$select = \yii\helpers\Html::dropDownList(ucfirst($this->id) . 'Item[eavFields_id]', 0, $list, $options);
echo $select;
?>
    <input type='hidden' value='<?php 
echo $model->id;
?>
' name='<?php 
예제 #4
0
파일: _form.php 프로젝트: chaimvaid/linet3
<?php

$form = kartik\form\ActiveForm::begin(array('id' => 'acctype-form', 'enableAjaxValidation' => false));
?>

	<?php 
echo $form->errorSummary($model);
?>

	<?php 
echo $form->field($model, 'name', array('class' => 'span5', 'maxlength' => 40));
?>

	<?php 
echo $form->field($model, 'desc', array('class' => 'span5', 'maxlength' => 40));
?>

	<?php 
echo $form->field($model, 'openformat', array('class' => 'span5', 'maxlength' => 5));
?>

	<div class="form-actions">
		<?php 
echo \yii\helpers\Html::submitButton($model->isNewRecord ? Yii::t('app', 'Create') : Yii::t('app', 'Update'), ['class' => 'btn btn-success']);
?>
	</div>

<?php 
app\widgets\MiniForm::end();
예제 #5
0
파일: config.php 프로젝트: chaimvaid/linet3
<?php

app\widgets\MiniForm::begin(array('header' => Yii::t('app', "Install Wizard")));
$form = kartik\form\ActiveForm::begin(array('id' => 'install-form', 'enableAjaxValidation' => false, 'options' => array('onsubmit' => "return false;", 'onkeypress' => " if(event.keyCode == 13){ send(); } ")));
$option = array('mysql' => 'Mysql');
//'sqlite'=>'Sqlite',
echo $form->radioButtonList($model, 'dbtype', $option, array('separator' => ' '));
echo $form->field($model, 'dbhost', array('class' => 'span5', 'maxlength' => 255));
echo $form->field($model, 'dbname', array('class' => 'span5', 'maxlength' => 255));
echo $form->field($model, 'dbuser', array('class' => 'span5', 'maxlength' => 255));
echo $form->field($model, 'dbpassword', array('class' => 'span5', 'maxlength' => 255));
echo $form->field($model, 'dbstring', array('class' => 'span5', 'maxlength' => 255));
//echo \yii\helpers\Html::submitButton('Previews',array('onclick'=>'send();'));
echo \yii\helpers\Html::submitButton(Yii::t("app", 'Next'), array('onclick' => 'send();'));
app\widgets\MiniForm::end();
app\widgets\MiniForm::end();
?>


<script type="text/javascript">
 
function send() {
 
   var data=$("#install-form").serialize();
 
 
  $.ajax({
        type: 'POST',
         url: '<?php 
echo yii\helpers\BaseUrl::base() . "install/3";
?>
예제 #6
0
파일: user.php 프로젝트: chaimvaid/linet3
<?php

app\widgets\MiniForm::begin(array('header' => Yii::t("app", "Install Wizard")));
//$this->renderPartial('application.views.users._form',array('model'=>$model ));
///*
$form = kartik\form\ActiveForm::begin(array('id' => 'user-form', 'enableAjaxValidation' => true));
$model->language = 'he_il';
$model->timezone = 'Asia/Jerusalem';
?>

	<p class="help-block"><?php 
echo Yii::t('app', "Fields with");
?>
 <span class="required">*</span> <?php 
echo Yii::t('app', "are required");
?>
.</p>

	<?php 
echo $form->errorSummary($model);
?>

	<?php 
echo $form->field($model, 'username', array('maxlength' => 100));
?>

	<?php 
echo $form->field($model, 'fname', array('maxlength' => 80));
?>
        
	<?php