function renderPopupObjectSelector() { assertPermission('object', 'default'); $object_id = getBypassValue(); echo '<h2>Choose a container:</h2>'; echo '<form action="javascript:;">'; $parents = findObjectParentCandidates($object_id); printSelect($parents, array('name' => 'parents', 'size' => getConfigVar('MAXSELSIZE'))); echo '<br>'; echo "<input type=submit value='Proceed' onclick='" . "if (getElementById(\"parents\").value != \"\") {" . "\topener.location=\"?module=redirect&page=object&tab=edit&op=linkObjects&object_id={$object_id}&child_entity_type=object&child_entity_id={$object_id}&parent_entity_type=object&parent_entity_id=\"+getElementById(\"parents\").value; " . "\twindow.close();}'>"; echo '</form>'; }
function renderPopupObjectSelector() { $object_id = getBypassValue(); echo '<div style="background-color: #f0f0f0; border: 1px solid #3c78b5; padding: 10px; height: 100%; text-align: center; margin: 5px;">'; echo '<h2>Choose a container:</h2>'; echo '<form action="javascript:;">'; $parents = findObjectParentCandidates($object_id); printSelect($parents, array('name' => 'parents', 'size' => getConfigVar('MAXSELSIZE'))); echo '<br>'; echo "<input type=submit value='Proceed' onclick='" . "if (getElementById(\"parents\").value != \"\") {" . "\topener.location=\"?module=redirect&page=object&tab=edit&op=linkObjects&object_id={$object_id}&child_entity_type=object&child_entity_id={$object_id}&parent_entity_type=object&parent_entity_id=\"+getElementById(\"parents\").value; " . "\twindow.close();}'>"; echo '</form></div>'; }