<?php
$courses_table='courses';
$all_courses=$this->SchoolModel->get_data($courses_table);

?>

<style>
body{background:#EAEDED;}
/*.contact-us-section{box-shadow:0 0 2px silver;min-height:500px;margin-bottom:20px; margin-top:20px; }*/
/*.contact-div{background:#CFD8DC;color:#463F8B;}

.form-group input{border-width: 3px;font-weight: 700 }*/
</style>
<div class="container-fluid mt-3 mb-3 bg-white">
    <div class="row">
        <div class="col-sm-12 pt-3 pb-3">
        
            <ul class="breadcrumb">
                <li class="breadcrumb-item"><a href="<?php echo base_url();?>Welcome">Home</a></li>
                <li class="breadcrumb-item"><a href="<?php echo base_url(); ?>School/circular">Circular</a></li>
                <li class="breadcrumb-item">Publish Circulars</li>
            </ul>
        
            <div class="contact-us-section p-3">
                
                <form method="post" action="#" enctype="multipart/form-data">
                    <h4>Publish Circular</h4><hr>
                    <div class="form-group">
                        <label>Massage<span class="text-danger"></span></label>	
                        <input type="text" class="form-control" name="circular_content" placeholder="Add Massage" value="">
                    </div>	
                    <div class="form-group">
                        <label>Massage Subject<span class="text-danger"></span></label>	
                        <input type="text" class="form-control" name="subject" placeholder="Message Subject" value="">
                    </div>	

                    <div class="form-group">
                        <label>Notice Community<span class="text-danger"></span></label>	
                        <select name="notice_community" id="notice_community" class="form-control">
                            <option value="all">All</option>
                            <option value="student">Student</option>
                            <option value="staff">Staff</option>
                            <?php 
                            if($all_courses){
                                foreach($all_courses as $courses){
                            ?>
                            <option value="<?php echo $courses['id']; ?>">Class : <?php echo $courses['course']; echo " "; echo $courses['subject_stream'];?> Students</option>
                            <?php
                                }
                            }
                            ?>
                        </select>
                    </div>

                    <div class="form-group">
                        <label>Attachment<span class="text-danger"></span></label>
                        <input type="file" class="form-control" name="attachment_file" placeholder="" value="">
                    </div>

                    <div class="form-group">
                        <label>Attachment Type<span class="text-danger"></span></label>	
                        <select name="circular_attachment" id="circular_attachment" class="form-control">
                            <option value="pdf">Pdf</option>
                            <option value="image">Image</option>
                        </select>
                    </div>


                    <div class="form-group">
                        <button type="submit" name="circular_submit" class="btn btn-sm btn-success">Publish Circular</button>
                    </div>

                </form>
            </div>
        </div>
    </div>
</div>