Exemple #1
0
/**
 * Deletes one or more records
 * @param array An array of unique category id numbers
 * @param string The current url option
 */
function removeWarn($cid, $option)
{
    if (!is_array($cid) || count($cid) < 1) {
        echo "<script> alert('Select an item to delete'); window.history.go(-1);</script>\n";
        exit;
    }
    $galleries = rsgGalleryManager::getArray($cid);
    html_rsg2_galleries::removeWarn($galleries);
}
 function printTree($galleries)
 {
     echo "<ul>";
     foreach ($galleries as $g) {
         // print gallery details
         echo "<li>" . $g->get('name') . " (" . count($g->itemRows()) . " images)";
         html_rsg2_galleries::printTree($g->kids());
         echo "</li>";
     }
     echo "</ul>";
 }