Пример #1
0
<p>Change:</p>
<ul>
  <li>Artist name</li>
  <li>Copyright year</li>
  <li>Date format</li>
  <li>Google Analytics ID</li>
  <li>Site description</li>
  <li>Time zone</li>
  <li>Username/password</li>
</ul>


EOL;
// Group
$view->group_h2('I want to …');
//$view->group_instruction('');
$view->group_contents($link_set_output);
$content_output .= $view->format_group() . '<hr/>' . "\n";
/*
$view->group_h2('Coming up');
$view->group_instruction('The next comic will be …');
$view->group_contents($next_output);
$content_output .= $view->format_group().'<hr/>'."\n";
*/
/* ! Display * * * * * * * */
$output = $view->open_view();
$output .= $view->view_header();
$output .= $alert_output;
$output .= $content_output;
$output .= $view->close_view();
print $output;
<?php 
echo $alert_output;
?>
<p><?php 
echo $instruction_output;
?>
</p>
		<form accept-charset="UTF-8" action="ad.adsense-edit.php" method="post" enctype="multipart/form-data">
<?php 
if ($ad_output) {
    echo $ad_output;
}
if ($ad_id) {
    ?>
			<input type="hidden" name="ad_id" value="<?php 
    echo $ad_id;
    ?>
"/>
			<p><button class="btn primary save" name="submit" type="submit" value="save"><i></i>Save</button></p>
<?php 
} else {
    ?>
			<p><button class="btn primary save" name="submit" type="submit" value="create"><i></i>Create</button></p>
<?php 
}
?>
		</form>

<?php 
print $view->close_view();
Пример #3
0
$edit_form_output .= '<form accept-charset="UTF-8" action="marker.edit.php" method="post">' . "\n";
$edit_form_output .= '	<p><label for="new_title">Title</label>' . "\n";
$edit_form_output .= '	<input type="text" id="new_title" name="new_title" size="12" style="width:12rem" value="' . $marker->markerInfo['title'] . '"/></p>' . "\n";
$edit_form_output .= '	<label for="edit_marker_type">Type</label>' . "\n";
$edit_form_output .= $select_options . "\n";
$edit_form_output .= '	<button class="btn primary save" name="submit" type="submit" value="save"><i></i>Save</button>' . "\n";
$edit_form_output .= '	<input type="hidden" name="marker_id" value="' . $marker_id . '"/>' . "\n";
$edit_form_output .= '</form>' . "\n";
// ! Build the overall view
$view->page_title('Marker: ' . $marker->markerInfo['title']);
$view->tooltype('chap');
$view->headline('Marker <span>' . $marker->markerInfo['title'] . '</span>');
$view->group_h2('General info');
$view->group_instruction('Change this marker’s name and type.');
$view->group_contents($edit_form_output);
$content_output .= $view->format_group();
// Let artists jump to the marker type manager
// from here because it’s contextual.
$link1->url('marker-type.list.php');
$link1->tap('Edit marker types');
$link1->id('edit-types');
$action_output = $link1->text_link('editmeta');
$view->action($action_output);
// ! Display
$output = $view->open_view();
$output .= $view->view_header();
$output .= $alert_output;
$output .= $content_output;
$output .= $view->close_view();
print $output;
print $view->close_view();