<?php
$atts = array(
              'width'      => '600',
              'height'     => '600',
              'scrollbars' => 'yes',
              'status'     => 'no',
              'resizable'  => 'no',
              'screenx'    => '20',
              'screeny'    => '50',
    'class'=>'btn btn-primary'
            );
?>
<div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
    <div class="panel panel-primary">
        <div class="panel panel-heading">Edit Attendee</div>
        <div class="panel-body">
            <?php echo form_open('admin/editAttendee2'); ?>
            <div class="input-group" style="margin-bottom: 10px !important;">
                <span class="input-group-addon">Transaction Id</span>
                <input type="text" name="transId" required class="form-control" />
            </div>
 <div class="input-group" style="margin-bottom: 10px !important;">
                <span class="input-group-addon">Name</span>
                <input type="text" name="app_name" class="form-control" />
            </div>
              <div class="input-group" style="margin-bottom: 10px !important;">
                
                  <input type="submit" value="Search" class="btn btn-primary" />
            </div>
            <?php echo form_close(); ?>
            <hr />
                    <?php echo form_open('admin/updateAttendee'); 
                    if(empty($transaction)){
                        echo "<pre><span>Invalid Transaction Id</span></pre>";
                    }else{
                    foreach($transaction as $row){}
                    }
                    ?>
            <div class="input-group" style="margin-bottom: 10px !important;">
                <span class="input-group-addon">Name</span>
                <input type="hidden" name="confID" value="<?php echo $row['confID']; ?>" />
                <input type="text" name="name" required class="form-control" value="<?php echo $row['confName']; ?>" />
            </div>
            <div class="input-group" style="margin-bottom: 10px !important;">
                <span class="input-group-addon">Receipt Number</span>
                <input type="text" name="receipt" required class="form-control" value="<?php echo $row['confAuthNum']; ?>" readonly />
            </div>
            <div class="input-group" style="margin-bottom: 10px !important;">
                <span class="input-group-addon">Email</span>
                <input type="email" name="email" required class="form-control" value="<?php echo $row['confEmail']; ?>" />
            </div>
            <div class="input-group" style="margin-bottom: 10px !important;">
                <span class="input-group-addon">Phone</span>
                <input type="number" name="phone" required class="form-control" value="<?php echo $row['confPhone']; ?>" />
            </div>
<div class="input-group" style="margin-bottom: 10px !important;">
                <span class="input-group-addon">Amount</span>
<input type="hidden" name="transRef" value="<?php echo $row['transRef']; ?>" />
                <input type="text" name="amount" required class="form-control" value="<?php echo $row['transAmount']; ?>" />
            </div>
              <div class="input-group" style="margin-bottom: 10px !important;">
                
                  <input type="submit" value="Update" class="btn btn-primary" />
            </div>
                  
<?php echo form_close(); ?>
                </div>
    </div>
    
</div>
<?php

/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

