$disorderarray = array(1, 2, 3, 4, 5);
    $cat = $dal->get_count_dissorder_age_persons_by_unit($unit_in, 0, 11, $age_min, $age_max, $disorder);
    $cat = $cat[0];
    $table = str_replace("##DISORDER{$disorder}##", $cat->sestevek, $table);
    echo $table;
    return $table;
}
foreach ($unitarray as $unit_in) {
    $table .= $row;
    $enota = $dal->get_unit_by_persons_unit($unit_in);
    $enota = $enota[0];
    $table = str_replace("##UNIT##", $enota->name, $table);
    // for ($i=0; $i<6; $i++){
    $query1;
    echo "ne dela";
    $table = query1($i);
    //}
}
/*
foreach ($unitarray as $unit_in) {

    $table.=$row;

    $enota = $dal->get_unit_by_persons_unit($unit_in);
    $enota = $enota[0];
    $table = str_replace("##UNIT##", $enota->name, $table);

       $cat1 = $dal->get_count_dissorder_age_persons_by_unit($unit_in, 0, 11, $age_min, $age_max, 1);
       $cat1=$cat1[0];
       $table = str_replace("##DISORDER##", $cat1->sestevek, $table);
Example #2
0
 public function query1()
 {
     //查询
     echo "select:";
     var_dump(query1("show tables"));
     var_dump(query1("select * from myweb_user_code where email='*****@*****.**'"));
     var_dump(query1("select * from myweb_user_code where code_id=? and email=?", array(1, '*****@*****.**')));
     echo "<br />";
     throw new Exception('exit');
     //添加
     echo "insert:";
     var_dump(query1("insert into myweb_user_code set email='*****@*****.**'"));
     var_dump(query1("insert into myweb_user_code(email,expire) value('*****@*****.**'," . time() . ")"));
     var_dump(query1("insert into myweb_user_code set email=?,expire=?", array('*****@*****.**', time())));
     throw new Exception('exit');
     //修改
     echo "update:";
     var_dump(query1("update myweb_user_code set email='*****@*****.**' where code_id=1"));
     var_dump(query1("update myweb_user_code set email=? where code_id=?", array("*****@*****.**", 2)));
     echo "<br />";
     throw new Exception('exit');
     //删除
     echo "delete:";
     var_dump(query1("delete from myweb_user_code where code_id = 1 and email='*****@*****.**'"));
     var_dump(query1("delete from myweb_user_code where code_id = ? and email=?", array(2, "*****@*****.**")));
     echo "<br />";
 }
Example #3
0
		}

		function callpay()
		{
			if (typeof WeixinJSBridge == "undefined"){
			    if( document.addEventListener ){
			        document.addEventListener('WeixinJSBridgeReady', jsApiCall, false);
			    }else if (document.attachEvent){
			        document.attachEvent('WeixinJSBridgeReady', jsApiCall); 
			        document.attachEvent('onWeixinJSBridgeReady', jsApiCall);
			    }
			}else{
			    jsApiCall();
			}
		}
	</script>
</head>
<body>
	</br></br></br></br>
	<?php 
$info = query1("select * from qygsp_pay_log where log_id = {$out_trade_no} limit 1");
?>
	<div id="tip" align="center" style="">
		<!--<button style="width:210px; height:30px; background-color:#FE6714; border:0px #FE6714 solid; cursor: pointer;  color:white;  font-size:16px;" type="button" onclick="callpay()" >稍等片刻,马上进入微信支付</button>-->
马上进入微信支付,稍等片刻...
	</div>
	<script>
	callpay();
	</script>
</body>
</html>