《PHP編程:Yii框架彈出框功能示例》要點:
本文介紹了PHP編程:Yii框架彈出框功能示例,希望對您有用。如果有疑問,可以聯(lián)系我們。
相關(guān)主題:YII框架
本文實例講述了Yii框架彈出框功能.分享給大家供大家參考,具體如下:PHP應(yīng)用
<?php $this->beginWidget('zii.widgets.jui.CJuiDialog', array( 'id'=>'userinfo_edit',//彈窗ID // additional javascript options for the dialog plugin 'options'=>array(//傳遞給JUI插件的參數(shù) 'title'=>'修改個人信息', 'autoOpen'=>false,//是否自動打開 'width'=>'auto',//寬度 'height'=>'auto',//高度 'buttons'=>array( '關(guān)閉'=>'js:function(){ $(this).dialog("close");}', '提交'=>'js:function(){ health_edit();}' ), ), )); ?> <table> <tbody> <input type="hidden" name="GrouphealthForm[student_id]" id="GrouphealthForm_student_id" value="<?php echo $uid; ?>" /> <tr><td class="arighta"><label>昵稱</label></td><td><input type="text" name="realname" value="<?php echo $userinfo['realname'];?>" /></td></tr> <tr><td class="arighta">手機</td><td><input type="text" name="mobile" value="<?php echo $userinfo['mobile'];?>" /></td></tr> <tr><td class="arighta">郵箱</td><td><input type="text" name="email" value="<?php echo $userinfo['email'];?>" /></td></tr> </tbody> </table> <?php $this->endWidget('zii.widgets.jui.CJuiDialog'); ?>
更多關(guān)于Yii相關(guān)內(nèi)容感興趣的讀者可查看本站專題:《Yii框架入門及常用技巧總結(jié)》、《php優(yōu)秀開發(fā)框架總結(jié)》、《smarty模板入門基礎(chǔ)教程》、《php面向?qū)ο蟪绦蛟O(shè)計入門教程》、《php字符串(string)用法總結(jié)》、《php+mysql數(shù)據(jù)庫操作入門教程》及《php常見數(shù)據(jù)庫操作技巧匯總》PHP應(yīng)用
希望本文所述對大家基于Yii框架的PHP程序設(shè)計有所幫助.PHP應(yīng)用
轉(zhuǎn)載請注明本頁網(wǎng)址:
http://www.fzlkiss.com/jiaocheng/2017.html