Esempio n. 1
0
/**
 * adminpwd页面的view代码
 */
function adminpwd_view()
{
    $forms = array();
    $old_attr = array('class' => 'span4', 'name' => 'old_pwd', 'data-required' => 'true', 'data-required-message' => '请输入旧密码');
    $old = form_password($old_attr);
    $old = form_format_widget('旧密码', $old, true);
    $new_attr = array('class' => 'span4', 'name' => 'new_pwd', 'data-required' => 'true', 'data-required-message' => '请输入新密码');
    $new = form_password($new_attr);
    $new = form_format_widget('新密码', $new, true);
    $widget1 = array($old, $new);
    //控件数组
    $forms[] = form_detail_container($widget1);
    $btn = form_success_button();
    $forms[] = form_actions($btn);
    return form_implode($forms);
}
Esempio n. 2
0
/**
 * 表单页面将会有一个提交和返回按钮
 */
function form_detail_actions()
{
    $btn = form_success_button() . a_edit_go_back();
    //提交与返回按钮
    return form_actions($btn);
}