<?php require '../../inc/admin/config.php'; $session->auth_or_redirect('admin', '/', true); $admin_title = 'Manage Testimonials'; $admin_subtitle = 'Add New Testimonial'; include ROOT . '/inc/admin/header.php'; ?> <p><a href="/admin">Back to Admin Home</a></p> <p><a href="./">Back to Testimonials</a></p> <div id="testimonials_new"> <?php $form = new FormBuilder(array('model' => 'testimonial', 'action' => 'new', 'method' => 'post')); ?> <?php include './_form.php'; ?> <?php echo $form->submit(array('value' => 'Add')); ?> <?php echo $form->end(); ?> </div> <?php include ROOT . '/inc/admin/footer.php';
$admin_title = 'Manage Auth Codes'; $admin_subtitle = 'Edit Auth Code'; include(ROOT.'/inc/admin/header.php'); $auth_code = new AuthCode; $auth_code = $auth_code->find($_GET['id']); ?> <p><a href="/admin">Back to Admin Home</a></p> <p><a href="./">Back to Auth Codes</a></p> <div id="auth_codes_edit"> <?php $form = new FormBuilder(array('model' => $auth_code, 'action' => 'edit', 'method' => 'post')); ?> <?php include './_form.php'; ?> <?php echo $form->submit(array('value' => 'Save')); ?> <?php echo $form->end(); ?> </div> <? include(ROOT.'/inc/admin/footer.php'); ?>