aboutsummaryrefslogtreecommitdiffstats
path: root/mod/webpages.php
blob: 48634551d963efad71d2e9d771a63e6aeb83b456 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?php
function webpages_content(&$a) {


$r = q("select * from item_id");

//print "<br /> <br /> <br /> <br />";
//foreach ($r as $rr) {
//print '<a href="editwebpage/' . ($rr['iid']) .'">Edit</a>' . '&nbsp' . ($rr['sid']) . '<br />';
//}

		$pages = null;

		if($r) {
			$pages = array();
			foreach($r as $rr) {
				$pages[$rr['iid']][] = array('url' => $rr['iid'],'title' => $rr['sid']);
			} 
		}

		logger('mod_profile: things: ' . print_r($pages,true), LOGGER_DATA); 

       return replace_macros(get_markup_template("webpageslist.tpl"), array(
           	    '$webpages' => $webpages
        ));
    }


return;
}