print "background-color: #F33;"; $cantmovehere = 1; if ($siteObj->sections[$_REQUEST['section']]->pages[$_REQUEST['page']]->getField("type") != "page") { $cantmovereason = "This is not a page which you can {$actionlc} this story to."; } else { $cantmovereason = "You do not have permission to {$actionlc} this story here."; } } } if ($siteObj->sections[$_REQUEST['section']]->pages[$_REQUEST['page']]->id == $_SESSION['origPage']) { print "font-weight: bold;"; } print "'>"; foreach ($siteObj->sections[$_REQUEST['section']]->pages as $p => $v) { $title = $siteObj->sections[$_REQUEST['section']]->pages[$p]->getField("title"); $title = segue::cropString($title, 25); print "<option value='{$p}'"; print $siteObj->sections[$_REQUEST['section']]->pages[$p]->id == $_REQUEST['page'] ? " selected" : ""; print " style='"; print !$siteObj->sections[$_REQUEST['section']]->pages[$p]->movePermission($_REQUEST['action'], $_SESSION['auser'], $_SESSION['origSite'], $_SESSION['type']) || $siteObj->sections[$_REQUEST['section']]->pages[$p]->id == $_SESSION['origPage'] && $_REQUEST['action'] == "MOVE" ? "background-color: #F33;" : "background-color: #FFF;"; if ($siteObj->sections[$_REQUEST['section']]->pages[$p]->id == $_SESSION['origPage']) { print "font-weight: bold;"; } else { print "font-weight: normal;"; } print "'>{$title}\n"; } print "</select>"; } else { print "No Pages."; $cantmovehere = 1;