首页 > 其他 > 详细

smarty中下拉框的运用

时间:2017-03-27 10:57:03      阅读:173      评论:0      收藏:0      [点我收藏+]

PHP

    $this->ci_smarty->assign(‘templet_ids‘, array( ‘1‘, ‘2‘, ‘3‘ ));
        $this->ci_smarty->assign(‘templet_types‘, array(lang(‘templet_type_one‘), lang(‘templet_type_two‘), lang(‘templet_type_three‘)));
        $this->ci_smarty->assign(‘select_item‘, 1);
        
        $this->ci_smarty->display_common(‘game/templet/templet_add.php‘,$is_modal);

html

  <{html_options values=$templet_ids output=$templet_types selected=$select_item}>

  

smarty中下拉框的运用

原文:http://www.cnblogs.com/ddxg/p/6625297.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!