Name | ". + "Name | ". "Creator | ". - "Posts | ". + "Posts | ". "Public | "; - + if($user->is_admin()){ - $html .= "Action | "; + $html .= "Action | "; } $html .= "
---|---|---|---|---|---|---|---|
".$pool_link." | ". - "".$user_link." | ". + foreach($pools as $pool) { + $oe = ($n++ % 2 == 0) ? "even" : "odd"; + + $pool_link = ''.$pool['title'].""; + $user_link = ''.$pool['user_name'].""; + $del_link = 'Delete'; + $public = ($pool['public'] == "Y" ? "Yes" : "No"); + + $html .= "||||||
".$pool_link." | ". + "".$user_link." | ". "".$pool['posts']." | ". - "".$public." | "; - - if($user->is_admin()){ - $html .= "".$del_link." | "; + "".$public." | "; + + if($user->is_admin()){ + $html .= "".$del_link." | "; + } + + $html .= "
Title | ". - "Description | ". - "
---|---|
".$pool['title']." | ". - "".$pool['description']." | ". - "
Title | ". - "Description | ". - "
---|---|
".$pool['title']." | ". - "".$pool['description']." | ". - "
Pool | ". + "Pool | ". "Post Count | ". - "Changes | ". + "Changes | ". "Updater | ". "Date | ". "Action | ". "
---|---|---|---|---|---|---|---|
".$pool_link." | ". + foreach($histories as $history) { + $oe = ($n++ % 2 == 0) ? "even" : "odd"; + + $pool_link = "".html_escape($history['title']).""; + $user_link = "".html_escape($history['user_name']).""; + $revert_link = "Revert"; + + if ($history['action'] == 1) { + $prefix = "+"; + } elseif ($history['action'] == 0) { + $prefix = "-"; + } + + $images = trim($history['images']); + $images = explode(" ", $images); + + $image_link = ""; + foreach ($images as $image) { + $image_link .= "".$prefix.$image." "; + } + + $html .= "|||||||
".$pool_link." | ". "".$history['count']." | ". - "".$image_link." | ". + "".$image_link." | ". "".$user_link." | ". - "".$history['date']." | ". + "".$history['date']." | ". "".$revert_link." | ". "