Home > Backend Development > PHP Tutorial > Yii framework pop-up box function example

Yii framework pop-up box function example

高洛峰
Release: 2023-03-04 17:30:01
Original
1263 people have browsed it

The example in this article describes the Yii framework pop-up box function. Share it with everyone for your reference, the details are as follows:

<?php $this->beginWidget(&#39;zii.widgets.jui.CJuiDialog&#39;, array(
  &#39;id&#39;=>&#39;userinfo_edit&#39;,//弹窗ID
  // additional javascript options for the dialog plugin
  &#39;options&#39;=>array(//传递给JUI插件的参数
    &#39;title&#39;=>&#39;修改个人信息&#39;,
    &#39;autoOpen&#39;=>false,//是否自动打开
    &#39;width&#39;=>&#39;auto&#39;,//宽度
    &#39;height&#39;=>&#39;auto&#39;,//高度
    &#39;buttons&#39;=>array(
    &#39;关闭&#39;=>&#39;js:function(){ $(this).dialog("close");}&#39;,
 &#39;提交&#39;=>&#39;js:function(){ health_edit();}&#39; ),
   ),
)); ?>
 <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[&#39;realname&#39;];?>" /></td></tr>
 <tr><td class="arighta">手机</td><td><input type="text" name="mobile" value="<?php echo $userinfo[&#39;mobile&#39;];?>" /></td></tr>
 <tr><td class="arighta">邮箱</td><td><input type="text" name="email" value="<?php echo $userinfo[&#39;email&#39;];?>" /></td></tr>
 </tbody>
 </table>
 <?php
$this->endWidget(&#39;zii.widgets.jui.CJuiDialog&#39;);
?>
Copy after login

I hope this article will be helpful to everyone’s PHP program design based on the Yii framework.

For more Yii framework pop-up box function examples and related articles, please pay attention to the PHP Chinese website!


Related labels:
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template