コード例 #1
0
ファイル: gui.class.php プロジェクト: tedwp/porpoise
 /**
  * Create a screen for migrating (copying) layers
  *
  * @return string
  */
 public static function createMigrationScreen()
 {
     $result = "";
     $layers = DML::getLayers();
     $layers = array_combine($layers, $layers);
     $result .= sprintf("<form accept-charset=\"utf-8\" method=\"POST\" action=\"%s?action=migrate\">\n", $_SERVER["PHP_SELF"]);
     $result .= sprintf("<p>Copy from %s to %s <button type=\"submit\">Copy</button></p>\n", GUI::createSelect("from", $layers), GUI::createSelect("to", $layers));
     $result .= sprintf("<p>Warning: copying contents will overwrite any old data in the destination layer</p>\n");
     $result .= "</form>\n";
     return $result;
 }