+</script>
+EOF;
+
+print <<< EOF
+<div class='slice_add'>
+<p>You must provide a short description of the new slice
+as well as a link to a project website before creating it.
+<br/>
+Do <strong>not</strong> provide bogus information; if a complaint
+is lodged against your slice and your PlanetLab Operations Center
+is unable to determine what the normal behavior of your slice is,
+your slice may be deleted to resolve the complaint.
+</p>
+<p><strong>NOTE</strong>:
+All PlanetLab users are <strong>strongly</strong> encouraged to join the PlanetLab
+<a href='https://lists.planet-lab.org/mailman/listinfo/users'>Users</a>
+mailing list. Most questions about running software on PlanetLab can be answered by
+posting to this list.
+<br/>Site administrators often use this list to post announcements about service outages.
+New software releases and available services are announced here as well.
+</p>
+</div>
+EOF;
+
+$details = new PlekitDetails(TRUE);
+
+$form_variables = array('site_id'=>plc_my_site_id());
+$form = $details -> form_start("/db/slices/slice_add.php",$form_variables);
+print $form->hidden_html("site_id",$site_id);
+
+$details->start();
+
+// is the user on several sites ?
+if (plc_is_admin () || count (plc_my_site_ids()) > 1) {
+ // site selector - not implemented yet
+//// // displays a site select list for admins and multi-site users
+//// if( count( $_person['site_ids'] ) > 1 || in_array( 10, $_roles ) ) {
+//// // get sites depending on role and sites associated.
+//// if( in_array( 10, $_roles ) )
+//// $site_info= $api->GetSites( NULL, array( "name", "site_id", "login_base" ) );
+//// elseif( count( $_person['site_ids'] ) > 1 )
+//// $site_info= $api->GetSites( $_person['site_ids'], array( "name", "site_id", "login_base" ) );
+////
+//// echo "<tr><th>Site: </th><td><select onchange='update(this[selectedIndex].text)' name='site_id'>\n";
+////
+//// foreach( $site_info as $site ) {
+//// echo "<option value=". $site['site_id'];
+//// if( $site['site_id'] == $_person['site_ids'][0] )
+//// echo " selected";
+//// echo ">". $site['name'] ."->". $site['login_base'] ."</option>\n";
+//// }
+////
+//// echo "</select></td><td></td></tr>\n";