Lines Matching refs:dataList
8 function tpl_list_folder($dataList){ argument
21 for($i=0; $i<count($dataList); $i++){
24 if($dataList[$i]["type"] == "d"){
25 $perm = auth_quickaclcheck($dataList[$i]["id"].":*");
27 $perm = auth_quickaclcheck($dataList[$i]["id"]);
33 $firstHeading = p_get_first_heading($dataList[$i]["id"]);
34 if($conf['useheading'] && $dataList[$i]["type"] == "f" && !empty($firstHeading)){
37 $linkName = split(":", $dataList[$i]["id"]);
43 if($currentLevel > $dataList[$i]["level"]){
44 echo str_repeat("</ul></li>\n", $currentLevel - $dataList[$i]["level"]);
45 $currentLevel = $dataList[$i]["level"];
49 if($dataList[$i]["type"] == "d"){
51 if($dataList[$i]["open"]){
58 $path = wl($dataList[$i]["id"].":".$conf['start'], "do=admin&page=acl");
60 $path = wl($dataList[$i]["id"].":".$conf['start']);
66 if($dataList[$i]["id"] == $ID){
71 $path = wl($dataList[$i]["id"], "do=admin&page=acl");
73 $path = wl($dataList[$i]["id"]);
77 if($dataList[$i]["id"] == $ID){
83 if($dataList[$i+1]["level"] == $currentLevel){
86 }else if($dataList[$i+1]["level"] > $currentLevel){
89 }else if($dataList[$i+1]["level"] < $currentLevel){
91 if(!empty($dataList[$i+1]["level"])){
92 echo str_repeat("</ul></li>\n", $currentLevel - $dataList[$i+1]["level"]);
95 $currentLevel = $dataList[$i+1]["level"];