日期:2014-05-17 浏览次数:20499 次
public function javascript() { ?> <script type="text/javascript"> function init_meet() { var cr = new Array(); <? if($this->data != null) { foreach($this->data as $i) { ?> name = "<?php echo $i["code"]; ?>"; cr[name] = new Array(); cr[name]["code"] = '<?=$i["code"]?>'; <? } } ?> return cr; } </script> <? }
var cr = new Array(); name = "2001 "; cr[name] = new Array(); cr[name]["code"] = '2001 '; name = "2002 "; cr[name] = new Array(); cr[name]["code"] = '2002 '; name = "2003 "; cr[name] = new Array(); cr[name]["code"] = '2003 '; name = "2004 "; cr[name] = new Array(); cr[name]["code"] = '2004 '; name = "2005 "; cr[name] = new Array(); cr[name]["code"] = '2005 '; name = "2006 "; cr[name] = new Array(); cr[name]["code"] = '2006 '; name = "2007 "; cr[name] = new Array(); cr[name]["code"] = '2007 '; name = "2008 "; cr[name] = new Array(); cr[name]["code"] = '2008 '; return cr;