コード例 #1
0
<?php

// @GET field id to edit.
$registration_id = absint($_GET['registration']);
// get the registration row for the id
$edit_registration = PROFILEPRESS_sql::sql_edit_registration_builder($registration_id);
require_once VIEWS . '/include.settings-page-tab.php';
?>
<br/>
<a class="button-secondary" href="?page=<?php 
echo REGISTRATION_BUILDER_SETTINGS_PAGE_SLUG;
?>
"
   title="Back to Catalog">Back to Catalog</a>

<div id="poststuff" class="ppview">
	<div id="post-body" class="metabox-holder columns-2">
		<div id="post-body-content">
			<div class="meta-box-sortables ui-sortable">
				<form method="post">
					<div class="postbox">
						<div class="handlediv" title="Click to toggle"><br></div>
						<h3 class="hndle ui-sortable-handle"><span>Edit Registration Form</span></h3>
						<div class="inside">
							<table class="form-table">
								<tr>
									<th scope="row"><label for="title">Theme Name</label></th>
									<td>
										<input type="text" id="title" name="rfb_title" class="regular-text code" value="<?php 
echo isset($_POST['rfb_title']) ? esc_attr($_POST['rfb_title']) : $edit_registration['title'];
?>