du532861657 2015-11-06 03:43
浏览 9

如何使用codeigniter创建窗体

I'm using MySQL for database and codeigniter. I got problem. I want make a new windows form when I click a button or something. so I do this. I use this code in view:

function getproductfjs(obj) {
window.open('<?php echo base_url()."index.php/menuppic/get_all_part_po?index=";?>'addressbar=0,location=0,height=600,width=800,scrollbars=1');
}

<tr>
<input type="text" size="20" class="form-control" readonly name="idcust_0" id="idcust_0"  onclick="getproductfjs(this);" placeHolder="Choose Here..."></td>
</tr>

-then in controllers:

function get_all_part_po(){
        $this->check_page();
        $data['query'] = $this->sj->get_data_allpartpo();
        $this->load->view('ppic/sj/get_all_part_po_view',$data);
    }

-then in models:

function get_data_allpartpo() {
        $query = $this->db->query("select p.*, c.*, n.*, s.*, c2.*
from tbl_partpo p, tbl_partcustomer c , tbl_nopo n, tbl_schedpo s, tbl_customer c2
where p.id=s.id and c.idpart = p.idpart and n.idnopo = p.idnopo and c2.idcust=c.idcust and qtyscpend <> 0 and c.idcust=1019 ");
        return $query;
    }
  • I tried the query in database phpmyadmin and its work. the problem is why its not show a new windows form. its just only make a new tab. what I want is make a new windows form when I get click on that placeholder. please gimme something that maybe I should know or a link where I can found out my problems.
  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 下图接收小电路,谁知道原理
    • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
    • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
    • ¥15 手机接入宽带网线,如何释放宽带全部速度
    • ¥30 关于#r语言#的问题:如何对R语言中mfgarch包中构建的garch-midas模型进行样本内长期波动率预测和样本外长期波动率预测
    • ¥15 ETLCloud 处理json多层级问题
    • ¥15 matlab中使用gurobi时报错
    • ¥15 这个主板怎么能扩出一两个sata口
    • ¥15 不是,这到底错哪儿了😭
    • ¥15 2020长安杯与连接网探