scarezekiel Posted September 27, 2012 Share Posted September 27, 2012 Im an amateur.. anyone can help me on this yii framework forms.. i cant attach a photo of it.. keep failing to upload. this is the code I need (tel1,tel2,tel3) (fax1,fax2,fax3) to be on the same row.. I tried to put them on the same <div>. Doesn't work. <link rel="stylesheet" type="text/css" href="/erp/css/tabs/tabs.css" media="screen, projection" /> <div class="form"> <?php $form=$this->beginWidget('CActiveForm', array( 'id'=>'member-form', 'enableAjaxValidation'=>false, )); ?> <p class="note">Fields with <span class="required">*</span> are required.</p> <?php echo $form->errorSummary($model); ?> <ol id="toc"> <li><a href="#page-1"><span>General</span></a></li> <li><a href="#page-2"><span>Address</span></a></li> </ol> <div class="content" id="page-1"> <div class="row"> <?php echo $form->labelEx($model,'membertypeid'); ?> <?php echo $form->textField($model,'membertypeid'); ?> <?php echo $form->error($model,'membertypeid'); ?> </div> <div class="row"> <?php echo $form->labelEx($model,'memberid'); ?> <?php echo $form->textField($model,'memberid',array('size'=>60,'maxlength'=>100)); ?> <?php echo $form->error($model,'memberid'); ?> </div> <div class="row"> <?php echo $form->labelEx($model,'eno'); ?> <?php echo $form->textField($model,'eno',array('size'=>60,'maxlength'=>100)); ?> <?php echo $form->error($model,'eno'); ?> </div> <div class="row"> <?php echo $form->labelEx($model,'memberstatusid'); ?> <?php echo $form->textField($model,'memberstatusid'); ?> <?php echo $form->error($model,'memberstatusid'); ?> </div> <div class="row"> <?php echo $form->labelEx($model,'joineddate'); ?> <?php echo $form->textField($model,'joineddate'); ?> <?php echo $form->error($model,'joineddate'); ?> </div> <div class="row"> <?php echo $form->labelEx($model,'name'); ?> <?php echo $form->textField($model,'name',array('size'=>60,'maxlength'=>255)); ?> <?php echo $form->error($model,'name'); ?> </div> <div class="row"> <?php echo $form->labelEx($model,'icno'); ?> <?php echo $form->textField($model,'icno',array('size'=>60,'maxlength'=>100)); ?> <?php echo $form->error($model,'icno'); ?> </div> <div class="row"> <?php echo $form->labelEx($model,'passportno'); ?> <?php echo $form->textField($model,'passportno',array('size'=>60,'maxlength'=>100)); ?> <?php echo $form->error($model,'passportno'); ?> </div> <div class="row"> <?php echo $form->labelEx($model,'companyid'); ?> <?php echo $form->textField($model,'companyid'); ?> <?php echo $form->error($model,'companyid'); ?> </div> <div class="row"> <?php echo $form->labelEx($model,'remark'); ?> <?php echo $form->textField($model,'remark',array('size'=>60,'maxlength'=>255)); ?> <?php echo $form->error($model,'remark'); ?> </div> </div> <div class="content" id="page-2"> <div class="row"> <?php echo $form->labelEx($model,'address1'); ?> <?php echo $form->textField($model,'address1',array('size'=>60,'maxlength'=>100)); ?> <?php echo $form->error($model,'address1'); ?> </div> <div class="row"> <?php echo $form->labelEx($model,'address2'); ?> <?php echo $form->textField($model,'address2',array('size'=>60,'maxlength'=>100)); ?> <?php echo $form->error($model,'address2'); ?> </div> <div class="row"> <?php echo $form->labelEx($model,'postcode'); ?> <?php echo $form->textField($model,'postcode',array('size'=>60,'maxlength'=>100)); ?> <?php echo $form->error($model,'postcode'); ?> </div> <div class="row"> <?php echo $form->labelEx($model,'city'); ?> <?php echo $form->textField($model,'city',array('size'=>60,'maxlength'=>100)); ?> <?php echo $form->error($model,'city'); ?> </div> <div class="row"> <?php echo $form->labelEx($model,'state'); ?> <?php echo $form->textField($model,'state',array('size'=>60,'maxlength'=>100)); ?> <?php echo $form->error($model,'state'); ?> </div> <div class="row"> <?php echo $form->labelEx($model,'country'); ?> <?php echo $form->textField($model,'country',array('size'=>60,'maxlength'=>100)); ?> <?php echo $form->error($model,'country'); ?> </div> <div class="row"> <?php echo $form->labelEx($model,'mobile1'); ?> <?php echo $form->textField($model,'mobile1',array('size'=>60,'maxlength'=>100)); ?> <?php echo $form->error($model,'mobile1'); ?> </div> <div class="row"> <?php echo $form->labelEx($model,'mobile2'); ?> <?php echo $form->textField($model,'mobile2',array('size'=>60,'maxlength'=>100)); ?> <?php echo $form->error($model,'mobile2'); ?> </div> <div class="row"> <?php echo $form->labelEx($model,'mobile3'); ?> <?php echo $form->textField($model,'mobile3',array('size'=>60,'maxlength'=>100)); ?> <?php echo $form->error($model,'mobile3'); ?> </div> <div class="row"> <?php echo $form->labelEx($model,'tel1'); ?> <?php echo $form->textField($model,'tel1',array('size'=>60,'maxlength'=>100)); ?> <?php echo $form->error($model,'tel1'); ?> </div> <div class="row"> <?php echo $form->labelEx($model,'tel2'); ?> <?php echo $form->textField($model,'tel2',array('size'=>60,'maxlength'=>100)); ?> <?php echo $form->error($model,'tel2'); ?> </div> <div class="row"> <?php echo $form->labelEx($model,'tel3'); ?> <?php echo $form->textField($model,'tel3',array('size'=>60,'maxlength'=>100)); ?> <?php echo $form->error($model,'tel3'); ?> </div> <div class="row"> <?php echo $form->labelEx($model,'fax1'); ?> <?php echo $form->textField($model,'fax1',array('size'=>60,'maxlength'=>100)); ?> <?php echo $form->error($model,'fax1'); ?> </div> <div class="row"> <?php echo $form->labelEx($model,'fax2'); ?> <?php echo $form->textField($model,'fax2',array('size'=>60,'maxlength'=>100)); ?> <?php echo $form->error($model,'fax2'); ?> </div> <div class="row"> <?php echo $form->labelEx($model,'fax3'); ?> <?php echo $form->textField($model,'fax3',array('size'=>60,'maxlength'=>100)); ?> <?php echo $form->error($model,'fax3'); ?> </div> <div class="row"> <?php echo $form->labelEx($model,'email1'); ?> <?php echo $form->textField($model,'email1',array('size'=>60,'maxlength'=>255)); ?> <?php echo $form->error($model,'email1'); ?> </div> <div class="row"> <?php echo $form->labelEx($model,'email2'); ?> <?php echo $form->textField($model,'email2',array('size'=>60,'maxlength'=>255)); ?> <?php echo $form->error($model,'email2'); ?> </div> <div class="row"> <?php echo $form->labelEx($model,'email3'); ?> <?php echo $form->textField($model,'email3',array('size'=>60,'maxlength'=>255)); ?> <?php echo $form->error($model,'email3'); ?> </div> <div class="row"> <?php echo $form->labelEx($model,'picture'); ?> <?php echo $form->textField($model,'picture'); ?> <?php echo $form->error($model,'picture'); ?> </div> <div class="row"> <?php echo $form->labelEx($model,'createdby'); ?> <?php echo $form->textField($model,'createdby',array('size'=>60,'maxlength'=>100)); ?> <?php echo $form->error($model,'createdby'); ?> </div> <div class="row"> <?php echo $form->labelEx($model,'createddate'); ?> <?php echo $form->textField($model,'createddate'); ?> <?php echo $form->error($model,'createddate'); ?> </div> <div class="row"> <?php echo $form->labelEx($model,'modifiedby'); ?> <?php echo $form->textField($model,'modifiedby',array('size'=>60,'maxlength'=>100)); ?> <?php echo $form->error($model,'modifiedby'); ?> </div> <div class="row"> <?php echo $form->labelEx($model,'modifieddate'); ?> <?php echo $form->textField($model,'modifieddate'); ?> <?php echo $form->error($model,'modifieddate'); ?> </div> </div> <script type="text/javascript" src="/erp/css/tabs/activatables.js"></script> <script type="text/javascript"> activatables('page', ['page-1', 'page-2']); </script> <div class="row buttons"> <?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?> </div> <?php $this->endWidget(); ?> </div><!-- form --> Quote Link to comment https://forums.phpfreaks.com/topic/268843-need-help-on-yii-framework-forms/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.