 
<?php $__env->startSection('content'); ?>
<div style="width: 600px; padding-left: 5px;" id="print_message_section">
    <p class="lesson-title">MESSAGING</p>
    <p>
        <a href="<?php echo SITE_URL.'messages'; ?>">Back to the messaging page</a>
    </p>
    <?php if(Auth::user()->e_type != 'Admin'): ?>
    <b>Name: </b> <span style="color:#000000"><?php echo Auth::user()->v_first_name; ?>&nbsp;<?php echo Auth::user()->v_last_name; ?></span><br>
    <b>Student ID: </b><span style="color:#000000"><?php echo Auth::user()->v_student_id; ?></span><br>
    <p></p>    
    <?php endif; ?>
    <a href="<?php echo ADMIN_URL.'logout'; ?>">Log Off</a>
    <p>
        <!-- p>Permission: Admin</p -->
        <!-- Search / Navig  -->
    </p>
    <div style="background: #f0f0d0; padding: 3px; margin-top: 20px; border: 1px #bbbbbb solid;">
        <p style="padding-top: 0px; padding-left: 0px; margin-top: 0px;" class="title-green-1">Search Features</p>
        <div class="widget-body">
		<div class="row-fluid">
			<?php echo Form::open( array('url' => ADMIN_URL.'messages/list-ajax','id' => 'frmSearchForm','name' => 'frmSearchForm','onsubmit'=>'return false;') ); ?>

            <input type="hidden" name="from_section" id="from_section" value="print"/>
			<div class="span12">
				<div class="dataTables_filter span3" style="margin-left: 0px !important;">
					<label>Status:</label>
					<select id="e_status" name="e_status" class="search">
						<option value="">--Select--</option>
						<option value="Show All">Show All</option>
						<option value="Draft">Show Draft</option>
                        </select>
				</div>
                <div class="dataTables_filter span3">
					<label>
						Date From:
					</label>
					<input type="text" name="start_date" id="transaction_date_from" class="inp-form search">
				</div>
                <div class="dataTables_filter span3">
					<label>
						Date To:
					</label>
					<input type="text" name="end_date" id="transaction_date_to" class="inp-form search">
				</div>
                <?php if(Auth::user()->e_type == 'Admin'): ?>
                    <div style="clear: both;">
					</div>
					<div class="dataTables_filter span3" style="margin-left: 0px !important;">
						<label>Student:</label>
						<select id="i_member_id" name="i_member_id" class="search required">
							<option value="">--Select--</option>
						    <?php foreach($memberList as $key => $val): ?>
                                <option value="<?php echo $val['id']; ?>"><?php echo $val['v_last_name']."&nbsp;".$val['v_first_name']; ?></option>
                            <?php endforeach; ?>
                        </select>
					</div>
                <?php endif; ?>
                <div class="dataTables_filter span6">
					<label>
						&nbsp;
					</label>
					<input type="button" value="Search" id="btn_submit" class="btn btn-success btn_submit form-submit">
					<input type="button" value="Show All" id="btn_showall" class="btn btn-success btn_show_all">
				</div>                
			</div>
			<input type="hidden" id="rec_per_page" name="rec_per_page" value="<?php 
			if(Session::has('REC_LIMIT')) { echo Session::get('REC_LIMIT');
			} else {
			$NumOfRecords =get_num_of_rec_list();
			echo $NumOfRecords[0]; } ?>" />
			<div style="clear: both;">
			</div>
			<input type="hidden" id="last-loaded-page" name="last-loaded-page" value="" />
			<input type="hidden" id="del_url" name="del_url" value="<?php echo ADMIN_URL.'messages/delete/'; ?>" />
        </div>
	</div>
    </div>
    <div class="widget" id="widget-body-inner-content">
        <?php if(Auth::user()->e_type != 'Admin'): ?>
            <div class="row-fluid" id="loader">
                <h4 style="color: green;">Loading.... &nbsp;&nbsp;&nbsp;<img src="<?php echo SITE_URL.'img/admin/loading.gif'; ?>" /></h4>
            </div>
        <?php else: ?> 
            <h5>Plesase Select Student.</h5>
        <?php endif; ?>
	</div>
	<div class="widget" id="widget-view-inner-content">
    </div>
    <p>
        <a href="<?php echo SITE_URL.'messages'; ?>">Back to the messaging page</a>
    </p>
    <!--end bodytext-->
</div>
<style>
.body{color:#000000 !important;}
</style>
<?php if(Auth::user()->e_type != 'Admin'): ?>
<script>
loadPiece($("#frmSearchForm").attr('action'));
</script>
<?php endif; ?>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layout.default', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>