[Codeigniter-users] (無題)

Back to archive index

小島健太郎 kojim****@gmail*****
2012年 7月 12日 (木) 18:28:21 JST


$B$*@$OC$K$J$C$F$*$j$^$9!#(B

CodeIgniter$B$r;HMQ$7$F!"$h$/$"$k8!:w%7%9%F%`$r$D$/$C$F$*$j$^$9!#(B

$B8!:w2hLL$K$F!V8!:w!W%\%?%s$NNY$K!V(BExcel$B=PNO!W%\%?%s$r$D$1(B
$B%/%j%C%/$7$?%\%?%s$N(Bname$BB0 @ -$K$h$C$F=hM}$r @ Z$jJ,$1$h$&$H$7$F$$$^$9!#(B
$B$3$l$^$G$b!"(BCodeIgniter$B$r;HMQ$;$:$KF1$8$h$&$J$b$N$r2?EY$+:n @ .$7$?$3$H$O(B
$B$"$j$^$9!#(B

$B$G$9$,!"2<5-$N$h$&$J%3!<%I$G!"!V(BExcel$B=PNO!W%\%?%s$r%/%j%C%/$7$F$b(B
$B!V8!:w!W%\%?%s2!2<;~$HF1$8F0$-$K$J$C$F$7$^$$$^$9!#(B


** $B%S%e!<(B **********************************

<!--$B8!:w%\%C%/%9It(B-->
<form method="post" action="<?= base_url()?>index.php/c_ReplyManager/listAll" >
<input type = ....>
<input type = ....>
:
<button type="submit" name="search" class="btn btn-primary
btn-large">$B8!!!!!!!:w(B</button>
<button type="submit" name="outputexcel" class="btn btn-primary
btn-large">Excel$B=PNO(B</button>
</form>
:
<!--$B8!:w7k2LI=<(It(B-->
:


** $B%3%s%H%m!<%i(B ****************************
function listAll() {

if($this->input->post("search", TRUE)){
  //$B8!:w%\%?%s$+$i$N(BPOST$B$N>l9g(B

  //$B-!(BPOST$BCM<u$1<h$j(B
  //$B-"(BDB$B8!:w(B
  //$B-#8!:w7k2L$r%S%e!<$XEO$9(B

}elseif($this->input->post("outputexcel", TRUE)){
  //EXCEL$B=PNO$+$i$N(BPOST

  //$B-!(BPHPEXCEL$B$r;HMQ$7$?CM%;%C%H!u%@%&%s%m!<%I=hM}(B

}else{

  //$B=i4|I=<($N$?$a$N=hM}!J>e5-8!:w=hM}$HF1$8=hM}!"A47oI=<(!K(B

}
}

*******************************************

$this->output->enable_profiler(true);$B$K$F(B
$B>pJs$rI=<($5$;$?$H$3$m!"(B

POST$B%G!<%?$O$A$c$s$H(B$_POST['outputexcel']$B$H(B
$B$J$C$F$$$k$K$b$+$+$o$i$:!"$U$D$&$N8!:w=hM}$N$[$&$,(B
$B<B9T$5$l$F$$$^$9!#(B

$B2?$+860x$,$"$k$N$G$7$g$&$+!)(B
$B$465<(4j$$$^$9!#(B




Codeigniter-users メーリングリストの案内
Back to archive index