《PHP編程:Yii框架彈出框功能示例》要點(diǎn):
本文介紹了PHP編程:Yii框架彈出框功能示例,希望對(duì)您有用。如果有疑問(wèn),可以聯(lián)系我們。
相關(guān)主題:YII框架
本文實(shí)例講述了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'=>'修改個(gè)人信息', 'autoOpen'=>false,//是否自動(dòng)打開(kāi) '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>昵稱(chēng)</label></td><td><input type="text" name="realname" value="<?php echo $userinfo['realname'];?>" /></td></tr> <tr><td class="arighta">手機(jī)</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)容感興趣的讀者可查看本站專(zhuān)題:《Yii框架入門(mén)及常用技巧總結(jié)》、《php優(yōu)秀開(kāi)發(fā)框架總結(jié)》、《smarty模板入門(mén)基礎(chǔ)教程》、《php面向?qū)ο蟪绦蛟O(shè)計(jì)入門(mén)教程》、《php字符串(string)用法總結(jié)》、《php+mysql數(shù)據(jù)庫(kù)操作入門(mén)教程》及《php常見(jiàn)數(shù)據(jù)庫(kù)操作技巧匯總》PHP應(yīng)用
希望本文所述對(duì)大家基于Yii框架的PHP程序設(shè)計(jì)有所幫助.PHP應(yīng)用
轉(zhuǎn)載請(qǐng)注明本頁(yè)網(wǎng)址:
http://www.snjht.com/jiaocheng/2017.html