[請益] 請問這幾句錯誤的意思還有怎摸解決 謝謝
Warning: in_array() [function.in-array]: Wrong datatype for second argument
in C:\AppServ\www\sales\kevin\manager\templates\default\table.php on line 599
Warning: in_array() [function.in-array]: Wrong datatype for second argument
in C:\AppServ\www\sales\kevin\manager\templates\default\table.php on line 600
Warning: in_array() [function.in-array]: Wrong datatype for second argument
in C:\AppServ\www\sales\kevin\manager\templates\default\table.php on line 601
Warning: in_array() [function.in-array]: Wrong datatype for second argument
in C:\AppServ\www\sales\kevin\manager\templates\default\table.php on line 602
.....一直到609
---------------------------------------------------------------------
程式碼部分
tables.php
function tbl_accessctrl_lang($realarr,$lang)
{
599 if ( in_array('site', $realarr )){$chk1=' checked ';}
600 if ( in_array('access', $realarr )){$chk2=' checked ';}
601 if ( in_array('intro', $realarr )){$chk3=' checked ';}
602 if ( in_array('product', $realarr )){$chk4=' checked ';}
603 if ( in_array('news', $realarr )){$chk5=' checked ';}
604 if ( in_array('faq', $realarr )){$chk6=' checked ';}
605 if ( in_array('inquire', $realarr )){$chk7=' checked ';}
606 if ( in_array('member', $realarr )){$chk8=' checked ';}
607 if ( in_array('file', $realarr )){$chk9=' checked ';}
608 if ( in_array('newsletter', $realarr )){$chk10=' checked ';}
609 if ( in_array('log', $realarr )){$chk11=' checked ';}
echo " <tr><td colspan=\"2\">\n";
echo " <div style=\"cursor: pointer;\"
onclick=\"select_limit_all('".$lang."');\"><b>"._SELECT_ALL."</b></div>\n";
echo " <input class=\"textbg\" type=\"checkbox\" name=\"".$lang."Limit[]\"
value=\"site\" $chk1> "._FUNC_site." \n";
echo " <input class=\"textbg\" type=\"checkbox\" name=\"".$lang."Limit[]\"
value=\"access\" $chk2> "._FUNC_access." \n";
echo " <input class=\"textbg\" type=\"checkbox\" name=\"".$lang."Limit[]\"
value=\"intro\" $chk3> "._FUNC_intro." \n";
echo " <input class=\"textbg\" type=\"checkbox\" name=\"".$lang."Limit[]\"
value=\"product\" $chk4> "._FUNC_product." \n";
echo " <input class=\"textbg\" type=\"checkbox\" name=\"".$lang."Limit[]\"
value=\"news\" $chk5> "._FUNC_news." \n";
echo " <input class=\"textbg\" type=\"checkbox\" name=\"".$lang."Limit[]\"
value=\"faq\" $chk6> "._FUNC_faq." <br>\n";
echo " <input class=\"textbg\" type=\"checkbox\" name=\"".$lang."Limit[]\"
value=\"inquire\" $chk7> "._FUNC_inquire." \n";
echo " <input class=\"textbg\" type=\"checkbox\" name=\"".$lang."Limit[]\"
value=\"member\" $chk8> "._FUNC_member." \n";
echo " <input class=\"textbg\" type=\"checkbox\" name=\"".$lang."Limit[]\"
value=\"file\" $chk9> "._FUNC_file." \n";
echo " <input class=\"textbg\" type=\"checkbox\" name=\"".$lang."Limit[]\"
value=\"newsletter\" $chk10> "._FUNC_newsletter." \n";
echo " <input class=\"textbg\" type=\"checkbox\" name=\"".$lang."Limit[]\"
value=\"log\" $chk11> "._FUNC_log." \n";
echo " </td></tr>\n";
}
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 218.165.101.17
討論串 (同標題文章)
以下文章回應了本文:
完整討論串 (本文為第 1 之 4 篇):