<?php echo $header; ?>
<div id="content">
  <div class="breadcrumb">
    <?php foreach ($breadcrumbs as $breadcrumb) { ?>
    <?php echo $breadcrumb['separator']; ?><a href="<?php echo $breadcrumb['href']; ?>"><?php echo $breadcrumb['text']; ?></a>
    <?php } ?>
  </div>
  <?php if ($error_warning) { ?>
  <div class="warning"><?php echo $error_warning; ?></div>
  <?php } ?>
  <div class="box">
    <div class="heading">
      <h1><img src="view/image/user.png" alt="" /> <?php echo $heading_title; ?></h1>
      <div class="buttons"><a onclick="$('#form').submit();" class="button"><?php echo $button_save; ?></a><a onclick="location = '<?php echo $cancel; ?>';" class="button"><?php echo $button_cancel; ?></a></div>
    </div>
    <div class="content">
      <form action="<?php echo $action; ?>" method="post" enctype="multipart/form-data" id="form">
        <table class="form">
          <tr>
            <td> Contest Name:</td>
            <td><input style="width:300px;" type="text" name="name" value="<?php echo $name; ?>" />
             </td>
          </tr>
          <tr>
            <td> Prize Amount:</td>
            <td><input type="text" name="prize_amount" value="<?php echo $prize_amount; ?>" />
             </td>
          </tr>
          <tr>
              <td>Status</td>
              <td><select name="status">
                  <?php foreach ($master_descriptions as $master_description) { ?>
                  <?php if ($master_description['contest_status_master_id'] == $status) { ?>
                  <option value="<?php echo $master_description['contest_status_master_id']; ?>" selected="selected"><?php echo $master_description['description']; ?></option>
                  <?php } else { ?>
                  <option value="<?php echo $master_description['contest_status_master_id']; ?>"><?php echo $master_description['description']; ?></option>
                  <?php } ?>
                  <?php } ?>
                </select></td>
            </tr>
        </table>
      </form>
    </div>
  </div>
</div>
<?php echo $footer; ?> 